dots.v2.genAi.simulation_runs.byRun_uuid().episodes.byEpisode_uuid().get()

Generated on 5 Nov 2026 from DoTs version v1.23.0

Usage

client.v2.genAi.simulation_runs.byRun_uuid(run_uuid).episodes.byEpisode_uuid(episode_uuid).get(requestConfiguration?: RequestConfiguration<object>): Promise<undefined | ApiGetSimulationEpisodeOutput>

Description

To retrieve a single episode, send a GET request to /v2/gen-ai/simulation_runs/{run_uuid}/episodes/{episode_uuid}.

Parameters

run_uuid string required

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

UUID of the run the episode belongs to.

episode_uuid string required

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

UUID of the episode.

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
    .byRun_uuid("\"123e4567-e89b-12d3-a456-426614174000\"").episodes
    .byEpisode_uuid("\"123e4567-e89b-12d3-a456-426614174000\"").get();

Response Example

Show Response Example
{
  "episode": {
    "created_at": "2023-01-01T00:00:00Z",
    "duration_sec": "12345",
    "failure_reason": "example string",
    "episode_index": 123,
    "episode_uuid": "123e4567-e89b-12d3-a456-426614174000",
    "judge_reasoning": "example string",
    "run_uuid": "123e4567-e89b-12d3-a456-426614174000",
    "scenario_uuid": "123e4567-e89b-12d3-a456-426614174000",
    "session_id": "123e4567-e89b-12d3-a456-426614174000",
    "status": "SIMULATION_EPISODE_STATUS_UNSPECIFIED",
    "token_usage": {
      "candidate_agent_tokens": "12345",
      "generator_tokens": "12345",
      "judge_tokens": "12345",
      "simulator_tokens": "12345",
      "total_tokens": "12345"
    },
    "trajectory_bucket_name": "example name",
    "trajectory_bucket_region": "example string",
    "trajectory_spaces_key": "example string",
    "updated_at": "2023-01-01T00:00:00Z",
    "verdict": "SIMULATION_EPISODE_VERDICT_UNSPECIFIED"
  }
}

More Information

See /v2/gen-ai/simulation_runs/{run_uuid}/episodes/{episode_uuid} 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.