The Evolution of General-Purpose LLM Agents: Capabilities and Engineering Practices

    This article examines how general-purpose large language models are shifting from single-turn question answering to autonomous, multi-step task execution, and what that shift demands from engineering teams. It outlines a four-dimension capability profile—long-horizon planning, software and document generation, computer use and tool calling, and long-context multimodal input—then covers capability tiering, access control, a layered agent reference architecture, and the evaluation and cost metrics needed to move agents from demos into production.

    1. Background: The Shift from Answering Questions to Doing Work

    Over the past two years, the center of gravity for general-purpose LLM capabilities has moved from single-turn question answering toward closed-loop, multi-step tasks. Agent capability means a model can do more than generate text: it can call tools, operate software interfaces, browse the web, read and write files, and maintain goal consistency across a long workflow. This raises new requirements on the engineering side. The model is no longer an isolated inference endpoint but an “executor” inside the system, and it has to be designed together with permissions, auditing, sandboxing, and cost governance.

    Three areas of accumulated capability typically underpin this kind of behavior: knowledge and representation from the pre-training stage, task alignment and policy optimization from the reinforcement learning stage, and safety and controllability constraints from the model alignment stage. Only when all three are combined does the model behave more reliably on coding, research and analysis, interface operation, and complex multi-step tasks.

    2. Capability Profile: Four Dimensions of the New Generation of General-Purpose Models

    2.1 Complex Reasoning and Long-Horizon Planning

    The hard part of a long workflow is not correctness at any single step but state consistency. The model has to remember the goal, the constraints, and the actions already completed across dozens or even hundreds of steps, avoiding goal drift and repeated operations. In practice, teams usually introduce a “plan–execute–verify” loop that decomposes a large task into verifiable sub-goals.

    2.2 Software Engineering and Document Output

    Given a user-supplied template and formatting requirements, the model can produce documents, spreadsheets, and presentations, and it can also write and execute code. A practical recommendation is to separate generation from execution: generate inside a controlled sandbox, and run static checks plus a dependency allowlist before anything is executed.

    2.3 Computer Operation and Tool Calling

    Completing queries, retrieval, computation, and file handling through structured tool interfaces—rather than relying only on UI clicks—significantly improves stability. An illustrative call structure:

    1. {
    2. "tool": "web_search",
    3. "arguments": { "query": "long-context retrieval augmentation best practices", "top_k": 5 },
    4. "constraints": { "timeout_ms": 8000, "retry": 1 }
    5. }

    2.4 Very Long Context and Multimodal Input

    Context windows on the order of a million tokens, with maximum outputs in the tens of thousands of tokens, make whole-repository code understanding and long-report generation feasible. Text and image input extend this to interface understanding and chart interpretation. The longer the context, however, the more visible retrieval noise and attention dilution become, so layered retrieval and summary compression are needed alongside it.

    3. Safety Tiering: Keeping Capability Inside a Governable Boundary

    High-capability models must be paired with capability tiering and access control. A common industry practice is to classify high-risk capabilities—such as offensive and defensive security capabilities—as sensitive, release them first to vetted, restricted organizations, and then widen access gradually. In engineering terms, this can be implemented as three layers of control:

    • Identity and tenant layer: unified enterprise identity, project-level keys, least privilege.
    • Policy layer: sensitive tools require secondary approval, operations are logged, and outputs are redacted.
    • Runtime layer: sandbox isolation, an allowlist for network egress, and circuit breaking on anomalies.

    Red-team evaluation and pre-release security disclosure should also be established, so that capability disclosure, protection validation, and gradual rollout become a fixed part of the release process.

    4. Architecture: A Practical Layered Reference for Agents

    1. Access layer: a unified gateway handling authentication, rate limiting, quotas, and auditing.
    2. Orchestration layer: task decomposition, state machines, retries, and rollback.
    3. Capability layer: retrieval, code execution, browser operation, and file handling, all wrapped as tools.
    4. Data layer: object storage for artifacts, a message queue to decouple long-running tasks, and logging plus monitoring and alerting across the full chain.
    5. Governance layer: centralized management of cost accounting, quality evaluation, and compliance policy.

    On the cloud, this can be assembled from a container platform hosting the sandboxes, object storage holding intermediate artifacts, a message queue driving asynchronous tasks, and logging plus monitoring and alerting services providing observability. Where multi-region deployment and elasticity are required, these can be brought under unified management using the relevant general-purpose capabilities of Baidu AI Cloud.

    5. Evaluation and Cost: Avoiding “It Runs, but We Don’t Dare Use It”

    Evaluation should cover task success rate, average number of steps, tool-call failure rate, human takeover rate, and safety violation rate. On the cost side, the recommendations are: tiered context (hot data in the window, cold data retrieved), caps on output length, cache reuse, and routing by task value to models of different sizes. For embodied or real-time control scenarios, latency, physical-device stability, and fine-manipulation error also matter; general-purpose models are currently better suited as the planning and decision layer than as a low-level real-time controller.

    6. Conclusion

    The new generation of general-purpose LLMs is pushing agents from demos into production, but the real barrier is governance: permissions, sandboxing, evaluation, cost, and observability are all indispensable. With a layered architecture and gradual rollout as the main levers, enterprises can strike a sustainable balance between efficiency and risk.