pydo.genai.create_scenario_set()
Generated on 1 Oct 2026
from pydo version
v0.43.0
Usage
client.genai.create_scenario_set(
body={
"file_upload_scenario_set": {...},
"name": "support-agent-scenarios",
"scenarios": [...],
},
)Description
To create a scenario set, send a POST request to /v2/gen-ai/scenario_sets. Provide exactly one of scenarios or file_upload_scenario_set. The set is created in the ready state.
Parameters
file_upload_scenario_setobject optionalUploaded scenario file to ingest. Provide this or
scenarios, not both.Show child properties
original_file_namestring optionalExample:
example nameThe original file name
size_in_bytesstring optionalExample:
12345The size of the file in bytes
stored_object_keystring optionalExample:
example stringThe object key the file was stored as
namestring optionalExample:
support-agent-scenariosThe name of the scenario set.
scenariosarray of objects optionalInline scenarios. Provide this or
file_upload_scenario_set, not both.Show child properties
descriptionstring optionalExample:
example stringWhat the user tries to accomplish. Required.
exploration_budgetinteger optionalExample:
123Number of journeys to explore for this scenario. Defaults to 1 if unset.
max_turnsinteger optionalExample:
123Turn budget for the scenario. Falls back to the run-level default if unset.
namestring optionalExample:
example nameHuman-readable name for the scenario. Optional.
scenario_uuidstring optionalExample:
123e4567-e89b-12d3-a456-426614174000Unique id for the scenario. Always generated by the API; any
customer-supplied value is ignored and overwritten.stopping_criteriaarray of strings optionalExample:
['example string']Judge stopping criteria. Required; must contain at least one entry.
user_personastring optionalExample:
example stringHow the user communicates (tone, role). Optional.
Request Sample
Response Example
More Information
See /v2/gen-ai/scenario_sets in the API reference for additional detail on responses, headers, parameters, and more.