AI agent
A system in which a model decides its own next steps, calling tools in a loop until a task is done, rather than following a path your code fixed.
In more detail
Anthropic defines agents as systems where the model dynamically directs its own process and tool use, as opposed to workflows. They suit open-ended tasks whose steps cannot be known in advance, and they cost more, are harder to test and need budgets, permissions and human approval for risky actions.
Related terms
- agent loop — The cycle at the heart of an agent: the model reasons and requests tools, your code runs them, and the results go back until the model finishes or a limit stops it.
- workflow (LLM) — A system in which your code fixes the sequence of model calls and tools, as opposed to an agent that chooses its own steps.
- tool use — Letting a model ask your code to run named functions with arguments, so it can fetch data or take actions it cannot do in text.
- excessive agency — Giving a model-driven system more tools, permissions or autonomy than its task needs, so a fooled or mistaken model can do real damage.
Taught in
- What An AI Engineer Does — AI Engineering: LLM Apps, RAG & Agents
- The Request And The Response — AI Engineering: LLM Apps, RAG & Agents
- Reasoning Techniques — AI Engineering: LLM Apps, RAG & Agents
- From Prompts To Context — AI Engineering: LLM Apps, RAG & Agents
- Memory And Compaction — AI Engineering: LLM Apps, RAG & Agents
- When Context Fails — AI Engineering: LLM Apps, RAG & Agents
- What An Embedding Is — AI Engineering: LLM Apps, RAG & Agents
- How RAG Works And When To Use It — AI Engineering: LLM Apps, RAG & Agents
- Designing Tools A Model Can Use — AI Engineering: LLM Apps, RAG & Agents
- The Agent Loop — AI Engineering: LLM Apps, RAG & Agents
- Workflows Before Agents — AI Engineering: LLM Apps, RAG & Agents
- Planning, Memory And Many Agents — AI Engineering: LLM Apps, RAG & Agents
- Agent SDKs And Human Approval — AI Engineering: LLM Apps, RAG & Agents
- What MCP Is — AI Engineering: LLM Apps, RAG & Agents
- Build An MCP Server — AI Engineering: LLM Apps, RAG & Agents
- Connect An Agent To MCP — AI Engineering: LLM Apps, RAG & Agents
- Remote Servers And Trust — AI Engineering: LLM Apps, RAG & Agents
- Threat-Model An LLM App — AI Engineering: LLM Apps, RAG & Agents
- Prompt Injection — AI Engineering: LLM Apps, RAG & Agents
- Excessive Agency — AI Engineering: LLM Apps, RAG & Agents
- Model-Graded Evals — AI Engineering: LLM Apps, RAG & Agents
- Evaluating RAG And Agents — AI Engineering: LLM Apps, RAG & Agents
- Working With AI Coding Assistants — AI Engineering: LLM Apps, RAG & Agents
- Capstone: The Tasks Assistant — AI Engineering: LLM Apps, RAG & Agents