Beta.Observability.Judges

March 16, 2026 ยท View on GitHub

Overview

Available Operations

create

Create a new judge

Example Usage

from mistralai.client import Mistral
import os


with Mistral(
    api_key=os.getenv("MISTRAL_API_KEY", ""),
) as mistral:

    res = mistral.beta.observability.judges.create(name="<value>", description="border freely down whenever broadly whenever restructure catalyze after", model_name="<value>", output={
        "type": "REGRESSION",
        "min": 0,
        "min_description": "<value>",
        "max": 1,
        "max_description": "<value>",
    }, instructions="<value>", tools=[
        "<value 1>",
        "<value 2>",
    ])

    # Handle response
    print(res)

Parameters

ParameterTypeRequiredDescription
namestr:heavy_check_mark:N/A
descriptionstr:heavy_check_mark:N/A
model_namestr:heavy_check_mark:N/A
outputmodels.CreateJudgeRequestOutput:heavy_check_mark:N/A
instructionsstr:heavy_check_mark:N/A
toolsList[str]:heavy_check_mark:N/A
retriesOptional[utils.RetryConfig]:heavy_minus_sign:Configuration to override the default retry behavior of the client.

Response

models.Judge

Errors

Error TypeStatus CodeContent Type
errors.ObservabilityError400, 404, 408, 409, 422application/json
errors.SDKError4XX, 5XX*/*

list

Get judges with optional filtering and search

Example Usage

from mistralai.client import Mistral
import os


with Mistral(
    api_key=os.getenv("MISTRAL_API_KEY", ""),
) as mistral:

    res = mistral.beta.observability.judges.list(page_size=50, page=1)

    # Handle response
    print(res)

Parameters

ParameterTypeRequiredDescription
type_filterList[models.JudgeOutputType]:heavy_minus_sign:Filter by judge output types
model_filterList[str]:heavy_minus_sign:Filter by model names
page_sizeOptional[int]:heavy_minus_sign:N/A
pageOptional[int]:heavy_minus_sign:N/A
qOptionalNullable[str]:heavy_minus_sign:N/A
retriesOptional[utils.RetryConfig]:heavy_minus_sign:Configuration to override the default retry behavior of the client.

Response

models.ListJudgesResponse

Errors

Error TypeStatus CodeContent Type
errors.ObservabilityError400, 404, 408, 409, 422application/json
errors.SDKError4XX, 5XX*/*

fetch

Get judge by id

Example Usage

from mistralai.client import Mistral
import os


with Mistral(
    api_key=os.getenv("MISTRAL_API_KEY", ""),
) as mistral:

    res = mistral.beta.observability.judges.fetch(judge_id="19ae5cf8-2ade-4a40-b9d2-730aaebe8429")

    # Handle response
    print(res)

Parameters

ParameterTypeRequiredDescription
judge_idstr:heavy_check_mark:N/A
retriesOptional[utils.RetryConfig]:heavy_minus_sign:Configuration to override the default retry behavior of the client.

Response

models.Judge

Errors

Error TypeStatus CodeContent Type
errors.ObservabilityError400, 404, 408, 409, 422application/json
errors.SDKError4XX, 5XX*/*

delete

Delete a judge

Example Usage

from mistralai.client import Mistral
import os


with Mistral(
    api_key=os.getenv("MISTRAL_API_KEY", ""),
) as mistral:

    mistral.beta.observability.judges.delete(judge_id="80deecde-e10f-409c-a13a-c242d3760f6e")

    # Use the SDK ...

Parameters

ParameterTypeRequiredDescription
judge_idstr:heavy_check_mark:N/A
retriesOptional[utils.RetryConfig]:heavy_minus_sign:Configuration to override the default retry behavior of the client.

Errors

Error TypeStatus CodeContent Type
errors.ObservabilityError400, 404, 408, 409, 422application/json
errors.SDKError4XX, 5XX*/*

update

Update a judge

Example Usage

from mistralai.client import Mistral
import os


with Mistral(
    api_key=os.getenv("MISTRAL_API_KEY", ""),
) as mistral:

    mistral.beta.observability.judges.update(judge_id="9f28c7db-1fb7-4e1c-b137-d7039561ddb7", name="<value>", description="noteworthy and unless", model_name="<value>", output={
        "type": "REGRESSION",
        "min": 0,
        "min_description": "<value>",
        "max": 1,
        "max_description": "<value>",
    }, instructions="<value>", tools=[])

    # Use the SDK ...

Parameters

ParameterTypeRequiredDescription
judge_idstr:heavy_check_mark:N/A
namestr:heavy_check_mark:N/A
descriptionstr:heavy_check_mark:N/A
model_namestr:heavy_check_mark:N/A
outputmodels.UpdateJudgeRequestOutput:heavy_check_mark:N/A
instructionsstr:heavy_check_mark:N/A
toolsList[str]:heavy_check_mark:N/A
retriesOptional[utils.RetryConfig]:heavy_minus_sign:Configuration to override the default retry behavior of the client.

Errors

Error TypeStatus CodeContent Type
errors.ObservabilityError400, 404, 408, 409, 422application/json
errors.SDKError4XX, 5XX*/*

judge_conversation

Run a saved judge on a conversation

Example Usage

from mistralai.client import Mistral
import os


with Mistral(
    api_key=os.getenv("MISTRAL_API_KEY", ""),
) as mistral:

    res = mistral.beta.observability.judges.judge_conversation(judge_id="7fb9f06a-22fb-45db-ad58-6a5715280755", messages=[])

    # Handle response
    print(res)

Parameters

ParameterTypeRequiredDescription
judge_idstr:heavy_check_mark:N/A
messagesList[Dict[str, Any]]:heavy_check_mark:N/A
propertiesDict[str, Any]:heavy_minus_sign:N/A
retriesOptional[utils.RetryConfig]:heavy_minus_sign:Configuration to override the default retry behavior of the client.

Response

models.JudgeOutput

Errors

Error TypeStatus CodeContent Type
errors.ObservabilityError400, 404, 408, 409, 422application/json
errors.SDKError4XX, 5XX*/*