Skip to content

TargetResponse

TargetResponse

Bases: BaseModel

A target's response.

Attributes:

Name Type Description
response str

The response string.

data Optional[dict]

Additional data (if applicable).

Source code in src/agenteval/targets/target_response.py
 9
10
11
12
13
14
15
16
17
18
class TargetResponse(BaseModel):
    """A target's response.

    Attributes:
        response: The response string.
        data: Additional data (if applicable).
    """

    response: str
    data: Optional[dict] = None