Glossary
Agent evaluation
Measuring how well an AI agent completes its tasks, judging both the final outcome and the path it took to get there.
Agent evaluation is the process of measuring how well an AI agent completes the tasks it was built for. A good evaluation checks the final outcome (did the agent do the job correctly?) and the path it took: which tools it chose, how many steps and tokens it used, and whether it stayed within its rules. Teams run evaluations before release to compare prompts, models and tools, and keep running them in production to catch regressions.
What to measure
No single score captures an agent’s quality, so most teams track a small set of metrics that map to what they care about.
Dimension | Question it answers | Typical measure |
|---|---|---|
Task success | Did the agent achieve the goal? | Pass rate against expected outcomes |
Trajectory | Did it take a sensible path? | Correct tools, order and number of steps |
Tool calls | Were the calls valid? | Right function, valid arguments, handled errors |
Retrieval | Did it find the right information? | Recall at k, context precision |
Answer quality | Is the response supported and on point? | Faithfulness, answer relevance |
Efficiency | What did the run cost? | Steps, tokens, latency, spend |
Safety | Did it stay within its rules? | Guardrail violations, blocked or unsafe actions |
Retrieval and answer metrics come from retrieval evaluation and frameworks such as RAGAS: recall at k, context precision, faithfulness and answer relevance. Trajectory and tool-call metrics are specific to agents, because the same answer can be reached through a clean path or a wasteful one.
How to evaluate AI agents
Start with a golden dataset: a set of realistic tasks, each with an expected outcome and, where useful, an expected path. A few dozen tasks drawn from real usage are enough to begin, and the set grows as production failures are added. Run the agent on each task in a controlled environment and score the results.
Score with code wherever the outcome can be checked directly. If the task was to file a document in the right folder, query the folder afterwards; if it was to extract an invoice total, compare the number. Use LLM-as-a-judge for open-ended outputs such as summaries or replies, and calibrate the judge against a sample of human ratings. Because agents are non-deterministic, run each task several times and report a pass rate. Wire the suite into CI so that every change to a prompt, model or tool runs it.
Offline tests cover known cases. Online evaluation scores a sample of live runs collected through agent observability and agent tracing, which surfaces failures your test set did not anticipate. Human-in-the-loop review and user feedback feed the same loop.
Why agents are harder to evaluate than LLMs
LLM evaluation usually scores one input against one output. An agent runs an agent loop of many steps, errors compound across them, and several different paths can be correct. Agents also change things: a test that lets an agent write to real data needs a way to inspect and reverse what it did. Public AI benchmarks such as SWE-bench, GAIA and τ-bench measure general capability, which helps when choosing a model but says little about your own tasks, data and tools.
Agent evaluation and Exabase
Exabase does not include an evaluation harness; scoring and test management sit in your own tooling. It does make several parts of agent testing easier. A Base can be created per test run in one API call, giving each run an isolated environment that is deleted afterwards. With filesystem snapshotting turned on, you can query a Base as it was before a run, compare it with the state afterwards through the resources filter endpoint, and recover anything the agent deleted, which turns “did the agent file this correctly?” into a check in code. Testing agents on real data without risking it covers the approach.
For retrieval, Deep Search returns the matching chunk with a page number or timestamp, so tests can check that an answer cites the right passage. Exabase Workers record each run as a conversation with every tool call, which gives you trajectories to score. Exabase evaluates its own Memory engine, M-1, on the public LongMemEval and BEAM benchmarks, and publishes the results on the research page. Evaluating retrieval without a labelled dataset and the agent context versioning use case go further.
FAQs
How do you evaluate an AI agent?
Build a set of realistic tasks with expected outcomes, run the agent on each several times, and score both the result and the path it took, using code checks where possible and an LLM judge or human review where not.
What metrics are used to evaluate AI agents?
Common metrics are task success rate, trajectory quality, tool-call accuracy, retrieval recall and precision, faithfulness of answers, cost and latency per run, and the number of safety violations.
What is trajectory evaluation?
Trajectory evaluation scores the sequence of steps an agent took, such as which tools it called and in what order, alongside the final answer. It catches agents that reach the right result through wasteful or risky paths.
How is agent evaluation different from LLM evaluation?
LLM evaluation scores single responses. Agent evaluation covers multi-step runs with tool calls, side effects and more than one valid path, so it needs outcome checks, trajectory scoring and repeated trials.
Can LLM-as-a-judge evaluate agents?
Yes, for open-ended outputs and for judging whether a trajectory was reasonable. Calibrate the judge against human ratings and prefer code-based checks wherever the outcome can be verified directly.
How do you test an agent on real data safely?
Run it in an isolated copy or a dedicated environment, record the state before and after, and keep a way to reverse changes. Snapshotting on an Exabase Base lets you inspect and recover what an agent changed.
How often should agents be evaluated?
On every change to prompts, models or tools, through an automated suite, and continuously on a sample of production runs to catch problems the test set misses.
Related pages: Agent observability, LLM evaluation, LLM-as-a-judge, Golden dataset, Retrieval evaluation, Guardrails, Agent rollback, Agent undo solution, Best agent sandboxes, Exabase on the BEAM benchmark.