What an AI agent actually is, and the two meanings
A definition of "agent" in AI, where the word came from, how it differs from a workflow, and four tests for whether a thing genuinely qualifies.
- AI agent
- An AI agent is a software system that takes a goal, decides for itself which tools to call and in what order, and loops on its own output until the goal is met or a limit stops it.
The load-bearing word is decides. If the order of operations is fixed in your code, you have a program that calls a model. If the model picks the next step from what it just observed, you have an agent. Everything else — the framework, the vector store, the word "autonomous" in the README — is detail.
Where the word came from, and when
"Agent" is older than the current wave by about thirty years. Russell and Norvig's Artificial Intelligence: A Modern Approach, first published in 1995, defines an agent as anything that perceives its environment through sensors and acts on that environment through actuators. Chapter 2 of that book formalises the idea as PEAS — performance measure, environment, actuators, sensors — and the fourth edition, published in 2020, keeps the definition unchanged. Under that definition a thermostat is an agent. So is a chess engine. That is not a loophole; it is the point. The classical definition is about structure, not intelligence.
The language-model sense arrives in a tight sequence:
| Date | What landed | Why it mattered |
|---|---|---|
| Oct 2022 | ReAct paper (Yao et al., arXiv:2210.03629) | Interleaved reasoning and actions in one thought–action–observation loop, tested on HotpotQA, FEVER, ALFWorld and WebShop — the pattern almost every agent still uses |
| Feb 2023 | Toolformer (Schick et al., arXiv:2302.04761) | Models deciding which API to call, learned rather than hand-routed |
| Mar 2023 | AutoGPT (Significant Gravitas, 30 March 2023) | Public proof that a model could write its own subtasks and keep going |
| Jun 2023 | OpenAI function calling (13 June 2023, shipped with gpt-3.5-turbo-0613 and gpt-4-0613) | Tool selection became structured output instead of regex on prose |
| Nov 2024 | Model Context Protocol (Anthropic, 25 November 2024) | An open standard for wiring an agent to tools and data; OpenAI adopted it in its Agents SDK in March 2025 |
AutoGPT is the one people remember, and it is also the one that taught the first hard lesson: a loop with no cap will happily spend your money going in circles.
Two meanings. Label them.
The word is used for two different things, and most arguments about whether something "is really an agent" are just the two senses colliding.
Sense 1 — Agent (classical). Anything that perceives and acts. A system qualifies if it has a perception channel and an action channel, which is why thermostats, game AI, reinforcement-learning policies such as DeepMind's Atari DQN (published in Nature, February 2015) and robotics all sit inside the definition. No language model required.
Sense 2 — Agent (LLM, 2023–). A language model given a goal, a set of callable tools, and a loop that feeds the result of each tool call back as new context. The model, not the code, chooses the next call. This is what a vendor means in 2025 when they say "agent."
There is a third usage that is not a definition at all: "agent" as packaging for a chatbot with one database lookup bolted on. No runtime choice, no loop, one hop. That is a feature with a costume on. A model family is not an agent either — Hermes is a model family, not an agent makes that case at length.
What it is not: a workflow
The neighbouring term people confuse it with is workflow, and Anthropic's December 2024 engineering write-up "Building Effective Agents" draws the cleanest line available: workflows are systems where models and tools are orchestrated through predefined code paths; agents are systems where the model dynamically directs its own process and tool usage.
So: "fetch the page, summarise it, write the summary to the CRM" is a workflow, even if all three steps call GPT-5. "Find out what this company sells and put it in the CRM" is an agent, because step two depends on what step one returned and nobody wrote that branch.
It is also not RPA. A UiPath-style bot — UiPath was founded in Bucharest in 2005 and built its business on recorded UI selectors — replays a sequence of clicks and breaks when the button moves. An agent re-reads the screen and picks again; that capability shipped commercially with Anthropic's computer-use beta for Claude 3.5 Sonnet in October 2024 and OpenAI's Operator preview on 23 January 2025. Different failure modes, different debugging.
A worked example, with the specifics that matter
Inbound form fill arrives: name, work email, company domain. The job is to decide whether it is worth a human reply.
As an agent, with four tools registered: fetch_url, search, crm_lookup, crm_write.
The model calls crm_lookup on the domain first and gets back an existing open opportunity from eight months ago. That changes everything downstream. It skips the research it would otherwise have done and calls fetch_url on the company's careers page instead, because the open question is now whether the team that owned the old deal still exists. Three job listings for the same function come back. It calls search once to check for a funding announcement, finds nothing, and writes a four-line note to the CRM with crm_write.
Four tool calls. Nobody wrote the branch where an existing opportunity sends it to the careers page. That branch is the agent part.
Now the same job as a workflow: look up CRM, fetch homepage, summarise, score, write. Five steps, every time, in that order. Cheaper, more predictable, easier to test, and completely blind to the fact that the lead was already in the pipeline. Both are legitimate builds. The workflow is the right first build — see you don't replace employees with AI, you replace loops — and you upgrade to an agent when the branching is real and not before. Starting with the agent because it demos better means paying per token for a loop that re-researches accounts you already own.
The cap goes in the harness, not the prompt. The OpenAI Agents SDK, released in March 2025, exposes this as max_turns on Runner.run, which raises MaxTurnsExceeded when the loop exceeds it; LangChain's AgentExecutor exposes the same idea as max_iterations. Unbounded looping is the most common production failure for this class of system, and asking the model nicely to stop is not a control. The control is code that refuses the next iteration. I wrote that up separately in an autonomous agent is a while loop with a step cap.
Four tests for whether it qualifies
- Remove the loop. Does it still work? If yes, it was a workflow. An agent that only ever takes one pass is a function call with marketing attached.
- Can the model change the order? Name a run where the sequence differed from the last run because of what came back from a tool. If you cannot, the control flow lives in your code.
- Does it act, or only answer? Writes to a CRM, a repo, a calendar, a payment rail. Retrieval-augmented question answering — the pattern named in Lewis et al.'s 2020 RAG paper — is not action; it is reading.
- Who stops it? There should be a specific cap — turns, tokens, wall-clock, or spend — enforced outside the model, with a named exception when it trips.
A system that passes 1, 2 and 4 but fails 3 is a research assistant. Useful, not an agent.
I ran Metadata.io from $0 to $15M ARR on software that automated paid-campaign execution, and I hold six patents from that period, almost all of them on things that look like step 3 — systems that act. The part I would still hold back today is unsupervised spend authority. Give an agent read access to everything and write access to one narrow surface you can reverse. That is a judgement, not a benchmark, and it is the one I apply on the zero-human company work. If you want the smallest honest version of the thing, it fits in one file: build your first AI agent in one Python file.
Sources
- Artificial Intelligence: A Modern Approach (Russell & Norvig) — The classical definition of an agent as something that perceives an environment and acts on it; first edition 1995.
- ReAct: Synergizing Reasoning and Acting in Language Models — October 2022 paper that established the reason-then-act interleaved loop used by nearly every LLM agent since.
- Toolformer: Language Models Can Teach Themselves to Use Tools — February 2023 paper on models deciding which API to call.
- AutoGPT repository — The March 2023 project that popularised the self-looping goal-driven agent in public.
- OpenAI: Function calling and other API updates — 13 June 2023 — tool selection became a structured model output instead of parsed text.
- Anthropic: Building effective agents — The workflow-versus-agent distinction: predefined code paths vs the model directing its own process and tool use.
- Anthropic: Introducing the Model Context Protocol — 25 November 2024 — the open standard for connecting agents to tools and data sources.
- OpenAI Agents SDK — Running agents — max_turns argument and the MaxTurnsExceeded exception: a step cap enforced in the harness, not by the model.
- Model Context Protocol specification — Tool, resource and prompt primitives an agent can be given access to.