AI Agents Explained: Why Moving From Chatbots to Digital Workers Requires New Capabilities
This article explains why the progress of multimodal foundation models is often underestimated when measured by benchmark rankings rather than task completion. It examines the shift in optimization goals from advisory question-answering to autonomous execution, outlining three engineering constraints: persistent state, verifiable actions, and recoverable failures. Key capabilities are broken down with Python examples, including long-horizon task execution, execution correction, and multi-agent collaboration. The article also covers a practical architecture, evaluation metrics, and how to build an observable execution framework.
1. Why Progress Is Often Underestimated
Over the past two years, the capability curve of multimodal foundation models has continued to rise, and the gap among leading models in long-context understanding, complex reasoning, and code generation has steadily narrowed. When a new generation of models is released, many developers’ first reaction is that it is “just another routine iteration.” This is because people are used to measuring progress by leaderboard rankings, and changes in rankings tend to be gradual and marginal.
However, if you shift your observation dimension from “whether the answer is correct” to “whether a task can be completed end to end,” the conclusion is completely different. The change in the measurement standard is the root cause of this round of progress being underestimated.
2. Shifting Optimization Goals: From Advisor to Executor
Traditional question-answering models are more like professional advisors: you ask a question, it provides a reference answer, and subsequent actions are still completed by humans. The agent mode requires the model to autonomously break down tasks, formulate plans, call tools, and execute operations after receiving a goal, while dynamically adjusting based on intermediate results.
This shift brings three engineering constraints:
- State must be maintained across steps and must not lose prior conclusions as context grows;
- Actions must be verifiable, with observable returns for every tool call;
- Failures must be recoverable, allowing retries and rollbacks rather than a one-time output.
3. Breaking Down Three Key Capabilities
3.1 Long-Horizon Task Execution
Complex workflows require repeatedly reading materials, calling APIs, and evaluating results. The core approach is context compression and memory layering: turning raw materials into searchable summaries and structured intermediate artifacts to reduce repeated reads.
# Example: Split a long workflow into "read - extract - persist - reuse"state = {"facts": [], "artifacts": {}, "todo": plan(goal)}for step in steps(goal):chunk = read(step.source) # Read only the necessary fragmentfacts = extract(chunk) # Structured extractionstate["facts"].extend(facts)state["artifacts"][step.name] = summarize(facts) # Persist for reusestate["todo"] = replan(state) # Update the plan based on new information
3.2 Execution Correction (Steerability)
It is common for users to change requirements midway. A viable approach is to retain completed artifacts and only replan affected nodes, avoiding a complete overhaul.
def on_new_request(state, req):affected = impact_analysis(state["todo"], req) # Locate affected stepsstate["todo"] = patch_plan(state["todo"], affected, req)return resume(state, from_node=affected[0]) # Resume from the breakpoint
3.3 Multi-Agent Collaboration
The main agent is responsible for planning and dividing responsibilities, sub-agents advance independent branches in parallel, and results are finally integrated. Engineering-wise, it is necessary to define clear interface contracts, idempotent writes, and conflict merging strategies.
4. Implementation Architecture and Engineering Essentials
- Access layer: Uniformly encapsulate model calls for easy replacement and canary release;
- Tool layer: Declare tool inputs and returns with standard descriptions, and implement timeouts, rate limiting, and retries;
- State layer: Use object storage to save intermediate artifacts and message queues to drive task flow;
- Observability: Use logging services and monitoring alerts to track per-step latency, failure rates, and costs;
- Permission layer: Route high-risk actions through manual confirmation and grant least privileges.
5. Evaluation Recommendations
Do not look only at single-turn question-answering metrics. Instead, build a task-level evaluation set: task completion rate, average number of steps, number of manual interventions, cost per task, and rollback success rate. Using real business samples for regression is the only way to reflect the true level of agent capabilities.
6. Conclusion
If an enterprise wants to build similar agent capabilities in its own environment, it can build a replaceable and observable execution framework based on the general cloud product capabilities provided by Baidu AI Cloud (such as container platforms, object storage, message queues, logging services, and monitoring alerts), truly translating model capabilities into deliverable business output.
