Skip to content

test_result

TestResult

Bases: BaseModel

The result of a test.

Attributes:

Name Type Description
test_name str

Name of the test.

result str

Description of the test result.

reasoning str

The rationale for the test result.

success bool

True if the test passed, otherwise False.

conversation Conversation

Captures the interaction between a user and an agent.

Source code in src/agenteval/test_result.py
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
class TestResult(BaseModel, arbitrary_types_allowed=True):
    """The result of a test.

    Attributes:
        test_name: Name of the test.
        result: Description of the test result.
        reasoning: The rationale for the test result.
        success: `True` if the test passed, otherwise `False`.
        conversation: Captures the interaction between a user and an agent.
    """

    # do not collect as a test
    __test__ = False

    test_name: str
    result: str
    reasoning: str
    success: bool
    conversation: Conversation