LLM Selection for AI Agents: A Scenario-Based Evaluation Framework
Choosing a foundation model for an AI agent is no longer about who tops the leaderboard. This article explains why public benchmark rankings diverge systematically from real agent performance, and presents a reproducible evaluation framework built on single-variable control: identical system prompts, memory stores, skill packages, tool lists, and permission boundaries, with only the underlying model changing. It defines five evaluation levels of increasing difficulty, from packaging prompts into distributable skills, through front-end code generation, content and presentation output, and knowledge base governance, to long-chain, high-token automation. You will find a six-dimension scoring rubric, guidance on cost and stability controls for expensive automation, and a closing recommendation to record results as scenario-to-model mappings rather than a single ranking.
1. Background: Why Leaderboard Rankings Are Not Enough to Pick an Agent Foundation Model
Model release cycles have accelerated noticeably over the past six months, and the top twenty positions on public evaluation leaderboards are reshuffled almost weekly. For developers, the real difficulty is not a shortage of candidates. It is the systematic gap between leaderboard scores and actual performance in agent scenarios.
Benchmark questions are mostly single-turn, short-context, and automatically gradable. Agent tasks are typically closed-loop workflows with multiple turns, long contexts, tool calls, and state changes. A model that leads a reasoning benchmark by a few percentage points may, inside an agent framework, fail to recognize a skill, skip the required confirmation before a high-risk action, or consume several times more tokens on the same task.
The core selection question therefore shifts from “which model is strongest” to “which model best fits my agent framework.” This means treating the model as a replaceable component and running controlled, side-by-side quantitative comparisons instead of relying on scattered impressions from casual usage.
2. Experiment Design: An Agent Evaluation Framework Under Single-Variable Control
Reproducibility starts with controlling variables. The recommended approach is to clone several identical agent instances: the same system prompt, the same memory store, the same skill package, the same tool inventory and permission boundaries, with the underlying model as the only variable. Set the reasoning tier to the highest available for all instances, so that a “low-tier model” is never compared against a “high-tier model.”
One boundary needs to be stated up front: high-cost models with limited quotas are not suitable as the foundation for a primary agent that must stay online for long periods. They fit better in interactive sessions used for design exploration. This is an engineering-economics judgment, not a capability judgment.
The evaluation levels should cover five categories, arranged from easy to hard as a funnel:
- Skill packaging: turning a long prompt into a distributable, installable, self-checking capability package.
- Page and front-end development: generating runnable code under given constraints while keeping structure and styling maintainable.
- Content and presentation material generation: structured copy and layout-formatted output.
- Knowledge base governance: retrieval, deduplication, chunking, permissions, and updates.
- High-consumption automation: long-chain browser/terminal operations, with a focus on stability and cost control.
3. Level 1 in Detail: Packaging a Prompt into a Publishable Skill
This level looks like document tidying, but it is really a test of abstraction. A passing output does not copy the original text; it extracts the inputs, outputs, constraints, failure handling, and self-check checklist. You can ask the model to produce the directory structure first, then self-check the risk points:
my-skill/SKILL.md # Capability description, trigger conditions, scopereferences/ # Reference material and examplesscripts/ # Optional execution scriptsCHANGELOG.md # Version and change history
Key evaluation points: whether the output states explicitly what the skill does not do, whether it gives trigger and non-applicable scenarios, whether it makes implicit conventions explicit, and whether the self-check identifies real risks (such as permission overreach, missing external dependencies, or output format drift) rather than generic remarks.
4. Levels 2 to 4: Structured Output and Long-Context Stability
The page development level observes whether the model can produce semantic structure, accessibility support, and responsive layout under the given design constraints, and whether existing structure survives multiple rounds of revision. The content generation level observes the stability of layout-formatted output, for example whether heading hierarchy, bullet density, and chart placeholders stay consistent. The knowledge base governance level observes chunking strategy, metadata design, conflict handling, and incremental update logic; this level most clearly exposes instruction forgetting under long contexts.
Use the same scoring sheet for every level: instruction following, structural compliance, runnability, rework rounds, token consumption, and elapsed time, each scored from 1 to 5, so that subjective impressions do not dominate the conclusion.
5. Level 5: Cost and Stability of High-Consumption Automation
Long-chain automation is the scenario most likely to get out of control. During evaluation, set a maximum step count, timeouts, retry on failure, and human confirmation points, with mandatory second confirmation for irreversible actions. If a model consumes several times the baseline tokens on the same task, it is not suitable for high-frequency scheduling even if the task completes. Overhead can be reduced through caching, batching, context trimming, and summarizing tool results.
6. Conclusions and Implementation Recommendations
Write the selection conclusion as a scenario-to-model mapping rather than a single ranking: primary online agents should prioritize stability and instruction following; exploratory tasks can use high-capability but high-cost models; batch offline tasks should prioritize unit cost. If your team uses relevant Baidu AI Cloud capabilities, you can deploy the agent runtime on the container platform, store skill packages and knowledge base snapshots in object storage, and track token usage and failure rates with log and monitoring services, forming a continuously improving evaluation loop.
