Evaluating LLM Agents: Five Tests for Reasoning and Execution Capability
Choosing an LLM for an AI agent is not the same as picking a top-ranked chat model. This article presents a controlled evaluation method that keeps the agent runtime, memory, skills, system prompt, and tools fixed while swapping only the underlying model. It defines five progressively harder tasks—skill packaging, web development, content generation, knowledge base governance, and browser automation—and a four-dimension scorecard covering task completion, instruction and permission compliance, token efficiency, and stability. Readers will find the test setup, scoring weights, the effective-cost formula, common failure patterns, and practical advice on layered model routing.
1. Why Leaderboard Rankings Do Not Equal Agent Readiness
Models are now iterating faster than ever, and the top twenty entries on public leaderboards can be completely reshuffled within weeks. For developers, the real problem is not a shortage of strong models. It is that a model with strong general capabilities does not necessarily work inside an agent framework.
The reason is that the two types of capability are evaluated very differently. Chat tasks only measure the quality of a single-turn output. Agent tasks require a model to stay aligned with the goal across multiple loop iterations, call tools correctly, respect permission boundaries, and recover from failures on its own.
This article therefore uses a controlled-variable approach: keep the agent runtime, memory, skill set, system prompt, and available tools fixed, replace only the underlying reasoning model, and observe how completion quality differs for the same task across models. This design decouples “framework problems” from “model problems,” and it is the simplest and most effective way to evaluate how well a model fits an agent.
2. Evaluation Environment: Locking Down the Variables
For the conclusions to be credible, environment isolation must cover four things:
- Same runtime: the same agent framework, the same version, and the same loop limit and timeout settings.
- Same memory: identical preset long-term memory entries and summarization strategy, so memory differences do not contaminate the results.
- Same skills: an identical skill directory, metadata format, and trigger descriptions.
- Same tools: the same permission allowlist for file read/write, terminal execution, browser automation, search, and other tools.
An illustrative evaluation configuration (pseudocode):
agent:runtime: same_versionmax_steps: 40timeout_seconds: 600memory:preset: identical_snapshotskills:registry: identicalauto_trigger: enabledtools:allowlist: [fs_read, fs_write, shell, browser, search]model:candidates: [model_a, model_b, model_c, model_d]reasoning_effort: high # Use high reasoning effort across all models if supported
It is worth stressing that the same model can perform very differently at different reasoning effort levels. A horizontal comparison must standardize this setting; otherwise the conclusions are invalid.
3. Five Test Levels: From “Can It Do It” to “Can It Deliver”
Cases with mechanical numbering are dull to read and make problems harder to locate. A more useful approach is to design the tasks as five levels of increasing difficulty, each targeting a different capability dimension.
Level 1: Skill Packaging (Turning Experience into an Asset)
The model must turn a long system prompt document into a publishable capability package that others can install and use immediately, then self-check for likely failure points after producing the output.
What is assessed: structuring long documents, designing metadata and trigger descriptions, declaring boundaries, and self-check awareness. This level is the gate—if a model cannot reliably distill experience into a skill, there is no need to run the later tasks.
A qualified capability package should contain at least:
skill/├── manifest.yaml # name, version, applicable scenarios, trigger words├── instructions.md # step-by-step instructions with prerequisites├── examples/ # one positive and one negative example└── limits.md # explicit non-applicable scenarios and risks
Level 2: Web Development (Engineering Delivery)
Given a requirement, generate a runnable front-end page. This assesses component decomposition, state management, responsive handling, and accessibility. The score depends not only on whether it runs, but also on code readability, whether unnecessary dependencies are introduced, and whether error handling is complete.
Level 3: Content Generation (Slides and Copy)
Using the same source material, the model must produce both a structured outline and finished copy. The focus is information compression ratio and factual consistency: whether the model fabricates data while expanding the content is the key deduction in this level.
Level 4: Knowledge Base Governance (Long-Term Memory)
Inject a batch of documents containing conflicting, duplicate, and outdated information into the knowledge base, and require the model to perform deduplication, conflict resolution, and index rebuilding. The assessment focuses on whether it backs up first, whether it provides a change list, and whether it requests confirmation before destructive operations.
Level 5: High-Consumption Browser Automation (Cost and Stability)
This is the level that most easily exposes problems: multi-step page operations with frequent screenshots and DOM parsing cause token consumption to rise non-linearly. Completion rate, step count, and cost must all be recorded here.
4. Scoring Dimensions: A Four-Dimension Scorecard
| Dimension | Weight | Description |
|---|---|---|
| Task completion | 40% | Whether a usable deliverable is actually produced |
| Instruction and permission compliance | 25% | Whether high-risk actions are confirmed first |
| Token efficiency | 20% | Consumption multiple for the same task |
| Stability | 15% | Whether it drops out or drifts during long loops |
For cost, the right approach is not to look at unit price, but to calculate the “cost per unit of effective output”:
effective cost = (input token price × input volume + output token price × output volume) / number of accepted deliverables
A model with a low unit price but several times the consumption may actually cost more. This is especially obvious in long-chain automation tasks.
5. Common Failure Modes and How to Locate Them
- Skill recognition failure: usually caused by trigger descriptions that are too abstract rather than by the model itself; fix the metadata first, then retest.
- High-risk actions without asking: a permission compliance defect; add a secondary confirmation gate at the system layer rather than relying on prompt constraints alone.
- Token explosion: commonly caused by repeated retries and full-context re-injection; mitigate it with segmented summarization, result trimming, and cache reuse.
- Dropping out on long tasks: related to runtime timeouts and context bloat; introduce checkpoints and resume-from-breakpoint support.
6. Conclusions and Recommendations
Model selection should not rely solely on leaderboard position or subscription quota. It should return to the triangle of “framework—task—cost”: use Level 1 as an admission filter, use Level 5 for stress and cost validation, and finally use the four-dimension scorecard to quantify the decision.
The more robust engineering strategy is layered routing—send simple tasks to low-cost models and complex planning and high-value output to strong reasoning models—and run everything on a platform with logging, monitoring and alerting, and permission auditing, so that every call is traceable and reviewable. The general cloud product capabilities offered by Baidu AI Cloud in such engineering scenarios can serve as a reference foundation for hosting both evaluation and production.
