Reference · Glossary

Agent

Last updated

An **agent** is an AI loop that plans steps, calls tools, reads results, and keeps going until it reaches a goal — not just a single question-and-answer turn.

#When to use

Multi-step tasks like research, booking, code fixes, or workflows that need web search, APIs, or file access between reasoning steps.

#When not to

Simple one-shot Q&A — a plain chat completion is cheaper, faster, and easier to debug than an autonomous loop.

#Example

Goal: "Summarize last week's sales and email the team."
→ agent calls SQL tool → reads rows → drafts email → calls send_mail → confirms done