Evaluating LLM Agents: A Five-Stage Testing Methodology for Model Selection

    Choosing the right LLM for an AI agent is not about picking the highest benchmark score, but about finding the model that fits orchestration constraints. This article introduces a vendor-neutral, five-stage evaluation methodology to measure the engineering usability of models in agent scenarios. It covers controlled-variable test design, five practical tasks (skill packaging, page development, content generation, knowledge base governance, and browser automation), a five-dimension scoring rubric, and engineering recommendations for reliable agent deployment.

    1. The Problem: Plenty of Models, Few That Can Actually Run Agents

    Model release cycles have accelerated significantly over the past six months, with the top twenty-plus positions on public leaderboards reshuffling almost weekly. For developers, the real challenge is not a lack of powerful models, but the clear gap between leaderboard scores and actual agent performance: a model that leads in reasoning benchmarks may frequently lose tool-calling format, forget established constraints, or repeat unproductive steps during long tasks when placed inside an agent loop.

    The focus of evaluation should therefore shift from “who is smarter” to “who is easier to orchestrate.” This article abstracts a vendor-neutral, five-stage evaluation method to measure a model’s engineering usability in agent scenarios.

    2. Evaluation Design: Controlled Variables Are the Prerequisite for Trustworthy Conclusions

    To make comparisons meaningful, everything except the model must remain identical:

    • The same agent framework and the same system prompt;
    • The same long-term memory content and the same skill library;
    • The same set of tools with equal quantity and identical permission boundaries;
    • The same task descriptions, the same acceptance criteria, and the same maximum number of run turns.

    Replace only the model, and enable the available high-reasoning tier uniformly. It is important to note that models implement “reasoning tiers” very differently: some control it via parameters, while others always output a thinking process. Record the actual configuration during evaluation to avoid mistaking configuration differences for capability differences.

    As for cost, it is recommended to record two curves simultaneously: the total number of tokens consumed per task, and the number of retries required to complete the same task. Much of what seems “expensive” is not due to a high unit price, but to excessive unproductive loops.

    3. The Five-Stage Task Design

    Stage 1: Skill Packaging

    The model is required to organize a long prompt document into a capability package that an agent can load directly and that others can install and use, and then self-check for potential failure points after output.

    What to examine: whether the directory structure is well-organized, whether metadata and trigger conditions are clear, whether “copying the original text” is mistaken for “packaging a capability,” and whether the self-check points to real risks rather than generic platitudes. This stage is the entry threshold; if it fails, there is no need to run the remaining tests.

    Stage 2: Page Development

    Given a product description and interaction requirements, the model must produce directly runnable page code that includes responsive layout, state management, and basic accessibility support.

    What to examine: the first-pass success rate, code runnability, whether undeclared dependencies are introduced without authorization, and the degree of separation between styling and logic.

    Stage 3: Content Generation (Presentations and Copy)

    The model is required to produce a structured outline, per-slide key points, and accompanying copy around the same topic, while adhering to word-count and tone constraints.

    What to examine: structural completeness, constraint adherence, and whether there is empty padding or fabricated facts.

    Stage 4: Knowledge Base Governance

    Given a batch of mixed documents, the model must complete classification, deduplication, summarization, and an indexing scheme, and output a maintainable update process.

    What to examine: information recall within long context, handling of duplicate and conflicting content, and the operational maintainability of the scheme.

    Stage 5: High-Consumption Browser Automation

    The agent is required to complete multi-step operations in a web environment, including login-state handling, exception retries, and result verification.

    What to examine: token consumption, speed of step convergence, whether high-risk actions are proactively confirmed, and whether it can exit safely upon failure. This stage most easily exposes the “framework failure” problem, where the model no longer follows the established tool protocol.

    4. Observation Dimensions and Scoring Criteria

    It is recommended to score across five dimensions, each from one to five points:

    1. Instruction following: whether the specified format is strictly output;
    2. Structural stability: whether format and constraints drift during long tasks;
    3. Tool compliance: whether call parameters are valid and whether there is any privilege escalation;
    4. Cost efficiency: completion quality divided by token consumption;
    5. Recoverability: whether the model can self-correct after an error.

    Illustrative scoring logic:

    1. score = 0.3 * instruction + 0.25 * stability \
    2. + 0.2 * tool_use + 0.15 * cost_eff + 0.1 * recovery

    Weights should be adjusted according to the business scenario: production pipelines place more emphasis on stability and recoverability, while exploratory tasks can relax the cost weight.

    5. Common Findings and Selection Recommendations

    In practice, three types of results usually emerge: models with strong reasoning excel at single-turn complex tasks but tend to experience constraint drift in multi-turn loops; cost-effective models are suitable for large-volume, low-risk tasks; and some models show significant token inflation in high-consumption scenarios, requiring context compression and step limits.

    Engineering recommendations:

    • Adopt a two-tier structure of “primary model + verification model,” with secondary confirmation for critical actions;
    • Set a hard budget and maximum step count for the agent, and abort and roll back once the limit is exceeded;
    • Bring skills and prompts under version control so that evaluation results remain comparable;
    • Build a small regression set on your own business data to replace reliance on public leaderboards.

    6. Conclusion

    Model selection is not about choosing the “strongest,” but the “best match for the constraints.” Only by controlling variables, layering tasks, and quantifying costs can you find the combination that best fits your own agent framework within a limited budget.