Testing Agents
FakeAgentDriver
Script deterministic agent behavior without LLM calls:ScenarioStep Types
Full Test Example
Using iterate() for Step-Level Testing
MockTool
Stub tools with fixed return values or custom logic:FakeAgentDriver to test the full loop without any real LLM or tool calls, or with ScenarioStep::toolCall(..., executeTools: true) to actually execute the mock tool during the scenario.
FakeInferenceDriver
For testing the realToolCallingDriver with scripted LLM responses: