3434 maybe_transform ,
3535 async_maybe_transform ,
3636)
37- from ...lib .polling import PollingConfig
3837from ..._compat import cached_property
3938from ..._resource import SyncAPIResource , AsyncAPIResource
4039from ..._response import (
4443 async_to_streamed_response_wrapper ,
4544)
4645from ...pagination import SyncScenariosCursorIDPage , AsyncScenariosCursorIDPage
46+ from ...lib .polling import PollingConfig
4747from ..._base_client import AsyncPaginator , make_request_options
4848from ...types .scenario_view import ScenarioView
4949from ...types .scenario_run_view import ScenarioRunView
@@ -422,6 +422,7 @@ def start_run_and_await_env_ready(
422422 * ,
423423 scenario_id : str ,
424424 benchmark_run_id : Optional [str ] | NotGiven = NOT_GIVEN ,
425+ metadata : Optional [Dict [str , str ]] | NotGiven = NOT_GIVEN ,
425426 run_name : Optional [str ] | NotGiven = NOT_GIVEN ,
426427 polling_config : PollingConfig | None = None ,
427428 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -455,6 +456,7 @@ def start_run_and_await_env_ready(
455456 run = self .start_run (
456457 scenario_id = scenario_id ,
457458 benchmark_run_id = benchmark_run_id ,
459+ metadata = metadata ,
458460 run_name = run_name ,
459461 extra_headers = extra_headers ,
460462 extra_query = extra_query ,
@@ -842,6 +844,7 @@ async def start_run_and_await_env_ready(
842844 self ,
843845 scenario_id : str ,
844846 benchmark_run_id : Optional [str ] | NotGiven = NOT_GIVEN ,
847+ metadata : Optional [Dict [str , str ]] | NotGiven = NOT_GIVEN ,
845848 run_name : Optional [str ] | NotGiven = NOT_GIVEN ,
846849 polling_config : PollingConfig | None = None ,
847850 ) -> ScenarioRunView :
@@ -863,6 +866,7 @@ async def start_run_and_await_env_ready(
863866 run = await self .start_run (
864867 scenario_id = scenario_id ,
865868 benchmark_run_id = benchmark_run_id ,
869+ metadata = metadata ,
866870 run_name = run_name ,
867871 )
868872
0 commit comments