# Agent Loop

- **Canonical URL:** https://getaimath.com/dictionary/agent-loop/
- **Topics:** [AI Agents & Agentic AI](https://getaimath.com/dictionary/category/ai-agents-and-agentic-ai/)
- **Last updated:** 2026-11-25

## What is Agent Loop?

**In one sentence:** The agent loop is the repeating cycle an agent follows: think, act, observe the result, and repeat until the goal is reached.

Each turn, the model looks at the goal and what has happened so far, chooses an action like calling a tool, gets the result, and decides what to do next.

![Chatbot vs. AI Agent: Giving Advice vs. Doing the Chore — Simple cartoon comparing a Chatbot (gives you a recipe and stops) with an AI Agent (plans steps, uses tools like your calendar and browser, checks if it worked, and finishes the job).](https://getaimath.com/diagrams/ai-agents-and-agentic-ai.png)
*Napkin Diagram (AI Agents & Agentic AI): A regular chatbot just talks back; an AI agent has hands (tools) and loops until the chore is actually finished.*

## What is an example of Agent Loop?

Think "I need the weather" → call weather tool → see "rainy" → think "suggest an umbrella" → answer.

## Why does Agent Loop matter?

The loop is what turns a language model into an agent.

## Related Concepts

- [Agent Orchestration](https://getaimath.com/dictionary/agent-orchestration/): Agent orchestration is coordinating how agents, tools and steps work together in an AI system.
- [Planning](https://getaimath.com/dictionary/planning/): Planning is when an AI figures out the steps needed to reach a goal before or while doing them.
- [Multi-Agent System](https://getaimath.com/dictionary/multi-agent-system/): A multi-agent system is a setup where several AI agents work together, each with its own role, to solve a bigger task.
- [Reasoning](https://getaimath.com/dictionary/reasoning/): Reasoning is the ability to think through a problem step by step, connect facts and reach a logical conclusion.
- [Autonomous Agent](https://getaimath.com/dictionary/autonomous-agent/): An autonomous agent is an AI agent that can work toward a goal for a long time with little or no human input.
- [Acting](https://getaimath.com/dictionary/acting/): Acting is when an AI agent does something in the world, like calling a tool, clicking a button or running code.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/agent-loop/)
