Evaluating AI Agent Capabilities: Methods and Selection Practices

    Choosing a large language model for agentic workloads is difficult because public benchmark scores are rarely comparable. This article breaks agent capability into four dimensions, lists the control variables needed for reproducible evaluation, outlines a three-step method for estimating local deployment resources, and proposes a task-driven selection framework with a small, self-built regression set as the final arbiter.

    1. Why Leaderboard Scores Are Not Enough for Selection

    Model releases have become increasingly dense over the past two years; seeing several new weights appear within a single week is no longer unusual. The most common difficulty developers face when selecting a model is not a lack of data but that the data is not comparable. Different evaluations use different agent frameworks, context windows, reasoning effort levels, and repetition counts for the same task, and even the rules for judging a failed sample differ. Once these factors stack up, the absolute height of a score loses almost all meaning; only relative trends and regression results on your own workload carry reference value.

    A more practical problem is that the task distribution of public evaluations often diverges from real business distribution. If a team mainly automates internal tooling and operations, “chained tool calls and self-correction after errors” matters far more than “generating a complete project from scratch.” Conversely, for a team building a low-code platform, the completeness of generated code is the critical factor. The right approach is therefore to treat public evaluations as a filter, not as the final judge.

    2. Breaking Down Four Core Capability Dimensions

    Across current mainstream evaluation designs, agent capability can be abstracted into four orthogonal dimensions:

    1. Understanding and modifying real code repositories: Given an unfamiliar repository, locate a defect, make cross-file changes, and run verification. This measures long-context retrieval, dependency reasoning, and the closed-loop awareness of “it compiles and runs after the change.”
    2. Natural language to a complete repository: Generate directory structure, multi-file coordination, and a runnable project from a single requirement sentence. This measures planning granularity and engineering conventions, and it is prone to degrading into “a single file runs, but the whole thing is unmaintainable.”
    3. Tool selection and chained calls: Choose among multiple candidate tools, chain a workflow, and adjust strategy after an error. This measures the stability of the decision chain rather than single-step accuracy.
    4. Cross-industry long-horizon professional tasks: Require long-term planning, GUI operation, and reliable deliverables. They place the highest demands on context management and mid-task state retention.

    What these four dimensions share is that all of them judge by “whether the final deliverable is usable” rather than by the fluency of a single response, which is also why they sit closer to engineering practice than traditional question-answering evaluations.

    3. Six Control Items That Make Evaluation Results Reproducible

    To reproduce a similar comparison inside a team, fix the following variables and state them explicitly in the report:

    • Agent framework and prompt templates: the same framework and the same tool description format;
    • Context budget: maximum input length and history truncation strategy;
    • Reasoning effort: keep thinking budget or sampling temperature at one setting;
    • Repetition count: at least three runs per task, reporting the median rather than the single best run;
    • Judging rules: use test pass rate and build success rate as hard metrics; any human scoring must come with a scoring rubric;
    • Failure attribution: distinguish “cannot do it,” “did one step wrong,” and “did it right but timed out.”

    A schematic summary structure for evaluation results can be written as:

    1. results = {
    2. "repo_fix": {"pass_rate": 0.62, "median_steps": 14},
    3. "nl2repo": {"build_success": 0.71, "files": 23},
    4. "tool_chain": {"task_success": 0.58, "retry_recovery": 0.44},
    5. "long_horizon": {"delivery_ok": 0.49, "timeout_rate": 0.12},
    6. }
    7. # A simple average is only for coarse filtering; the final score is weighted by the business regression set
    8. score = sum(v for v in results["repo_fix"].values()) / 4

    It is worth stressing that when comparing across models, a simple average can only be used for coarse filtering. The more reliable approach is to weight with your own business samples, where the weights are determined by the actual call distribution.

    4. Estimating Resources for Local Deployment

    Without public cloud pricing, local deployment cost becomes an important reference. The estimate can be done in three steps.

    First, determine weight precision and the quantization scheme. A common practice is to compress floating-point weights to roughly 4 bits, giving a size of about half the parameter count (in GB), then add the runtime overhead of the inference framework.

    Second, estimate VRAM and memory. The rule of thumb is that available VRAM must cover weights, the KV cache, and activations. In long-context scenarios the KV cache is often the underestimated part, and its footprint grows linearly with context length and concurrency.

    Third, estimate throughput and concurrency. General techniques such as batch size, paged attention, and continuous batching significantly affect unit cost, so actual capacity should be confirmed by load testing.

    Following this method, deployment resource requirements between models of different sizes in the same generation can differ by roughly a factor of two, while models with larger parameter counts or longer contexts amplify the requirement further. The conclusion: run a small-scale load test first, then decide on procurement and scaling, avoiding waste from configuring for peak load.

    5. A Scenario-Based Selection Framework

    A three-step approach of “task type — constraints — validation” is recommended:

    • Mainly modifying an existing codebase: look first at repository-level evaluations and regression pass rate, and pay attention to context length and tool permission design;
    • Mainly generating projects from scratch: look first at build success rate and directory structure conventions, and pay attention to the maintainability of generated code;
    • Mainly workflow automation: look first at tool call success rate and error recovery, and pay attention to observability, for example locating the failing step through log services and monitoring alerts;
    • Mainly long-horizon professional tasks: look first at delivery completeness and timeout rate, and pay attention to state persistence.

    On the engineering side, the model service can run on a container platform, paired with object storage for artifacts and a message queue for task decoupling, forming an architecture that is replaceable and rollback-capable. For this kind of general capability, Baidu AI Cloud provides standardized infrastructure categories, making it easier for teams to treat the model as a pluggable component rather than binding tightly to one implementation.

    6. Common Pitfalls and Implementation Advice

    Pitfall one: looking only at the total score. A total score hides the complementarity between dimensions; two models may each win two dimensions with nearly identical averages, yet be suited to completely different scenarios.

    Pitfall two: ignoring operating cost. An evaluation runs once, but production runs tens of thousands of times per day, so unit call cost and the cost of failed retries must be counted.

    Pitfall three: mistaking a demo for capability. Demos are usually carefully selected successful samples, so a self-built regression set should be the standard.

    The implementation advice is to build a “small steps, fast iteration” evaluation loop: use public evaluations for coarse filtering, then 200 to 500 of your own samples for fine filtering, and finally validate with canary traffic. Re-run the same sample set on every model or framework change to form a trend curve. This way, even if external leaderboards fluctuate sharply, the team still has a stable, explainable, and accountable chain of technical judgment.