Interface TestResult<TOutput>

Test result with additional metadata

interface TestResult<TOutput> {
    result: AgentResult<TOutput>;
    duration: number;
    passed: boolean;
    error?: string;
}

Type Parameters

  • TOutput

Properties

result: AgentResult<TOutput>

The agent result

duration: number

Execution duration in milliseconds

passed: boolean

Whether the test passed

error?: string

Error message if test failed