Test and evaluate agents
Run scenario specs against a Robotelos instance with robotelos test, read the verdicts and exit codes, and measure the classification parts with robotelos-eval.
The EvalKit is the set of tools that check an agent from the outside. You write a scenario as a JSON file, a simulated user plays it against a running instance, and the runner judges what the agent said and what the system did. The result is a verdict per run and an exit code a script or an agent can act on.
Two meanings of “eval”
Two tools carry the word, and they answer different questions.
robotelos test ...is the scenario runner. It plays whole conversations against an instance and judges them. Its code is inruntime/internal/e2e,runtime/internal/evalsandruntime/internal/e2ecli. This guide is about this tool.robotelos-evalis the classification kit. It measures one part of the conversation path (interpreter,narrator,plannerorchooser) against labelled cases on a live model, and compares the result with a baseline. Its code is inruntime/internal/evalkit, and its usage is in the header ofruntime/cmd/robotelos-eval/main.go. It is a tool for tuning a prompt or choosing a model, and this guide does not cover it further.
The Evaluation resource of the Control API is a third thing and unrelated to both: it is the evidence that lets a version be promoted. See Ship an agent.
Words used in this section
| Word | Meaning |
|---|---|
| Spec | One scenario as a JSON file: who the user is, what they say, and what counts as success. |
| Criterion | One check in a spec’s success_criteria, for example “the agent said this” or “the system counted one booking”. |
| Persona | Who the simulated user is. A spec carries one, and a persona file can replace it. |
| Profile | scripted (a scripted model, exact words expected) or live (a real model, only what does not depend on its words). A criterion can name one. |
| Run | One execution of a spec against a target. --k sets how many runs each spec gets. |
| Job | A directory made with --job-dir that keeps every trial, so that an interrupted job can continue. |
| Trial | One spec and one repeat inside a job. |
| Verdict | The judgement on one run: PASS, FAIL, INCOMPLETE, UNRUNNABLE, TECHNICAL_ERROR or UNKNOWN. Only PASS is a pass. |
| Evidence level | L0 to L4: how strong the proof is, by what the run went through. A live-profile run is L3, a scripted one L2. |
Which path for which goal
| You want to | Start here |
|---|---|
| See a scenario pass on your machine | Run your first scenario |
| Write your own scenario and check it for weak assertions | Write a scenario |
| Test the goal agent with a real model | Run against a real agent |
| Play the user with different personalities | Personas |
| Repeat a run, continue an interrupted job or compare two jobs | Repeat, resume and compare |
| Look up flags, exit codes and report fields | Reference |
| Drive the tools from an agent or a script | For agents |
The pages, in order
- Run your first scenario: start the local stack and run one spec.
- Write a scenario: the spec fields, the criteria, and
robotelos test lint. - Run against a real agent: the goal agent, a live model and a model-played user.
- Personas: who the simulated user is.
- Repeat, resume and compare: repeats, jobs, baselines and diffs.
- Reference: flags, exit codes and reports.
- For agents: a path through the tools for an agent that follows it line by line.
- Run your first scenarioStart the local stack with the mock agent, run one scenario spec with robotelos test run, and read the result and the exit code.
- Write a scenarioWrite a scenario spec as JSON, choose its success criteria, check it for weak assertions with robotelos test lint, and run it alone or from the catalog.
- Run against a real agentStart the local stack with the goal agent and a local model, run a scenario with the live profile, let a model play the user, and read what a failing run teaches.
- Personas and mock usersPlay the same scenario with different simulated users: write a persona file, attach it to a spec or to a run, and compare pass rates per persona.
- Repeat, resume and compareRun each scenario several times into a job directory, continue an interrupted job, grade it again, and compare it with a baseline, a budget or an earlier job.
- Test command referenceEvery robotelos test subcommand, the flags of test run with their defaults, exit codes per subcommand, file formats, environment variables and the robotelos-eval kit.
- Checklist for agentsRun Robotelos scenario tests line by line as an AI agent or a script: preconditions, the command sequence, how to decide pass or fail from the exit code, and what to report.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.