BLOG ·

6 MIN READ

LLM Evaluation and AI Agent Evals: How to Know Your AI System Is Ready for Production

A research-led guide for enterprise teams evaluating production AI systems.

Drew Brooker

ML Engineer

  • AI AGENT EVALS
  • LLM EVALS
  • AGENT EVALUATION
  • LLM TESTING

LLM evaluation is the discipline of testing whether an AI system behaves acceptably on representative tasks.

For agents, evaluation becomes harder because the system does more than produce text. It retrieves information, selects tools, supplies arguments, changes state, reacts to results, and can operate across many turns.

A final-answer score sees only the last frame.

Production agent evaluation needs to inspect the execution path and the resulting environment.

OBSERVABILITY RECORDS BEHAVIOR. EVALS JUDGE IT.

Evaluation adoption in 2026

Evaluation adoption

FIGURE 1

LangChain's 2026 survey reported nearly 89% observability adoption, 52.4% offline evaluation, and 37.3% online evaluation.

The gap matters.

Observability records behavior. Evals judge it.

What is an LLM eval?

An eval is a repeatable test with:

  1. 1an input;
  2. 2expected behavior or grading criteria;
  3. 3a system run;
  4. 4one or more graders;
  5. 5a recorded result.

The grader can be deterministic code, an exact match, a model-based judge, a human, or a combination.

What is an agent eval?

An agent eval can grade several surfaces.

SurfaceQuestion
Final outputWas the response correct?
RetrievalWas the required evidence found?
Tool selectionWas the right tool chosen?
ArgumentsWere parameters correct?
TrajectoryWas the execution path acceptable?
PolicyWere boundaries respected?
EscalationDid a person enter at the right point?
EnvironmentDid the outside system reach the intended state?
OutcomeWas the business task completed?
EconomicsWas cost and latency acceptable?

OpenAI's current agent-evaluation guidance highlights trace grading as a way to inspect workflow-level behavior such as tool selection, handoffs, and instruction violations.

Anthropic's 2026 agent-eval guidance similarly stresses that agents require richer evaluation because they operate across turns, call tools, modify state, and adapt to intermediate results.

The evaluation stack

Agent evaluation stack

FIGURE 2

A useful eval system connects datasets, traces, graders and outcomes.

THE DATASET SHOULD RESEMBLE PRODUCTION

Build the dataset from real work

Historical cases are the strongest starting point.

Create categories.

CategoryPurpose
RoutineMeasure common behavior
Difficult commonTest recurring judgment
Edge casesTest boundaries
Missing informationTest uncertainty
Conflicting evidenceTest evidence handling
Tool failureTest recovery
Permission caseTest access control
Approval caseTest escalation
Known incidentPrevent regression
Adversarial inputTest resilience

The dataset should resemble production.

TURNS A LANGUAGE TEST INTO A WORKFLOW TEST

Define success at the task level

Suppose an agent handles refund requests.

A weak eval asks:

DEFINE SUCCESS AT THE TASK LEVEL

Did the final response sound correct?

A stronger eval asks:

  • Was the right customer identified?
  • Was current policy retrieved?
  • Was eligibility correct?
  • Was the amount correct?
  • Was approval triggered when required?
  • Was the refund tool called with the correct arguments?
  • Did the account state change?
  • Did the final message match the actual state?

This turns a language test into a workflow test.

CHEAP, REPEATABLE, AND EASY TO INTERPRET

Deterministic graders

Use deterministic grading where the correct answer can be expressed exactly.

Examples include:

  • JSON schema validity;
  • correct tool name;
  • exact account ID;
  • amount tolerance;
  • required approval flag;
  • database state;
  • regex or field checks.

Deterministic graders are cheap, repeatable, and easy to interpret.

MODEL GRADERS NEED THEIR OWN VALIDATION

Model-based graders

A model grader is useful when correctness requires judgment.

Examples include:

  • whether a summary preserves important evidence;
  • whether a response is grounded in supplied sources;
  • whether an escalation rationale follows policy;
  • whether a trajectory contains unnecessary steps.

Model graders need their own validation. Compare them against trusted human labels on a representative sample.

HOW MUCH ROOM REMAINS FOR REPEATABLE AUTOMATED TESTING

Human evaluation

Human review remains important when:

  • the task is subjective;
  • policy is nuanced;
  • errors are costly;
  • grader quality is uncertain;
  • the system is new;
  • evaluation criteria are still being developed.

The IBM-led 2026 production study found that 74% of surveyed practitioners primarily relied on human evaluation.

That figure also shows how much room remains for repeatable automated testing.

Repeated trials

Model behavior can vary between runs.

A test that passes once can fail on the next attempt.

For stochastic tasks, run the same case multiple times and measure the distribution.

Possible measures include:

  • pass@k;
  • pass rate;
  • average grader score;
  • worst-case behavior;
  • variance;
  • failure-category frequency.

The required number of repetitions depends on the task and consequence.

ACCIDENTAL SUCCESS IS FRAGILE

Trace evaluation

A trace captures the execution path.

A simplified trace looks like this:

user request
→ retrieve policy
→ retrieve account
→ choose refund tool
→ request approval
→ execute refund
→ verify account state
→ respond

A trace grader can identify a system that reached the correct answer through an unacceptable path.

That matters because accidental success is fragile.

DO NOT LET FINAL-ANSWER QUALITY HIDE RETRIEVAL DEFECTS

Retrieval evals

RAG needs its own test set.

Each query should have known relevant evidence.

Measure:

  • recall@k;
  • precision@k;
  • ranking;
  • freshness;
  • permission filtering;
  • citation accuracy.

Do not let final-answer quality hide retrieval defects.

Tool evals

Tool evaluation should test both selection and arguments.

TestExample
SelectionRefund tool chosen for eligible refund
RejectionRefund tool not chosen for ineligible case
ArgumentsCorrect account and amount
PermissionTool blocked for unauthorized user
FailureAPI outage handled safely
IdempotencyRetry does not duplicate refund
VerificationSystem checks resulting state

Online evaluation

Offline evals run against a controlled dataset.

Online evals measure production traffic.

Online measures can include:

  • task completion;
  • escalation;
  • human correction;
  • tool failure;
  • policy violation;
  • user abandonment;
  • latency;
  • cost;
  • sampled model grading;
  • incident rate.

Production evaluation needs privacy and sampling policies appropriate to the application.

VALUABLE EVIDENCE WHEN IT BECOMES REPRODUCIBLE

Production feedback loop

Production eval loop

FIGURE 3

Incidents should become regression tests.

A production failure is valuable evidence when it becomes reproducible.

The team should:

  1. 1preserve the trace;
  2. 2classify the failure;
  3. 3reproduce it;
  4. 4add a test;
  5. 5fix the responsible layer;
  6. 6rerun the complete suite;
  7. 7release only after the regression passes.

THRESHOLDS SHOULD FOLLOW THE USE CASE AND CONSEQUENCE

Release gates

A release gate defines which eval results block deployment.

Example:

BLOCK RELEASE IF:
- policy violation > 0 on high-consequence suite
- tool argument accuracy < 99.5%
- retrieval recall@5 < target
- task completion drops > allowed tolerance
- known regression reappears

Thresholds should follow the use case and consequence. Do not copy generic numbers into a production policy without evidence.

RUN THE EXISTING EVAL SUITE BEFORE CHANGING THE PRODUCTION MODEL

Evals for model changes

Changing the model can change:

  • reasoning;
  • tool choice;
  • argument formatting;
  • latency;
  • cost;
  • refusal behavior;
  • retrieval query generation;
  • output style.

Run the existing eval suite before changing the production model.

The same applies to prompt changes, tool-description changes, retrieval changes, and workflow changes.

Eval governance

NIST's Generative AI Profile frames AI risk management across governance, mapping, measurement, and management.

For an eval program, that translates into clear ownership.

Define:

  • who owns the dataset;
  • who approves grading criteria;
  • who reviews failed releases;
  • who can change thresholds;
  • how incidents are added;
  • how sensitive test data is handled;
  • how long results are retained.

FAQ

A repeatable test that measures model or application behavior against explicit criteria.

Sources

PAN ET AL.
Characterizing Agents in Production, ICML 2026, IBM Research.
LANGCHAIN
State of Agent Engineering, June 2026.
ANTHROPIC
Building Effective Agents.
ANTHROPIC
Effective Context Engineering for AI Agents.
ANTHROPIC
Demystifying Evals for AI Agents, January 2026.
OPENAI
Evaluate Agent Workflows and Optimizing LLM Accuracy.
NIST
Artificial Intelligence Risk Management Framework: Generative Artificial Intelligence Profile, NIST AI 600-1.
GOOGLE CLOUD
Fine-tuning LLMs and AI Models.

Editorial note

Charts based on survey findings identify their source in the caption. Mathematical examples are labeled as illustrations. Architecture diagrams and decision frameworks are original explanatory assets created for this post.

LET'S TALK

Go fromproductionin weeks,not quarters.

Book a 15-minute working session. Bring one process that hurts. We'll leave with a plan for it, and an honest answer on whether we're the right neolab.