- Studio
- Managed Agents
Learn
Learn
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
Define the agent with agents.Agent(...), with its instructions, tools, connectors and MCP servers, skills, secrets, guardrails, approvals, and structured output.
Environment
Give the agent a sandbox to run shell commands, edit files and run Python, and choose what that sandbox can reach.
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
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
Compare local, self-hosted (agents serve), and Mistral-managed (agents deploy) execution, and learn how sessions stay durable once you deploy.
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.