Assert that an agent handoff matching criteria exists in this event range.
Optional options: AgentHandoffAssertOptionsresult.expect.range(0, 3).containsAgentHandoff({ newAgentType: MyAgent });
Assert that a function call matching criteria exists in this event range.
Optional options: FunctionCallAssertOptionsresult.expect.range(0, 3).containsFunctionCall({ name: 'foo' });
Assert that a function call output matching criteria exists in this event range.
Optional options: FunctionCallOutputAssertOptionsresult.expect.range(1, 4).containsFunctionCallOutput({ isError: true });
Assert that a message matching criteria exists in this event range.
Optional options: MessageAssertOptionsresult.expect.range(0, 2).containsMessage({ role: 'assistant' });
Assertion wrapper for a range of events. Provides contains*() methods to search within the range.