diff --git a/src/pages/docs/simulation/concepts/understanding-simulation.mdx b/src/pages/docs/simulation/concepts/understanding-simulation.mdx new file mode 100644 index 00000000..6d7d1958 --- /dev/null +++ b/src/pages/docs/simulation/concepts/understanding-simulation.mdx @@ -0,0 +1,51 @@ +--- +title: "Understanding Simulation" +description: "How a simulation is assembled from three pieces, and where it fits" +--- + + +## What a simulation is + +A **simulation** runs your agent against simulated users so you catch its failures in a test instead of in production. The simulated user plays out a situation, your agent responds, and the whole conversation is scored, in voice or in chat. Run it before you ship, and again after every change, and you have a repeatable read on whether the agent is getting better or worse. + +## The three components + +Every simulation is assembled from three pieces. The [agent](/docs/simulation/concepts/agent-definitions) is who is tested, the [scenario](/docs/simulation/concepts/scenarios) is what happens, and the [persona](/docs/simulation/concepts/personas) is who is talking. A run brings the three together and executes them. + +
+ + + + + Agent + who's tested + Scenario + what happens + Persona + who's talking + +
+ +Hold this shape and the rest of Simulation is detail: each of the three pieces has its own page, and everything else is how you run them and read what comes back. + +## One loop, walked once + +Take a support agent. You point Simulation at it, write a **refund request** scenario, and pick a **frustrated caller** persona. You run it, and a resolution eval fails: the agent quotes the wrong refund window. You shorten the prompt and add the policy, then run the same scenario and persona again. This time it passes, and you have proof the fix worked, not a hunch. + +## Where Simulation fits + +Simulation is the pre-production counterpart to [Observe](/docs/observe): Observe watches real traffic, Simulation rehearses it. It scores calls with the same templates as [Evaluation](/docs/evaluation), so a bar means the same thing in a test and in production. [Replay](/docs/simulation/concepts/replay) bridges the two by turning a real conversation into a scenario, and when a run exposes a weakness, [optimization](/docs/simulation/concepts/optimization) improves the agent automatically. + +## Keep exploring + + + + The agent under test, and how versions track changes + + + The test cases that decide what happens + + + The simulated customer your agent faces + +