---
title: "AI agents"
description: "AI agents explained for engineers: the agent loop, agentic workflows, memory and multi-agent systems, plus a comparison of AI agent frameworks."
type: "topic-hub"
canonical_url: "https://theaiengineering.com/topics/ai-agents"
markdown_url: "https://theaiengineering.com/topics/ai-agents.md"
author: "The AI Engineering Editors"
publisher: "The AI Engineering"
keywords: ["ai agents","what is an ai agent","agentic ai","ai agent frameworks","multi agent systems","agentic workflows"]
citation: "The AI Engineering Editors. \"AI agents.\" The AI Engineering. https://theaiengineering.com/topics/ai-agents"
---

# AI agents

Models that plan, call tools and act, and the frameworks used to build them.

An AI agent is a system in which a language model decides which actions to take, calls tools to take them, observes the results and repeats until a goal is met. Agentic workflows constrain that loop with fixed steps; autonomous agents leave more of the plan to the model.

The guides here cover how the agent loop works, where agents fail, how memory and multi-agent orchestration are built, and how the major frameworks compare.

## AI agents guides

- [Agentic workflows: five patterns and when to use each](https://theaiengineering.com/articles/agentic-workflows): Agentic workflows run LLM and tool calls through steps fixed in code. Learn five patterns, their cost and latency, failure modes, and when to use an agent.
- [How to build an AI agent: a step-by-step guide in Python](https://theaiengineering.com/articles/how-to-build-an-ai-agent): Learn how to build an AI agent from scratch in Python: when you need one, tool schemas, the agent loop, stop conditions, guardrails, evals, and tracing.
- [AI agent frameworks compared: LangGraph, CrewAI, ADK, and more](https://theaiengineering.com/articles/ai-agent-frameworks): An AI agent frameworks comparison of LangGraph, LangChain, CrewAI, the OpenAI, Claude, and Google SDKs, Pydantic AI, Mastra, and more, by language and license.
- [What are AI agents? How agents work and when to use one](https://theaiengineering.com/articles/what-are-ai-agents): AI agents are LLM systems that call tools in a loop until a task is done. Learn how the loop works, agents vs agentic AI, examples, failure modes, and limits.

## Key terms

- [Agent handoff](https://theaiengineering.com/glossary/agent-handoff): An agent handoff is a transfer of control in which one AI agent passes the conversation, and responsibility for the task, to another agent better suited to the next part of the work.
- [Agent memory](https://theaiengineering.com/glossary/agent-memory): Agent memory is the set of mechanisms that let an AI agent keep and retrieve information beyond a single model call, from the current context window to external stores that persist across sessions.
- [Agent orchestration](https://theaiengineering.com/glossary/agent-orchestration): Agent orchestration is the control logic that decides which agent, model call, or tool runs next in an AI system and what each receives, whether written in code or chosen by a model.
- [Agent sandbox](https://theaiengineering.com/glossary/agent-sandbox): An agent sandbox is an isolated execution environment in which an AI agent runs code, shell commands, or a browser, with enforced limits on the files, network hosts, and credentials it can reach.
- [Agentic AI](https://theaiengineering.com/glossary/agentic-ai): Agentic AI is the class of AI systems that pursue a goal through multiple steps, using a language model to plan, call tools, and act on the results with limited human input.
- [AI agent](https://theaiengineering.com/glossary/ai-agent): An AI agent is a software system in which a large language model runs in a loop, calling tools, reading their results, and repeating until the task is complete or a stop condition is reached.
- [Computer-use agent](https://theaiengineering.com/glossary/computer-use-agent): A computer-use agent is an AI agent that operates a graphical interface, such as a desktop or web browser, by reading screenshots and issuing mouse and keyboard actions instead of calling APIs.
- [Human-in-the-loop](https://theaiengineering.com/glossary/human-in-the-loop): Human-in-the-loop (HITL) is an agent design in which the run pauses at defined checkpoints, such as before a sensitive tool call, so a person can approve, edit, or reject the action.
- [Multi-agent system](https://theaiengineering.com/glossary/multi-agent-system): A multi-agent system is an AI architecture in which several language-model agents, each with its own prompt, tools, and context, work on parts of a task and pass results to one another.
- [ReAct agent](https://theaiengineering.com/glossary/react-agent): A ReAct agent is an AI agent that alternates a written reasoning step, an action such as a tool call, and an observation of the result, repeating the cycle until it can answer.
- [Subagent](https://theaiengineering.com/glossary/subagent): A subagent is an AI agent that another agent starts for one subtask, running in a separate context window with its own instructions and tools, and returning only a condensed result.

## Tools and platforms

- [Agent frameworks](https://theaiengineering.com/platforms/agent-frameworks): 30 platforms. An AI agent framework is a library that supplies the building blocks of an agent: a loop that calls a model, executes the tool calls it returns, manages state and memory, and coordinates multiple agents or workflow steps.
- [Agent infrastructure](https://theaiengineering.com/platforms/agent-infrastructure): 32 platforms. Agent infrastructure is the runtime layer that agents need beyond a model and a framework: isolated sandboxes for executing generated code, cloud browsers for acting on websites, memory services for recalling past interactions, and durable execution engines that keep long-running tasks alive through failures.
- [Web search APIs](https://theaiengineering.com/platforms/web-search-apis): 23 platforms. A web search API for AI returns search results in a form a language model can use directly, such as ranked URLs with clean excerpts, full page text, or cited answers, so an agent can ground its output in current information instead of its training data.
- [Voice AI](https://theaiengineering.com/platforms/voice-ai): 25 platforms. Voice AI platforms are the APIs, models, and frameworks used to build applications that listen and speak, from speech-to-text and text-to-speech services to complete voice agents that hold real-time conversations on the web or over the phone.

## Cite this page

The AI Engineering Editors. "AI agents." The AI Engineering. https://theaiengineering.com/topics/ai-agents

- Title: AI agents
- Author: The AI Engineering Editors
- Publisher: The AI Engineering
- URL: https://theaiengineering.com/topics/ai-agents
- Markdown: https://theaiengineering.com/topics/ai-agents.md
