44
55import typing_extensions
66from typing import Optional , cast
7+ from typing_extensions import Literal
78
89import httpx
910
@@ -338,7 +339,8 @@ def send_std_in(
338339 execution_id : str ,
339340 * ,
340341 devbox_id : str ,
341- text : str | Omit = omit ,
342+ signal : Optional [Literal ["EOF" , "INTERRUPT" ]] | Omit = omit ,
343+ text : Optional [str ] | Omit = omit ,
342344 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
343345 # The extra values given here take precedence over values defined on the client or passed to this method.
344346 extra_headers : Headers | None = None ,
@@ -351,6 +353,8 @@ def send_std_in(
351353 Send content to the Std In of a running execution.
352354
353355 Args:
356+ signal: Signal to send to std in of the running execution.
357+
354358 text: Text to send to std in of the running execution.
355359
356360 extra_headers: Send extra headers
@@ -369,7 +373,13 @@ def send_std_in(
369373 raise ValueError (f"Expected a non-empty value for `execution_id` but received { execution_id !r} " )
370374 return self ._post (
371375 f"/v1/devboxes/{ devbox_id } /executions/{ execution_id } /send_std_in" ,
372- body = maybe_transform ({"text" : text }, execution_send_std_in_params .ExecutionSendStdInParams ),
376+ body = maybe_transform (
377+ {
378+ "signal" : signal ,
379+ "text" : text ,
380+ },
381+ execution_send_std_in_params .ExecutionSendStdInParams ,
382+ ),
373383 options = make_request_options (
374384 extra_headers = extra_headers ,
375385 extra_query = extra_query ,
@@ -838,7 +848,8 @@ async def send_std_in(
838848 execution_id : str ,
839849 * ,
840850 devbox_id : str ,
841- text : str | Omit = omit ,
851+ signal : Optional [Literal ["EOF" , "INTERRUPT" ]] | Omit = omit ,
852+ text : Optional [str ] | Omit = omit ,
842853 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
843854 # The extra values given here take precedence over values defined on the client or passed to this method.
844855 extra_headers : Headers | None = None ,
@@ -851,6 +862,8 @@ async def send_std_in(
851862 Send content to the Std In of a running execution.
852863
853864 Args:
865+ signal: Signal to send to std in of the running execution.
866+
854867 text: Text to send to std in of the running execution.
855868
856869 extra_headers: Send extra headers
@@ -869,7 +882,13 @@ async def send_std_in(
869882 raise ValueError (f"Expected a non-empty value for `execution_id` but received { execution_id !r} " )
870883 return await self ._post (
871884 f"/v1/devboxes/{ devbox_id } /executions/{ execution_id } /send_std_in" ,
872- body = await async_maybe_transform ({"text" : text }, execution_send_std_in_params .ExecutionSendStdInParams ),
885+ body = await async_maybe_transform (
886+ {
887+ "signal" : signal ,
888+ "text" : text ,
889+ },
890+ execution_send_std_in_params .ExecutionSendStdInParams ,
891+ ),
873892 options = make_request_options (
874893 extra_headers = extra_headers ,
875894 extra_query = extra_query ,
0 commit comments