Beta.Observability.Evaluations.Runs
search - Search evaluation runs with filters
search_all - Search evaluation runs across all evaluations
get - Get a specific evaluation run by ID
get_statistics - Get statistics for a specific evaluation run
compute_statistics - Compute statistics for a specific evaluation run with optional filters
Search evaluation runs with filters
from mistralai .client import Mistral
import os
with Mistral (
api_key = os .getenv ("MISTRAL_API_KEY" ),
) as mistral :
res = mistral .beta .observability .evaluations .runs .search (evaluation_slug = "<value>" , page_size = 50 , page = 1 )
# Handle response
print (res )
models.ListEvaluationRunsResponse
Error Type
Status Code
Content Type
errors.ObservabilityError
400, 404, 408, 409, 422
application/json
errors.SDKError
4XX, 5XX
*/*
Search evaluation runs across all evaluations
from mistralai .client import Mistral
import os
with Mistral (
api_key = os .getenv ("MISTRAL_API_KEY" ),
) as mistral :
res = mistral .beta .observability .evaluations .runs .search_all (page_size = 50 , page = 1 )
# Handle response
print (res )
models.SearchAllEvaluationRunsResponse
Error Type
Status Code
Content Type
errors.ObservabilityError
400, 404, 408, 409, 422
application/json
errors.SDKError
4XX, 5XX
*/*
Get a specific evaluation run by ID
from mistralai .client import Mistral
import os
with Mistral (
api_key = os .getenv ("MISTRAL_API_KEY" ),
) as mistral :
res = mistral .beta .observability .evaluations .runs .get (run_id = "c120b634-146a-4ae3-bd38-b7a168c4c8ce" )
# Handle response
print (res )
Parameter
Type
Required
Description
run_id
str
✔️
N/A
retries
Optional[utils.RetryConfig]
➖
Configuration to override the default retry behavior of the client.
models.EvaluationRunV2Response
Error Type
Status Code
Content Type
errors.ObservabilityError
400, 404, 408, 409, 422
application/json
errors.SDKError
4XX, 5XX
*/*
Get statistics for a specific evaluation run
from mistralai .client import Mistral
import os
with Mistral (
api_key = os .getenv ("MISTRAL_API_KEY" ),
) as mistral :
res = mistral .beta .observability .evaluations .runs .get_statistics (run_id = "a38473a2-532a-4cb8-9320-a7f617d16595" )
# Handle response
print (res )
Parameter
Type
Required
Description
run_id
str
✔️
N/A
retries
Optional[utils.RetryConfig]
➖
Configuration to override the default retry behavior of the client.
models.RunStatisticsResponse
Error Type
Status Code
Content Type
errors.ObservabilityError
400, 404, 408, 409, 422
application/json
errors.SDKError
4XX, 5XX
*/*
Compute statistics for a specific evaluation run with optional filters
from mistralai .client import Mistral
import os
with Mistral (
api_key = os .getenv ("MISTRAL_API_KEY" ),
) as mistral :
res = mistral .beta .observability .evaluations .runs .compute_statistics (run_id = "c5e1142f-de29-45b2-b29c-fe37e6509c8a" )
# Handle response
print (res )
models.RunStatisticsResponse
Error Type
Status Code
Content Type
errors.ObservabilityError
400, 404, 408, 409, 422
application/json
errors.SDKError
4XX, 5XX
*/*