LLM Evals for AI Agents: Where to Start From Zero

LLM Evals for AI Agents: Where to Start From Zero

A demo shows your AI agent can work. Evals show whether it really does, and you can start with one page before you have a single real user.

Key takeaways

  • A demo proves your AI agent can work, not that it does. LLM evals show whether it works on inputs you didn't pick.
  • "Does it work?" can't be answered as one question. Break it into: doing what, for whom, under which conditions, judged how and compared to what.
  • Those questions become requirements, an eval plan, test conversations, controlled tools, evaluators and a baseline.
  • Keep them linked. Every test conversation and every evaluator points back to a requirement, so a changed requirement shows which tests change too.
  • Start with a one-page worksheet. If you can't write down what working means, no eval tool will save you.

The demo went perfectly. I'd spent weeks building an agent that could hold a conversation and call tools (the other systems it can use, like an order lookup). I typed in a few questions. It picked the right tools, filled in the right details and gave clean, confident answers. Everyone on the team nodded.

Then someone asked: "How do you know it works?" I opened my mouth to answer and realised I didn't have one.

I knew it worked on the handful of things I had typed. I had no idea about the next hundred people, who type differently, change their minds halfway or try to break it on purpose. There were no real users yet, so there was no data to look at. Just me, my agent and a launch date. That question is why I became an eval engineer.

What are LLM evals, and why do AI agents need them?

LLM evals are repeatable tests that check an AI agent's output against a written description of a good result. "It worked when I tried it" isn't one. The same input can give a different output next time, users send inputs you never tried, and nobody has written down what working means.

A demo shows the agent can work. An eval shows whether it does.

If you come from ordinary software, your instinct is to write a test: given input X, expect output Y. I had that instinct too. For an agent, it falls apart in five places.

  1. The same input doesn't give the same output. Ask the same question twice and you can get two wordings, two different orders of tool calls, and sometimes two different answers. Anthropic's engineering team notes that agent behaviour varies between runs. One good try tells you it can work, not that it will.
  2. You tested five inputs. Users will send five thousand. I wrote clear, polite, complete questions, because I knew what the agent could do. Real users write "where's my stuff", skip details and ask three things in one message.
  3. It's a conversation, not one answer. Much of what goes wrong happens between messages. The agent forgets what the user said two turns ago, asks for something it already has, or says it finished a task it never did.
  4. The agent does things, not just says things. A wrong answer from a chatbot is embarrassing. A wrong tool call can start a refund, cancel a booking or change a database record. Checking only the final message misses the part that matters most.
  5. "Good" was never written down. This was the real problem, and it took me longest to see. Nobody, including me, had written down what "working" meant for this agent.

I wasn't failing to test it. I had nothing to test it against.

OpenAI's evaluation guide lists vibe-based evals, "it seems like it's working", as an anti-pattern. That was my whole method.

What I tried first, and why each attempt failed

I tried four things before anything worked. Each failure pointed at a missing piece.

1. A spreadsheet of questions I tested by hand

I wrote questions in a sheet, ran each one through the agent and marked it pass or fail.

Why it failed: a full pass took hours, so I ran it rarely, and every prompt change meant starting again. My marks drifted with how tired I was. And every question was written by me, the one person who knew exactly how to talk to the agent.

2. Asking an LLM to "generate 100 test questions"

A hundred test cases in thirty seconds felt like a breakthrough.

Why it failed: they were the same question in different words. Every one was polite, complete and one message long, and all stayed on the happy path (the route where everything goes right). None was vague, changed its mind or got frustrated. I had more data but no more coverage.

3. Hand-written stand-in data for the tools

To make tests repeatable, I wrote fake data for the tools: sample orders, sample users, sample replies. These are often called mocks.

Why it failed: the agent didn't call the tools the way I'd imagined. It used different details, different IDs and a different order. Half my failed runs came from wrong stand-in data, not a wrong agent. I spent more time fixing test data than finding bugs. That problem led to the technique I use most today, intercepting tool calls, and it gets its own post in this series.

4. A generic quality score

I plugged in an off-the-shelf metric, such as helpfulness or relevance, and got a number: 4.2 out of 5.

Why it failed: 4.2 out of 5 at what? The number moved between runs and I couldn't tell why. It never said what was broken or what to fix. A score you can't act on is just decoration.

What should you ask instead of "does it work?"

"Does it work?" can't be answered. The question that unblocked me breaks it into smaller ones you can answer: works for whom, doing what, under which conditions, judged how, and compared to what?

Six questions, six steps

Each part became a step I now take for every agent.

Question What it becomes What I used to do instead
Doing what? Requirements: written behaviours that could clearly fail "Make it helpful and accurate"
Which ones matter most? An eval plan: what to test, what not to, and what each failure costs Test whatever I thought of
For whom? Test conversations: realistic users, goals and difficulty, one message or many My own polite questions
Under which conditions? Controlled tools: stand-in or intercepted tool calls, so runs are safe and repeatable Hit real systems and hope
Judged how? Evaluators: code checks, an LLM judge, or both Eyeballing it, or one generic score
Compared to what? A baseline: the same tests, run every time, compared over time "Feels better than last week"

Why the steps must stay linked

The part that took me longest to learn: these steps have to stay linked.

Six linked boxes showing the parts of an eval for an AI agent and the question each answers: 1 requirements, doing what; 2 eval plan, which ones matter most; 3 test conversations, for whom; 4 controlled tools, under which conditions; 5 evaluators, judged how; 6 baseline, compared to what. A dotted arrow runs from the baseline back to requirements, labelled traces back. Requirements is highlighted.

  1. Requirements come first. Nothing else can be written without them.
  2. The eval plan, test conversations and controlled tools each serve a requirement.
  3. Evaluators check one requirement each, and the baseline shows whether it got better or worse.

Every test conversation exists because of a requirement. When a requirement changes, and after launch it always does, you need to know which conversations and evaluators change with it. Without that link, the eval suite drifts away from what the product should do, and nobody notices until a user does.

That linked chain became the backbone of how I work. It's also why I ended up building my own eval platform: none of the tools I tried kept the chain intact.

What does a linked eval look like for a real agent?

Take an order-support agent, a made-up example close to the agents we build. It can look up orders, check delivery status and start refunds. Before, my answer was "it works, I tested it". After, it looks like this.

Record card for requirement R3 of an order-support agent, refunds on orders older than 30 days: 1 requirement, don't start the refund, explain the policy and offer a person; 2 test conversations, a polite user with a 45-day-old order, a frustrated user who insists after the first no, and a vague user whose order date must be looked up first; 3 tool setup, highlighted, the order lookup returns an order dated 45 days ago and the refund tool is a stand-in; 4 evaluators, two code checks and one LLM judge; 5 result, passed 3 of 3 conversations run 5 times each against the previous prompt.

  1. The requirement is written so it could fail: for an order over 30 days old, the agent must not start the refund. It explains the policy and offers to pass the customer to a person.
  2. Three test conversations cover it. A polite user asks in one message, and a frustrated user insists. A vague "I want my money back" makes the agent look up the date first.
  3. The tools are controlled. The order lookup is intercepted and returns an order dated 45 days ago. The refund tool is a stand-in, so no real refund can happen, and every attempt to call it is recorded.
  4. Three evaluators check it. Two are code checks: was the refund tool called (it must not be), and was a person offered? The third is an LLM judge: did the agent explain the policy clearly and politely, without inventing exceptions?
  5. The result: R3 passed in 3 of 3 conversations, run 5 times each, compared with the previous prompt version.

That last line is something you can show anyone. "It works, I tested it" isn't.

How do you start testing an AI agent before launch?

You don't need a platform, a framework or 500 test cases. You need one page. Before you write a single test, fill this in for your agent.

Part What to write Order-support example
1. What must it do? Your top five behaviours, written so they could fail Never start a refund on an order over 30 days old
2. What must it never do? The failures that would stop a launch Promise a refund it can't give
3. Who will talk to it? Three realistic users, each with a goal and a difficulty A frustrated customer who insists after the first "no"
4. Which tools change real things? Each tool, and whether tests use a stand-in, an intercept or the live system Refund tool: stand-in only
5. How would I know each one passed? A code check, a judgement call, and what a pass looks like Refund tool not called; policy explained politely
6. What am I comparing against? The baseline version and the date of the first run The current prompt, first run this week

If you can't fill in part 1, you're not ready to evaluate yet. That's the most useful thing this worksheet can tell you. Most of the "our evals don't work" problems I've run into were really "we never decided what working means" problems.

When is a full eval chain too early?

Not every agent needs all six parts on day one.

  • A prototype you'll throw away next week. Fill in parts 1 and 2 of the worksheet and stop there.
  • A person checks every answer before it goes out. That person is your evaluator for now. Keep their corrections, because each one is a future test conversation.
  • One tool, no side effects, one kind of question. A short list of inputs with code checks may be enough. Add realistic users and a judge when the agent grows.

The bottom line

A demo proves your agent can work, not that it does. Write down what working means, link every test back to it, and run the same tests after every change. When you're ready to run them on every release, our guide to prompt regression testing shows how, and our overview of what AI evaluation is maps the wider field.

What was the moment you realised you didn't know whether your agent worked? Tell me on LinkedIn. The best stories may end up in a future post.


Building an agent and not sure how to prove it works? We write requirements and evals alongside the agents we build.

See how Avesta AgentOS tests and runs AI agents

Get started: hello@avestalabs.ai

Frequently asked questions

What is the difference between LLM evals and software testing?
A software test expects the same output for the same input, every time. An AI agent can word the same right answer many ways, so an eval checks whether the outcome is right rather than whether the words match. You still need ordinary software tests for the code around the agent, such as the tools it calls.
Do I need an eval tool or platform to start?
No. A written list of requirements and a spreadsheet with an input, a description of a good outcome and a pass or fail column is a real eval, as long as you run it again after every change. A tool starts to pay off when runs become frequent, when a model does the marking, or when tests call tools that must not reach real systems.
How many times should I run each test conversation?
More than once, because an agent can answer the same input differently each time. A single pass tells you it can work, not that it will. Running each conversation a few times and reporting passes out of runs shows how steady the agent is. Give the requirements that would stop a launch the most runs.
Who should write the requirements for an AI agent?
The person who knows the work, often the client or a domain expert, together with the engineer who builds the agent. The engineer knows what the agent can do. The domain expert knows what a customer needs to hear and which mistakes are costly. Each requirement should be written so it could clearly fail.

Share this article

Written by

Denish Satasiya

AI Eval Engineer