What are Agent Simulations?
Agent simulations test your agent’s behavior in realistic, multi-turn conversations that mimic how real users would interact with your system, instead of the static input-output pairs a dataset evaluation uses. Simulations run on the open-source Scenario framework: the samescenario.run() entrypoint and judge work across text, voice, and adversarial testing.

Two ways to run simulations
Both share the same simulated user, the same judge, and the same results pages. They differ in where the scenarios live and who runs them.Run from the platform
Connect your agent over HTTP and run scenario suites from the platform. Product people create, edit and run the tests, and the judge reads your agent’s own traces. No test code in your repository.
Write scenarios in code
Write scenarios with the Scenario SDK in Python or TypeScript, run them with your test runner and in CI, and see every run in LangWatch.
What you can test
Conversational agents
Simulate real users across multi-turn conversations and judge behavior at any step: tool calls, recovery, and end-to-end outcomes.
Voice agents
Test over real audio through ElevenLabs, OpenAI Realtime, Twilio, Pipecat, and Gemini Live, with background noise, interruptions, and latency metrics.
Red teaming
Run multi-turn adversarial attacks (Crescendo escalation, refusal detection, backtracking) to find security gaps before attackers do.
The Three Levels of Agent Quality
For comprehensive agent testing, you need all three levels:-
Level 1: Unit tests
Traditional unit and integration software tests to guarantee that e.g. the agent tools are working correctly from a software point of view -
Level 2: Evals, Finetuning and Prompt Optimization
Measuring the performance of individual non-deterministic components of the agent, for example maximizing RAG accuracy with evals, or approximating human preference with GRPO -
Level 3: Agent Simulations
End-to-end testing of the agent in different scenarios and edge cases, guaranteeing the whole agent achieves more than the sum of its parts, simulating a wide range of situations
Why Traditional Evaluation Isn’t Enough for Agents
Dataset evaluations are based on a static set of cases. Those cases are hard to get, especially when you are just getting started: they need many examples to be valuable, and an expected answer for each one. Above all they are static, like input to output, or query to expected_contexts. Agents, however, aren’t simple input-output functions. They are processes. An agent behaves like a program, executing a sequence of operations, using tools, and maintaining state.Evaluation dataset (single input-output pairs):
❌ Doesn’t consider the conversational flow
❌ Can’t specify how middle steps should be evaluated
❌ Hard to interpret and debug
❌ Ignores user experience aspects
❌ Hard to come up with a good dataset
Agent simulation (full multi-turn descriptions):
✅ Explicitly evaluates in-between steps
✅ Easy to interpret and debug
✅ Easy to replicate and reproduce an issue found in production
✅ Can run in autopilot for simulating a variety of inputs This doesn’t mean you should stop doing evaluations, in fact, having evaluations and simulations together is what composes your full agent test suite:
- Use evaluations for testing the smaller parts that compose the agent, where a more “machine learning” approach is required, for optimizing a specific LLM call or retrieval for example.
- Use simulation-based testing for proving the agent’s behavior is correct end-to-end, replicate specific edge cases, and guide your agent’s development without regressions.
Why Use LangWatch Scenario?
Scenario is the most advanced agent testing framework available. It provides:- Simulations - Test real agent behavior by simulating users in different scenarios and edge cases
- Flexible evaluations - Judge agent behavior at any point in conversations, combine with evals, test error recovery, and complex workflows
- Trace-informed judging - The judge reads your agent’s own traces before its verdict, so it verifies tool calls and writes as evidence. See Linking Your Traces
- Voice testing - Test voice agents end-to-end over real audio (ElevenLabs, OpenAI Realtime, Twilio, Pipecat). See Voice Agents
- Red teaming - Run multi-turn adversarial attacks to uncover security vulnerabilities. See Red Teaming
- Framework agnostic - Works with any AI agent framework
- Simple integration - Just implement one
call()method - Multi-language support - Python, TypeScript, and Go
Visualizing Simulations in LangWatch
Once you’ve set up your agent tests with Scenario, LangWatch provides visualization tools to:- Organize simulations into sets and batches
- Debug agent behavior by stepping through conversations
- Track performance over time with run history
- Collaborate with your team on agent improvements

Next Steps
- Connect your agent - Run scenario suites from the platform against your agent’s HTTP endpoint
- Write scenarios in code - Set up your first code-first simulation
- Linking your traces - How the judge reads your agent’s traces
- Voice Agents - Test voice agents end-to-end over real audio
- Red Teaming - Run adversarial attacks against your agent
- Scenario Documentation - Deep dive into the testing framework