How Agents Should Choose LLMs: A Capability Evaluation and Deployment Guide

    Choosing a large language model for an AI agent is not about finding the "best" model—it is about finding the most suitable one for a given task, budget, and risk profile. This guide explains how LLM capabilities arise and where their limits are, presents six key evaluation dimensions (instruction following, tool calling, task planning, context management, latency, and cost), and describes how to build reproducible, task-based evaluations. It also covers model configuration strategies—single-model baselines, task-tiered routing, and multi-model division of labor—plus the security and engineering practices that often matter more than model rankings, ending with a recommended deployment sequence. The goal is to answer the selection question with verifiable task results rather than parameter counts or demo impressions.

    1. Frame the Problem Correctly: Agents Need the “Most Suitable” Model, Not the “Strongest” One

    Choosing an LLM for an agent is fundamentally about balancing task success rate, execution efficiency, resource cost, and risk control. A model that excels at knowledge Q&A may not be good at chaining tool calls; a model that generates high-quality code may not reliably handle long-running, multi-step business workflows.

    Therefore, there is no scenario-independent answer to “which model is best.” A more useful question is: given the task, tool permissions, response-time requirements, and budget constraints, which model configuration can complete the work reliably?

    For example, internal document Q&A typically depends on factual grounding and the ability to use retrieval results; coding assistance is judged by correctness of modifications and test pass rates; automated business processes require the model to select the right tools, fill in parameters correctly, interpret execution results, and act reasonably when exceptions occur.

    Model selection should start from the task—not from picking a model first and then looking for a business that fits it.

    2. Understanding LLMs: Where Capabilities Come From and Where the Boundaries Are

    2.1 What a Large Language Model Is

    A large language model is a deep learning model trained on large volumes of language and related data. It learns statistical associations from the input context and generates continuations. With appropriate training, models can be used for text writing, information extraction, knowledge Q&A, code generation, and complex problem analysis.

    Model output is not equivalent to verified fact. A model may produce fluent but incorrect answers, or make overly confident judgments when information is insufficient. Tasks with high accuracy requirements therefore need to be combined with retrieval, rule-based validation, tool feedback, or human review.

    2.2 Parameter Count Is Not the Only Metric

    The number of parameters reflects the scale of a model’s learnable weights, but it alone does not determine application performance. Training data quality, training methodology, inference resource allocation, input organization, and task fit all affect the final result.

    For well-bounded classification, extraction, and format-conversion tasks, a smaller model may already be sufficient; for tasks requiring multi-step reasoning, cross-document synthesis, and exception handling, a more capable model may be necessary.

    The emergence of complex capabilities should not be interpreted as “reliable reasoning automatically appears beyond a certain parameter threshold.” Different capabilities may show different trends under different evaluation methods; actual task validation is always required.

    2.3 Pretraining, Task Adaptation, and External Knowledge Each Play a Role

    Pretraining provides general language ability and a certain knowledge foundation. Further training can improve instruction following, formatted output, or performance on specific tasks, but it is not a necessary remedy for every problem.

    If the business need is mainly answering questions about continuously updated internal materials, retrieval-augmented generation (RAG) should usually be the first choice: retrieve relevant content first, then have the model answer based on evidence. If the problem is unstable tool selection, examine tool descriptions, parameter constraints, and workflow design rather than immediately investing in more training.

    First determine whether the problem stems from missing knowledge, instruction comprehension, workflow design, or model capability—then decide on the improvement path.

    2.4 Multimodality and Tool Calling Are Not the Same Thing

    Multimodal capability means a model can process inputs or outputs in forms such as images or audio. The specific scope of support depends on the model itself and the application interface; do not assume all models have it.

    Tool calling means the model outputs a structured operation request, and an external program performs the actual execution. Generating a call request does not automatically grant the model access to file systems, databases, or email systems.

    This distinction matters: the model proposes actions; the execution layer checks permissions, validates parameters, and carries out operations. Business security cannot rely entirely on the model’s own judgment.

    3. Six Key Dimensions for Agent Model Selection

    3.1 Instruction Following: Can It Accurately Understand the Task and Its Boundaries?

    Agents often need to simultaneously respect business goals, output formats, operational restrictions, and user preferences. The model must understand not only “what to do,” but also “what not to do” and “when to ask for confirmation.”

    During evaluation, set tasks with explicit constraints—for example, read-only access to materials with no file modification allowed, or a requirement to state uncertainty when evidence is insufficient. Observe whether the model drops constraints, expands the task scope on its own, or creates conflicts between multiple requirements.

    Unstable instruction following amplifies the risk of every subsequent operation.

    3.2 Tool Calling: Can It Select the Right Tool and Construct Valid Parameters?

    Tool-call quality has at least three layers: whether the right tool is chosen, whether parameters meet requirements, and whether results are correctly interpreted.

    Producing well-formatted parameters does not mean the call is correct. A model might select the wrong resource identifier, confuse query conditions, or repeat an operation that has already completed.

    Evaluation should cover normal inputs, missing information, boundary values, and tool failures. For tools with side effects, also check whether the model follows confirmation procedures. The execution layer should independently perform type validation, permission checks, and business-rule checks—never treat model output directly as trusted instructions.

    3.3 Task Planning: Can It Decompose Steps and Correct Course in Time?

    Complex tasks typically involve information gathering, conditional judgment, tool execution, and result verification. The model needs to adjust its next step based on feedback rather than mechanically executing the initial plan.

    For example, when organizing business records, an agent may need to retrieve materials, normalize fields, check for duplicates, and finally generate a report. If some materials cannot be read, the system should explicitly flag the gap rather than fabricate content to fill it.

    Evaluation should focus on the observable action sequence and final result—not on whether the model’s generated explanation looks complete. Planning ability only has business value when it translates into correct execution.

    3.4 Context Management: Can It Retain Key Information Across Longer Workflows?

    A large context window does not mean the model can reliably use everything in it. Key constraints can be drowned out by voluminous tool logs, and stale information can conflict with the latest state.

    At the engineering level, long-term materials, current task state, and short-term dialogue should be managed separately: retrieve long-term materials on demand, keep current state in structured form, and extract only the task-relevant portions of verbose tool results.

    Summaries can also lose information. Critical data—amounts, identifiers, permissions, user confirmation results—should be stored as original fields rather than relying solely on natural-language summaries.

    3.5 Latency and Throughput: Can It Match the Real Operating Rhythm?

    An agent’s total time consumption comes not only from model generation but also from multiple request rounds, tool execution, queuing, and retries on failure.

    Interactive assistants are typically sensitive to response time, while background batch processing may prioritize throughput. When selecting a model, record per-request latency, end-to-end task duration, and peak-load behavior separately.

    Overly complex planning and unnecessary repeated calls can make a more capable model deliver a worse user experience. Model configuration and workflow design need to be optimized together.

    3.6 Cost and Deployment Constraints: Can It Run Stably Over the Long Term?

    Cost cannot be measured by per-request pricing alone. Long contexts, repeated retries, tool overhead, infrastructure, and human review all affect total investment.

    You also need to clarify whether data is allowed to leave a specified environment, whether logs may contain sensitive content, whether deployment resources are sufficient, and whether a fallback path exists when failures occur.

    For enterprise scenarios, model quality, data governance, and operational capability should all enter the selection decision together.

    4. Build a Reproducible Evaluation Method Instead of Relying on Impressions

    4.1 Build the Task Set from Real Business

    Evaluation tasks should cover high-frequency needs, difficult cases, and high-risk operations. At minimum, they can be divided into the following categories:

    • Simple tasks: single-turn Q&A, field extraction, short-text organization.
    • Multi-step tasks: workflows requiring coordination across multiple tools.
    • Exception tasks: missing information, insufficient permissions, empty results, tool timeouts.
    • Risk tasks: operations involving deletion, sending, authorization, or sensitive data.
    • Long-workflow tasks: tasks requiring constraint retention and handling of repeated feedback.

    Each task should specify its inputs, permitted tools, success criteria, and prohibited behaviors. “The answer looks good” cannot be the scoring basis.

    4.2 Prioritize End-to-End Outcomes

    It is recommended to record the following metrics:

    Metric What It Addresses
    Task success rate Whether predefined business completion conditions are met
    Tool selection accuracy Whether appropriate tools were used
    Parameter validity rate Whether parameters pass structural and business validation
    Exception recovery rate Whether the agent can reasonably continue or stop after failures
    Human intervention rate How many tasks require manual correction
    End-to-end latency How long users wait for a usable result
    Cost per successful task The actual investment required to complete effective work
    Unauthorized or policy-violating actions Whether preset safety boundaries were crossed

    Among these, “cost per successful task” better reflects production value than per-call cost. It can be understood as:

    Cost per successful task = total operating cost during the evaluation period ÷ number of successfully completed tasks

    Total operating cost should, as far as possible, include model calls, tool usage, infrastructure, and human handling costs. If there are no successful tasks, this should be flagged separately rather than forcing the calculation.

    4.3 Control Variables and Run Repeated Tests

    When comparing models, keep task inputs, tool definitions, permission settings, and the runtime environment as consistent as possible, and record model versions and configurable generation settings.

    The same task should be run repeatedly to observe stability. The evaluation environment should be resettable—in particular, data modified by a previous run must not affect the next result.

    In addition, distinguish two types of evaluation: one keeps the workflow identical to isolate model differences; the other allows reasonable per-model adaptation to compare the best achievable application effect. These answer different questions and should not be conflated.

    5. Model Configuration Strategies: Single Model, Multiple Models, and Tiered Handling

    5.1 Establish a Baseline with a Single Model First

    When business workflows are not yet stable, a single-model setup is usually easier to debug. Developers can more clearly identify whether problems come from prompt organization, tool design, or model capability.

    Introducing complex division of labor only after evaluation reveals a clear cost or capability bottleneck is generally the safer path.

    5.2 Tier by Task Difficulty

    For simple extraction and formatting tasks, use a lower-cost, validated model configuration; for complex planning, cross-document analysis, and failure recovery, use a stronger configuration.

    Escalation conditions should be based on observable signals—parameter validation failures, missing key evidence, consecutive tool errors, or task complexity exceeding a preset range. Do not rely solely on the model’s self-reported “I’m confident” to decide whether to proceed.

    5.3 Multi-Model Division of Labor Carries Extra Overhead

    Separating planning, execution, and result checking can sometimes improve controllability, but it also increases call counts, latency, and state-synchronization difficulty.

    Multiple models can also make similar mistakes, so “having another model check it” is not equivalent to reliable verification. For amount calculations, field matching, and permission judgments, prefer deterministic programs or explicit rules.

    6. Security and Engineering Design Often Matter More Than Model Rankings

    6.1 Tools Should Follow the Principle of Least Privilege

    An agent should only be granted the permissions necessary for the current task. Read and write capabilities should be separated, and high-impact operations should require additional approval.

    For external sending, batch modification, and deletion, it is advisable to first generate a pending action list and execute only after confirmation. Confirmation content should specify the object, scope, and consequences—avoid blanket authorization.

    6.2 External Content Must Not Automatically Become Executable Instructions

    Retrieved documents, web content, and tool return values may contain text designed to induce the model to change its behavior. The system should treat such content as data to be processed, not as instructions equivalent to user authorization.

    Protection requires multiple layers: clearly separating instructions from data, restricting tool permissions, validating outputs, and reviewing high-risk operations. Writing “ignore malicious content” in the prompt alone does not constitute a complete security solution.

    6.3 Manage Side Effects, Retries, and Stop Conditions

    Read and write operations should use different retry strategies. After a write operation times out, do not assume it failed—verify the result first to avoid duplicate sends or duplicate modifications.

    The system should also set limits on task steps, runtime, and cost. When failures persist, information is insufficient, or permissions are lacking, it should stop and return what has been completed, the reason for failure, and items pending human handling.

    6.4 Keep Auditable Records

    It is recommended to log model versions, task identifiers, tool requests, execution results, state changes, and review information. Logs require sensitive-data handling and access control.

    The purpose of auditing is not to store every conversation, but to be able to answer: based on what information did the system perform what operation, and what was the final outcome?

    Step 1: Define business goals and success criteria, and clarify which operations are allowed to execute automatically.

    Step 2: Organize tool interfaces, filling in parameter constraints, error descriptions, and permission boundaries.

    Step 3: Select candidate models, build a single-model baseline, and evaluate capability and cost on real tasks.

    Step 4: Analyze failure causes, prioritizing fixes to engineering issues such as retrieval quality, tool descriptions, state management, and execution validation.

    Step 5: After the baseline stabilizes, try task tiering or multi-model division of labor, and re-measure end-to-end benefits.

    Step 6: Conduct exception and security testing, observe behavior in a limited rollout, then gradually expand the scope of use.

    8. Conclusion: Answer the Selection Question with Verifiable Task Results

    LLM selection for agents should not be decided by parameter scale, demo performance, or single benchmark scores. What truly matters is whether the model can—under explicit constraints—correctly understand tasks, reliably use tools, handle execution exceptions, and complete work within acceptable time and cost.

    For developers, the safest strategy is to first build a real-task evaluation set, then use execution records to locate problems, and finally optimize the model and workflow together. The right solution for a business is not necessarily the most capable or most expensive one—it is the one that continuously delivers verifiable results while keeping errors and risks under control.