Skip to content

TestResult

TestResult

Bases: BaseModel

The test result.

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.

passed 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/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 test result.

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

    # do not collect as a pytest
    __test__ = False

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