AI Agents: Three Years of Evolution from Chatbots to Executable Systems
The shift from chatbots to AI agents is less about models gaining new autonomy than about building systems that combine goals, tools, memory, and verification. This article traces that evolution through tool calling, agent loops, multi-agent collaboration, and persistent assistants, then explains the permissions, observability, evaluation, and rollback mechanisms needed for reliable production deployment.
From Talking to Doing: What Actually Changed?
Three years ago, most users encountered AI through a simple interface: enter natural language in a text box and receive text in return. These products, commonly called chatbots, focused on language understanding and generation. Their value lay primarily in explaining concepts, drafting documents, translating text, and brainstorming. The interaction model was straightforward: one user message led to one model response, with state largely confined to the current conversation context.
Today, the same class of foundation models operates inside more complete software systems. These systems can inspect code repositories, edit files, run tests, search knowledge bases, generate charts, summarize email, and work through longer tasks in stages.
The key change is not that models have suddenly become conscious. It is that systems have evolved from single-turn text mapping into closed-loop execution with goals, tools, memory, and verification. Developers now need to understand more than prompt design. They must also decide how to decompose tasks, constrain permissions, detect failures, and roll back changes.
From an engineering perspective, this evolution spans several layers: conversational capabilities, tool use, agent loops, collaboration, and the practices required to turn those capabilities into production software.
Stage 1: Conversational Models Made Natural Language an Interface
Chatbots lowered the barrier to interacting with software. Previously, users needed menus, forms, or APIs to access functionality. Conversational models allowed them to describe their intent in everyday language.
These systems typically relied on large pretrained language models, followed by instruction alignment to make their responses better match question-and-answer interactions.
Four technical characteristics defined this stage:
- Context served as state. Systems placed conversation history in the context window. Larger windows could retain more detail, but increased cost and latency. Information farther back in the conversation could also become less influential.
- Responses were generated without external action. A generation pass produced an answer, usually without observable interaction with external systems along the way. The model could sound confident without checking facts or executing commands.
- Evaluation was often subjective. Fluency, politeness, and breadth of coverage frequently received more attention than whether the system had completed a verifiable task.
- Failures centered on hallucinations and inappropriate recommendations. Models could mistake plausible wording for factual accuracy or recommend operations without understanding the relevant permission boundaries.
For developers, the best approach at this stage was to treat the model as a drafting engine, not a source of truth. Important conclusions needed to be traceable to documents or data. User-facing answers needed a defined scope. Operational content should remain instructions for a human to execute.
Stage 2: Tool Calling Moved Models from Describing the World to Querying It
When models rely only on information stored in their parameters, they struggle with current information, private data, and exact calculations.
A widely adopted solution was to have the model produce a structured action request. An external program would execute that request and feed the result back to the model. Typical actions included searching a knowledge base, querying a database, calling an internal business API, performing controlled calculations, and reading or writing files in object storage.
Tool calling changed the division of responsibility:
- The model selects and orchestrates actions. It determines whether to retrieve information, perform a calculation, or ask the user for clarification.
- Tools provide concrete results. Retrieval returns source references, calculations return values, and business APIs return authoritative system state.
- The application enforces permissions. Which identity may use which tool, whether parameters are valid, and whether results may be shown to the user are application-level decisions—not choices left to the model.
A minimal loop can be expressed in pseudocode:
while task_is_incomplete and step_limit_not_reached:decision = model(goal, known_observations, available_tool_descriptions)if decision is final_answer:return decision.contentobservation = execute_with_sandbox_and_permission_policy(decision.tool, decision.arguments)append_observation_to_trace(observation)return timeout_or_failure_explanation
Three engineering details are easy to overlook.
First, tool descriptions must clearly specify parameter meanings, required fields, and failure codes. Otherwise, the model may guess arguments.
Second, tool results need truncation and redaction before entering the context. Secrets, personal information, and excessive logs should not be passed through unchanged.
Third, every step must be traceable: who initiated it, which tool was called, what it returned, and which observations supported the final result.
Retrieval-augmented generation, or RAG, is one of the most common applications of tool use. The mechanism is straightforward: retrieve relevant passages from a document collection, then ask the model to answer from those passages and cite its sources.
RAG reduces unsupported fabrication, but it does not fix outdated or contradictory source documents. Knowledge-base updates, document chunking, permission filtering, and citation presentation therefore matter as much as model selection.
Stage 3: Agent Loops Turned Single Actions into Multi-Step Delivery
A single tool call works well for looking up a number or finding a document. Real office and software-development tasks usually involve several steps: clarify requirements, plan, execute, check results, and revise.
The agent loop emerged to support this workflow. The model cycles through planning, action, and observation until it meets a completion criterion or reaches a stopping condition.
A common approach interleaves reasoning and action in a shared trajectory so that each subsequent step can use the results of the previous one. Engineers do not need to commit to one fixed template. They should instead check whether the loop includes the following elements:
- An explicit goal. A user request should become a verifiable definition of completion—for example, “all tests pass and the change summary is written,” rather than “help as much as possible.”
- A revisable plan. Start with a rough plan and adjust it when errors occur, rather than generating a long, irreversible script at the outset.
- Step and cost limits. Unbounded loops can stall, repeat tool calls, and amplify mistakes.
- Observation-driven decisions. The next action should follow from tool results, test output, or user confirmation—not merely the model’s own assertions.
- Multiple stopping conditions. Success, unrecoverable errors, insufficient permissions, and the need for a human decision should all allow a clean exit.
Agent failures are more costly than chatbot failures. An agent may edit the wrong file, send an incorrect notification, or perform a dozen actions based on a faulty assumption.
The loop itself is therefore only part of the capability. Guardrails determine whether the system is ready for production. These include sandboxed execution, read-only defaults, confirmation before writes, directory allowlists, outbound network restrictions, keeping secrets out of prompts, and complete audit logs.
Stage 4: Subtasks and Multi-Agent Systems Address Attention and Specialization
When one agent loop must interpret product requirements, modify code, and perform a security review, its context can become overloaded and its responsibilities unclear. A common response is to split the work.
- Subagents: A coordinator manages the task graph and acceptance criteria, while narrower subtasks handle research, implementation, or checks in cleaner contexts. Each subtask returns a compact conclusion with evidence, rather than all its intermediate output.
- Role separation: A planner, executor, and reviewer can have distinct responsibilities. The reviewer has no write permissions by default and raises objections based on diffs and test results. Separating generation from review reduces self-confirmation bias.
- Team-style collaboration: Multiple execution units work in parallel on independent subproblems, and an aggregator combines their results. Parallelism requires separable tasks and either locking or clear ownership of shared state. Otherwise, agents can overwrite one another’s work.
Division of labor introduces costs of its own: communication protocols, duplicated context, and conflicting conclusions.
If subtask interfaces are vague, a system may appear to have completed everything while leaving responsibility unclear. Practical interfaces should define inputs, outputs, completion criteria, escalation paths for failures, and which conclusions require supporting evidence.
Stage 5: Persistent Assistants Depend on Continuity and Permissions
An “always-on assistant” is sometimes presented as an all-purpose autonomous system. Architecturally, its main additions are persistence and event triggers.
Rather than waiting only for a user request, a short agent loop can be triggered by a calendar event, message queue, repository event, or monitoring alert. This suits tasks such as tracking progress, summarizing unread information, and drafting repair suggestions when tests fail.
It should not mean running a background process with unrestricted access to every account. A reasonable personal or team assistant typically has these properties:
- Read-only access by default, with approval required for writes.
- A defined list of supported tasks, with anything outside that scope escalated to a person.
- A budget for each activation, covering steps, latency, and cost.
- Templates and sensitive-content rules for automatic external replies to reduce mistaken messages.
- Separate short-term conversation memory and long-term preferences, with long-term memory available for inspection and deletion.
A more capable “super assistant” is usually not a mysterious new model. It is more often a combination of broader tool access, more reliable orchestration, stricter evaluation, and a higher level of automation.
That automation should be introduced gradually: first recommendations, then drafts, then sandboxed execution, and only afterward automatic submission of low-risk, reversible actions. Skipping these stages is a common source of incidents.
Building Agents as Software: Loop Engineering and Observability
Model behavior can drift, tools can time out, and user goals can be ambiguous. Agent systems therefore need software-engineering discipline, not just an impressive demonstration.
Task Contracts
Represent goals, constraints, input materials, and acceptance methods as structured fields. Natural language remains the entry point, but the request should become a task contract before execution begins. If the contract is incomplete, ask questions rather than proceeding immediately.
Traces and Replay
Record a decision summary, tool name, argument hash, result status, and duration for every step. Production issues should be replayable instead of leaving only a final message saying “completed.”
Evaluation Sets
Cover at least three categories: normal execution, tool failures, and adversarial or ambiguous instructions.
Do not evaluate only whether the final answer sounds natural. Also measure task success, unnecessary steps, attempts to exceed permissions, human handoff rates, and rollback rates.
Human Checkpoints
Require a pause before irreversible actions, external communications, permission escalation, and changes to the task goal.
Human involvement is not a system failure. It aligns model uncertainty with business responsibility.
Cost Control
Long contexts, repeated loops, and parallel subtasks all increase model calls. Cache stable retrieval results, compress historical observations, and use smaller models for low-risk steps. Reserve more capable models for planning and resolving disputed conclusions.
Production Infrastructure
In enterprise deployments, compute, storage, messaging, logging, and access control commonly rely on general-purpose cloud services:
- Containers or functions run tool sandboxes.
- Object storage holds artifacts.
- Message queues support event-triggered activation.
- Logging, monitoring, and alerts capture execution traces and anomalies.
- Identity and access management enforce least privilege.
When evaluating a platform such as Baidu AI Cloud, the priority should be whether resource isolation, auditing, and elastic scaling meet the organization’s compliance requirements—not handing business judgment to a model endpoint.
Specific quotas, API parameters, and performance figures must come from official documentation and direct testing, rather than assumptions based on previous experience.
A Practical Framework for Evaluating AI Agents
Developers can assess an “intelligent” feature with five questions:
- Is completion verifiable, or does it merely feel satisfactory?
- Do critical facts come from tool observations or model memory?
- Are writes disabled by default, and can failures be rolled back?
- Does the loop have step, time, and cost limits?
- When something fails, can a person quickly identify whether the problem lies in the decision, the tool, or the data?
The central shift over these three years has been embedding a conversational text model inside a system with goals, tools, stopping conditions, and clear responsibility boundaries.
Conversation remains the entry point, but value increasingly comes from closed-loop execution. For individuals, that means assistance with retrieval, drafting, and routine checks. For enterprises and developers, it means designing permissions, evaluations, and rollback alongside the agent’s capabilities.
The real engineering task is to turn “it seems able to do this” in a demo into “it reliably completes this within defined constraints” in production.
