Page languageFrançaisEnglish
Teacher area
Laurent PoupetClaude trainer and artificial intelligence architectStudent area

Category · Agents and orchestration

What is an AI (artificial intelligence) agent?

An artificial intelligence agent is a language model that decides by itself, in a loop, which tool to call to reach a goal. It keeps going until the task is done or until a limit set in the code is reached.

By , Claude trainer and artificial intelligence architect · Updated

How it works

  • An agent brings together a model that reasons, tools it can call and a memory of the task, all framed by instructions and limits.
  • At each turn, the model chooses between answering and requesting a tool; this decision, made by the model and not by the code, is what sets an agent apart from a workflow.
  • A so-called managed agent is hosted by a platform that provides execution, memory and supervision, such as the agent service of Microsoft Foundry.

The trap to avoid

The trap is autonomy without guardrails; an agent with no turn limit and no approval for sensitive actions can loop, cost a lot or act wrongly.

A concrete example

You ask “find out why the payment test fails and fix it”. The agent reads the error message, opens the file involved, runs the test, edits the code, runs the test again, and keeps going while it fails. Nobody wrote that sequence in advance: at each turn, the model picks the next tool, until the test passes or the turn limit is reached.

What is the difference with a workflow?

CriterionAI (artificial intelligence) agenta workflow
Who picks the next stepThe model, at each turnThe code, written in advance
PredictabilityLower, limits are neededHigh, every path can be tested
Good fitA path you cannot know in advanceA known, repeated procedure

Related terms

Where this is taught

Lesson content (step-by-step instructions, exercises with solutions, quizzes) is for students only, with an access code received after the first lesson.

See the full program

Sources

All glossary terms

Trial lesson · 30 min · $20

Book (new tab)