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 Laurent Poupet, 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?
| Criterion | AI (artificial intelligence) agent | a workflow |
|---|---|---|
| Who picks the next step | The model, at each turn | The code, written in advance |
| Predictability | Lower, limits are needed | High, every path can be tested |
| Good fit | A path you cannot know in advance | A known, repeated procedure |
Related terms
- LLM (large language model)Models and how they work
- WorkflowAgents and orchestration
- GuardrailSecurity and compliance
Where this is taught
Track 3 · Skills, agents and connectors
The Agent SDK (software development kit) — Build and deploy agentslesson 9 · 1 hourTrack 3 · Skills, agents and connectors
Agent orchestrationlesson 8 · 1 hour
Lesson content (step-by-step instructions, exercises with solutions, quizzes) is for students only, with an access code received after the first lesson.