# What Is an AI Agent? A Working Definition With Examples

> What is an AI agent? A working definition from Anthropic, OpenAI and Google sources, how agents differ from workflows, five examples and their limits.

- Author: Naman Gundaniya (https://hellonaman.com)
- Published: 2026-11-20
- Updated: 2026-11-20
- Canonical URL: https://hellonaman.com/blog/what-is-an-ai-agent

An AI agent is a software system in which a language model decides its own next step: it chooses a tool, reads the result and repeats until the goal is met or a limit is reached. Definitions published by Anthropic, OpenAI and Google all centre on that autonomy. A system that follows a fixed, pre-written path is a workflow, even when a model does the work at every step.

"Agent" is used for everything from a support chatbot to a system that ships code overnight, so the word needs pinning down before it is useful. This post takes the definitions from the companies that build the models, turns them into one working test, and shows what agents look like and where they fail.

## How do Anthropic, OpenAI and Google define an AI agent?

Anthropic, OpenAI and Google each define an AI agent as a model-driven system that acts towards a goal with some independence, and they differ mainly in emphasis. The wording below is quoted from each company's own documentation as of late 2026.

| Source | Definition |
| --- | --- |
| Anthropic, [Building effective agents](https://www.anthropic.com/engineering/building-effective-agents) | Agents are "systems where LLMs dynamically direct their own processes and tool usage" |
| Anthropic, [Claude Agent SDK documentation](https://code.claude.com/docs/en/agent-sdk/overview) | "An agent is an application that completes a task by planning its own steps and calling tools" |
| OpenAI, [agents guide](https://developers.openai.com/api/docs/guides/agents) | "Agents can plan and complete tasks using tools, work with other agents, and maintain context across steps" |
| OpenAI, [Agents SDK documentation](https://openai.github.io/openai-agents-python/) | Agents are "LLMs equipped with instructions and tools" |
| Google, [Agent Development Kit documentation](https://adk.dev/agents/) | An agent is "a self-contained execution unit designed to act autonomously to achieve specific goals" |

Put together, four ingredients appear in every definition: a model, a goal, tools that act on the outside world, and a loop in which the model chooses what happens next. The working test I use is one question: who decides the next step? If the answer is "the model, at run time", the system is an agent. If the answer is "the code, written in advance", it is not.

## What is the difference between a workflow and an agent?

A workflow follows a path that a developer wrote in advance, while an agent chooses its path as it goes. Anthropic draws the line in exactly those terms: workflows are "systems where LLMs and tools are orchestrated through predefined code paths", and agents are systems where the model directs its own process. Anthropic calls both kinds "agentic systems".

![Two-lane diagram comparing a workflow with an agent. In the top lane, a workflow runs four boxes in a straight line: input, a model step that extracts, a model step that drafts, and output, with the same steps in the same order on every run. In the bottom lane, an agent starts from a goal and reaches a box labelled model decides. From there the model either sends a tool call down to a run a tool box and receives the result back, repeating as many times as the task needs, or moves right to a done box when the goal is met or a limit is reached.](https://hellonaman.com/blog/what-is-an-ai-agent/diagram.svg)

*A workflow's path is fixed in code. An agent's path is chosen by the model at run time.*

The distinction matters because it predicts behaviour. A workflow does the same thing every time, so it is easy to test and its cost is known. An agent can handle a task nobody anticipated, and for the same reason it can take a route nobody anticipated.

Real systems mix the two. Anthropic lists common workflow patterns such as prompt chaining, routing, parallelization, orchestrator-workers and evaluator-optimizer, and Google's Agent Development Kit describes graph workflows that pair model reasoning with deterministic code. A sensible design keeps the fixed parts fixed and gives the model freedom only where the task needs it.

## How does an AI agent work, step by step?

An AI agent works by running a loop: the model proposes an action, the application carries it out, and the result goes back to the model. Anthropic describes agents as "typically just LLMs using tools based on environmental feedback in a loop". The mechanics, as set out in [OpenAI's function calling guide](https://developers.openai.com/api/docs/guides/function-calling), are:

- **The application sends the goal and a list of tools.** Each tool is described by a name, a description and a schema for its inputs.
- **The model replies with a tool call.** It does not run anything itself. It asks for a specific tool with specific arguments.
- **The application executes the tool.** This is ordinary code: a database query, an API request, a file edit.
- **The result is sent back to the model.** The model now knows what happened.
- **The model decides again.** It either calls another tool or produces a final answer.

Three controls sit around that loop in any serious build. A stopping condition, such as a maximum number of iterations, keeps a confused agent from running forever. Checkpoints let the agent pause for human feedback, which I cover in [human-in-the-loop approvals for AI agents](https://hellonaman.com/blog/human-in-the-loop-ai-agents). And tools are increasingly supplied through a standard interface, which is what [the Model Context Protocol](https://hellonaman.com/blog/what-is-mcp) is for.

## What do AI agents look like in practice?

AI agents in practice are narrower than the word suggests: each of the five examples below has a clear goal, a small set of tools and a defined way to stop.

- **A coding agent.** Given "fix the failing test", it reads files, runs commands, edits code and runs the tests again. The Claude Agent SDK documentation describes exactly this set of tools: reading, writing and editing files, running commands and searching the web.
- **A research agent.** Given a question, it searches, opens sources, takes notes and writes a synthesis with references. The number of searches is not known in advance, which is why a fixed workflow fits poorly.
- **A support agent.** It looks up the customer's order, checks the refund policy, proposes a resolution and hands the conversation to a person when the case falls outside its rules.
- **A delivery agent.** One of my own projects, [AgentOps](https://hellonaman.com/work/agentops-multi-agent-delivery), turns a request posted in Slack into a specification, tickets, a pull request and a preview deployment, with a human approval step at each hand-off between agents.
- **A voice agent.** It answers a phone call, asks clarifying questions, checks a calendar through a tool and books the appointment, all within the turn-taking limits of a live conversation.

None of these is a general-purpose assistant. Each one works because the goal, the tools and the exit are specific.

## What are AI agents bad at?

AI agents are bad at tasks where predictability, speed or low cost matters more than flexibility. The limits below come from the vendors' own engineering guidance.

- **Predictable tasks.** If the steps are known, a workflow is cheaper and more reliable. Anthropic notes that agentic systems "often trade latency and cost for better task performance" and recommends "finding the simplest solution possible".
- **Tight budgets.** In a [June 2025 engineering post](https://www.anthropic.com/engineering/multi-agent-research-system), Anthropic reported that agents typically use about four times more tokens than chat interactions, and multi-agent systems about fifteen times more.
- **Long chains without checks.** Anthropic warns of "the potential for compounding errors": a small mistake at step three shapes every step after it. An agent needs a way to verify its own work, and the team needs [evaluations that catch failures before users do](https://hellonaman.com/blog/ai-agent-evaluation).
- **Untrusted input.** An agent that reads web pages, emails or documents can be steered by instructions hidden in them. The risk grows with what the agent is allowed to do.
- **Irreversible actions.** Sending money, deleting records and emailing customers should sit behind an approval step or outside the agent's reach.

The practical conclusion is not that agents are unreliable. It is that an agent should get the open-ended part of a job, with fixed code, limits and human review around it. Anthropic's guidance for exactly this reason recommends extensive testing in sandboxed environments and appropriate guardrails.

## When is an AI agent the right tool?

An AI agent is the right tool when the steps cannot be listed in advance, the task is valuable enough to justify several model calls, and a mistake can be caught or undone. Research across unknown sources, debugging and triage of varied requests all fit that description. Anthropic's guidance adds a useful caution: the simplest solution "might mean not building agentic systems at all".

On client projects I ask three questions before proposing an agent:

- **Could a competent new hire follow a written checklist for this?** If yes, write the checklist as a workflow.
- **Is there a clear way to tell that the job is finished and correct?** Tests passing, a form validated, a record matching. Without that, the agent cannot check itself and neither can you.
- **What is the worst action available to it?** If the answer is uncomfortable, narrow the tools or add an approval step before going further.

An agent that passes all three is usually a small one, with a handful of tools and a tight goal. That is a strength, not a compromise.

## Work with me

I design and build agents for teams abroad, working remotely from India, and I start by deciding which parts of the job need an agent at all. See [AI agent development](https://hellonaman.com/services/ai-agent-development) and [workflow automation](https://hellonaman.com/services/workflow-automation), or browse [my work](https://hellonaman.com/work) and book a scoping call to talk through your use case.

## FAQ

### Is a chatbot an AI agent?

Usually not. A chatbot that answers questions from its training or a knowledge base produces text and stops. It becomes an agent when it can call tools and decide for itself which ones to use across several steps, for example looking up an order and then issuing a refund.

### What is the difference between an AI agent and agentic AI?

"Agentic AI" is the broader term. Anthropic uses "agentic systems" to cover both workflows, where code fixes the path, and agents, where the model chooses it. An AI agent is one kind of agentic system, the kind with the most autonomy.

### Do AI agents need a framework?

No. The core loop is a short piece of code against a model API, and Anthropic suggests starting with model APIs directly. Frameworks help with saved state, tracing and approvals. I compare the main options in [AI agent frameworks compared](https://hellonaman.com/blog/ai-agent-frameworks-compared).

### Can an AI agent run without human supervision?

It can, within limits you set. Stopping conditions, restricted tools and sandboxed environments make unattended runs safer, and low-risk tasks such as research or drafting suit them. For actions that are costly or hard to undo, a human checkpoint remains the sensible default.

## Sources

- [Building effective agents (anthropic.com)](https://www.anthropic.com/engineering/building-effective-agents)
- [Claude Agent SDK documentation (code.claude.com)](https://code.claude.com/docs/en/agent-sdk/overview)
- [agents guide (developers.openai.com)](https://developers.openai.com/api/docs/guides/agents)
- [Agents SDK documentation (openai.github.io)](https://openai.github.io/openai-agents-python/)
- [Agent Development Kit documentation (adk.dev)](https://adk.dev/agents/)
- [OpenAI's function calling guide (developers.openai.com)](https://developers.openai.com/api/docs/guides/function-calling)
- [June 2025 engineering post (anthropic.com)](https://www.anthropic.com/engineering/multi-agent-research-system)
