Learning resourcesReviewed · Mistral AI

Evaluate Agents SDK agents

This Mistral guide shows Python developers how to evaluate Agents SDK agents, but failed turns are excluded from evaluation scores. It covers AgentSystem, configuration variants, GEPA optimization and deployed-agent sessions.

Researched 15 Nov 2026

In short.

This Mistral guide helps Python developers evaluate and tune Agents SDK agents, but evaluation scores exclude failed turns. It explains how AgentSystem connects agents to evaluation tasks, applies temporary configuration changes and supports optimization or deployed-agent evaluation. Its practical value depends on suitable scoring, checking failed records and understanding gaps in recorded configuration. No examples were executed, and pricing and reuse rights are unknown.

Researched and written by an AI model and checked by a second AI model. How it works

Covers the complete documentation page at [https://docs.mistral.ai/studio/observability/evaluations/agents.md], including setup, evaluation, variants, optimization, deployments, credentials, external runners, configuration recording, retries and troubleshooting. Its warnings about missing failed turns, configuration gaps and client differences are included. Linked pages, package source, pricing and licence documents are excluded. No examples were executed, deployments accessed or runtime behavior verified.

The overview

Identity

Evaluate Agents SDK agents is a Mistral documentation guide for connecting agents to the Evaluation SDK through AgentSystem. The source is [https://docs.mistral.ai/studio/observability/evaluations/agents.md].

It covers agents defined in Python code and agents already deployed in Mistral. The resource is instructional documentation rather than a separate evaluation application or downloadable agent.

Assessment

The guide offers concrete implementation detail for developers who already have an agent and want to compare configurations. Its strongest material explains failure handling, temporary overrides, deployment differences and the limits of configuration records.

The supplied scoring example measures whether an answer contains an expected word. Useful evaluation still requires a representative dataset and scoring criteria suited to the agent's work. The page supplies no benchmark results or evidence that optimization improves a particular production agent.

Users

The main audience is Python developers building with Mistral's Agents SDK, including teams comparing instructions, model settings or deployed-agent behavior. Developers investigating misleading scores or failed evaluation records also have directly relevant troubleshooting guidance.

Beginners receive a complete support-agent example, but the guide assumes familiarity with asynchronous Python, environment variables, SDK installation and API credentials. The linked installation and reference material would be needed for a fuller introduction.

Capabilities

AgentSystem connects an agent to an evaluation task and records the evaluated configuration, including subagents where available. Runs can compare temporary changes to plain settings such as instructions, temperature, model or iteration limits. Additional params can describe the surrounding environment.

The guide also covers searching settings with Tunable and GEPA, evaluating a deployed agent by name or ID, retrying failed records and passing agent settings to an external runner or sandbox.

Studio can link a run to a deployed agent. A link based only on a matching name does not establish that the deployed agent runs the same code as the evaluated agent.

Using it

Requirements

The stated starting requirements are the Evaluation SDK, a Mistral API key and mistralai-agents version 1.1.0 or later. The Agents SDK is a separate dependency; installing mistralai-evaluations does not install it. Exact Python and Evaluation SDK version requirements are not given.

Evaluating a deployed agent requires the Agents SDK and a run saved in Studio; local=True is unsupported for that path. The deployment must be accessible with the evaluation client's credentials on the same server as the evaluation.

Agents defined in code use their own environment's credentials for model calls, connectors and MCP servers. Those credentials can differ from the credentials carried by the evaluation client.

Mechanism

A task receives TaskContext and normally calls ctx.agent.run() with a dataset input. For an agent defined in code, execution happens in the task's process with the agent's real tools and hooks. Evaluators score the output returned by the task.

ctx.agent is a wrapper around the agent with the run's overrides applied. Its run() method returns a Completed turn and raises AgentTurnError for other outcomes, including failures, approval blocks, busy sessions and timeouts. A raised turn fails the record, and evaluators do not score it.

Overrides apply configuration changes for the run. Params only record additional context; they do not configure the agent. When using an external runner, the task must forward every applicable setting because the recorded configuration cannot establish what that runner actually used.

Setup

Install the Evaluation SDK using its separate installation instructions, then install the Agents SDK. This page supplies pip install -U mistralai-agents and uv add "mistralai-agents>=1.1.0" as installation options. Its Python example reads the API key from MISTRAL_API_KEY.

Define an agent, input records, an asynchronous task and one or more evaluators. Pass AgentSystem(agent=agent) to client.evaluation.run(), alongside the task, dataset and evaluators. The example also supplies project and evaluation names.

For optimization, mark searchable settings with Tunable and pass the system to evaluation.optimize() with GEPA(). The task must accept a single parameter annotated as TaskContext. For deployed evaluation, supply the deployed agent's name or ID instead of an agent object.

Example

The supplied example defines support-bot using mistral-small-latest and a lookup_order tool. Two records ask about order shipping status. The tool returns the same hard-coded shipping status for any order; a database integration is suggested in a comment but is not implemented.

The task returns the agent's text, and the scorer awards 1 when the expected status appears in the lowercased output. Because this is a substring check, it could accept an answer containing 'not shipped'. It also does not check whether the lookup tool was called.

The example illustrates how the SDK pieces connect. No execution results or measured accuracy are supplied.

Assessment & evidence

Limitations

Failed turns are absent from score statistics, so scores can overstate performance unless read alongside run.failed_record_count. Structured output that fails validation can still produce a Completed turn containing InvalidOutput; the task or scorer must handle that case.

Overrides cannot change an agent's name, tools, hooks, skills or subagents. Those changes require another Agent. An agent with its own completion configuration also prevents model, temperature and reasoning effort from being overridden. Deployed-agent overrides are limited to model, reasoning_effort and additional_instructions.

For agents defined in code, the recorded spec leaves tools, hooks, skills, MCP servers and connectors unknown when the SDK does not expose them before session startup. An SDK unable to serialize the agent can leave its entire configuration unknown while allowing the run to start.

Retries compare recorded configuration, but deployed code, tool or skill changes can escape detection when absent from the deployed record. SDK upgrades can also change serialization and cause retries to be refused. HTTP proxy handling differs between client paths; with mistralai 3, an explicitly configured httpx2 proxy is not carried over to the Agents SDK client.

Reasoning

AgentSystem is a useful fit when an existing Mistral agent needs recorded configuration comparisons without manually describing a System. Temporary overrides support experiments while preserving the original agent, and optimization returns candidate settings that can be evaluated again before adoption.

Confidence in a comparison depends on more than the recorded score. Failure counts, scorer quality, configuration gaps and any external runner's handling of settings all affect the conclusion. The guide documents these mechanisms but does not establish complete reproducibility or production reliability.

Alternatives

For pipelines that are not Agents SDK agents, the page points to manually constructing a System. It also links to running agent evaluations in Mistral Workflows. The linked instructions are outside the supplied page.

When an experiment changes tools, hooks, skills or subagents, the documented approach is to construct another Agent. No competing evaluation frameworks or comparative cost and capability evidence are supplied.

Evidence

The source is the complete Mistral documentation page at [https://docs.mistral.ai/studio/observability/evaluations/agents.md], including its Python examples, warnings, credential details, recording rules and troubleshooting table.

The page provides first-party descriptions of intended SDK behavior. No code was executed, deployments accessed or results independently validated. Linked installation instructions, API references, package source, pricing and licence documents are outside the available evidence.

Access & freshness

Costs

Pricing, free allowances, quotas and charges for evaluation, optimization, model calls, deployment or connected services are not provided. Total cost is unknown.

Each optimization candidate runs the agent, retries execute failed records again, and each deployed-agent record runs a session. These mechanisms imply that larger datasets, optimization searches and retry workloads can increase execution demand, but the page supplies no usage measurements or cost estimates.

Rights

The supplied page does not state a licence for the documentation or code examples, SDK licence terms, or redistribution permissions. Reuse and redistribution rights are unknown.

Service terms, evaluation-data retention and ownership terms for uploaded data or outputs are also not established by this page.

Freshness

The supplied page was captured on 15 November 2026 at 10:10:40.880 UTC. It specifies Agents SDK 1.1.0 or later and describes distinct HTTP-client behavior for mistralai 3. It provides no publication date, last-update date or fixed Evaluation SDK version.

The example model names use -latest aliases rather than fixed model release identifiers. Compatibility and behavior beyond the captured documentation are unverified, and the page explicitly warns that SDK upgrades can affect retry compatibility.

Actions

Start with representative inputs and a scorer that checks the behavior your agent must deliver. For the support-agent example, assess tool use and answer correctness beyond the presence of a shipping word. Read failed_record_count alongside scores and investigate failed turns before drawing conclusions.

Use controlled data and tools when evaluating agents defined in code, since their real tools and hooks execute in the process. The approval example allows every request; decide which approvals are appropriate before adopting that pattern. Keep credential values out of recorded configuration.

Retain the same agent configuration and SDK version when retrying records. After optimization, evaluate the winning overrides again before applying them to agent code or redeploying. For external runners, ensure the executed settings match those recorded by AgentSystem.

Confirm current installation requirements, pricing and applicable rights through their respective documentation before committing to a deployment; this page does not establish those details.

Evidence for this report

selected-page.txtselected · checked 2026-11-15