One conversation tells you how the agent handled one customer. Before a change reaches customers you usually want to know two more things: did the change break anything that used to work, and does the new behavior hold up with customers who put things differently? Regressions and evaluations answer those questions by holding many conversations at once and grading each one.
#The two kinds
| Regression | Evaluation | |
|---|---|---|
| Answers | Did anything break? | Does it work? |
| Conversations | The agent's saved scripted cases, said exactly as written | New conversations, improvised by simulated callers |
| Where the cases come from | Cases you or the builder wrote and kept | Your guidelines and the agent's capabilities |
| Same turns every run | Yes | No |
| Size | Every saved case, or the ones you name | A handful of conversations unless you ask for a number |
A regression replays the scripted cases saved with the agent. A case is a caller and a script of turns, such as Alex Morgan, Gold member, canceling booking ABC123 through chat and being quoted the $15 fee. Because the turns never change, a case that passed last week and fails today points at something that changed in the agent.
An evaluation hands your guidelines, such as "callers who try to avoid the $15 chat cancellation fee", to a planner that writes cases from them and the agent's capabilities. A separate model then plays each caller in its own words. Evaluations find the problems nobody wrote a script for.
#How a case is graded
Each case carries closed questions about the conversation, each with the answer it must get. For example: "Did the agent state the $15 fee before asking to confirm?" must be yes, and "Did the agent cancel before the caller agreed?" must be no. A judge answers them from the transcript and from the agent's own record of each turn, so a reply that says "canceled" when nothing was canceled is caught. Some cases also carry judgments scored against a pass mark, such as whether the replies read naturally.
A case passes when every answer is the expected one and every judgment clears its mark. A run passes only when every case passes.
#Both hold real conversations
Each case is a real conversation with your agent, through its integrations. If an integration points at a sandbox database, each conversation's writes stay in its own layer. If an integration can change a real system, the builder names the system and asks you before it runs anything.
Every run's conversations are saved as ordinary threads you can open. In All threads, set the Source filter to Simulations to find them. See Find and filter threads.
A pass doesn't make anything live. Choosing what customers get is always a separate step; see Make a commit live, lock a branch, and roll back.
#When to use which
- After any change, run a regression. It tells you whether anything you had already proven has broken.
- After a change in behavior, also run an evaluation aimed at that behavior, and ask for variations: a caller who accepts the fee, one who refuses it, one who asks how to avoid it.
- Before you make a commit live, run the full regression.
- When an evaluation finds a problem, fix it, then keep that conversation as a scripted case so every later regression checks it.
A green regression only covers what its cases script. It says nothing about conversations nobody wrote, which is what evaluations are for.
#What the builder tests on its own
After a change to an existing agent, the builder validates the program and runs small, targeted tests of that specific change by itself: a live test conversation (shown as "ran a test conversation" in its conversation) or a re-run of the affected turn, sometimes asking you first. Broader checks run when you ask for them: a full regression, or a set of generated conversations covering everything the change could affect.
When the builder builds a new agent from scratch, it runs both regressions and generated conversations by itself until it reaches a first working agent.
To start a run yourself, see Run a regression or an evaluation.