An evaluation is a short scripted chat with the saved agent. You write what the caller says, what each tool returns, and what must happen. No real tool is called; the AI models are, and count toward usage. Run evaluations after every change to see that nothing broke.
Evaluations and ready-made scenarios
Add an evaluation
- Open Evaluations. Press Add on the ready-made evaluations to start from them, or New evaluation.
- Name it. Under Known at the start, add values the agent should already know, if any.
- In each step, write The caller says and, under Tools return, what each tool answers if the agent calls it on that step.
- Under Must happen, add the checks. Add more steps for a longer chat, then save.
See Evaluation examples for a full walkthrough.
Checks
Checks run after the agent answers the step:
| Check | Passes when |
|---|---|
| Calls a tool | The tool was called the given number of times, with the given arguments if you set them. 0 checks it was not called. |
| Reaches a step | The flow passed through the selected node on this step. |
| Remembers a value | A variable has the expected value after this step. |
Tool answers
Give an answer for every tool the agent may call on a step, in the same shape as the tool's real answer. A tool called without an answer stops the run with an error. Answers belong to their step: if a later step calls the same tool, add its answer there too.
Run and review
Run one evaluation or Run all. Open a result to see the chat, the checks, and each tool call with its arguments and the answer it got. A failed check means the agent did something else; an error means the run could not finish. Fix the agent, save and run again.
Press Stop to interrupt the current run. Its result is Stopped, with the conversation and completed checks kept up to that point. When running all evaluations, Stop also cancels the remaining queue. Model usage already incurred still counts.
Evaluations belong to the agent, not to an individual version. Select the version in the editor and save your changes before running; the run tests the selected saved version. See Agent versions for a workflow for testing and publishing changes.