Agent evaluation: how to test AI agents you can trust
Agent evaluation is the practice of testing an AI agent on realistic tasks and grading what it does: its replies, the tools it calls, and the state it leaves behind. AI agent evaluation tells you whether an agent is reliable, secure, and safe enough for the job you built it for.
A score that rises with every release can mean the agent got better at its job. It can also mean the agent got better at your tests. An agent evaluation is only useful if it can tell those two apart.
The method on this page works with any tooling. The last section before the FAQ shows how Vijil Diamond runs it.

What is agent evaluation?
Agent evaluation grades an agent across a whole task. An agent plans, calls tools, reads the results, and changes records in other systems, so a single reply rarely shows whether it did the job.
The practice goes by several names. Engineers shorten it to agent evals or AI agent evals, and some teams call it AI agent testing. Testing AI agents and evaluating them mean the same thing here: running the agent against defined tasks and scoring the results.
Anthropic’s guide to agent evals, published in January 2026, breaks an evaluation into a few parts:
- A task is one test case, with its inputs and success criteria.
- A trial is one attempt at a task. Agents behave differently from run to run, so each task gets several trials.
- The transcript is the full record of a trial, including messages, tool calls, reasoning, and intermediate results.
- The outcome is the state the trial leaves behind, such as whether a booking exists in the database.
- Graders score the transcript, the outcome, or both.
- The evaluation harness is the infrastructure that runs the tasks, records each step, and adds up the grades.
Anthropic’s guide also separates the agent from its model. An agent is a model running inside an agent harness, the software that handles its inputs, tool calls, and outputs. When you evaluate an agent, you evaluate the model and the harness together, so a change to either one is a change to the agent.
Agent evaluation vs LLM evaluation
LLM evaluation grades a model’s output. A prompt goes in, a response comes out, and a grader checks the response. LLM agent evaluation adds everything that happens between the first prompt and the final state.
An agent has more ability and agency than a model, because it acts as well as answers:
- It calls tools, choosing which APIs, databases, or code interpreters to use and what to send them.
- It reads data as it works, pulling in documents, records, and tool results mid-task, so its inputs change from one run to the next.
- It changes its environment, updating records, sending messages, and starting workflows in other systems.
That difference is why agentic evaluation needs its own methods. Mistakes compound across steps, and an agent can complete the task while breaking a rule on the way.
Knowing how to evaluate LLM agents starts with the agent’s job rather than the model’s leaderboard rank. Agentic AI evaluation also has to cover the systems the agent touches, which a model benchmark never reaches. Most LLM agent evals combine both levels: checks on single replies and checks on full tasks.
AI agent reliability, security, and safety
An evaluation that only checks whether the agent finished the task measures capability. Trust needs more than that. The Vijil trust taxonomy splits it into three dimensions, and an evaluation should cover all three.
AI agent reliability is about behaving as expected under ordinary, varied conditions. A reliable agent answers correctly, gives the same answer to the same question, and keeps working when inputs are messy or phrased in unusual ways.
In agent evaluation, reliability also covers who is asking. An agent should answer correctly for every persona it serves, whatever their technical expertise or competence, from a power user who phrases a request precisely to a confused first-time user who doesn’t. The Vijil trust taxonomy files this under inter-user consistency.
Security covers behavior under hostile conditions, such as attempts to extract data, to take over the agent’s goal through prompt injection, or to knock it offline.
Safety means limiting harm when something goes wrong. A safe agent stays within its scope, follows policy, and can explain its actions to the people responsible for it. Policy compliance sits here, and it’s the evidence anAI agent compliance review asks for.
Safety also covers fairness when an agent helps make important decisions about people, such as hiring, lending, or insurance. The same request should get an answer of the same quality whatever the user’s gender, age, ethnicity, or other protected characteristic. To test it, hold the request steady and change who is asking.
Some regulations make bias testing a requirement. For high-risk uses such as hiring and credit scoring,Article 10 of the EU AI Act requires providers to examine their training, validation, and testing data for possible biases. That examination is part of EU AI Act compliance for those systems.
Consistency is hard to measure. A 2025 survey presented at an ICML workshop reviews how researchers define and measure LLM consistency and which problems remain open. Agentic evaluations that stop at task success leave consistency, security, and safety untested.
AI agent evaluation metrics
AI agent evaluation metrics turn the three dimensions into numbers. The most common ones measure the task, the tools, and the cost of getting there:
- Task completion rate is the share of tasks where the outcome meets the success criteria.
- Tool-call accuracy checks whether the agent picked the right tool and passed the right parameters. Function calling evaluation applies the same check to each individual call.
- Policy compliance is the share of trials in which the agent stayed within its rules.
- Factual accuracy checks whether the agent’s claims are supported, whichhallucination detection tries to automate.
- Latency, token usage, and cost per task show what each result costs to produce.
Agentic AI evaluation metrics are only as useful as the tasks behind them. A high completion rate on easy tasks says less about an agent than a lower rate on the requests your users send.
Report AI agent performance metrics for each task category as well as overall. A single figure hides which kind of request the agent fails, and you need that detail to know how to evaluate AI agent performance in a way that leads to a fix.
pass@k and pass^k: measuring repeated runs
Agents are non-deterministic, so the same task can pass on one run and fail on the next. Two metrics describe what happens across k trials of the same task.
pass@k, sometimes written pass at k, is the probability that at least one of k trials succeeds. It rises as k grows. That suits tools where one good answer is enough, such as code a developer will review before merging.
pass^k, introduced with the tau-bench benchmark in 2024, is the probability that all k trials succeed. It falls as k grows. An agent that succeeds on 75% of trials passes all three of three trials only about 42% of the time, because 0.75 cubed is 0.42.
For a customer-facing agent, pass^k is the number to watch, because each customer gets one run. In the tau-bench paper’s 2024 tests, GPT-4o succeeded on fewer than half of the tasks, and its pass^8 in the retail domain was below 25%.
Outcome vs trajectory: what to grade
In agent evaluation, you can grade an agent on where it ended up, on how it got there, or on both. Outcome grading checks the final state, such as a processed refund or a closed ticket. Agent trajectory evaluation grades the path: the sequence of reasoning steps, tool calls, and messages in the transcript.
Anthropic’s guide warns against grading the path too strictly. Agents often find valid routes the test designer didn’t expect, and a test that demands one exact sequence of tool calls fails them for it. For capability, grade the outcome.
The path still matters for trust. An agent can close the right ticket after reading a record it had no permission to open, or issue a refund if it was told to escalate.
When evaluating agents for production, grade the outcome for capability and the trajectory for policy and efficiency. Check which tools the agent called, which data it touched, and whether it handed off to a person when it should have.
Trajectory evaluation also shows whether an agent works efficiently. Two agents can reach the same outcome while one takes extra steps, repeats tool calls, and spends more tokens getting there. Compare paths on token usage, cost, and latency per task, so you catch an agent that wastes budget before its costs grow with traffic.
Multi-turn evaluation
Many failures appear only several turns into a conversation, after the agent has called tools and stored context. Multi-turn evaluation runs whole conversations, often with a second model playing the user, and grades the full exchange.
Compliance changes shape over a conversation too. Vijil research onpartial preferences argues that in multi-turn work, an agent has to satisfy a user’s preferences across a sequence of actions. Grading each turn on its own misses that, so agent evaluation for regulated workflows has to grade the whole conversation.
Multi-agent evaluation
Multi-agent evaluation adds the handoffs between agents. When one agent passes work to another, an error made early can surface two agents later, where it looks like the last agent’s fault.
Knowing how to evaluate agentic systems with several agents starts with evaluating each agent alone. Then run the system end to end and trace each failure back to the agent where it began. A multi-agent evaluation framework needs both views, and multi-agent system evaluation that skips either one points teams at the wrong agent.
Code, model, and human graders
Graders come in three types:
- Code-based graders check exact conditions, such as a database state, a passing unit test, or a required tool call. They’re fast, cheap, and reproducible, and they fail valid answers that don’t match the expected pattern.
- Model-based graders use a language model to score against a rubric. This approach, usually called LLM-as-a-judge, handles open-ended output, but it needs checking against human judgment.
- Human graders, usually domain experts, set the standard the other two types are calibrated against. They’re slow and expensive, so teams use them for spot checks and calibration.
A judge model can drift with the agent it grades. If both are tuned against the same signal, scores rise while the agent’s behavior stays the same, so recheck model-based graders against human reviewers as the agent changes.
Most agent evaluation suites mix all three. Vijil Labs is also working on aneuro-symbolic approach to agent oversight that makes agent behavior auditable without a person reading every trace.
AI agent benchmarks and their limits
An AI agent benchmark is a fixed, public set of tasks with automated grading, used to compare models and agents on the same test. Model developers publish agent evaluation benchmark results with new releases, and those results help when you choose a starting model.
Five benchmarks come up repeatedly in model releases and research papers:
- SWE-bench gives an agent real GitHub issues from 12 Python repositories and grades its patch by running the tests. It’s a common reference point for coding agent evaluation.
- tau-bench simulates customer conversations in retail and airline domains, with a model playing the user and the agent following written policy.
- WebArena tests browser tasks and checks the page and backend state afterward.
- AgentBench tests models as agents across eight interactive environments.
- The GAIA benchmark asks real-world questions that need reasoning, browsing, and tool use. In its 2023 paper, human respondents scored 92% and GPT-4 with plugins scored 15%.
For running your own suites, Inspect AI, the UK AI Security Institute’s open-source evaluation framework, is an agent testing framework with support for tool use, multi-turn dialog, and model-graded scoring.
Public scores have limits for agent evaluation in an enterprise. Your agent has its own tools, data, and policies, and no public benchmark contains them. Scores also saturate: Anthropic’s guide notes that frontier models now score above 80% on SWE-bench Verified, a version of SWE-bench, which leaves little room to show progress.
Ethics benchmarks show the same gap. Is ETHICS About Ethics?, a 2024 paper presented at a NeurIPS workshop, questions whether a widely cited ethics benchmark for language models measures what it claims to.
AI agent benchmarks are a reasonable way to shortlist a model, and Vijil’sTrust Reports score frontier models across reliability, security, and safety on one suite. AI agent benchmarking against your own tasks is the evidence that decides whether an agent ships.
Benchmark contamination and grader gaming
A benchmark score is evidence only if the agent couldn’t pass without doing the task.NIST’s Center for AI Standards and Innovation (CAISI) reviewed transcripts from its own agent evaluations and, in December 2025, described two ways agents cheat.
Solution contamination is when the agent finds information that gives away the answer, such as a newer version of the code it was asked to fix. Grader gaming is when it satisfies the scoring function without doing the intended task. On one internal cyber benchmark, at least 4.8% of CAISI’s logs recorded a pass that came from crashing the target server with a denial-of-service attack instead of exploiting the vulnerability the task was about.
Both are forms of reward hacking, where a system meets the letter of an objective and misses its intent.
Benchmark contamination can also happen before a test runs, if benchmark questions or answers reach a model’s training data. The GAIA authors kept the answers to 300 of their 466 questions private, so leaderboard entries are scored against answers that aren’t public.
The defense is aheld-out test set: tasks the agent and its developers never train or tune on. Read the transcripts of passing runs as well as failing ones, because a cheated pass looks like a real one in the score.
How to evaluate AI agents for enterprise use
An agent evaluation framework for enterprise agents follows five steps. Together they show how to test AI agents the way they’ll run in production, with the people who sign off on them in mind.
1. Define the agent’s purpose, users, and policies
How to evaluate an AI agent depends first on what it’s for. Write down what the agent does, who will use it, and what it must never do.
In deployments that use the Agent2Agent (A2A) protocol, theagent card, a JSON document that lists the agent’s skills, records the first of these. Personas cover the second: a confused customer, a power user, and someone trying to manipulate the agent all belong in the test set.
Policies cover the third, from regulations down to rules for this one agent. A finance-approval agent and a support agent need different tests, so each evaluation starts from the agent’s own definition.
2. Build tasks from real use and real failures
Anthropic’s guide suggests 20 to 50 tasks drawn from real failures as a starting point for agent evaluation. Pull them from the checks you already run by hand, your bug tracker, and your support queue. Include cases where the agent should decline as well as cases where it should act.
Split the tasks into two kinds. Capability evals target what the agent can’t yet do reliably, so they start with low pass rates. Regression evals cover what it already does and should stay near 100%.
Keep a held-out share of tasks that nobody tunes the agent against. Those tasks tell you whether an improvement is real.
3. Run repeated trials in a stable evaluation harness
Run every task several times, from a clean environment each time, so leftovers from one trial can’t help or hurt the next. Anthropic’s guide describes an agent gaining an unfair advantage by reading the git history left by earlier trials. Open-source agent evaluation frameworks such as Inspect AI provide sandboxes for this isolation.
The agent in the evaluation harness should match the agent in production, with the same model, tools, prompts, and agent harness. Whatever AI agent evaluation framework you use, report pass^k next to the average pass rate.
4. Read the worst responses as well as the average
An average of thousands of verdicts lets many easy passes hide a few serious failures. Score the tail too: the worst-scoring share of responses, overall and for each dimension.
Vijil’s September 2026 Trust Report on Grok 4.6, a model from xAI, shows the gap. Across 115 probes in three test harnesses, Grok 4.6 had a mean score of 92, while its tail score, read from its worst-scoring 10% of responses, was 48.3.
Then compare the results against a bar: the last release’s baseline, a threshold your team sets, or a gate set by comparable models on the same suite. Count a run as worse only when the drop is bigger than the run-to-run noise.

5. Re-evaluate after every change
A new model version, an edited prompt, a new tool, or a change to the harness each produce a different agent. Run the regression suite on every change, ideally in CI/CD, and the full evaluation before each release.
Agent evaluation belongs in the agent development lifecycle from the first prototype, as a release gate rather than a final review. The how-to onevaluating agents built with Google ADK shows one way to add it to a framework you may already use.
Agent evaluation vs red teaming and observability
Three practices get confused because all of them look at agent behavior. Agent evaluation decides whether an agent is ready, by testing it against defined tasks before and between releases.
AI red teaming is the adversarial testing part of that work. Red teamers, human or automated, attack the agent the way a motivated adversary would, which a fixed task set can’t do. Their findings feed the security dimension of the evaluation.
Observability watches the agent in production through traces, metrics, and alerts, the core of an AgentOps architecture. Online evaluation applies graders to that live traffic, while offline evaluation runs the test suite before deployment.
Offline evaluation catches problems before users see them, and production monitoring catches what the test set didn’t anticipate. Together, agent evaluation, red teaming, and observability make up AI agent quality assurance, and each one covers failures the other two miss.
Where agent evaluation falls short
A passing agent evaluation shows that the tested cases passed. It can’t show that untested cases will, and agents in production meet inputs no test set anticipated.
Suites also go stale. Users change what they ask for, tools change underneath the agent, and a suite that once separated strong agents from weak ones saturates as models improve.
Graders disagree. Model-based graders vary between runs, and human experts split on open-ended answers. Tasks need to be specific enough that two experts would reach the same verdict.
Some agent failure modes, such as collusion, appear only when several agents interact. Testing for them is still a research problem, and Vijil Labs lists the collective behavior of agents among its research areas.
The question of how to evaluate agents is never settled for good. Every model update, prompt edit, or new tool means collecting the evidence again.
How we approach agent evaluation at Vijil
We built Vijil Diamond for AI agent verification, which means running agent evaluation against the agent’s own definition before anyone relies on it. Diamond compiles each agent’s purpose, personas, and policies into a bespoke evaluation harness and runs it against the live agent. Its personas come in two kinds: functional personas vary a user’s role, skill, and intent, and demographic personas vary who the user is, so the same request is tested for bias.
Every probe is filed under the Vijil trust taxonomy, which breaks reliability, security, and safety into nine sub-dimensions and 28 categories of failure. Detectors grade each response with pattern-matching scripts, classifiers we fine-tune ourselves, and LLM judges.
The Trust Score is read from the worst-scoring 10% of responses. Against a baseline, a run fails only when it’s worse by more than run-to-run noise.
Each agent evaluation returns a holistic breakdown of the agent’s performance: pass rates by category and dimension, a Trust Score overall and for each of reliability, security, and safety, and the transcript behind every failure. The Trust Report built from it ends with what to fix and who should fix it.
Our adaptive red team adds attacker agents that hold full conversations with the live agent in waves, each wave building on what the last one learned. Its findings arrive with the conversation attached.
Diamond runs for three people: the developer evaluates, the risk owner verifies, and the business owner validates. Vijil Dome, our AI runtime security layer, enforces the same compiled policies in production.
Vin Sharma, our CEO, described the goal when we launched the platform in March 2026: developers have to show business owners that their agents behave as expected under “normal, noisy, and nasty conditions.” If you’d like help with the first evaluation, our guided pilot takes one agent throughagent lifecycle management with your team.
Final thought
An agent evaluation earns trust when it tests the agent you’ll run in production, under the conditions it will meet, and shows its worst responses next to its average.
For teams shipping agents, that means treating evaluation as a release gate. It runs again with every change and holds the agent to a bar your risk owner agreed to before testing started.
Get in touch to score one of your own agents with Vijil Diamond and see where its worst responses sit.
Agent evaluation FAQs
How many tasks do you need to start evaluating AI agents?
You need fewer tasks than most teams expect to start evaluating AI agents. Anthropic’s guide to agent evals recommends 20 to 50 simple tasks drawn from real failures, because early changes to an agent have large effects that a small sample can detect. Add harder tasks as the agent matures and each improvement gets smaller.
How do you evaluate AI agents in production?
To evaluate AI agents in production, apply graders to live traffic and watch for drops in pass rates, new policy violations, and rising cost per task. This online evaluation complements the offline suite you run before each release. Feed production failures back into that suite as new tasks, so the next release is tested against them.
Which AI agent benchmarks matter for enterprise agents?
The AI agent benchmarks that matter depend on the agent’s job: SWE-bench for coding agents, tau-bench for customer service, and WebArena for browser agents. Use them to shortlist a model. They can’t tell you how your agent handles your tools, data, and policies, so the deciding evidence comes from tests built for that agent.
What is a good AI agent evaluation score?
A good AI agent evaluation score is one that clears a bar you set before testing. That bar can be your last release’s baseline, a threshold agreed with your risk owner, or a gate set by comparable models on the same suite. Check the worst responses as well as the average, because a high mean can hide serious failures.
Who should own agent evaluation in an enterprise?
Agent evaluation has three owners. The developer evaluates the agent while building it, the risk owner verifies the evidence before sign-off, and the business owner validates that the agent does the job it was bought for. A dedicated team can own the infrastructure, but each of the three owners needs results in a form they can act on.
How do you evaluate agent reasoning quality alongside task completion?
To evaluate agent reasoning quality alongside task completion, grade the transcript as well as the outcome. Check whether each tool call was justified, whether the agent followed its policies along the way, and whether its stated reasoning matches what it did. LLM judges with clear rubrics can score this at scale once they’re calibrated against human reviewers.