Evaluating Multi-Model Agents in a Unified Runtime

    Selecting a multi-model Agent is not just about benchmark leaderboards; it is about finding which model can reliably handle long-chain tasks in a real business runtime while balancing cost, security, and maintainability. This article presents a reproducible evaluation framework that tests Agents across five specific task categories by maintaining a unified runtime environment and only swapping out the candidate models. It covers control variables, model capability abstraction, task design, observation metrics, and enterprise deployment strategies to turn subjective preferences into auditable engineering decisions.

    When deploying multi-model Agents, the real challenge is not “which model ranks higher on the leaderboard,” but “which model can stably complete long-chain tasks in a real business runtime while remaining acceptable in terms of cost, security, and maintainability.” Simply comparing question-and-answer responses in a chat window easily ignores engineering factors such as memory consistency, skill pack invocation, tool permissions, failure retries, context expansion, and high-risk action confirmation. This article provides a reproducible evaluation framework: deploy four identically configured Agent instances with the same memory snapshots, skill packs, system settings, tool allowlists, sandbox policies, and timeout retries. Only the candidate models are replaced, and their quality, efficiency, stability, and security are observed across five categories of tasks.

    1. Controlling Variables: Why Only Swap the Model

    The most common misconception in multi-model evaluation is “different models, different runtimes.” For example, if Model A is connected to more tools, Model B uses a different system prompt, and Model C’s instance has a longer memory, the resulting differences cannot be accurately attributed. A more rigorous approach is to treat the Agent runtime as a fixed environment and the model as the sole independent variable.

    Variables that must be fixed include memory snapshots, skill pack versions, system prompts, tool allowlists, tool parameter validation, sandbox permissions, timeout periods, retry strategies, log fields, and scoring rules. Each task should be repeated at least three times. Record the success or failure, human evaluation score, end-to-end latency, input/output tokens, number of tool calls, tool errors, timeouts, retries, human intervention counts, and high-risk action confirmation rate. This yields not just a single demo effect, but distributions and failure modes.

    A sample configuration is as follows:

    1. experiment:
    2. candidates: [candidate_a, candidate_b, candidate_c, candidate_d]
    3. runtime:
    4. memory_snapshot: same
    5. skill_set: same
    6. tool_allowlist: same
    7. sandbox_policy: same
    8. timeout_s: 300
    9. retry_policy: same
    10. tasks: [skill_pack, web_dev, deck_copy, kb_manage, browser_auto]
    11. repetitions: 3
    12. metrics:
    13. - success_rate
    14. - human_score
    15. - token_cost
    16. - latency
    17. - tool_error
    18. - human_intervention
    19. - high_risk_confirm_rate

    2. Candidate Model Abstraction and Cost Matrix

    Evaluation should not revolve around specific brands, but rather abstract candidates by capability profiles: high-reasoning flagship, long-context high-cost-effectiveness, code-package, and lightweight high-throughput. Different profiles suit different tasks, and you cannot simply pursue an “all-around champion.” High-reasoning models may be more stable in complex planning, structured output, and failure self-checking, but they have a higher unit price and token consumption. High-cost-effectiveness models are suitable for knowledge base organization and batch copywriting. Code-package models fit continuous development tasks but must be monitored for quota exhaustion risks. Lightweight models are suitable for low-risk, high-concurrency tool calls.

    Cost cannot be judged solely by unit price. The total cost of an Agent task is the combined result of input tokens, output tokens, cache hits, retries, repeated context carrying, manual review, and quota limits. A cost matrix should be established, including: input cost, output cost, caching strategy, concurrency limits, quota periods, timeout retry costs, long-context expansion risks, and estimated cost per task. Specific values should be based on the median and distribution of multiple runs of the same task, rather than guesswork.

    3. Five Task Category Designs

    Level 1: Skill Packaging. Given a design specification prompt, the model is required to package it into a publishable skill pack, including metadata, applicable scenarios, input/output conventions, examples, failure modes, and a self-check list. The evaluation points are not “restating the prompt,” but structural capability, boundary awareness, reusability, and self-check quality. If a model cannot achieve stable packaging experience, the risk for subsequent long-chain tasks is very high.

    Level 2: Web Development. Given requirements, technical constraints, and acceptance criteria, the model must generate a runnable page, including responsive layout, basic accessibility, error handling, and dependency descriptions. Evaluation points include code runnability, directory structure, dependency management, test coverage, and the number of reworks. It is not enough for code snippets to just “look right”; they must be able to be built and run.

    Level 3: Presentation Design and Copywriting. The model is required to generate an outline, narrative structure, page hierarchy, and copy based on a theme, while maintaining factual consistency, unified tone, and editability. Evaluation points include structural completeness, information density, visual hierarchy suggestions, factual consistency, and manual modification costs. This task observes the model’s stability under long-text organization and aesthetic constraints.

    Level 4: Knowledge Base Management. Provided with multiple documents, the model must extract, deduplicate, cite, update, and handle conflicts. Evaluation points include recall accuracy, citation traceability, conflict annotation, permission awareness, and desensitization processing. An Agent cannot just “summarize well”; it must also explain where the basis comes from, which contents have conflicts, and which contents require manual confirmation.

    Level 5: Browser Automation. Design multi-step forms, waits, exception recovery, and high-risk action confirmation tasks. Evaluation points include selector stability, timeout handling, retry strategies, error recovery, audit logs, and high-risk action confirmation. This task usually involves high token consumption and long chains, making it the most likely to expose tool call failures and framework constraint breakdowns. Security policies should explicitly require secondary confirmation for actions such as delete, submit, publish, pay, and permission changes.

    1. safety:
    2. require_confirmation: [delete, submit, publish, pay, permission_change]
    3. audit_log: true
    4. pii_redaction: true
    5. tool_allowlist_only: true

    4. Observation Metrics and Risk Control

    Quality metrics include task success rate, human evaluation score, number of reworks, and acceptance pass rate. Efficiency metrics include end-to-end latency, number of steps, token consumption, and number of tool calls. Stability metrics include failure rate, timeout rate, retry rate, context overflow, and skill recognition failure. Security metrics include high-risk action confirmation rate, permission boundary violations, injection attack protection, and log desensitization. All metrics should be tied to task types; a single total score should not be used to mask failure modes.

    For enterprise deployment, evaluation logs should be written into a general logging service, and an auditable pipeline should be built utilizing the monitoring, alerting, and object storage capabilities of Baidu AI Cloud. Set up budget circuit breakers: when the cost per task exceeds a threshold or quota consumption is abnormal, automatically degrade to a more economical candidate model. Model approval should not be a one-time pass; it should be validated through small-traffic canary testing, task routing, and rollback strategies.

    5. Result Interpretation and Deployment Recommendations

    Evaluation conclusions are usually not “one model wins comprehensively,” but rather “a certain type of task suits a certain type of model.” Skill packaging and knowledge base management value structuring and citation capabilities; web development values code runnability and dependency management; presentation design values copywriting organization and aesthetic constraints; browser automation values tool call stability and security confirmation. It is recommended to adopt task routing: use high-reasoning candidates for high-value long-chain tasks, and high-cost-effectiveness candidates for batch low-risk tasks. Set unified security policies and manual review nodes for all candidates.

    Ultimately, multi-model Agent selection should form reproducible evaluation assets: a fixed runtime, task sets, scoring rubrics, a cost matrix, a failure case library, and security policies. Only in this way can the subjective feeling of “this model seems stronger” be transformed into an auditable, iterable engineering decision.