3636from ..types .prompt import Prompt
3737from ..types .agent_mode import AgentMode
3838from ..types .agent_execution import AgentExecution
39+ from ..types .agent_message_param import AgentMessageParam
3940from ..types .user_input_block_param import UserInputBlockParam
4041from ..types .agent_code_context_param import AgentCodeContextParam
4142from ..types .agent_create_prompt_response import AgentCreatePromptResponse
@@ -483,6 +484,7 @@ def send_to_execution(
483484 self ,
484485 * ,
485486 agent_execution_id : str | Omit = omit ,
487+ agent_message : AgentMessageParam | Omit = omit ,
486488 user_input : UserInputBlockParam | Omit = omit ,
487489 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
488490 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -510,6 +512,9 @@ def send_to_execution(
510512 ```
511513
512514 Args:
515+ agent_message: AgentMessage is a message sent between agents (e.g. from a parent agent to a
516+ child agent execution, or vice versa).
517+
513518 extra_headers: Send extra headers
514519
515520 extra_query: Add additional query parameters to the request
@@ -523,6 +528,7 @@ def send_to_execution(
523528 body = maybe_transform (
524529 {
525530 "agent_execution_id" : agent_execution_id ,
531+ "agent_message" : agent_message ,
526532 "user_input" : user_input ,
527533 },
528534 agent_send_to_execution_params .AgentSendToExecutionParams ,
@@ -1154,6 +1160,7 @@ async def send_to_execution(
11541160 self ,
11551161 * ,
11561162 agent_execution_id : str | Omit = omit ,
1163+ agent_message : AgentMessageParam | Omit = omit ,
11571164 user_input : UserInputBlockParam | Omit = omit ,
11581165 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
11591166 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -1181,6 +1188,9 @@ async def send_to_execution(
11811188 ```
11821189
11831190 Args:
1191+ agent_message: AgentMessage is a message sent between agents (e.g. from a parent agent to a
1192+ child agent execution, or vice versa).
1193+
11841194 extra_headers: Send extra headers
11851195
11861196 extra_query: Add additional query parameters to the request
@@ -1194,6 +1204,7 @@ async def send_to_execution(
11941204 body = await async_maybe_transform (
11951205 {
11961206 "agent_execution_id" : agent_execution_id ,
1207+ "agent_message" : agent_message ,
11971208 "user_input" : user_input ,
11981209 },
11991210 agent_send_to_execution_params .AgentSendToExecutionParams ,
0 commit comments