Create a new ScenarioBuilder for constructing a scenario with a fluent API.
Name for the scenario
A ScenarioBuilder instance
Get a scenario object by its ID.
The ID of the scenario
A Scenario instance
List scenarios with optional filters (paginated).
Optionalparams: ScenarioListParamsOptional filter parameters
Optionaloptions: RequestOptions<unknown>Request options
An array of Scenario instances
Scenario SDK interface for managing scenarios.
Remarks
Overview
The
ScenarioOpsclass provides a high-level abstraction for managing scenarios.Quickstart
Use
fromId()to get a Scenario by ID,list()to retrieve all scenarios, orbuilder()to construct a new scenario with a fluent API. Once you have a scenario, callscenario.run()to start a ScenarioRun with your agent mounted.Usage
This interface is accessed via RunloopSDK.scenario. You should construct a RunloopSDK instance and use it from there:
Example