pydo.genai.list_scenario_sets()
Generated on 1 Oct 2026
from pydo version
v0.43.0
Usage
client.genai.list_scenario_sets(
page=None,
per_page=None,
statuses=None,
source_kinds=None,
search=None,
sort_by="SCENARIO_SET_SORT_FIELD_UNSPECIFIED",
sort_direction="SORT_DIRECTION_UNSPECIFIED",
)Description
To list scenario sets, send a GET request to /v2/gen-ai/scenario_sets.
Parameters
pageinteger optionalPage number.
per_pageinteger optionalItems per page.
statusesarray of strings optionalFilter by one or more statuses. Empty means no status filter.
- SCENARIO_SET_STATUS_GENERATING: Generation is in progress. The scenarios are not ready yet.
- SCENARIO_SET_STATUS_READY: The scenario set is ready to use.
- SCENARIO_SET_STATUS_FAILED: Generation failed. The scenario set has no readable scenarios.
- SCENARIO_SET_STATUS_CANCELLED: Generation was cancelled before completion.source_kindsarray of strings optionalFilter by one or more source kinds. Empty means no source-kind filter.
- SCENARIO_SET_SOURCE_KIND_USER_UPLOAD: Created from uploaded or inline scenarios.
- SCENARIO_SET_SOURCE_KIND_GOAL_GENERATED: Produced by goal-driven generation.
- SCENARIO_SET_SOURCE_KIND_LIBRARY: Copied from a platform-curated library entry.
- SCENARIO_SET_SOURCE_KIND_SIGNAL_GENERATED: Produced from a completed Signals export.searchstring optionalFree-text search across name and description
(case-insensitive substring match). Empty means no search.sort_bystring optionalField to sort by. Defaults to creation date when unspecified.
- SCENARIO_SET_SORT_FIELD_CREATED_AT: Sort by creation date. Default.
- SCENARIO_SET_SORT_FIELD_NAME: Sort by customer-supplied name (case-insensitive).
- SCENARIO_SET_SORT_FIELD_STATUS: Sort by status using lifecycle order (generating → ready → terminal).
- SCENARIO_SET_SORT_FIELD_SCENARIO_COUNT: Sort by scenario_count.
- SCENARIO_SET_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_scenario_sets()
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_scenario_sets(page=page)
pages = resp.get("links", {}).get("pages", {})Response Example
More Information
See /v2/gen-ai/scenario_sets in the API reference for additional detail on responses, headers, parameters, and more.