dots.v2.genAi.model_evaluation_runs.post()

Generated on 5 Nov 2026 from DoTs version v1.23.0

Usage

client.v2.genAi.model_evaluation_runs.post(body: ApiCreateModelEvaluationRunInputPublic, requestConfiguration?: RequestConfiguration<object>): Promise<undefined | ApiCreateModelEvaluationRunOutput>

Description

To create a model evaluation run, send a POST request to /v2/genai/model_evaluation_runs.

Parameters

candidateInferenceConfig object optional

Inference configuration for the candidate model during evaluation.
The output token limit is set automatically and cannot be configured.

Show child properties
reasoningEffort string optional

Example: low

Reasoning effort for reasoning-capable models (e.g. "low", "medium",
"high"). Validated against the candidate model's supported values; a model
that advertises none rejects this field.

stopToken string optional

Example: example string

systemPrompt string optional

Example: example string

temperature number optional

Example: 123

candidateModelName string optional

Example: example name

Model 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.

candidateModelSource string optional

Whether the candidate is a served model (serverless platform, a dedicated
deployment, or a model router) or an OHS-hosted agent config.

One of: CANDIDATE_MODEL_SOURCE_SERVERLESS, CANDIDATE_MODEL_SOURCE_DEDICATED, CANDIDATE_MODEL_SOURCE_ROUTER, CANDIDATE_MODEL_SOURCE_AGENT

Default: CANDIDATE_MODEL_SOURCE_SERVERLESS

candidateModelUuid string optional

Example: 123e4567-e89b-12d3-a456-426614174000

UUID of the candidate model to evaluate.

datasetUuid string optional

Example: 123e4567-e89b-12d3-a456-426614174000

UUID of the dataset to use for evaluation.

epochs integer optional

Example: 1

How many times each dataset row is evaluated. Defaults to 1, maximum 10.
When more than 1, the results show how consistent the model is across
attempts (avg@k, pass@k, cons@k). Each extra attempt makes the run take
longer. Not saved in presets.

evalPresetUuid string optional

Example: 123e4567-e89b-12d3-a456-426614174000

judgeModelUuid string optional

Example: 123e4567-e89b-12d3-a456-426614174000

UUID of the judge model used to score responses.

metricUuids array of strings optional

Example: ["example string"]

UUIDs of metrics to evaluate (selected from ListModelEvaluationMetrics).

name string optional

Example: example name

presetName string optional

Example: example name

presetSaveSections array of strings optional

Example: ["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 deprecated save_as_preset boolean is true, in which case
all sections are saved). Ignored when eval_preset_uuid is set. Use
preset_name to label the saved preset.

saveAsPreset boolean optional

Example: true

Deprecated: use preset_save_sections. When true and
preset_save_sections is empty, all five sections of the resolved
configuration are saved as a reusable preset (legacy behavior). Ignored
when eval_preset_uuid is set.

source string optional

Example: example string

Source of the run creation (api, sdk, cli).

starMetric object optional
Show child properties
metricUuid string optional

Example: 123e4567-e89b-12d3-a456-426614174000

name string optional

Example: example name

successThreshold number optional

Example: 123

The success threshold for the star metric.
This is a value that the metric must reach to be considered successful.

successThresholdPct integer optional

Example: 123

The success threshold for the star metric.
This is a percentage value between 0 and 100.

Request Sample

Show Request Sample
import { FetchRequestAdapter } from "@microsoft/kiota-http-fetchlibrary";
import {
    createDigitalOceanClient,
    DigitalOceanApiKeyAuthenticationProvider,
} from "@digitalocean/dots";

const authProvider = new DigitalOceanApiKeyAuthenticationProvider(process.env.DIGITALOCEAN_TOKEN!);
const adapter = new FetchRequestAdapter(authProvider);
const client = createDigitalOceanClient(adapter);

const response = await client.v2.genAi.model_evaluation_runs.post({
    candidateInferenceConfig: {
        reasoningEffort: "low",
        stopToken: "example string",
        systemPrompt: "example string",
        temperature: 123,
    },
    candidateModelName: "example name",
    candidateModelSource: "CANDIDATE_MODEL_SOURCE_SERVERLESS",
    candidateModelUuid: "123e4567-e89b-12d3-a456-426614174000",
    datasetUuid: "123e4567-e89b-12d3-a456-426614174000",
    epochs: 1,
    evalPresetUuid: "123e4567-e89b-12d3-a456-426614174000",
    judgeModelUuid: "123e4567-e89b-12d3-a456-426614174000",
    metricUuids: [
        "example string",
    ],
    name: "example name",
    presetName: "example name",
    presetSaveSections: [
        "PRESET_SAVE_SECTION_CANDIDATE",
        "PRESET_SAVE_SECTION_METRICS",
    ],
    saveAsPreset: true,
    source: "example string",
    starMetric: {
        metricUuid: "123e4567-e89b-12d3-a456-426614174000",
        name: "example name",
        successThreshold: 123,
        successThresholdPct: 123,
    },
});

Response Example

Show Response Example
{
  "eval_run_uuid": "123e4567-e89b-12d3-a456-426614174000"
}

More Information

See /v2/gen-ai/model_evaluation_runs in the API reference for additional detail on responses, headers, parameters, and more.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.