Structs§
- Agent
Event Builder - Agent
Trace - A recorded agent event stream (as seen by an
AgentObserver), with assertion helpers for trace-shaped tests. Build one withTestAgentBuilder::run_trace. - Captured
Elicitation - Captured
Task Update - Captured
Tool Call - Fake
Agent Observer - In-memory
AgentObserverthat records every event it receives, for asserting on the stream an agent emits. - Fake
McpServer - A fake MCP server preloaded with the classic math tools (
add_numbers,divide_numbers,slow_tool); add scripted tools withSelf::with_tool. - Fake
McpState - Fake
Tool - Fake
Tool Response - McpTest
- McpTest
Builder - Task
Outcome - Test
Agent Builder - Test
Agent Result - Result of running a test agent, including messages and captured contexts.
- Test
Scenario - A fluent sequence of commands and synchronization points for a test agent.
- Tool
Call Outcome
Enums§
- Test
Agent Error - Error returned by
TestAgentBuilder::run,TestAgentBuilder::run_trace, andTestAgentBuilder::run_with_context. - Test
Agent Step - An ordered interaction with a test agent.
Traits§
Functions§
- agent_
event - content_
events - drain_
until - fake_
mcp - map_
event_ names - Maps trace-relevant events to compact names for order assertions, skipping content messages.
- mcp_
instructions - test_
agent