An AI agent is a system where a large language model does not just respond once — it operates in a continuous loop, taking actions, observing results, and deciding what to do next until a goal is acco
An AI agent is a system where a large language model operates in a continuous loop — taking actions, observing results, and deciding what to do next until a goal is accomplished. This is a fundamental shift from the chatbot model.
A chatbot answers. An agent does.
ReAct (Reasoning + Acting) is the foundational pattern. The model alternates between Thought (reasoning) and Action (tool call). Modern APIs encode this implicitly — the model reasons internally before emitting a structured tool call.
| Chatbot | Agent | |---|---| | Single request → single response | Multi-step loop until goal is met | | Stateless | Maintains working memory | | No external actions | Calls tools, APIs, runs code |
Claude Code — Reads your project, writes code, runs tests, observes failures, iterates — all from one natural language instruction.
Customer Service Agent — Looks up an order, checks shipping via API, drafts a resolution, logs the interaction.
Research Agent — Searches the web, reads pages, synthesizes information, produces a cited report.
Three things converged: models got good enough to reliably choose correct tool calls; context windows grew to 100K-200K tokens; and tool use became a first-class API feature across Anthropic, OpenAI, and Google.
Have a follow-up question about this topic?
Ask AI