AI AGENT QUALITY

AI agent quality: how we train, evaluate and put agents into production

An AI agent that works in a demo is not the same as an agent you can rely on every day. To close that gap, we treat AI agent quality as an engineering discipline: we measure the agent against real cases from your operations before it goes live, and we keep measuring it afterwards.

We agree with you in writing what it must achieve, evaluate it with our own platform, tune it with our training suite, test it on historical cases and roll it out in stages. No absolute promises: measurable criteria and results you can review.

Illustration of an AI agent on a test bench, surrounded by checkpoints and a measurement gauge
THE CHALLENGE

Why an agent needs quality engineering

A traditional program always does the same thing with the same input. An agent built on language models does not. That changes how it has to be tested, which is why AI agent quality cannot be taken for granted.

It doesn’t always answer the same way

Given the same request, a language model can take different paths: pick another tool, phrase things differently or, occasionally, get it wrong. That is why a single test that passes proves nothing. Each case has to be run several times and the results looked at as a whole.

Reliable every time, not just once

An agent that gets it right sometimes is not the same as one that gets it right every time. If you run the same case k times, what matters in a business process is that all k runs succeed. The researchers behind τ-bench call this measure pass^k, and showed that reliability drops markedly when every attempt has to succeed.

A public benchmark is not your process

Public model leaderboards help you choose a good starting point. They don’t tell you whether the agent will work with your data, your tools, your rules and your edge cases. The only way to know is to measure it against cases from your own operations.

Further reading: Anthropic’s guide on evaluating agents explains why each case should be repeated and why automated and human grading should be combined, and its article on building effective agents recommends starting with the simplest solution and testing in isolated environments.

METHODOLOGY

Our method, phase by phase

Our AI agent quality method has seven phases, each with a concrete deliverable. They fit into our usual process: a free first meeting, a written scope document reviewed together, a fixed-price quote by phases and deliveries you can test.

00

Discovery and acceptance criteria

We map the process, the types of case, the systems involved and the permissions the agent would need. We decide whether an agent is really needed or a simpler workflow will do. And we agree what “the agent works” means: which metrics, which thresholds and how they will be measured, repetitions included.

What you get: the acceptance criteria in writing in the project scope document: metrics, thresholds, acceptance cases and measurement method.

01

Evaluation set built from real cases

We build a golden dataset: real cases from your operations whose correct answer is known in advance, anonymised where necessary. It covers routine cases, edge cases and cases where the agent should hand over to a person. We also simulate real cases with a known expected answer. When a project works with a fixed ontology (closed categories and fields), evaluation is precise and specific behaviours can be covered one by one. Part of the cases is held out and never used for tuning.

What you get: the documented evaluation set: which cases it includes and which behaviours it covers.

02

Evaluation platform

Our agent evaluation platform combines several kinds of test:

  • Deterministic tests in code for anything that can be checked exactly: a field, a format, a rule.
  • LLM-as-judge for open-ended answers, calibrated against human review of a sample.
  • Trajectory evaluation: not only the final answer, but also which tools the agent called, with which arguments and in what order.
  • Repetitions of each case to measure reliability.
  • Simulated users to test multi-turn conversations.

What you get: the first measurement against the agreed criteria, in the evaluation report or dashboard.

03

Training suite

With the measurement in hand, we improve the agent with our training suite: we optimise its instructions (prompts) and configuration, such as the available tools and their parameters, against the evaluation sets. The suite also generates synthetic cases and simulated environments with test tools, so that rare situations can be exercised without touching your systems. This suite does not change the model’s weights; if your case needs it, model training and fine-tuning is a separate service.

What you get: a comparison between versions: what changed and how it affected each metric.

04

Backtesting on historical cases

Before exposing the agent to new cases, we run it on the past: we replay historical cases and real traces with the new version and compare its output with what is known to be correct. Tools are simulated, so the backtest has no effect on your systems. And we measure on the held-out set so we don’t fool ourselves: an agent tuned until it always passes the same cases can still fail on cases it has never seen.

What you get: the backtest report, with results per metric, errors classified by type and severity, and annotated examples.

05

Staged rollout

First, shadow mode: the agent processes real cases but its output is not used; we compare it with what your team did. Then a limited, supervised pilot. Before starting, we set the criteria for moving forward and the rollback criteria, so that if something drifts you can go back to the previous version without improvising.

What you get: the rollout plan, with its stages, the conditions for moving forward and the rollback criteria.

06

Production and continuous improvement

In production, the agent is monitored continuously and every run leaves a trace you can review. Every failure detected becomes a new test case, and every change to instructions, tools or model runs through the regression test suite again before it is deployed. That way the agent improves without losing what it already did well.

What you get: quality tracking in the report or dashboard, and a test set that grows with every failure detected.

Until the agreed criteria are met

AI agent quality is shown with data. We iterate between evaluation, tuning and backtesting until the agent meets the acceptance criteria in the scope document. Only then does it go into production. If a criterion is not met, you will see it in the report, with the data in front of you.

METRICS

What we measure: AI agent quality metrics

We choose the metrics that matter for your process and set the thresholds with you on each project. These are the usual ones.

Task success

Whether the case ends with the correct result, checked against the actual outcome rather than what the agent says it did.

Reliability across repetitions

Whether the agent solves the same case correctly on every attempt, not just once.

Accuracy on critical fields

Field-by-field accuracy on data that allows no mistakes, such as amounts, dates or identifiers.

Correct tool use

Whether it picks the right tool with the right arguments, and avoids calling it when it shouldn’t.

Escalation to a person

Whether it hands your team the cases it should, and keeps the ones it can resolve.

Cost per task

What each resolved case costs in model usage and infrastructure.

Latency

How long it takes to complete the task, according to what each channel needs.

Error severity

We classify failures by impact: a critical error weighs far more than a minor one.

CONTROL

Security and control

What the agent can do

AI agent quality also depends on what the agent is allowed to do, and what it is not.

  • Least privilege: the agent only accesses the data and actions it needs.
  • Human approval for sensitive actions, such as sending, changing or deleting.
  • Protection against prompt injection in emails, documents or web pages, following the OWASP Top 10 for LLM applications. No defence is foolproof, so we combine several layers.
  • Logs of every query, decision and action, so you can review what the agent did and why.

Data and regulation

  • Data kept in the EU or on your premises (on-premise), as agreed, with anonymisation where necessary.
  • If data must not leave your organisation, the agent can run on private AI on your own servers.

Depending on the case, the EU AI Act requires informing people that they are interacting with an AI, supporting AI literacy among staff and, for high-risk uses, keeping logs and ensuring human oversight; under the current timetable, those high-risk obligations apply from 2 December 2027 (Annex III systems) and from 2 August 2028 (AI built into regulated products under Annex I). Designing with logs, human oversight and transparency from the start leaves you prepared. This is not legal advice: each case is reviewed with your team.

EXAMPLE

A hypothetical example: an agent that classifies requests

Hypothetical example, not a client case. Imagine an institution that receives requests every day by email and web form. An agent has to classify each one into its category, extract the key data (applicant, date, amount, case number) and pass anything that doesn’t fit to a person.

  • Dataset: requests that have already been processed are gathered, with the category and data the team recorded; they are anonymised and part of them is held out from tuning. Because the categories are closed, each one can be checked separately.
  • Evaluations: fields are checked with exact tests; summaries with a judge calibrated against human review. Each request is processed several times to see whether the result is stable, and the agent is checked to make sure it looks up the right record before answering.
  • Backtest: requests from an earlier period are replayed with simulated tools and compared with what was decided at the time, with errors ranked by severity.
  • Pilot: first in shadow mode alongside the team, then on a single intake channel with human review, with rollback criteria set in advance. Anything that fails becomes a new test case.
FAQ

Frequently asked questions

Can you guarantee the agent will never make a mistake?

No, and be wary of anyone who promises that: no agent built on language models is infallible. What we do is agree with you in writing, in the scope document, the metrics and thresholds it must meet, measure it against your real cases and not put it into production until it meets them. Sensitive actions still need a person’s approval.

What happens if the agreed criteria are not met?

The agent does not go into production. We keep iterating: we adjust instructions, configuration or tools, extend the test cases and measure again. You can follow progress in the evaluation report, with the data for each version.

How do you measure whether the agent works?

AI agent quality is measured with a set of real cases whose correct answer is known, automated tests, a judge calibrated against human review, evaluation of the steps and tools the agent uses, and repeated runs of each case to measure reliability. Then with a backtest on historical cases and a pilot.

Do you use public benchmarks?

As a reference for choosing the starting model, yes. But they don’t show that the agent works in your process, with your data, your tools and your rules. That is why acceptance is always measured on cases from your own operations.

Does my data leave the EU?

Data is kept in the EU or on your own premises, as agreed, and anonymised where necessary, for example when preparing the evaluation set. If you need it, the agent can run on private AI on your own servers.

How often is the agent re-evaluated?

Every change to instructions, tools or model runs through the regression test suite again before it is deployed. In production, the agent is monitored continuously and every failure detected is added as a new test case.

Do you train the model on my data?

Our agent training suite optimises instructions and configuration against the evaluation sets; it does not change the model’s weights. If your case needs a model to be fine-tuned, we do that as a separate model training service.

KEEP EXPLORING

Related services

AI agents

What an agent does, how it connects to your systems and use cases by sector.

AI model training

When a general-purpose model is not enough: fine-tuning models on your data, as a separate service.

Private AI and on-premise LLMs

Open-source models on your servers or our infrastructure, with no data sent to third parties.

Want to know whether your agent is ready for production?

Tell us which process you want to hand to an agent and we will explain how we would measure it before it goes live.