Skip to main content

Module testing

Module testing 

Source

Structs§

AddNumbersRequest
AddNumbersResult
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.
DivideNumbersRequest
DivideNumbersResult
FakeAgentObserver
In-memory AgentObserver that records every event it receives, for asserting on the stream an agent emits.
FakeMcpServer
A fake MCP server for testing
SlowToolRequest
SlowToolResult
TestAgentBuilder
TestAgentResult
Result of running a test agent, including messages and captured contexts.

Functions§

agent_event
content_events
drain_until
fake_mcp
fake_mcp_with_proxy
map_event_names
Maps trace-relevant events to compact names for order assertions, skipping content messages.
mcp_instructions
test_agent