In short.
Mistral’s “Move from the Agents API” is a practical guide for Python developers moving existing agent applications to its Agents SDK, with several features requiring application changes. It documents SDK installation pinned to 1.1.0 and shows how the SDK's harness, running in your own process, calls the model and runs your tools, replacing the manual function-call handling the Agents API required. The consequential differences concern hosted-tool wrappers, temporary local sessions, incomplete history conversion, parent-reporting subagents and code changes affecting deployed sessions. Prices, licensing terms and runtime reliability are not established; no examples were executed.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes the complete selected page at [https://docs.mistral.ai/studio/agents/getting-started/from-agents-api.md], including its concept map, code examples, sample outputs, migration helpers and closing links. Linked pages, SDK source, pricing and external terms are excluded. No explicit licensing notice appears in the selected page. No code was executed, and installation success, runtime behavior, data-retention guarantees, deployment behavior and performance remain unverified.
The overview
identity
This Mistral documentation page explains migration from client.beta.agents and client.beta.conversations in the mistralai package to the Agents SDK. The resource is a migration guide rather than the SDK package itself.
Its concept map pairs existing API operations with SDK equivalents, followed by Python examples for tools, sessions, streaming, structured output, history migration and restarts from an earlier entry, with deployment versions explained in prose.
assessment
The guide is useful for planning a migration because it explains both replacement calls and changes in behavior. For example, a decorated Python function replaces manual function-call handling, while an API handoff becomes a subagent that reports back to its parent.
Its examples support implementation planning, but they do not establish application compatibility, migration completeness or production reliability. Several operational details are delegated to linked documentation.
users
The clearest audience is developers maintaining Python applications built with Mistral’s Agents and Conversations API. It also helps developers assess whether they want agent execution and tool handling inside their own application process.
The concept map provides an accessible starting point, but the examples use asynchronous Python, decorators, callbacks, typed parameters and Pydantic. Beginners may need supporting Python instruction. No JavaScript migration path is covered.
capabilities
The page covers agent creation, temperature and reasoning settings, single requests, ordinary function tools, app-answered client tools, permission approvals, multi-message sessions, streamed text events and typed responses.
It also shows hosted web-search wrappers, describes document-library and image-generation calls, and covers sandbox execution, connectors, subagents, conversation imports, restarts and deployment rollback. It links to a separate Connectors and MCP page for adding your own MCP servers, which this page does not cover. These are documented capabilities, not independently verified results.
Using it
requirements
The installation instructions use uv and require MISTRAL_API_KEY. Examples assume access to the named Mistral models. The page does not specify a minimum Python version, supported operating systems or account quotas.
MistralSandbox requires the koyeb installation extra and the cloud_user workspace role. Connectors act as the session user and can require sign-in. Typed-output examples import Pydantic; deployment uses Studio, described as self-hosted or Mistral-managed.
mechanism
With the API, the application creates a server-side agent, starts a conversation, executes requested functions and sends their results back. With the SDK, agents.Agent is a Python object whose control loop calls the model, executes tools and records session steps.
Locally constructed agents keep sessions in the application process until the originating event loop ends. The page says Studio-loaded agents have sessions stored by Mistral and reopened by identifier. Local session storage does not establish offline model execution or a general guarantee about remote request retention.
setup
The documented installation command is uv add "mistralai-agents==1.1.0". Set MISTRAL_API_KEY, import agents from mistralai, construct an agents.Agent and call its asynchronous run method. The introductory guide.py example uses asyncio.run to start execution.
Register functions with @agents.tool and pass them through tools. App-specific answers use @agents.client_tool plus on_client_tool. Approval handling uses permission_mode or permission_policy with on_approval. For the Mistral sandbox, the documented installation is uv add "mistralai-agents[koyeb]==1.1.0". None of these steps was performed.
example
The introductory example constructs a Lyon travel-guide agent using mistral-large-4 and temperature=0.3. An asynchronous function awaits guide.run with a museum question and prints result.text, which the page distinguishes from the model’s thinking content.
The weather example demonstrates tool wiring through a typed get_weather function, but that function returns a fixed sunny-weather string. Similarly, the hotel example returns fixed hotel information. Their printed replies illustrate the intended interaction; they do not demonstrate live weather retrieval or hotel availability.
Assessment & evidence
limitations
Hosted tools do not migrate as identical SDK tool declarations: the page wraps Conversations API calls inside user-defined tools. Its history converter preserves message text and function calls/results but omits hosted-tool and handoff entries, while extracting text without thinking content. It is therefore not a lossless history conversion.
Subagents return to their parent rather than taking over the conversation. Continuing with a different agent requires application routing and transferred history. The documented history-seeding approach applies to agents running in the local process.
Deploying a new commit under the same agent name replaces the deployed agent, and open sessions use the new code on their next message. Rollback requires redeploying an earlier commit. The page does not establish compatibility guarantees for those session transitions.
reasoning
The guide’s strongest practical value is showing where migration changes application responsibilities. Developers can delegate repetitive tool execution to the SDK while explicitly designing session storage, app callbacks, approvals and agent routing.
Its fit is weaker for applications requiring exact historical reconstruction or unchanged handoff behavior, because the documented replacements alter those properties. That assessment follows from the conversion helper and subagent semantics; it is not based on execution or comparative benchmarks.
alternatives
The page directly compares the SDK with the existing Agents and Conversations API. The API uses server-created agents and application-managed function-result exchanges; the SDK moves the agent object and execution loop into Python code. It says the SDK replaces those APIs but gives no retirement deadline or continued-support guarantee.
Within the SDK approach, the documented choices include local execution or Studio deployment, subagents that report back or separate agents with application-routed conversations, and broad or selective approval policies. No third-party framework comparison is provided.
evidence
The source is the complete Mistral documentation page “Move from the Agents API” at [https://docs.mistral.ai/studio/agents/getting-started/from-agents-api.md]. It includes a concept map, paired API and SDK examples, sample outputs and history-conversion code.
The examples and outputs are documentation evidence. No package installation, model request, tool invocation, history import or deployment was executed. Linked documentation, package source, service terms and performance evidence were not assessed.
Access & freshness
costs
The page supplies no SDK price, model rates, sandbox charges, connector charges, deployment prices or free allowance. Total running cost is unknown.
The hosted-search example makes a Conversations API model request inside an SDK tool, in addition to the surrounding agent interaction. This is relevant when estimating usage, but the page provides no measurements or billing example from which to calculate a cost.
rights
The page does not state a license for its documentation or code examples, nor does it establish the SDK’s license. Commercial-use and redistribution permissions are unknown from this evidence.
Terms governing model access, hosted tools, sandbox execution, connectors and deployed-session data are also not supplied. The description of local session storage is an architectural statement rather than a comprehensive data-handling agreement.
freshness
The page capture is dated 15 November 2026 at 11:10:30 UTC. Its installation examples pin mistralai-agents to 1.1.0. Most examples use mistral-large-4, while typed-output examples use mistral-medium-latest.
The page supplies no publication or update date, latest-release confirmation, model-availability guarantee or API retirement schedule. Current compatibility beyond the captured instructions is unknown.
actions
Before migrating, identify which application features depend on hosted tools, handoffs, stored histories and persistent sessions. Use the corresponding examples to decide where wrappers, parent-child agents, application routing or different storage arrangements are needed.
In your environment, verify model access, required sandbox roles, connector sign-in and approval behavior. Check Completed, Blocked and Failed outcomes, history conversion, restart behavior and open sessions across deployment changes. Obtain applicable prices and licensing terms before committing to adoption.
