AI Agents
An AI agent is a program in which a language model chooses and carries out each next step.
An AI agent is a program whose steps a language model picks at run time, based on the goal and on everything that has happened so far. An ordinary program, by contrast, follows steps that a person wrote in advance. The same request can therefore lead to different steps on different runs. The goal is usually given in plain language, not as a specification a program could check.
Deciding at run time lets an agent handle tasks that no one fully scripted. It also makes the behavior of an agent harder to predict than that of an ordinary program. An agent can recover from a failed step by trying something else, which a fixed script cannot do. The same freedom lets it take steps that no one expected, including harmful ones.
The model itself never touches the outside world. Everything it does goes through tools that a host program chooses to offer and to run, which makes that program the place to enforce limits. The host decides which tools exist and what each one may touch. Limits set there hold no matter what the model writes, while instructions in a prompt can be talked around. For an agent that runs code, those tools usually work inside a sandbox that the host can limit and delete.
Related terms
Related posts