Skip to content

Test and evaluate agents

How to evaluate AI agent performance: the metrics product and evaluation teams score, offline and live

Task success, reliability across repeated runs, tool use, latency, cost per task, policy errors and escalation. Each metric is defined from published evaluation frameworks’ own documentation, with how to score it before release, in production and from an event log.

To evaluate AI agent performance, score task success, reliability across repeated trials, tool use, latency, cost per task, policy errors and escalation on tasks whose end state you can write down. Score a fixed set of tasks offline before each release and a sample of real runs live, reading the end state the agent left as well as what it said. On Obsession, every email, text, call, page and sandbox run lands in one event log, so each metric is read from what the agent did.

ComparedEvaluation frameworks for AI agents, comparedGo straight to the comparison
On this page
  1. Start from the end state the agent leaves
  2. AI agent performance metrics, one by one
  3. Offline vs online evaluation for AI agents
  4. Who grades: code, a model or a person
  5. Scoring from an event log
  6. Evaluation frameworks for AI agents, comparedCompared
  7. Turning scores into a ship decision
  8. Where evaluation numbers mislead
  9. Questions about evaluating AI agent performance

To evaluate AI agent performance, measure whether the agent finished the task, how reliably it does so, how long it took, what it cost and whether it broke a rule. Product managers, evaluation leads and research engineers use these numbers to decide whether a new model, prompt or tool ships. Scored on live traffic, the same numbers show the week an agent starts to slip. Definitions come from each framework’s own documentation, as listed on 22 November 2026.

Start from the end state the agent leaves

Anthropic’s engineering guide Demystifying evals for AI agents, published on 9 January 2026, gives the words most frameworks share:

  • Task: “a single test with defined inputs and success criteria”.
  • Trial: one attempt at a task. Answers vary, so each task runs several times.
  • Grader: “logic that scores some aspect of the agent’s performance”.
  • Transcript: the full record of a trial, with its outputs, tool calls and intermediate results.
  • Outcome: “the final state in the environment at the end of the trial”.

The guide’s example is a flight booking. The transcript holds the agent saying the flight is booked. The end state is a reservation in the booking database, or no reservation at all. Grade the end state wherever you can write it down. For an agent that serves customers, the end state often sits in another system: the refund on the account, the confirmation email in the customer’s inbox, the address saved on the order.

AI agent performance metrics, one by one

Most agents need the metrics in the table, reported per task type, because a refund task and a delivery-date question fail in different ways.

MetricWhat it measuresHow to score it
Task successWhether the end state matches the taskCode on the end state, or a model judging the run against the task
Reliability (pass^k)Whether every one of k trials succeedsRun each task k times and count the tasks that pass every time
Tool useRight tools, right order, right argumentsTrajectory match, precision and recall
LatencyTime to reply and time to finishTimestamps on every step
Cost per taskModel tokens plus every tool and service usedAll costs divided by successful tasks
Policy errorsAnswers or actions that break a written ruleA rubric per rule, and code where the rule is a number
EscalationHandoffs to a person, and the ones that were missedCount handoffs, and review every request for a person
AI agent evaluation metrics: what each measures and how to score it

Task success

Task success rate is the share of tasks whose end state matches what the task asked for. Frameworks score it two ways. With a reference, you write the end state down and compare: Ragas’s agent metrics include a goal accuracy score that compares “the workflow’s end state” with the end state you wrote down. Without a reference, a model reads the run and judges it. DeepEval’s Task Completion metric extracts the task and the outcome from the trace, asks a model how well they align, and needs no reference answer. Use a reference wherever the end state can be written down, such as an amount, a date or a saved record, and keep model judges for open tasks like research or drafting.

Reliability across trials: pass^k

An agent that succeeds once may fail the next customer. The τ-bench paper, published in June 2024, proposed pass^k to measure this: a task counts only if every one of k trials succeeds. It reported that even gpt-4o succeeded on fewer than half its tasks, and that pass^8 fell under 25% in the retail domain. Anthropic’s guide sets pass^k beside pass@k, which “measures the likelihood that an agent gets at least one correct solution in k attempts”. At a 75% success rate per trial, pass^3 is about 42%.

Use pass@k where one good answer is enough, such as a coding agent whose work a person reviews before it ships. Use pass^k for agents that serve customers, where every conversation is a trial and each wrong answer reaches a person.

Tool use and trajectory

The trajectory is the list of tool calls an agent made, in order. Google Cloud’s Vertex AI agent evaluation documentation lists six ways to score it:

  • Exact match: the calls match a reference list in content and order.
  • In-order match: every reference call appears in order, with extra calls allowed.
  • Any-order match: every reference call appears, in any order.
  • Precision: the share of the agent’s calls that appear in the reference.
  • Recall: the share of reference calls the agent made.
  • Single tool use: whether one named tool was called at all.

Ragas scores the same thing as tool call accuracy and a tool call F1 score, which combines precision and recall. Pick the strictness the job needs. Use exact match for a regulated flow, and in-order match where extra lookups are harmless. Use recall where a step must never be skipped, such as checking a customer’s identity before a refund.

Latency

Vertex AI adds latency, the time an agent takes to return a response, and failure to every evaluation by default. Measure latency per step and end to end, and report the median and the slowest 5% beside the average, because one stuck run hides inside a good average. Some agents wait on the outside world, such as a sign-in code by text or a reply email. For those, split the agent’s own working time from the time spent waiting, or a slow sender looks like a slow agent.

Cost per task

Cost per task adds up everything one task used. That means input and output tokens at the model’s rates, plus each tool and service: browser hours, sandbox time, texts, calls and emails. Divide by successful tasks rather than attempts, because a failed run still costs money. For example, an agent at 4 cents a run that succeeds 80% of the time costs 5 cents per successful task. A cheaper model at 3 cents a run that succeeds half the time costs 6 cents per success.

Policy errors

A policy error is an answer or action that breaks a written rule. Examples are a refund over the agent’s limit, a delivery promise the carrier can’t meet, or personal data shared without a check. Write each rule as a test. Where the rule is a number, such as refunds up to £50 without approval, check it in code. Where it is judgement, such as no medical advice, grade it with a rubric and a model calibrated against a person. Report policy errors per 1,000 conversations, split into critical rules that block a release and minor ones that open a ticket.

Escalation

Escalation rate is the share of conversations handed to a person. Count it, then review both ways an agent gets it wrong. It can hand off a question it could have resolved, or fail to hand off when a customer asks for a person or a rule says it must. A team that chases a lower escalation rate alone can hide the second kind, so report missed handoffs as their own line.

Offline vs online evaluation for AI agents

LangSmith’s evaluation concepts page draws the line clearly. Offline evaluations “target examples from datasets: curated test cases with reference outputs”. Online evaluations “target runs and threads from tracing: real production traces without reference outputs”. OpenAI’s agent evals documentation works from the same traces, each one “the end-to-end record of model calls, tool calls, guardrails, and handoffs for one run”. It calls trace grading “the fastest way to identify workflow-level issues”.

QuestionOffline evaluationOnline evaluation
What it runs onA fixed set of tasksA sample of real runs
Reference answersWritten for each taskUsually none
WhenBefore every releaseEvery day in production
Best atComparing versions like for likeFailures nobody wrote a task for
Blind spotTasks unlike real trafficCustomers meet the problem first
Offline and online evaluation of an AI agent, side by side

Anthropic’s guide warns that automated evals “can create false confidence if it doesn’t match real usage patterns”, while production monitoring is reactive. Its summary is the plan most teams settle on: “automated evals for fast iteration, production monitoring for ground truth, and periodic human review for calibration.” The guide to AI agent observability compares the tools that trace production runs: every model call, tool call and reply, in order.

One suite for new tasks, one for regressions

Split the offline set in two. Capability evals ask what the agent can do well, and “should start at a low pass rate”. Regression evals ask whether it still handles everything it used to, and “should have a nearly 100% pass rate”. Anthropic’s guide adds that “20-50 simple tasks drawn from real failures is a great start”, so the first suite can come from last month’s escalations. The method for writing and running those tasks is in how to test AI agents.

Who grades: code, a model or a person

  • Code: fast, cheap, objective and reproducible, in Anthropic’s words, and brittle when a correct answer is phrased differently. Use it for amounts, dates, tool calls and end states.
  • A model: flexible, able to grade thousands of runs and good at nuance, though non-deterministic and dearer than code. Use it for tone, helpfulness and open answers.
  • A person: the gold standard, and slow and expensive. Use people to calibrate model graders and to review a weekly sample.

LangSmith’s page adds pairwise evaluators, which compare the outputs of two versions on the same input, useful when choosing between a current model and its replacement. Calibrate any model grader before trusting it: have a person grade 20 to 50 runs, compare, and rewrite the rubric until the two agree on nearly every run.

Scoring from an event log

An event log records every step of a run in order, with the time and what came back. That covers each page the agent visited, each email and text it received, each call and each sandbox result. Every metric reads straight from it:

  • Task success: the last events match the end state, such as a confirmation email received.
  • Tool use: the order of steps against the reference.
  • Latency: the time between events, with waiting split from working.
  • Cost: the billed events, added up.
  • Policy errors and escalation: the words in each reply, and any handoff.
One trial of one task. The confirmation email at 09:12 proves the address changed, where the agent’s reply only claims it. shop.example is an invented example.

Obsession, the toolkit for AI agents, gives each run its own sandbox, browser, inbox and phone number on one API and one bill, as the Train and test agents blueprints sets out. Every email, text, call, page and sandbox run lands in one event log, which your test runner reads with obsession.events.list({ persona: run.id }). A persona costs nothing while it waits, so thousands of runs can each wait days for a reply.

Evaluation frameworks for AI agents, compared

We make Obsession, so every other option is described from its provider’s own pages as of 22 November 2026.

OptionWhat it does wellPriceWhere it stopsBest for
Doing nothingreading a few chatsCosts no timeFreeMisses rare failures and slow driftA prototype with no users yet
By handa sheet and a personCatches nuance a script missesFree, plus staff hoursSlow, and grades vary between reviewersCalibrating graders on 20 to 50 tasks
[Ragas](https://github.com/vibrantlabsai/ragas)Tool call accuracy, tool call F1, goal accuracy and topic adherenceFree, open source (Apache 2.0)A library: you run it and keep the resultsPython teams scoring tool use and goals
[DeepEval](https://github.com/confident-ai/deepeval)Task completion and plan adherence, judged by a model from the traceFree, open source (Apache 2.0)Task completion uses no reference answerOpen tasks with no single right answer
[τ-bench](https://github.com/sierra-research/tau2-bench)Simulated customers, tools and policies, scored with pass^kFree, open source (MIT)Its own domains, such as retailComparing models on customer service tasks
[Braintrust](https://www.braintrust.dev/pricing)Datasets, experiments and scores by a model, autoevals or codeStarter: $0, 10,000 scoresPro: $249 a month, 50,000 scoresStarter keeps data 14 daysTeams comparing versions before each release
[LangSmith](https://www.langchain.com/pricing) (LangChain)Offline datasets and online evaluators on production tracesDeveloper: $0, 1 seat, 5,000 tracesPlus: $39 a seat a month, 10,000 tracesBase traces kept 14 daysTeams building on LangChain or LangGraph
ObsessionOursSandbox, Browser, Personas, Drift watchA real sandbox, browser, inbox and number per run, with every step in one event logFree, then $20, $99 or $499 a month; usage per pieceSupplies the environment and the log, with scoring in your own code or a frameworkTasks with codes, emails, texts or waits of days
Ways to evaluate an AI agent, from each provider’s own pages, as listed on 22 November 2026. Prices in US dollars

Most teams pair a scoring framework with an environment to run the tasks in. Ragas, DeepEval, Braintrust and LangSmith grade, and a real or simulated environment supplies the inboxes, pages and services. τ-bench is a public benchmark for comparing models on its own tasks before you write yours. Tools built for testing chatbots and voice agents are compared in AI chatbot testing tools.

Turning scores into a ship decision

  1. Write each task with its end state. A pass is a task a second engineer could grade without asking you.
  2. Set a threshold per metric before running. For example: 100% on the regression suite, no critical policy errors, and pass^3 no lower than the last version.
  3. Run 3 trials per task offline. A pass is every threshold met on the new version.
  4. Compare versions side by side. Put task success, pass^3, latency, cost per successful task, policy errors and missed handoffs in one table.
  5. Ship, then score a live sample every day. A pass is live task success close to offline, for example within 5 points.
  6. Read 20 failed transcripts a week. Each one becomes a new task or a sharper rubric.

Where evaluation numbers mislead

  • Saturated suites. When every task passes, the suite has stopped measuring, so add harder tasks from recent failures.
  • Judges with the agent’s blind spots. A model grader from the same family as the agent can miss what the agent misses, so calibrate it against a person.
  • Averages that hide the tail. A handful of runs that loop for minutes can double an average cost, so report the slowest and costliest 5% as well.
  • Environments that never change. Real sites and services change their pages and emails, so score part of every suite against real inboxes, numbers and browsers.

Questions about evaluating AI agent performance

Task success, reliability across repeated trials (pass^k), tool use, latency, cost per successful task, policy errors and escalation, including missed handoffs. Report each per task type, and set a threshold for each before a release is tested.

Score a daily sample of real runs from their traces or event logs. Measure task success from the end state, latency per step, cost per successful task, policy errors and handoffs. Production runs usually have no reference answers, so use code where the end state can be checked and a calibrated model grader for the rest.

Offline evaluation runs a fixed set of tasks with reference answers before a release, so versions can be compared like for like. Online evaluation scores real production runs, usually without reference answers, and finds failures nobody wrote a task for. LangSmith’s documentation draws the line the same way.

pass^k is the share of tasks where every one of k trials succeeds. The τ-bench paper proposed it in June 2024 to measure how reliably an agent behaves. Anthropic’s guide gives the arithmetic: an agent with a 75% success rate per trial passes three trials in a row about 42% of the time.

A library or platform that runs tasks against an agent and scores the results. On 22 November 2026, Ragas and DeepEval were free, open source libraries with agent metrics. Braintrust and LangSmith were hosted platforms with free plans, and paid plans from $249 a month and $39 a seat a month. Google Cloud’s Vertex AI documented six trajectory metrics for scoring tool calls.

Add every cost one task used: input and output tokens at the model’s rates, plus browser time, sandbox time, texts, calls and emails. Divide the total by successful tasks, because failed runs cost money too. An agent at 4 cents a run with an 80% success rate costs 5 cents per successful task.

Obsession gives each evaluation run its own sandbox, browser, inbox and phone number. Every email, text, call, page and sandbox result lands in one event log for your own code to score. A persona is an AI agent with its own inbox, number and browser under one name, and it costs nothing while it waits, so a task can run for days. The sandbox is $0.12 an active vCPU hour, billed only while its CPU works, and the browser $0.10 an hour. Teams start on the Free plan, then $20, $99 or $499 a month.

AI agent evaluation
ShareLinkedInX

Sources

In the order the article cites them. Every link was checked on 22 Nov 2026.

  1. Demystifying evals for AI agentsAnthropic, 9 Jan 2026
  2. Agentic or tool use metricsRagas documentation
  3. Task CompletionDeepEval documentation
  4. τ-bench: A Benchmark for Tool-Agent-User Interaction in Real-World DomainsarXiv (Yao, Shinn, Razavi and Narasimhan), 17 Jun 2024
  5. Evaluate gen AI agentsGoogle Cloud Vertex AI documentation
  6. Evaluation conceptsLangSmith documentation
  7. Evaluate agent workflowsOpenAI API documentation
  8. ragasGitHub
  9. deepevalGitHub
  10. tau2-benchGitHub (Sierra Research)
  11. PricingBraintrust
  12. PricingLangChain

What should your first AI agent do?