pydo.genai.list_simulation_runs()
Generated on 1 Oct 2026
from pydo version
v0.43.0
Usage
client.genai.list_simulation_runs(
scenario_set_uuid=None,
page=None,
per_page=None,
statuses=None,
search=None,
sort_by="SIMULATION_RUN_SORT_FIELD_UNSPECIFIED",
sort_direction="SORT_DIRECTION_UNSPECIFIED",
)Description
To list simulation runs, send a GET request to /v2/gen-ai/simulation_runs.
Parameters
scenario_set_uuidstring optionalOptional filter by scenario set.
pageinteger optionalPage number.
per_pageinteger optionalItems per page.
statusesarray of strings optionalFilter by one or more statuses. Empty means no status filter.
- SIMULATION_RUN_STATUS_PENDING: Accepted and queued, not yet executing.
- SIMULATION_RUN_STATUS_RUNNING: Journeys are executing.
- SIMULATION_RUN_STATUS_SUCCEEDED: All journeys finished successfully.
- SIMULATION_RUN_STATUS_FAILED: The run failed, for example because of a timeout or workflow error.
- SIMULATION_RUN_STATUS_CANCELLED: The run was cancelled.
- SIMULATION_RUN_STATUS_EVALUATING: Journeys finished and an attached evaluation is running. Only reachable
when the create request included evaluation_config. When the evaluation
reaches a terminal status, its outcome is reflected in the simulation run
status.
- SIMULATION_RUN_STATUS_PARTIALLY_SUCCESSFUL: The simulation or its attached evaluation completed with a mixture of
successful and failed results.searchstring optionalFree-text search across the run name and scenario set name
(case-insensitive substring match). Empty means no search.sort_bystring optionalField to sort by. Defaults to creation date when unspecified.
- SIMULATION_RUN_SORT_FIELD_CREATED_AT: Sort by creation date. Default.
- SIMULATION_RUN_SORT_FIELD_NAME: Sort by customer-supplied run name (case-insensitive).
- SIMULATION_RUN_SORT_FIELD_STATUS: Sort by status using lifecycle order (pending → running → terminal).
- SIMULATION_RUN_SORT_FIELD_UPDATED_AT: Sort by last update date.sort_directionstring optionalSort direction. Defaults to descending when unspecified.
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
parameter:
from urllib.parse import urlparse, parse_qs
resp = client.genai.list_simulation_runs()
pages = resp.get("links", {}).get("pages", {})
while "next" in pages:
parsed = urlparse(pages["next"])
page = int(parse_qs(parsed.query)["page"][0])
resp = client.genai.list_simulation_runs(page=page)
pages = resp.get("links", {}).get("pages", {})Response Example
More Information
See /v2/gen-ai/simulation_runs in the API reference for additional detail on responses, headers, parameters, and more.