Retrieve current scenario details.
Optionaloptions: RequestOptions<unknown>Request options
Current scenario info
Update the scenario.
Only provided fields will be updated. Fields that are null will preserve existing values.
Optionalparams: ScenarioUpdateParamsUpdate parameters
Optionaloptions: RequestOptions<unknown>Request options
Updated scenario info
Start a new scenario run without waiting for the devbox to be ready.
Creates a new scenario run and returns immediately. The devbox may still
be starting; call awaitEnvReady() on the returned ScenarioRun to wait
for it to be ready.
Optionalparams: ScenarioRunParamsRun parameters
Optionaloptions: RequestOptions<unknown>Request options
ScenarioRun instance for managing the run
Start a new scenario run and wait for the devbox to be ready.
Convenience method that starts a run and waits for the devbox to be ready before returning.
Optionalparams: ScenarioRunParamsRun parameters
Optionaloptions: RequestOptions<unknown> & { polling?: Partial<PollingOptions<DevboxView>> }Request options with optional polling config
ScenarioRun instance with ready devbox
Object-oriented interface for working with Scenarios.
Remarks
Overview
The
Scenarioclass provides a high-level API for managing scenarios and starting scenario runs. A scenario defines a repeatable task with a well defined starting environment, task evaluation scorer and an optional reference solution.Quickstart
Scenarios can be instantiated with
runloop.scenario.fromId(scn_123):