Skip to content

Commit d2da07a

Browse files
committed
added run_profile as available field when starting a scenario
1 parent 27ecd77 commit d2da07a

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/runloop_api_client/resources/scenarios/scenarios.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,7 @@ def start_run_and_await_env_ready(
450450
benchmark_run_id: Optional[str] | NotGiven = NOT_GIVEN,
451451
metadata: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
452452
run_name: Optional[str] | NotGiven = NOT_GIVEN,
453+
run_profile: Optional[scenario_start_run_params.RunProfile] | NotGiven = NOT_GIVEN,
453454
polling_config: PollingConfig | None = None,
454455
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
455456
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -465,6 +466,7 @@ def start_run_and_await_env_ready(
465466
scenario_id: ID of the Scenario to run
466467
benchmark_run_id: Benchmark to associate the run
467468
run_name: Display name of the run
469+
run_profile: Runtime configuration to use for this benchmark run
468470
polling_config: Optional polling configuration
469471
extra_headers: Send extra headers
470472
extra_query: Add additional query parameters to the request
@@ -484,6 +486,7 @@ def start_run_and_await_env_ready(
484486
benchmark_run_id=benchmark_run_id,
485487
metadata=metadata,
486488
run_name=run_name,
489+
run_profile=run_profile,
487490
extra_headers=extra_headers,
488491
extra_query=extra_query,
489492
extra_body=extra_body,
@@ -895,6 +898,7 @@ async def start_run_and_await_env_ready(
895898
benchmark_run_id: Optional[str] | NotGiven = NOT_GIVEN,
896899
metadata: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
897900
run_name: Optional[str] | NotGiven = NOT_GIVEN,
901+
run_profile: Optional[scenario_start_run_params.RunProfile] | NotGiven = NOT_GIVEN,
898902
polling_config: PollingConfig | None = None,
899903
) -> ScenarioRunView:
900904
"""Start a new ScenarioRun and wait for its environment to be ready.
@@ -903,6 +907,7 @@ async def start_run_and_await_env_ready(
903907
scenario_id: ID of the Scenario to run
904908
benchmark_run_id: Benchmark to associate the run
905909
run_name: Display name of the run
910+
run_profile: Runtime configuration to use for this benchmark run
906911
polling_config: Optional polling configuration
907912
908913
Returns:
@@ -917,6 +922,7 @@ async def start_run_and_await_env_ready(
917922
benchmark_run_id=benchmark_run_id,
918923
metadata=metadata,
919924
run_name=run_name,
925+
run_profile=run_profile,
920926
)
921927

922928
await self._client.devboxes.await_running(
@@ -926,6 +932,7 @@ async def start_run_and_await_env_ready(
926932

927933
return run
928934

935+
929936
class ScenariosResourceWithRawResponse:
930937
def __init__(self, scenarios: ScenariosResource) -> None:
931938
self._scenarios = scenarios

0 commit comments

Comments
 (0)