Create a Scenario.
Create a Scenario, a repeatable AI coding evaluation test that defines the starting environment as well as evaluation success criteria.
Request body
Name of the scenario.
User defined metadata to attach to the scenario for organization.
A string representation of the reference output to solve the scenario. Commonly can be the result of a git diff or a sequence of command actions to apply to the environment.
Environment variables required to run the scenario. If these variables are not provided, the scenario will fail to start.
Secrets required to run the scenario (user secret name to scenario required secret name). If these secrets are not provided or the mapping is incorrect, the scenario will fail to start.
Timeout for scoring in seconds. Default 30 minutes (1800s).
Response
OK
The ID of the Scenario.
The name of the Scenario.
User defined metadata to attach to the scenario for organization.
A string representation of the reference output to solve the scenario. Commonly can be the result of a git diff or a sequence of command actions to apply to the environment.
Environment variables required to run the scenario. If any required environment variables are missing, the scenario will fail to start.
Environment variables required to run the scenario. If any required secrets are missing, the scenario will fail to start.
Whether this scenario is public.
Timeout for scoring in seconds. Default 30 minutes (1800s).