Agent

An AI agent is a system that uses a language model to pursue a goal over multiple steps, deciding which actions or tools to invoke, observing the results, and adapting its plan. Unlike a single prompt-and-response call, an agent runs an iterative loop of reasoning, acting, and updating until the task is done.

Definition

Agent

An agent wraps a model in a control loop: it plans, calls tools or functions, reads the outputs, and decides what to do next. This lets it handle open-ended tasks — searching, browsing, writing and running code, or orchestrating other systems — that a single completion cannot solve in one shot.

Agentic patterns build on tool use, function calling, and reasoning techniques such as ReAct, which interleaves thought and action. Reliability, cost control, and guardrails become central concerns, because an agent takes real actions and its errors can compound across steps.

Frequently asked questions

What is Agent?

An AI agent is a system that uses a language model to pursue a goal over multiple steps, deciding which actions or tools to invoke, observing the results, and adapting its plan. Unlike a single prompt-and-response call, an agent runs an iterative loop of reasoning, acting, and updating until the task is done.

Sources

Related terms

← Full AI & prompt engineering glossary

Put Agent to work with Prompeteer, the Agentic Contextual AI Platform →