AI Agent Selection Guide: Four Core Capabilities to Evaluate

    Choosing the right AI agent is harder than choosing a model. This guide breaks down four engineering capabilities that determine project success—persistent memory, tool ecosystems, code generation reliability, and context engineering—and offers a four-step framework for weighting them by scenario, plus a deployment checklist.

    1. Why Choosing an Agent Is Harder Than Choosing a Model

    When teams start an AI agent project, their first instinct is often to pick the “most powerful model.” But what really determines success is rarely model size. It is the four engineering capabilities around the agent: memory persistence, breadth of the tool ecosystem, reliability of code output, and efficiency of context organization. The original material uses the metaphor of a “private butler” to describe the first capability, and it captures the essence: a valuable agent must remember user preferences and task progress across sessions to keep delivering value over long-term collaboration.

    This article strips away product-specific attributes and abstracts these capabilities into four “role archetypes,” explaining the technical substance, applicable boundaries, and evaluation methods of each.

    2. The Four Role Archetypes and Their Technical Substance

    2.1 Long-Term Memory: Project Continuity Across Sessions

    The core of this archetype is not single-turn Q&A but state persistence. Technically, it usually has three layers:

    • Preference layer: structured storage of user habits (for example, “do not schedule meetings on Wednesday evenings” or “interface integration testing is blocked on a third-party callback”);
    • Task layer: breaking long-cycle goals into a to-do tree and recording the status and artifacts of each step;
    • Persona layer: using system prompts and style constraints to keep output in a consistent tone and within consistent behavioral boundaries.

    In engineering terms, this requires external storage (such as object storage, relational databases, and vector retrieval services) combined with periodic summary compression to avoid unbounded context growth. Evaluation should focus on: whether progress can be resumed after a one-week interruption, whether memory writes are auditable, and whether sensitive preferences can be erased.

    2.2 Tool Ecosystem: Controllable External Execution

    The essence of the second capability is structured invocation of external systems. Common industry approaches include Function Calling, Tool Calling, and standardized access layers such as the Model Context Protocol (MCP). The value lies in turning “chat” into “getting things done”: reading and writing files, querying monitoring metrics, operating container platforms, and driving local analysis tools.

    The risks are concentrated here too. The more tools there are, the larger the permission surface. It is advisable to follow the principle of least privilege, attach a timeout, a retry limit, and an idempotency key to each call, and introduce human confirmation for high-risk operations. Illustrative policy code:

    1. def guarded_call(tool, args, policy):
    2. if not policy.allows(tool, args):
    3. raise PermissionError(f"denied: {tool}")
    4. result = tool.run(args, timeout=policy.timeout)
    5. audit_log.write(tool, args, result.status)
    6. return result

    2.3 Code Generation: Engineering Output for Real Repositories

    The third capability emphasizes working in a real codebase: understanding the directory structure, following existing conventions, generating compilable patches, and running tests to verify them. What sets it apart from a “completion plugin” is the closed loop: generate, execute, read errors, and fix.

    To evaluate this capability, do not look only at demo results. Look at four metrics: the first-pass rate of patches, whether test regressions are introduced, the coherence of cross-file changes, and the adaptation cost for private dependencies and internal frameworks. In engineering terms, the agent should run in an isolated branch and container, and its output must go through the standard code review process.

    2.4 Context Engineering: Information Scheduling That Sets the Ceiling

    The fourth archetype is the most easily overlooked, yet it often determines the ceiling of the first three. Context engineering concerns which information enters the window, in what order, and when it is compressed or evicted. Common techniques include retrieval augmentation, layered summarization, structured memory tables, and tool-result trimming.

    A practical rule of thumb: when a task fails, first check whether the problem is “insufficient capability” or “the wrong information was provided.” Most production issues fall into the latter category.

    3. Selection Framework: Deriving Capability Weights from the Scenario

    A four-step decision process is recommended:

    1. Define the task cycle: one-off Q&A, an hour-level task, or a cross-week project? The longer the cycle, the higher the weight on memory.
    2. Inventory external systems: the number and risk level of systems to reach determine the investment in the tool ecosystem and permission model.
    3. Determine the output form: a textual conclusion, structured data, or a mergeable code change.
    4. Set compliance boundaries: data residency, audit trails, and human fallback steps.

    A sample weighting reference:

    Scenario Memory Tools Code Context
    Long-term project assistant High Medium Low High
    Ops and automation Medium High Medium Medium
    R&D productivity Medium Medium High High
    One-off analysis Low Low Low High

    4. Deployment Checklist

    • Is memory explainable, deletable, and rollback-capable?
    • Are all tool calls fully logged, and can failures be replayed?
    • Are code artifacts validated in an isolated environment and reviewed?
    • Does the context budget have a cap and a degradation strategy?
    • Is a human takeover entry point retained?

    5. Conclusion

    The four capabilities are not mutually exclusive. Most mature solutions are combinations: context engineering as the foundation, with memory, tools, and code capabilities layered on as needed. If you already use Baidu AI Cloud products, you can prioritize reusing general-purpose capabilities such as object storage, message queues, container platforms, log services, and monitoring and alerting, and focus your effort on the scenario and evaluation system rather than reinventing the wheel.