AI Agents: From Chatbots to Digital Workers—The Technical Turning Point
This article examines the shift in how AI models are evaluated: away from single-turn answer quality and toward end-to-end task completion, step efficiency, cost control, and recoverability. It profiles three agent scenarios—batch document and report analysis, issue localization in large codebases, and reproducible research and data analysis—and breaks down three core engineering capabilities: long-horizon execution, task course correction, and multi-agent collaboration. It closes with practical deployment advice and evaluation methods for teams building agents in production.
1. What Actually Surprised People
Over the past two years, most discussions about model capability revolved around leaderboard rankings: who gained a point or two on a given benchmark, who got slightly faster at code completion. When a new generation of models shifted its focus from “answering more accurately” to “finishing the job,” many people were caught off guard. The surprise came not from a sudden jump in capability, but from a shift in the evaluation criteria—the object of measurement moved from the quality of a single response to the completion rate, latency, and cost of end-to-end tasks.
In other words, the coordinate axes of the discussion changed. Benchmarks centered on conversational experience can hardly reflect whether a model still remembers the original goal after dozens of operations. Understanding this is the prerequisite for understanding the current wave of technical progress.
2. The Shift in Focus: From Correct Generation to Complete Execution
Early optimization goals for large models were highly concentrated: reducing factual errors, improving text fluency, and extending the context window. This work addressed “saying the right thing.” What enterprises are actually willing to pay for is “getting it done”: batch file parsing, moving data across systems, modifying code and running regression verification, processing experimental data, and producing interim conclusions.
The two types of goals place very different demands on a model. Generation tasks allow a one-shot result with a low cost of failure; execution tasks are a process with a feedback loop, where an error in any step propagates backward and gets amplified. As a result, evaluation criteria for agent scenarios include at least four dimensions:
- Task completion rate: the proportion of tasks that actually deliver usable results within a given budget;
- Step efficiency: the number of tool calls and reasoning rounds required to reach the same goal;
- Cost controllability: the inference and tool overhead per task;
- Recoverability: whether the system can diagnose its own errors and return to the right track.
Notably, raising the agent capability ceiling does not necessarily depend on scaling up parameters. Context compression strategies, batching of tool calls, early stopping of ineffective steps, and caching and result reuse can all significantly improve speed and cost without sacrificing quality. This is also the main focus of the current round of engineering optimization.
3. Capability Profiles for Three Concrete Scenarios
Batch document and report analysis. Faced with dozens of spreadsheets, invoices, and explanatory documents, the manual process is to open each one, extract fields, align definitions, create charts, and write conclusions. Handed to an agent, the flow becomes: enumerate inputs, dispatch parsing strategies by type, extract key fields, run consistency checks, and aggregate into structured results. The difficulty lies not in extraction itself, but in handling conflicting definitions and anomalous data—this requires the model to actively flag uncertain items rather than fabricate a plausible-looking number.
Issue localization in large codebases. A project that has accumulated over several years with hundreds of files often has defects that cross module boundaries. An effective approach is to have the model first build an overview of call relationships and dependencies, then narrow the search scope based on error stacks, logs, and recent changes, and finally make the modification and run tests to verify. The key constraints here are “minimal changes” and “must verify”: a change that has not passed tests should not be considered complete.
Research and data analysis. For this type of task, the evaluation criterion is not text quality but whether conclusions are reproducible. Intermediate artifacts (data cleaning scripts, parameter configurations, experiment logs) therefore need to be fully preserved to form a traceable chain.
4. Engineering Breakdown of Three Core Capabilities
4.1 Long-Horizon Task Execution
Failures in long workflows mostly stem from context management rather than insufficient reasoning ability. Available strategies include: summarizing and compressing file contents while retaining location information to avoid repeated reads; writing intermediate conclusions to external memory (files or structured storage) and placing only an index in the context; and trimming and structuring tool return results to filter out irrelevant fields.
# Illustration: external memory + context trimmingmemory = {} # persist intermediate conclusionsdef step(goal, ctx_window):plan = planner(goal, memory) # inject only index and summaryresult = tool_call(plan)memory[plan.key] = summarize(result)return trim(ctx_window, keep=plan.key)
4.2 Task Course Correction (Controllability)
Mid-course requirement changes are the norm. A healthy agent should not start over from scratch, but should preserve completed work products and make incremental adjustments: identifying which conclusions are still valid, which must be recomputed, and which need to be discarded. In engineering terms, this can be achieved by tagging intermediate artifacts with versions and dependency relationships, and performing minimal recomputation along the dependency graph when changes occur.
4.3 Multi-Agent Collaboration
Complex tasks can be decomposed into parallelizable subgoals, with a coordinator responsible for planning, dispatch, and result integration. Three things must be made explicit in practice: the boundaries and delivery format of subtasks, the resource limits for concurrency, and the arbitration rules for conflicting results. Parallelism without an arbitration mechanism often just aggregates errors faster.
5. Deployment Advice and Evaluation Methods
- Start narrow, then broaden: pilot scenarios with fixed steps and automatically verifiable results, such as log inspection and report reconciliation;
- Enforce a verification loop: make testing, validation, and manual spot checks mandatory steps in the workflow;
- Ensure full-chain observability: record the input, output, latency, and failure reason of each step to help determine whether the problem lies with the model or the process;
- Apply least privilege: grant tool and data access per task, and require approval for write operations and external calls;
- Keep evaluation sets close to reality: build regression sets from real, anonymized tasks, while tracking completion rate, step count, and unit cost.
When implementing on the cloud, you can combine object storage to hold inputs and artifacts, message queues to decouple tasks, container platforms to host execution environments, and logging services with monitoring and alerting to ensure observability. These general-purpose capabilities form the foundation for running agents. In such engineering practice, Baidu AI Cloud typically provides support through these general-purpose capability categories as well.
6. Conclusion
The core of this round of progress is not the refresh of any single-point metric, but the fact that models are beginning to be designed and evaluated as execution entities. For developers, the real threshold has shifted from “knowing how to write prompts” to “being able to decompose tasks so they are verifiable, recoverable, and collaborative.” Whoever consolidates this engineering methodology first will be the first to capture the benefits of agent deployment.
