@@ -540,6 +540,7 @@ def start_execution(
540540 code_context : AgentCodeContextParam | Omit = omit ,
541541 mode : AgentMode | Omit = omit ,
542542 name : str | Omit = omit ,
543+ runner_id : str | Omit = omit ,
543544 workflow_action_id : Optional [str ] | Omit = omit ,
544545 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
545546 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -569,6 +570,10 @@ def start_execution(
569570 mode: mode specifies the operational mode for this agent execution If not specified,
570571 defaults to AGENT_MODE_EXECUTION
571572
573+ runner_id: runner_id specifies a runner for this agent execution. When set, the agent
574+ execution is routed to this runner instead of the runner associated with the
575+ environment.
576+
572577 workflow_action_id: workflow_action_id is an optional reference to the workflow execution action
573578 that created this agent execution. Used for tracking and event correlation.
574579
@@ -588,6 +593,7 @@ def start_execution(
588593 "code_context" : code_context ,
589594 "mode" : mode ,
590595 "name" : name ,
596+ "runner_id" : runner_id ,
591597 "workflow_action_id" : workflow_action_id ,
592598 },
593599 agent_start_execution_params .AgentStartExecutionParams ,
@@ -1194,6 +1200,7 @@ async def start_execution(
11941200 code_context : AgentCodeContextParam | Omit = omit ,
11951201 mode : AgentMode | Omit = omit ,
11961202 name : str | Omit = omit ,
1203+ runner_id : str | Omit = omit ,
11971204 workflow_action_id : Optional [str ] | Omit = omit ,
11981205 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
11991206 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -1223,6 +1230,10 @@ async def start_execution(
12231230 mode: mode specifies the operational mode for this agent execution If not specified,
12241231 defaults to AGENT_MODE_EXECUTION
12251232
1233+ runner_id: runner_id specifies a runner for this agent execution. When set, the agent
1234+ execution is routed to this runner instead of the runner associated with the
1235+ environment.
1236+
12261237 workflow_action_id: workflow_action_id is an optional reference to the workflow execution action
12271238 that created this agent execution. Used for tracking and event correlation.
12281239
@@ -1242,6 +1253,7 @@ async def start_execution(
12421253 "code_context" : code_context ,
12431254 "mode" : mode ,
12441255 "name" : name ,
1256+ "runner_id" : runner_id ,
12451257 "workflow_action_id" : workflow_action_id ,
12461258 },
12471259 agent_start_execution_params .AgentStartExecutionParams ,
0 commit comments