ToolSimulator: scalable tool testing for AI agents
AWS•How-to••by Darren Wang, Smeet Dhakecha, Vinayak Arannil and Xuan Qi•AWS Artificial Intelligence Blog
You can use ToolSimulator, an LLM-powered tool simulation framework within Strands Evals, to thoroughly and safely test AI agents that rely on external tools, at scale. Instead of risking live API calls that expose personally identifiable information (PII), trigger unintended actions, or settling for static mocks that break with multi-turn workflows, you can use ToolSimulator’s large language model (LLM)-powered simulations to validate your agents. Available today as part of the Strands Evals…
ToolSimulator, part of the Strands Evals SDK, uses an LLM to simulate tool responses so agents can be tested without live API calls, with optional shared state and Pydantic output schemas.
Who it is for
Developers building Strands agents that call external tools and need repeatable tests without side effects or exposed PII.
Key points
Install with pip install strands-evals; Python 3.10 or later is required.
Tools are registered with a decorator; the real function body is never called during simulation.
share_state_id links tools to shared state so writes are visible to later reads.
output_schema enforces a Pydantic response structure.
AI:Agents CLI skills let a developer scaffold, deploy, secure, evaluate and publish an ADK agent to Gemini Enterprise from a coding assistant, using prompts instead of manual console steps.
AI:Strands Evals' ActorSimulator generates goal-driven, persona-consistent simulated users that hold multi-turn conversations with an agent, so multi-turn agents can be tested at scale and fed into existing evaluators.
AWS•How-to••by Akarsha Sehwag, Samaneh Aminikhanghahi, Bharathi Srinivasan, Ishan Singh, Jack Gordley and Osman Santos•AWS Artificial Intelligence Blog
AI:AgentCore Evaluations is now generally available, scoring agent quality on session, trace and tool levels via LLM judges, ground truth, or Lambda code evaluators, for both CI/CD and production monitoring.