LLM Agent Benchmark: A Five-Stage Test Framework for Model Selection

    This article presents a reproducible way to compare LLM agents by keeping the runtime, memory, tools, and constraints fixed while swapping only the underlying model. It defines five progressive test stages, the metrics used to evaluate them, and practical selection guidance based on capability profiles rather than vendor claims. Readers will find a testing methodology, sample result records, budget guardrails, and notes on deploying the setup on Baidu AI Cloud.

    1. Why Swapping Only the Model Makes a Valid Benchmark

    In agent engineering, a common mistake is treating “the model is weak” and “the framework is weak” as the same problem. To reach conclusions that can be attributed to a specific cause, you must lock down the variables first: the same agent runtime, the same long-term memory, the same set of skill descriptions, the same system constraints, and the same batch of callable tools, with only the underlying LLM replaced. This isolates the differences to the model itself rather than noise from prompts or the tool chain.

    This article follows that approach and selects four representative model capability profiles: general high-reasoning, long-context stability, coding and multimodal aggregation, and cost-effective domestic. To avoid steering readers toward any specific product, the models are referred to below as Model A/B/C/D, and the discussion focuses on capability dimensions and engineering tradeoffs. All models run with the highest available reasoning setting enabled to obtain upper-bound performance.

    It is important to note that agent scenarios and chat scenarios use different evaluation functions. Chat evaluates single-turn answer quality; agents are evaluated on whether they stay on track across multi-step tasks, retain constraints, and avoid wasting money. The evaluation must therefore cover long-chain stability, instruction following, tool-call correctness, failure self-recovery, and token consumption curves.

    2. Evaluation Environment and Method: Turning Subjective Experience into Reproducible Metrics

    The experiment uses a fully replicated local prototype agent that has been running for months with mature constraints, avoiding cases where a model loses points due to unfamiliar terminology. Tasks are designed as five progressive stages, each with clear acceptance criteria and a self-check step.

    Suggested metric definitions:

    • Task success rate: whether a runnable, deliverable output is produced;
    • Constraint compliance rate: whether system prompts, restricted zones, and format requirements are continuously respected;
    • Tool-call accuracy: whether parameters are valid and whether calls are duplicated or missed;
    • Average steps and token consumption: a measure of cost and latency;
    • High-risk action confirmation rate: whether the model proactively asks before deletion, publishing, or external sending.

    Example evaluation record structure:

    1. {
    2. "task": "skill_package",
    3. "model": "model_a",
    4. "success": true,
    5. "steps": 7,
    6. "tokens": 18240,
    7. "constraint_violations": 0,
    8. "high_risk_confirm": "not_triggered"
    9. }

    3. Stage One: Packaging a Prompt into a Publishable Skill

    The goal is not to copy a block of prompt text, but to distill experience into a capability package that works out of the box. A qualifying output should include: a capability description, trigger conditions, input/output contracts, directory structure, dependency declarations, examples, and a self-check list.

    The key evaluation point is abstraction ability. A strong model identifies which parts are transferable methodology and which are environment-specific hardcoded paths, and parameterizes them. If a model merely relocates text and keeps local absolute paths, it is considered unqualified, and there is no need to proceed to later stages.

    The self-check step requires the model to proactively point out potential failure points, such as trigger-word conflicts, missing dependencies, and ambiguous permission boundaries. Models that can raise risks are usually more reliable in subsequent long-chain tasks.

    4. Stage Two: Page Development and Visual Fidelity

    Given a design draft and interaction notes, the model must produce a clearly structured, runnable frontend implementation. Scoring dimensions include semantic structure, responsive layout, state management, accessibility, and whether the build passes on the first attempt.

    The most common problem exposed here is “looks right, does not run”: class-name conflicts, incorrect asset paths, and missing event bindings. Acceptance must therefore be based on the build and local run, not on how a screenshot looks.

    5. Stage Three: Presentation and Copy Generation

    This stage assesses structured expression and style control. The model must first provide an outline, then produce titles, bullet points, and speaker notes page by page, while respecting word-count and tone constraints. Strong models proactively control information density, avoid piling text onto every slide, and keep terminology consistent.

    6. Stage Four: Knowledge Base Governance

    Tasks include chunking, deduplication, tag-system design, and conflict detection. The focus is on whether the model validates before writing, whether it proposes merge suggestions for duplicate and outdated content, and whether it respects the “do not delete without authorization” restricted zone. A knowledge base is a long-term asset, so robustness takes priority over speed.

    7. Stage Five: High-Consumption Browser Automation

    This is where cost and risk are most exposed. The task chain is long and page states change frequently, making repeated retry loops, duplicate scraping, and token inflation likely. Evaluation should focus on whether step limits are set, whether intermediate results are cached, and whether confirmation is requested before submission or external sending.

    The engineering recommendation is to introduce budget guardrails:

    1. max_steps = 25
    2. token_budget = 60000
    3. on_exceed -> pause and request human confirmation

    8. Interpreting Results and Selection Guidance

    A common pattern in practice: high-reasoning models are more stable at skill packaging and page development; long-context models lose constraints less often in knowledge base governance; aggregation models are more convenient for mixed coding and multimodal tasks; cost-effective models suit batch, low-risk, retryable tasks.

    Regarding rumors about “burning tokens,” self-test data should be the standard. Differences in consumption for the same task often come from step strategy and retry mechanisms rather than model attributes alone. The recommended optimization order is: first tighten prompts and tool descriptions, then limit steps and add caching, and only then consider switching models.

    9. Engineering Practice for Cloud Deployment

    If building on Baidu AI Cloud, a general capability combination can be used: a container platform hosts the agent runtime, object storage holds skill packages and artifacts, a message queue decouples tasks, and logging and monitoring with alerting track steps, failure rates, and cost. A unified gateway handles model routing, pinning high-risk tasks to robust models and offloading batch tasks to low-cost models, balancing quality and cost.

    10. Conclusion

    The value of a benchmark lies not in rankings but in building reproducible evaluation assets. Turn the five stages into regression test cases and run them after every model upgrade, and model selection shifts from “heard it is very strong” to “proven by data.”