mistralM

Docs

Learn

Understand the parts of a managed agent: its definition, environment, sessions, runs, run modes, and subagents.

These pages explain how Managed Agents work, one concept at a time. An agent is a model and a harness: a session records what the agent does, and the environment is the computer it works on.

Concepts in this section

Each group starts with an overview page:

What an agent is
illustrationRobot

What an agent is

Define the agent with agents.Agent(...), with its instructions, tools, connectors and MCP servers, skills, secrets, guardrails, approvals, and structured output.

Environment
illustrationWindow

Environment

Give the agent a sandbox to run shell commands, edit files and run Python, and choose what that sandbox can reach.

Sessions
illustrationClock

Sessions

Start a session, find it again by its id, and set it up with inputs, overrides, and an idempotency key. The group also covers turns, events, and history entries.

Runs
illustrationTimer

Runs

Choose how your program runs a turn, from one agent.run() call to a session app, and answer the callbacks a turn asks.

Run modes
illustrationBook

Run modes

Compare local, self-hosted (agents serve), and Mistral-managed (agents deploy) execution, and learn how sessions stay durable once you deploy.

Subagents
illustrationRobotFull

Subagents

Hand parts of a job to subagents that run side by side on their own tasks, and get their reports back in the parent.

Where to begin

If you are new to the SDK, start with What an agent is, then Sessions. Read Run modes before you deploy.