Agent
A program that uses a language model to decide what to do next, takes actions through tools, observes the results, and continues until a goal is met.
Definition
A program that uses a language model to decide what to do next, takes actions through tools, observes the results, and continues until a goal is met. Unlike a single prompt, an agent runs a loop — plan, act, observe, repeat. Agents are useful when the steps can't be fully scripted in advance.
Example
A research agent given 'find the top three competitors for this product' might search the web, read pages, take notes, deduplicate findings, and produce a summary — choosing each next action based on what it has already found.
See it in context Learn how Agent fits into the bigger picture of how software actually works.
Read the Guide →