@runloop/api-client - v1.4.0
    Preparing search index...

    Hierarchy

    • APIResource
      • Runs
    Index

    Constructors

    Properties

    _client: Runloop

    Methods

    • Cancel a currently running Scenario run. This will shutdown the underlying Devbox resource.

      Parameters

      • id: string
      • Optionaloptions: RequestOptions<unknown>

      Returns APIPromise<ScenarioRunView>

    • Complete a currently running ScenarioRun. Calling complete will shutdown underlying Devbox resource.

      Parameters

      • id: string
      • Optionaloptions: RequestOptions<unknown>

      Returns APIPromise<ScenarioRunView>

    • Download a zip file containing all logs for a Scenario run from the associated devbox.

      Parameters

      • id: string
      • Optionaloptions: RequestOptions<unknown>

      Returns APIPromise<Response>

    • Wait for a scenario run to finish scoring. Polls the scenario run status until it reaches a terminal state.

      Parameters

      • id: string
      • Optionaloptions: RequestOptions<unknown> & { polling?: Partial<PollingOptions<ScenarioRunView>> }

      Returns Promise<ScenarioRunView>

    • Score a scenario run and wait for it to finish scoring. This is a convenience method that combines score() and awaitScoring().

      Parameters

      • id: string
      • Optionaloptions: RequestOptions<unknown> & { polling?: Partial<PollingOptions<ScenarioRunView>> }

      Returns Promise<ScenarioRunView>

    • Score a scenario run, wait for scoring to complete, and then complete the run. This is a convenience method that combines scoreAndAwait() and complete().

      Parameters

      • id: string
      • Optionaloptions: RequestOptions<unknown> & { polling?: Partial<PollingOptions<ScenarioRunView>> }

      Returns Promise<ScenarioRunView>