LLM Selection for AI Agents: A Five-Stage Benchmark Beyond the Leaderboard

    Choosing a model for AI Agent workflows requires more than public rankings. This article presents a controlled evaluation method that keeps the framework, memory, skills, prompts, and tools fixed while swapping only the underlying LLM. It defines five scoring dimensions, introduces cost per successful task as the key metric, and walks through five practical test stages covering skill packaging, structured front-end generation, multi-constraint content production, knowledge base governance, and browser automation. It also summarizes four recurring failure patterns and the corresponding engineering safeguards.

    1. Why Agent Model Selection Cannot Rely on Leaderboards Alone

    In general chat and single-turn question answering, differences in model capability are often masked by how polished an answer looks. Once you move into Agent scenarios, the evaluation criteria shift entirely. A model is no longer just generating a piece of text; it must make continuous decisions inside a multi-step loop—reading context, selecting the right tool, producing structured parameters, judging execution results, asking a human for confirmation when necessary, and turning experience into reusable assets.

    This introduces three constraints that are fundamentally different from single-turn evaluation.

    First is long-horizon consistency. Once a task is broken into a dozen or even dozens of steps, the “decay” of early constraints is amplified into incorrect actions later on. Second is protocol adherence. Whether tool calls, structured output, and state machine constraints are strictly respected determines how much fallback logic the framework layer has to implement. Third is cost predictability. Token consumption for the same task can differ by several times across models, and without hands-on measurement, the bill can spiral out of control at scale.

    For this reason, this article uses a controlled-variable approach: the Agent framework, memory, skill set, system prompt, and available tools are held fixed, only the underlying LLM is replaced, and the highest available reasoning tier is enabled uniformly. Only then can the observed differences be attributed to the model itself.

    2. Evaluation Framework: Turning “Feel” into a Reproducible Standard

    2.1 Controlled Variables Checklist

    • Identical framework and runtime versions;
    • Identical memory store content and retrieval strategy;
    • Identical skill set and registration method;
    • Identical system prompt, constraints, and output format;
    • Identical tool allowlist and permission boundaries;
    • Reasoning tier fixed at the “highest available.”

    2.2 Scoring Dimensions

    Score across five dimensions, 1–5 points each, and track cost separately:

    1. Instruction following: whether constraints are dropped or scope is expanded without authorization;
    2. Structural compliance: whether the JSON or parameter schema passes validation on the first attempt;
    3. Tool adaptation: tool selection accuracy and self-repair ability after failures;
    4. Long-horizon stability: whether the error rate rises as step count grows;
    5. Safety boundaries: whether high-risk actions trigger proactive confirmation.

    Illustrative scoring and cost accounting logic:

    1. score = {
    2. "instruction": 0, # constraint coverage
    3. "schema": 0, # first-pass schema validation rate
    4. "tooling": 0, # tool selection accuracy
    5. "long_horizon": 0, # inverse of long-horizon error rate
    6. "safety": 0, # high-risk confirmation rate
    7. }
    8. cost = input_tokens * p_in + output_tokens * p_out
    9. # Key metric: cost per successful task = cost / stages passed

    The metric that truly matters is not unit price but cost per successful task. A cheap model that fails repeatedly and needs human takeover can end up costing far more than a more expensive competitor.

    3. Five Stages: Task Design That Mirrors Real Business

    Stage 1: Package a Prompt into a Publishable Skill

    The model must turn a long system prompt into a capability package that others can install and use immediately, rather than simply copying the original text, and then self-check for potential failure points.

    This stage tests abstraction and engineering: does the model distinguish “role definition,” “trigger conditions,” “input/output contract,” and “exception handling”; does it add metadata and a version number; does it provide installation and rollback instructions. An excellent result is a clearly bounded directory structure that the framework can load, not just a longer prompt.

    1. skill/
    2. manifest.yaml # name, version, trigger description
    3. prompt.md # role and constraints
    4. schema.json # input/output contract
    5. examples/ # positive and negative cases
    6. CHANGELOG.md

    If the model is not even stable at this experience-distillation step, there is no need to run the later stages—the Agent’s ability to self-improve is cut off at the source.

    Stage 2: Front-End Development Under Structured Constraints

    The model must generate a runnable front-end page from given requirements while respecting design tokens, accessibility, and responsive constraints. The most frequent failure modes here are high visual fidelity but missing structural semantics, incomplete interaction states, and excessive inline styling that makes the code unmaintainable.

    Scoring should focus on three points: whether structural validation passes on the first attempt; whether empty, loading, and error states are handled; and whether the code has maintainable layering.

    Stage 3: Multi-Constraint Coordination in Content Production

    The same source material must produce a long-form article, a presentation outline, and short copy at the same time, each with a different style, terminology, and length. The difficulty is not writing quality but constraint isolation: the model must not carry the tone of the long-form piece into the short copy, nor stuff the presentation outline with paragraphs. This stage effectively reveals where “instruction decay” occurs.

    Stage 4: Knowledge Base Governance

    Given a batch of mixed documents, the model must deduplicate, classify, chunk, generate summaries, and build citation relationships. This tests long-context handling and structured output stability. Common problems include chunk boundaries that break semantics, inconsistent citation relationships, and fabricated entries created just to “look complete.” The ability to suppress hallucination carries the highest weight in this stage.

    Stage 5: Browser Automation and Cost Control

    This is the most token-intensive stage: multi-step operations, uncertain page states, and the need for screenshots or structured extraction. The model must make the right call between “keep trying” and “stop and ask a human.” This stage exposes two kinds of risk at once: cost explosion from infinite loops, and high-risk actions executed without confirmation.

    4. Four Recurring Problems in Testing

    • Skill recognition failure: the framework has registered a capability, but the model chooses to hardcode its own solution, rendering reusable assets useless;
    • High-risk actions without confirmation: delete, overwrite, and bulk submit operations lack a second confirmation, so the safety boundary is breached;
    • Abnormal token consumption: the same task consumes several times the baseline, and long-horizon loops lack a convergence condition;
    • Improper quota strategy: putting a long-running primary model on a pay-as-you-go endpoint makes cost uncontrollable.

    The corresponding engineering recommendations are: enforce “capability-first” routing at the framework layer; set allowlists and human gates for high-risk actions; set a maximum step count and timeout for loops; and separate long-running tasks from short, high-concurrency tasks, matching each with model services that have different cost structures.

    5. Conclusion: Replace Subjective Impressions with Stage-Based Evaluation

    Model selection is not about choosing the “strongest” model, but the “best match.” Developers are advised to abstract their own business into five to seven stages, fix the variables, unify the standard, record cost per successful task, and treat safety confirmation and hallucination suppression as veto items. If you need elastic compute and unified operations, you can build an evaluation pipeline on Baidu AI Cloud’s container platform, object storage, log service, and monitoring and alerting, so that selection conclusions remain reproducible and can iterate as the business evolves.