Tech Blog · AI Agents
[AI Agent Basics 8] How do you evaluate an agent?
Will an agent with high benchmark scores also do well at our work? Even an agent with an average success rate above 60% succeeded on all eight runs of the same task less than 25% of the time. We outline why evaluation is hard and how to design evaluations in practice.
Aug 11, 2026 · OPTI-X
Basics series “How AI Agents Are Built” · Part 8
A chatbot can be evaluated by looking at a single answer. Agents are different. Because they work through multiple steps, the process may have been risky even if the final result is right, and the process may be right but the end result wrong.
In the last part we decided what permissions to give an agent. Now it is time to check whether the agent can be trusted with the work. Using the results of two public benchmark studies, we outline what to measure and how.
What benchmark scores tell you
AgentBench, published in 2023, tested 27 language models as agents across 8 environments, including operating system commands, database queries and web shopping. Commercial API models averaged an overall score of 2.15 and open models 0.51, a wide gap. Even GPT-4, the top scorer, had a success rate of 42.4% on the operating system tasks.
Scores like these are useful for comparing models with each other. But public benchmarks have fixed correct answers and standard tools, so they do not directly tell you how an agent will perform on internal systems and messy data.
Benchmark scores vs. performance on real work
There is always a gap between the two
Common failure patterns
In AgentBench, the biggest reason tasks went unfinished was "Task Limit Exceeded": the agent failed to answer within the set number of interaction turns or kept repeating the same output. In the knowledge graph tasks, 67.9% of runs ended this way.
Some failures are missed if you grade only the result. τ-bench, published in 2024, judges success by whether the database state at the end of a customer service conversation matches the correct one. The authors state that this check is only a necessary condition. Processing a return without the customer's explicit confirmation leaves the same final state as the correct answer, but it violates the policy.
How agents fail
A starting point for deciding what to evaluate
Where failures happen most
The τ-bench authors manually classified 36 tasks that GPT-4o failed in the retail domain. The most common case was choosing the right type of tool but filling in the arguments wrongly. In 19.4% of cases the agent handled only part of the request and stopped — for example, asked to fix the address on all orders, it checked only the first order. Weaker models even invented order or product IDs that did not exist and passed them to tools. Such calls occurred 0.46 times per task for GPT-4o and 2.08 times for GPT-3.5-turbo.
Types of τ-bench failures
36 GPT-4o failures in the retail domain, classified by hand · one in five handled only part of the request
Whether the agent actually reads and follows the rules needs a separate check. When the domain policy document was removed, GPT-4o's success rate in the retail domain, where rules are close to common sense, dropped only 4.4 points, from 61.2% to 56.8%. In the airline domain, where rules are complex, it fell from 33.2% to 10.8%. The authors read this as a sign that many retail successes came from using tools by common sense rather than from the policy document.
Succeeding once vs. succeeding every time
An agent solves the same task a little differently each time it runs. To measure this, τ-bench proposed pass^k: the probability that all k runs of the same task succeed. It is the opposite of pass@k, used in code generation where answers can be checked with tests, which means "at least one success in k runs."
The difference was large. GPT-4o, with an average success rate above 60% in the retail domain, had a pass^8 below 25%. For work that touches equipment, making the same judgment every time matters more than a record of having done well once.
Repeated runs cost money. One τ-bench retail task cost $0.38 for the GPT-4o agent and $0.23 for the model playing the user. 95.9% of the agent's cost was input — reading the long policy document and tool descriptions every time. Set the number of tasks and repetitions together with the budget from the start.
Designing evaluations in practice
The τ-bench authors chose to run a small set of high-quality tasks many times rather than add more tasks. The same approach is realistic for in-house evaluation. Collect past work where the answer is known — for example, neutralization tank pH excursions whose cause was confirmed — and use it as a test set.
How to design an in-house agent evaluation
A small set of real tasks is more useful than an elaborate benchmark
- 1Collect 20–50 real tasksPick past tasks with known correct answers and use them as a test setNext
- 2Score both the result and the processAccuracy of the final result + whether there were risky actions or unnecessary stepsNext
- 3Run the same task several timesIt behaves probabilistically, so one success is not enough to judgeStable → expand scopeLarge variation → reduce permissions
Grade the result and the process separately. For the result, check whether the cause the agent found matches the actual record; for the process, check that it did not query another tank's tags and did not attempt hard-to-reverse actions, such as changing the chemical dosing rate, without approval. Then record "how many times out of how many it succeeds" together with "how badly it fails when it fails." The higher the cost of failure, as with equipment, the more the second question matters.
In the next part, we look at whether a big model or a small model fits when choosing a model to run inside the factory.
References
Could this work for your process?
Talk to us