pydo.genai.create_model_evaluation_run()
Generated on 3 Aug 2026
from pydo version
v0.40.0
Usage
client.genai.create_model_evaluation_run(
body={
"candidate_inference_config": {...},
"candidate_model_name": "example name",
"candidate_model_source": "CANDIDATE_MODEL_SOURCE_SERVERLESS",
...,
},
)Description
To create a model evaluation run, send a POST request to /v2/genai/model_evaluation_runs.
Parameters
candidate_inference_configobject optionalInference configuration for the candidate model during evaluation.
Show child properties
max_tokensinteger optionalExample:
123stop_tokenstring optionalExample:
example stringsystem_promptstring optionalExample:
example stringtemperaturenumber optionalExample:
123
candidate_model_namestring optionalExample:
example nameModel slug used to call the candidate model API.
For dedicated inference, this is the model slug from the deployment.
For serverless, this should match the model's internal name.candidate_model_sourcestring optionalWhether inference runs against the serverless platform, a dedicated deployment, or a model router.
candidate_model_uuidstring optionalExample:
123e4567-e89b-12d3-a456-426614174000UUID of the candidate model to evaluate.
dataset_uuidstring optionalExample:
123e4567-e89b-12d3-a456-426614174000UUID of the dataset to use for evaluation.
eval_preset_uuidstring optionalExample:
123e4567-e89b-12d3-a456-426614174000judge_model_uuidstring optionalExample:
123e4567-e89b-12d3-a456-426614174000UUID of the judge model used to score responses.
metric_uuidsarray of strings optionalExample:
['example string']UUIDs of metrics to evaluate (selected from ListModelEvaluationMetrics).
namestring optionalExample:
example namepreset_namestring optionalExample:
example namepreset_save_sectionsarray of strings optionalExample:
['PRESET_SAVE_SECTION_CANDIDATE', 'PRESET_SAVE_SECTION_METRICS']Which sections of this run's resolved configuration to persist as a
reusable preset. Each selected section saves only its own fields; the
remaining sections stay empty on the preset and must be supplied inline
on future runs that reference it. Empty means do not save a preset
(unless the deprecatedsave_as_presetboolean is true, in which case
all sections are saved). Ignored wheneval_preset_uuidis set. Usepreset_nameto label the saved preset.save_as_presetboolean optionalExample:
TrueDeprecated: use
preset_save_sections. Whentrueandpreset_save_sectionsis empty, all five sections of the resolved
configuration are saved as a reusable preset (legacy behavior). Ignored
wheneval_preset_uuidis set.sourcestring optionalExample:
example stringSource of the run creation (api, sdk, cli).
star_metricobject optionalShow child properties
metric_uuidstring optionalExample:
123e4567-e89b-12d3-a456-426614174000namestring optionalExample:
example namesuccess_thresholdnumber optionalExample:
123The success threshold for the star metric.
This is a value that the metric must reach to be considered successful.success_threshold_pctinteger optionalExample:
123The success threshold for the star metric.
This is a percentage value between 0 and 100.
Request Sample
Response Example
More Information
See /v2/gen-ai/model_evaluation_runs in the API reference for additional detail on responses, headers, parameters, and more.