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 in runtime/internal/e2e, runtime/internal/evals and runtime/internal/e2ecli. This guide is about this tool.
  • robotelos-eval is the classification kit. It measures one part of the conversation path (interpreter, narrator, planner or chooser) against labelled cases on a live model, and compares the result with a baseline. Its code is in runtime/internal/evalkit, and its usage is in the header of runtime/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

WordMeaning
SpecOne scenario as a JSON file: who the user is, what they say, and what counts as success.
CriterionOne check in a spec’s success_criteria, for example “the agent said this” or “the system counted one booking”.
PersonaWho the simulated user is. A spec carries one, and a persona file can replace it.
Profilescripted (a scripted model, exact words expected) or live (a real model, only what does not depend on its words). A criterion can name one.
RunOne execution of a spec against a target. --k sets how many runs each spec gets.
JobA directory made with --job-dir that keeps every trial, so that an interrupted job can continue.
TrialOne spec and one repeat inside a job.
VerdictThe judgement on one run: PASS, FAIL, INCOMPLETE, UNRUNNABLE, TECHNICAL_ERROR or UNKNOWN. Only PASS is a pass.
Evidence levelL0 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 toStart here
See a scenario pass on your machineRun your first scenario
Write your own scenario and check it for weak assertionsWrite a scenario
Test the goal agent with a real modelRun against a real agent
Play the user with different personalitiesPersonas
Repeat a run, continue an interrupted job or compare two jobsRepeat, resume and compare
Look up flags, exit codes and report fieldsReference
Drive the tools from an agent or a scriptFor agents

The pages, in order

  1. Run your first scenario: start the local stack and run one spec.
  2. Write a scenario: the spec fields, the criteria, and robotelos test lint.
  3. Run against a real agent: the goal agent, a live model and a model-played user.
  4. Personas: who the simulated user is.
  5. Repeat, resume and compare: repeats, jobs, baselines and diffs.
  6. Reference: flags, exit codes and reports.
  7. For agents: a path through the tools for an agent that follows it line by line.