In short.
This Mistral reference helps Python developers access data inside AI evaluation functions, but does not provide a complete setup guide. Its main contribution is explaining which typed context object each function receives and when particular data becomes available. The key integration detail is that the parameter annotation controls context delivery. SDK compatibility, costs and runtime behavior are not established by the page, and none of the examples were executed.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes the complete Use context objects page at [https://docs.mistral.ai/studio/observability/evaluations/advanced-guides/context-objects.md], including its annotation rule, five context tables and Python examples. The linked run-evaluators guide and other documentation are excluded. No pricing, licence notice or SDK version is supplied on this page. No code was executed; runtime behavior, compatibility and evaluation quality remain unverified.
The overview
Resource identity
Use context objects is a reference page in Mistral Studio’s evaluations documentation. It describes Pydantic models that bundle inputs into one parameter for tasks, scorers, run evaluators and metadata callbacks. The original page is available at [https://docs.mistral.ai/studio/observability/evaluations/advanced-guides/context-objects.md].
Practical assessment
The page is useful when writing evaluation functions that need more than a dataset row, such as the selected system configuration, a generated response or aggregate scores. Its field tables make those inputs explicit.
It is a focused reference rather than an introductory tutorial. The examples omit the surrounding client, dataset and evaluation configuration, so they do not establish a complete runnable integration.
Who it helps
Python developers already using Mistral evaluations can use this page to write task functions, custom scorers, run-level acceptance rules and metadata callbacks. Beginners can use it to understand what information each function receives, but will need additional setup instructions.
Developers rescoring saved results should pay particular attention to ScorerContext: record_metadata and generation_metadata are empty during run() and populated during rescore().
Documented capabilities
TaskContext supplies the current input record, optional system configuration and run metadata. ScorerContext adds the task output and persisted record and generation metadata.
RunEvaluatorContext supplies processed records and aggregate statistics; the page also identifies get_score(record, "evaluator_name") for retrieving a named score. RecordMetadataContext exposes a processed record, including generations and scores. RunMetadataContext exposes processed records, statistics and run-level evaluator scores for computing run metadata.
Using it
Requirements
The examples require a Python environment with an SDK exposing the documented classes through mistralai.evaluations. Context delivery requires a function with one parameter annotated with the appropriate context type. The page does not specify installation commands, Python compatibility, SDK version or authentication requirements.
Inputs must match the assumptions of each example. The task expects a prompt field and a system containing a model parameter; the scorer expects an expected value supporting lower(). Every listed system field permits None, so code that accesses system.params must account for whether a system was supplied.
How it works
The SDK uses the function’s parameter annotation to choose between passing a typed context object and passing the raw record. The annotation therefore affects the argument supplied at runtime, beyond providing editor hints.
The contexts reflect different stages of an evaluation. Scorers receive task output; run evaluators receive records and statistics after the run completes. A record metadata callback runs after that record’s task and scorers finish and returns a dictionary stored on the record in Studio. A run metadata callback runs after all records are scored and returns a dictionary merged into run metadata.
Integration steps
Within an existing evaluation setup, import the context class needed by the function and annotate its sole parameter, for example ctx: ScorerContext. Access documented fields through that parameter. The page identifies evaluation.run(system=...) and evaluation.run(metadata=...) as sources of system configuration and run metadata.
A metadata function is passed in place of a metadata dictionary to receive RunMetadataContext. The page does not show a complete evaluation invocation, client initialization or configuration of every callback.
Examples and their meaning
The task example sends the record’s prompt to client.chat.complete_async, takes the model from the system parameters and returns the first response message as a string. The scorer returns 1 when the expected text appears anywhere in the output, ignoring case, and otherwise returns 0. This demonstrates field access; substring matching alone does not establish answer correctness.
The run evaluator example checks whether the average accuracy score is at least 0.8. Other examples record the string length of the first generation’s output and the number of processed records. These are illustrative functions, not measured results, and none were executed.
Assessment & evidence
Limitations
The reference describes fields and callback timing without documenting validation failures, retry behavior, concurrency or error handling. Its examples assume required keys, evaluator statistics and generations exist.
Persisted record and generation metadata are unavailable to scorers during run(), according to the page. A scorer needing those values cannot assume the same data availability during an initial run and a rescore. Runtime correctness, performance and SDK compatibility have not been assessed.
Why these details matter
The main integration risk is assuming that the function will receive an object with attributes such as input_record merely because its parameter is named ctx. The documented behavior depends on the type annotation.
The contexts also help distinguish per-record work from whole-run decisions. A scorer has one task output, while a run evaluator has processed records and aggregate statistics. Choosing the appropriate context follows from the documented data available at each stage; no productivity or quality improvement is measured.
Alternative approaches
The alternative input style documented here is receiving the raw record when the context annotation is absent. That may suit a function needing only record data; the typed contexts expose additional evaluation information.
The page does not compare other evaluation libraries or frameworks. Their relative capabilities, costs and migration effort are unknown from this source.
Evidence and confidence
Mistral’s page provides field tables and Python examples for all five context types. It directly supports the descriptions of available fields, annotation-dependent argument delivery and callback timing.
The page provides no execution logs, benchmark results or complete application example. Its examples demonstrate intended use, without establishing observed runtime behavior.
Access & freshness
Costs
The page supplies no pricing, subscription requirements, quotas or billing details. Its task example makes a model API call, but any charges for that call or evaluation runs are unknown from this source.
Licensing and usage rights
The page states no licence or redistribution terms for its documentation or code examples. Applicable SDK and service terms are also absent. Reuse and redistribution permissions are therefore unknown from this source.
Version and freshness
The source capture is dated 15 November 2026. The page itself supplies no publication date, update date or compatible SDK version, so the capture date does not establish when the documented interface last changed.
Compatibility with a particular installed release remains unknown and should be confirmed before integrating these examples.
Suggested next steps
Confirm that the intended SDK release exposes the required context types, then supply the surrounding client and evaluation configuration. Preserve the single-parameter annotation and handle optional system values and missing input fields.
For scoring, decide whether per-record output or whole-run statistics match the decision being made. If persisted metadata is required, account for the documented run() versus rescore() distinction. Validate the adapted functions on a small representative dataset; no such validation is established here.
