Skip to content
AI & Machine Learning

AI Agent

Definition

An AI agent is a system, usually built on a large language model, that pursues a goal by planning steps, calling tools such as search, code or other software, and acting on the results with limited human input.

Diagram

The AI agent loopGiven a goal, the agent plans a step, acts by calling a tool such as search, a calendar or code, observes the result, and checks whether it is done. If not, it plans again. Tools sit outside the loop; a person is asked to approve risky actions.Plandecide the next stepActcall a toolObserveread the resultCheckdone, stuck or continue?GOAL“Book a team lunchfor Friday”tools: calendar, search,booking site, emailask a person beforepaying or sending
Each pass through the loop can go wrong, and errors compound over many steps. Good agents have a clear goal, a short list of tools, a limit on how many steps they take, and a person approving anything costly or hard to undo.

Worked example