Skip to main content

Module testing

Module testing 

Source

Structs§

AgentEventBuilder
AgentTrace
A recorded agent event stream (as seen by an AgentObserver), with assertion helpers for trace-shaped tests. Build one with TestAgentBuilder::run_trace.
FakeAgentObserver
In-memory AgentObserver that records every event it receives, for asserting on the stream an agent emits.
TestAgentBuilder
TestAgentResult
Result of running a test agent, including messages, captured contexts, and the MCP elicitations it answered.
TestScenario
A fluent sequence of commands and synchronization points for a test agent.

Enums§

TestAgentError
Error returned by TestAgentBuilder::run, TestAgentBuilder::run_trace, and TestAgentBuilder::run_with_context.
TestAgentStep
An ordered interaction with a test agent.

Functions§

agent_event
content_events
drain_until
fast_retry
Millisecond-scale retry delays so retry tests run fast under virtual time.
map_event_names
Maps trace-relevant events to compact names for order assertions, skipping content messages.
mcp_instructions
ready_catalog
test_agent

Type Aliases§

TestResult