A Practical Guide to Horizontal Evaluation of LLM-Driven AI Agents

    As Large Language Models (LLMs) evolve rapidly, choosing the right model for AI agent workflows becomes a significant challenge. Models excelling in chat scenarios may underperform in agent environments requiring stable tool calling, multi-step reasoning, and long task execution. This article provides a practical methodology for horizontally evaluating multiple LLM-driven agents, covering evaluation design, test case creation, typical findings, and model selection strategies to help developers balance performance, safety, and cost.

    I. Why a Strict Agent Model Evaluation is Necessary

    With the rapid iteration of Large Language Models (LLMs), new versions are released almost every week. For developers integrating LLMs into automated AI agent workflows, determining which model is best suited as the primary agent is an unavoidable question. A model that performs excellently in chat scenarios may not stably complete tool calling, multi-step reasoning, and long task execution in agent environments. Furthermore, high benchmark scores often fail to directly translate to real-world task completion rates.

    To answer this, the only viable approach is horizontal evaluation: placing different models in a strictly consistent environment to complete the same batch of tasks and using quantifiable metrics. This article will comprehensively break down the design, execution process, and conclusion extraction of a four-model agent evaluation, providing a reusable methodology.

    II. Evaluation Design: Variable Control is the First Principle

    2.1 Experimental Group Construction

    The core principle of horizontal evaluation is variable control. The specific approach is to clone multiple identical Agent instances:

    • Identical Memory Configuration: All instances load the same long-term memory and historical context.
    • Identical Skills: The mounted toolsets and skill description files are exactly the same.
    • Identical System Prompts: The system role settings and constraint rules are verbatim identical.
    • Identical Callable Toolchains: Capabilities such as file reading/writing, command execution, and network access are aligned.
    • Identical Reasoning Levels: Models supporting high-reasoning modes uniformly enable the highest tier.

    The only independent variable is the underlying model itself. This ensures that observed behavioral differences can be attributed to model capabilities rather than environmental noise.

    2.2 Candidate Model Selection Logic

    The candidate set should cover models with different positioning: general flagship models representing the current capability ceiling; models focusing on coding and cost-effective tool calling, suitable as long-running agent workhorses; and new, massive-parameter models with comprehensive capabilities but unverified costs. Additionally, cost constraints must be considered. Some models priced by token and expensive are better suited for deep creation in interactive web interfaces rather than serving as primary agents that require long-term online presence and continuous quota consumption; otherwise, the budget is difficult to balance.

    2.3 Community Feedback to Verify

    Before evaluation, known issues about each model in agent scenarios should be collected from the community and transformed into test cases. Typical high-frequency feedback includes:

    • Failure to recognize local skills within the agent framework, meaning the model cannot correctly load or match registered tools.
    • Lack of confirmation steps before executing high-risk actions, bypassing the agent framework’s safety guardrails.
    • Token consumption far exceeding similar models for the same task, sometimes reaching multiples of other models in certain cases, causing actual usage costs to spiral out of control.
    • Rapid depletion of subscription quotas, where short-term coding tasks consume a large proportion of the monthly quota.

    If true, these issues will directly determine whether a model is competent as a primary agent, so they must be reproduced and verified one by one.

    III. Evaluation Dimensions and Test Case Design

    3.1 Tool and Skill Recognition

    The agent framework relies on the model accurately understanding the schema of available tools and calling them at the right time. Test cases include: registering multiple local skills with similar names to observe if the model can correctly select and call them; dynamically adding skills mid-task to see if the model can discover and use them in subsequent steps. Recognition failures typically manifest as ignoring tools, hallucinating non-existent function names, or formatting parameters incorrectly.

    3.2 Instruction Following and Safety Guardrails

    The agent framework usually requires the model to confirm with the user before executing high-risk actions like deleting files, sending requests, or modifying configurations. The testing method involves constructing operational tasks explicitly labeled as “high-risk” to observe whether the model proactively triggers the confirmation process or executes directly. The latter implies the model’s behavior oversteps framework constraints, which is unacceptable in production environments.

    3.3 Multi-Step Task Completion Rate

    Design composite tasks requiring 5 to 10 tool calls, such as “read a batch of data files $\rightarrow$ clean $\rightarrow$ generate report $\rightarrow$ write to specified directory.” Track each model’s task completion rate, average steps, and whether manual intervention is required. Focus on observing whether the model forgets the goal, repeatedly calls the same tool, or falls into a loop during long chains.

    3.4 Token Consumption and Cost Accounting

    For each task, record the input/output token volume, combined with the API pricing and subscription plans of each model, to calculate single-task costs and monthly budgets. Note that token consumption depends not only on the model’s unit price but also on its “verbosity” and retry count. Models with excessively long reasoning chains and frequent self-corrections may see total costs spiral out of control even if the unit price is low. It is recommended to use “comprehensive cost for completing a single standard task” as the core economic indicator, rather than simply comparing the price per thousand tokens.

    3.5 Stability and Online Time

    A primary agent model needs to stay online for long periods without dropping. The evaluation should run continuously for several hours, recording interface timeout rates, rate-limiting trigger frequencies, and how context window overflow is handled.

    IV. Typical Findings and Root Cause Analysis

    In actual evaluations, several categories of issues are worth deep analysis:

    First, Agent framework failure. Some newly released massive-parameter models perform outstandingly in pure conversations but experience skill recognition failures and execute high-risk actions without asking in agent scenarios. The root cause is often that the model’s adherence to framework-level constraints in system prompts is prioritized lower than its own “task completion tendency,” an alignment issue in the instruction hierarchy. Mitigation methods include injecting safety constraints into both system prompts and tool descriptions, and enforcing hard interception at the framework layer rather than relying on model self-awareness.

    Second, abnormal token burning. Token consumption differing by multiples for similar tasks usually stems from the model excessively expanding its reasoning process and repeatedly self-verifying intermediate results. Cost-sensitive teams should prioritize models with controllable reasoning levels and output lengths.

    Third, undervalued ecosystem integration. Some model providers bundle capabilities like coding, voice, and video into a unified subscription with separate quotas. Such “all-you-can-eat” plans offer significant cost advantages for agent workflows requiring multimodal capabilities, and should not be overlooked during selection based solely on single-model capability.

    V. Selection Advice and Implementation Practices

    Synthesizing the evaluation results leads to a general conclusion: There is no all-powerful primary agent model, only models that match the scenario. The following approaches are recommended for implementation:

    1. Prioritize stability over sharp peaks: Choose models with stable tool calling, reliable safety guardrails, and predictable token consumption to handle 24/7 online agent tasks.
    2. Route high-difficulty tasks: Add model routing logic at the framework layer to forward complex reasoning tasks to flagship models, while assigning routine tasks to cost-effective models, balancing quality and cost.
    3. Establish continuous regression testing: Model versions update frequently. The horizontal test case set from this article should be distilled into regression test scripts, automatically re-run after every model upgrade to avoid “upgrading-induced crashes.”
    4. Cost monitoring is indispensable: Integrate token consumption and single-task costs into logging services and monitoring alert systems, setting quota thresholds to prevent abnormal consumption from individual tasks blowing up the budget.

    For teams looking to quickly set up such evaluation and production environments, general cloud platform capabilities like those provided by Baidu AI Cloud (such as model services, container platforms, and monitoring tools) can facilitate the full pipeline of multi-model integration, task scheduling, and cost observation. This allows teams to focus on the evaluation logic itself rather than underlying infrastructure.

    VI. Conclusion

    Model selection in the agent era has evolved from “reading leaderboards” to “running experiments.” A horizontal evaluation scheme with strict variable control and comprehensive test case coverage can help teams maintain rational judgment amidst the wave of rapid model iteration. Hopefully, the methodology in this article serves as a starting point for building your own evaluation system—after all, the best model for your agent is only known after actual testing.