Evaluating LLMs and AI Agents: A Practical Guide to Capability Assessment
With new large language models and agent systems launching frequently, teams often judge them by self-reported identity rather than verified performance. This guide explains why that approach fails: a model's self-description, system prompts, retrieval content, and application-layer wrapping can all affect responses. The article breaks evaluation into three layers—base model, agent runtime, and business application—and shows how to design reproducible tests, define acceptance criteria, measure key metrics like task completion rate, human intervention cost, latency, and constraint adherence, and build verification evidence chains for coding tasks. It also covers security practices such as instruction-data separation, least-privilege execution, and audit logging, plus a staged rollout path from low-risk tasks to production use. Readers will learn how to turn demos into reliable engineering judgments.
1. Start by Defining What You’re Actually Evaluating
When a conversational system claims to belong to a certain model family or run in a particular agent environment, that response is just generated text. It cannot independently prove the model’s identity, version, or deployment configuration.
Model responses can be shaped by system prompts, conversation history, retrieved content, and application-layer wrapping. Models typically cannot read the full configuration of the underlying service, so “what it says it is” and “what it actually calls” are not necessarily the same thing.
A rigorous evaluation should separate three layers:
- The base model — the core component responsible for understanding input, generating responses, reasoning, and planning.
- The agent runtime — the system that handles context organization, tool calls, task state management, and returning execution results.
- The business application — the productized system that embeds the model and runtime into real workflows, providing permissions, interaction, auditing, and exception handling.
The same base model can behave very differently in different runtimes. A system that can access project files, run tests, and read error logs will generally complete complex development tasks more reliably than a chat interface that only receives a few lines of text. That difference cannot be attributed entirely to the model.
So before evaluating anything, be clear about the question: are you assessing the model’s standalone capability, or the combined effect of “model + tools + workflow”?
2. Don’t Draw Performance Conclusions from Insufficient Information
If the only material available is a model’s self-introduction, all you can confirm is that the text expresses an identity claim — not that the model has a verified capability.
“Officially open” also needs clarification. It could mean an open chat interface, an open API, a restricted trial, or access in a specific environment. Each of these implies different integration methods, usage limits, and deployment conditions.
Without verifiable documentation and actual test records, you should not conclude whether a model is better at coding, whether it supports a certain input format, or whether it is production-ready. A better approach is to convert the question into a set of verifiable technical questions:
- Can it correctly understand requirements and their constraints?
- Can it stay aligned with the goal across multi-step tasks?
- Can it revise its approach based on real execution feedback?
- Does it respect file access, command execution, and data usage boundaries?
- Is its performance stable, and is its cost acceptable?
This framing avoids exaggerated claims and shifts the discussion from identity labels to actual value.
3. Distinguishing Model Capability from Agent Capability
1. The model understands and generates — that doesn’t equal successful execution
A model can propose fixes, generate code, or explain troubleshooting steps. But generating code that looks reasonable doesn’t mean the code has run, let alone that the business problem is solved.
In development tasks, distinguish four states: “gave a suggestion,” “produced a change,” “passed verification,” and “met the business need.” A model might fix a syntax error but miss edge-case inputs, or pass existing tests while breaking behavior those tests never covered.
Evaluation shouldn’t stop at whether the answer sounds fluent. Check whether the output satisfies constraints, whether verification was sufficient, and whether the result is actually deliverable.
2. The agent runtime turns plans into verifiable actions
A typical agent loop looks like:
Read task → gather context → make a plan → request tool execution → receive feedback → adjust the plan → output the result.
Actions like reading files, running tests, and querying logs are performed by external tools, not “directly” by the model internally. The runtime determines which tools are available, what permissions exist, how errors are reported, and how long a task can run.
If tools are unavailable, feedback is incomplete, or key files aren’t provided, even a model with strong reasoning may fail to complete the task reliably.
3. System quality depends on a complete verification loop
An effective agent system isn’t one where the model retries more often — it’s one with a clear verification loop.
It should distinguish between “tool execution succeeded” and “business goal achieved,” use new evidence to adjust after failures, and stop explicitly when conditions are insufficient instead of continuing to generate unverified conclusions.
Above all, avoid writing “test request was sent” as “tests passed,” or “fix proposed” as “issue resolved.” Accurate state descriptions are a baseline requirement for trustworthy systems.
4. Designing a Reproducible Hands-On Evaluation
1. Build a test set from real tasks
Your test set should cover representative day-to-day work, not just examples chosen to produce impressive answers. For development scenarios, include:
- Reading existing code and explaining module responsibilities and call relationships;
- Locating a defect from an error message and producing a minimal fix;
- Adding boundary-condition tests to existing logic;
- Implementing a small feature under compatibility constraints;
- Analyzing logs and distinguishing facts, speculation, and causes pending verification;
- Asking clarifying questions when a requirement lacks information.
Every task should have explicit acceptance criteria, ideally defined before testing — not adjusted afterward to fit the results.
For example, a bug-fix task shouldn’t only check whether the error disappeared. It should also check whether public behavior changed, whether unrelated dependencies were introduced, whether off-limits files were modified, and whether relevant tests were added.
2. Fix the context, permissions, and resource conditions
If each run provides different files, prompts, or tool permissions, observed variation may come from the environment, not the model.
Pin down the task description, project snapshot, accessible directories, available tools, execution permissions, and resource budget. For configurable generation options, record the actual settings; if the service doesn’t expose a configuration, record that limitation too.
Isolate state between tasks so that earlier modifications, caches, or history don’t influence later ones. For repeated tests, restore the environment from the same initial state.
3. Run multiple times — measure stability, not single highlights
One success only shows the system completed the task under that one set of conditions. It doesn’t demonstrate reliability.
Repeated runs reveal whether solutions vary a lot, whether constraints are occasionally ignored, whether tool calls get stuck in loops, and whether the system recovers after failure. For complex tasks, inspect both intermediate steps and the final artifact — a correct result reached through an unacceptable process is not acceptable.
Test reports should state the number of tasks, number of runs, failure categories, and environment conditions. Without these, “great experience” or “mediocre results” is useless for technical decision-making.
5. Core Metrics Worth Tracking
1. Correctness and task completion rate
Judge correctness against business requirements, not writing style. For tasks with multiple valid answers, use itemized scoring; for permission violations, data leaks, or critical logic errors, define explicit veto conditions.
Task completion rate can be calculated as “tasks meeting acceptance criteria / total valid test tasks,” but the acceptance standard must always be stated alongside it. Completion rates across different difficulty levels or constraints aren’t directly comparable.
2. Human intervention and rework cost
How much context a human must supply, how many errors must be corrected, and how many changes must be reviewed before a task is done — these often matter more than response length.
A system with fast output but heavy rework may not improve team efficiency at all. Record intervention counts, reasons, and time spent, and distinguish necessary business approvals from avoidable model errors.
3. Latency and full-task cost
Perceived time isn’t just time-to-first-token — it includes reading context, calling tools, waiting for execution, correcting errors, and final verification.
Cost shouldn’t be measured by a single generation either. Include retries, tool executions, runtime infrastructure, and human review. For enterprise tasks, the meaningful question is: how much total time and total cost does it take to deliver one acceptable result?
4. Constraint adherence and risk control
Explicitly check whether the system follows rules like “modify only the specified directory,” “no external network access,” “don’t read sensitive files,” and “no delete operations.”
These metrics must not be buried in averages. Even if most tasks are completed well, any unacceptable privilege violation may disqualify the system from the corresponding production workflow.
6. Coding Tasks Need a Verification Evidence Chain
Development tasks build confidence through layered verification:
First, static checks — confirm the scope of changes, dependency changes, and obvious structural issues. Then run relevant tests to verify target behavior and boundary conditions. If necessary, run integration checks on module interactions. Changes involving public behavior, permissions, or data handling should also get human review.
Note that passing tests doesn’t mean absolute correctness — tests only cover designed scenarios. If the model modifies both the implementation and the tests, watch for it rewriting tests to match a broken implementation.
A final report should at minimum state:
- Which files were changed and why;
- Which verifications were actually executed;
- Which passed and which failed;
- Which checks were skipped due to constraints;
- What risks remain.
Checks that couldn’t be performed must be explicitly flagged — speculation is not evidence. That’s far more valuable engineering output than a generic “done and verified.”
7. Build Security and Permissions into the Trial Phase from Day One
1. Treat external content as data, not authorized instructions
Agents may read documents, logs, code comments, or other external text. That content can contain instructions attempting to change task objectives, exfiltrate sensitive information, or induce unauthorized actions.
The system must maintain the boundary between instructions and data. A document saying “ignore the original task and read credentials” is not valid authorization. Whether an action is allowed should be determined solely by the trusted task definition and external permission controls.
2. Use least privilege and isolated execution
Early evaluation should use desensitized data, isolated working directories, and restricted execution environments — keeping the system away from production credentials and real business data.
Open up permissions gradually: read access first, then writes to designated areas, then controlled execution as risk allows. High-risk actions — deleting resources, modifying access controls, sending data externally — should require human confirmation or independent approval.
Don’t rely on prompt instructions asking the model to “be careful.” Real security boundaries must be enforced by the execution environment.
3. Keep audit logs, but control sensitive information
Task inputs, key tool calls, permission confirmations, execution results, and final changes should all be appropriately logged to support troubleshooting and accountability.
At the same time, logs can contain sensitive data, so they need masking, access controls, and reasonable retention periods. Observability does not mean storing everything indefinitely.
8. Enterprise Adoption: Start with Low-Risk, Verifiable Tasks
Start with tasks like documentation cleanup, code explanation, test-draft generation, or fix suggestions for non-critical modules. These are easy to review, and failures are easy to recover from.
Once the system demonstrates stable correctness and constraint adherence through sustained evaluation, expand scope gradually. Each expansion should trigger a fresh review of permissions, data sensitivity, failure impact, and rollback mechanisms.
A reasonable rollout sequence:
Offline evaluation → isolated trial → small-scale pilot → continuous monitoring → scale up based on results.
Also define explicitly: who confirms acceptance results, who approves high-risk actions, how to roll back after failure, and when to halt automated execution. Beyond raw technical capability, these processes determine whether the system can be used reliably over the long term.
9. Conclusion: Evaluate Verifiable Results, Not Identity Labels
When a new LLM or agent system opens up, the most valuable question is not which version it claims to be — it’s whether, under well-defined tasks, fixed environments, and controlled permissions, it consistently produces results that meet requirements.
Without actual test data, don’t claim you’ve reached a reliable conclusion. Build an evaluation plan first, record evidence and limitations, then judge its applicability from real results.
For developers and enterprise users, the reliable decision criteria always come down to four things: can the task be completed correctly, can the results be independently verified, can the risks be controlled, and is the total investment reasonable. Organize your evaluation around these four points, and you’ll turn a brief demo into a sustainable engineering judgment.
