dots.v2.genAi.simulation_runs.post()

Generated on 5 Nov 2026 from DoTs version v1.23.0

Usage

client.v2.genAi.simulation_runs.post(body: ApiCreateSimulationRunInputPublic, requestConfiguration?: RequestConfiguration<object>): Promise<undefined | ApiCreateSimulationRunOutput>

Description

To create a simulation run, send a POST request to /v2/gen-ai/simulation_runs. The scenario set must be ready. Judge and user simulator models are optional and use platform defaults when omitted. The run is returned in the pending state.

Parameters

agentConfig object optional

Configuration of the candidate agent under test for a simulation run.

Show child properties
agentDeploymentUuid string optional

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

Optional agent deployment to run. Defaults to the agent's current deployment when unset.

agentUuid string optional

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

UUID of the agent to exercise as the candidate.

name string optional

Example: example name

Display name of the candidate agent. Persisted with the run.

evaluationConfig object optional

Optional configuration that opts a simulation run into an evaluation. When
included on the create-run request, the platform reserves a
model_evaluation_run linked to this simulation run and dispatches the
evaluation automatically after the simulation finishes. The evaluation
reuses the simulation run's judge_model_uuid.

Show child properties
metricUuids array of strings optional

Example: ["example string"]

Evaluation metric UUIDs (from the evaluation metrics catalog). Must be
simulation-eligible (multi-turn) metrics; the create request is rejected
if any UUID is unknown or ineligible.

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.

explorationBudget integer optional

Example: 123

Optional run-level episodes-per-scenario override. When set, overrides each scenario's exploration_budget.

judgeModelUuid string optional

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

Optional model override for the judge. Platform default when unset.

maxTurns integer optional

Example: 123

Optional run-level turn budget. When set, overrides each scenario's max_turns.

name string optional

Example: example name

Optional run name.

scenarioSetUuid string optional

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

UUID of the existing scenario set to execute. The set must be ready.

userSimulatorConfig object optional

Optional user simulator model settings such as temperature and max_tokens.

userSimulatorModelUuid string optional

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

Optional model override for the user simulator. Platform default when unset.

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.simulation_runs.post({
    agentConfig: {
        agentDeploymentUuid: "123e4567-e89b-12d3-a456-426614174000",
        agentUuid: "123e4567-e89b-12d3-a456-426614174000",
        name: "example name",
    },
    evaluationConfig: {
        metricUuids: [
            "example string",
        ],
        starMetric: {
            metricUuid: "123e4567-e89b-12d3-a456-426614174000",
            name: "example name",
            successThreshold: 123,
            successThresholdPct: 123,
        },
    },
    explorationBudget: 123,
    judgeModelUuid: "123e4567-e89b-12d3-a456-426614174000",
    maxTurns: 123,
    name: "example name",
    scenarioSetUuid: "123e4567-e89b-12d3-a456-426614174000",
    userSimulatorModelUuid: "123e4567-e89b-12d3-a456-426614174000",
});

Response Example

Show Response Example
{
  "simulation_run": {
    "agent_config": {
      "agent_deployment_uuid": "123e4567-e89b-12d3-a456-426614174000",
      "agent_uuid": "123e4567-e89b-12d3-a456-426614174000",
      "name": "example name"
    },
    "created_at": "2023-01-01T00:00:00Z",
    "created_by_user_email": "[email protected]",
    "created_by_user_id": "12345",
    "deleted_at": "2023-01-01T00:00:00Z",
    "evaluation_run_uuid": "123e4567-e89b-12d3-a456-426614174000",
    "exploration_budget": 123,
    "failure_reason": "example string",
    "episodes_finished": 123,
    "judge_model_name": "example name",
    "judge_model_uuid": "123e4567-e89b-12d3-a456-426614174000",
    "max_turns": 123,
    "name": "example name",
    "result_summary": {
      "total_duration_sec": "12345"
    },
    "run_uuid": "123e4567-e89b-12d3-a456-426614174000",
    "scenario_count": 123,
    "scenario_set_uuid": "123e4567-e89b-12d3-a456-426614174000",
    "status": "SIMULATION_RUN_STATUS_UNSPECIFIED",
    "total_episodes": 123,
    "updated_at": "2023-01-01T00:00:00Z",
    "user_simulator_model_name": "example name",
    "user_simulator_model_uuid": "123e4567-e89b-12d3-a456-426614174000",
    "workflow_uuid": "123e4567-e89b-12d3-a456-426614174000"
  }
}

More Information

See /v2/gen-ai/simulation_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.