dots.v2.genAi.simulation_runs.byRun_uuid().episodes.get()
Generated on 5 Nov 2026
from DoTs version
v1.23.0
Usage
client.v2.genAi.simulation_runs.byRun_uuid(run_uuid).episodes.get(requestConfiguration?: RequestConfiguration<EpisodesRequestBuilderGetQueryParameters>): Promise<undefined | ApiListSimulationEpisodesOutput>Description
To list the episodes within a simulation run, send a GET request to /v2/gen-ai/simulation_runs/{run_uuid}/episodes.
Parameters
Path Parameters
run_uuidstring requiredExample:
"123e4567-e89b-12d3-a456-426614174000"UUID of the run whose episodes to list.
Query Parameters
scenarioUuidstring optionalExample:
123e4567-e89b-12d3-a456-426614174000Optional filter by scenario.
pageinteger optionalExample:
1Page number.
perPageinteger optionalExample:
1Items per page.
statusesarray of strings optionalExample:
["SIMULATION_EPISODE_STATUS_FINISHED"]Filter by one or more statuses. Empty means no status filter.
- SIMULATION_EPISODE_STATUS_RUNNING: The episode is executing and a trajectory is available to retrieve.
- SIMULATION_EPISODE_STATUS_FINISHED: The episode reached a stop condition and produced a verdict.
- SIMULATION_EPISODE_STATUS_FAILED: The episode failed because of a cancel, timeout, or error.
- SIMULATION_EPISODE_STATUS_PREPARING: The episode is allocated but its trajectory is not available yet.verdictsarray of strings optionalExample:
["SIMULATION_EPISODE_VERDICT_SUCCESS"]Filter by one or more verdicts. Empty means no verdict filter.
- SIMULATION_EPISODE_VERDICT_SUCCESS: The candidate agent satisfied the scenario's stopping criteria.
- SIMULATION_EPISODE_VERDICT_FAILURE: The candidate agent did not satisfy the stopping criteria.
- SIMULATION_EPISODE_VERDICT_INCONCLUSIVE: No conclusive verdict (e.g. max_turns reached without the judge finishing).searchstring optionalExample:
example stringFree-text search across scenario_uuid and session_id
(case-insensitive substring match). Empty means no search.sortBystring optionalField to sort by. Defaults to scenario ordering when unspecified.
- SIMULATION_EPISODE_SORT_FIELD_SCENARIO: Sort by scenario_uuid then episode_index. Default.
- SIMULATION_EPISODE_SORT_FIELD_CREATED_AT: Sort by creation date.
- SIMULATION_EPISODE_SORT_FIELD_STATUS: Sort by episode status using lifecycle order.
- SIMULATION_EPISODE_SORT_FIELD_VERDICT: Sort by verdict (nulls last).sortDirectionstring optionalSort direction. Defaults to ascending when unspecified.
Request Sample
Pagination
This method returns paginated results. The response includes a links.pages object with URLs for navigating between pages. To retrieve the next page, parse the next URL and pass the page query parameter:
let response = await client.v2.genAi.simulation_runs
.byRun_uuid("\"123e4567-e89b-12d3-a456-426614174000\"").episodes.get();
let pages = response?.links?.pages;
while (pages && "next" in pages && typeof pages.next === "string") {
const page = Number(new URL(pages.next).searchParams.get("page"));
response = await client.v2.genAi.simulation_runs
.byRun_uuid("\"123e4567-e89b-12d3-a456-426614174000\"").episodes.get({
queryParameters: {
page,
},
});
pages = response?.links?.pages;
}Response Example
More Information
See /v2/gen-ai/simulation_runs/{run_uuid}/episodes in the API reference for additional detail on responses, headers, parameters, and more.