22
33from __future__ import annotations
44
5- from typing import List , Union , Iterable
5+ from typing import List , Iterable
66from typing_extensions import Literal , overload
77
88import httpx
2626from ...types .agents import turn_create_params , turn_resume_params
2727from ...types .agents .turn import Turn
2828from ...types .tool_response_param import ToolResponseParam
29- from ...types .shared_params .tool_response_message import ToolResponseMessage
3029from ...types .agents .agent_turn_response_stream_chunk import AgentTurnResponseStreamChunk
3130
3231__all__ = ["TurnResource" , "AsyncTurnResource" ]
@@ -275,7 +274,7 @@ def resume(
275274 * ,
276275 agent_id : str ,
277276 session_id : str ,
278- tool_responses : Union [ Iterable [ToolResponseParam ], Iterable [ ToolResponseMessage ] ],
277+ tool_responses : Iterable [ToolResponseParam ],
279278 stream : Literal [False ] | NotGiven = NOT_GIVEN ,
280279 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
281280 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -292,8 +291,7 @@ def resume(
292291 ready.
293292
294293 Args:
295- tool_responses: The tool call responses to resume the turn with. NOTE: ToolResponseMessage will
296- be deprecated. Use ToolResponse.
294+ tool_responses: The tool call responses to resume the turn with.
297295
298296 stream: Whether to stream the response.
299297
@@ -315,7 +313,7 @@ def resume(
315313 agent_id : str ,
316314 session_id : str ,
317315 stream : Literal [True ],
318- tool_responses : Union [ Iterable [ToolResponseParam ], Iterable [ ToolResponseMessage ] ],
316+ tool_responses : Iterable [ToolResponseParam ],
319317 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
320318 # The extra values given here take precedence over values defined on the client or passed to this method.
321319 extra_headers : Headers | None = None ,
@@ -333,8 +331,7 @@ def resume(
333331 Args:
334332 stream: Whether to stream the response.
335333
336- tool_responses: The tool call responses to resume the turn with. NOTE: ToolResponseMessage will
337- be deprecated. Use ToolResponse.
334+ tool_responses: The tool call responses to resume the turn with.
338335
339336 extra_headers: Send extra headers
340337
@@ -354,7 +351,7 @@ def resume(
354351 agent_id : str ,
355352 session_id : str ,
356353 stream : bool ,
357- tool_responses : Union [ Iterable [ToolResponseParam ], Iterable [ ToolResponseMessage ] ],
354+ tool_responses : Iterable [ToolResponseParam ],
358355 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
359356 # The extra values given here take precedence over values defined on the client or passed to this method.
360357 extra_headers : Headers | None = None ,
@@ -372,8 +369,7 @@ def resume(
372369 Args:
373370 stream: Whether to stream the response.
374371
375- tool_responses: The tool call responses to resume the turn with. NOTE: ToolResponseMessage will
376- be deprecated. Use ToolResponse.
372+ tool_responses: The tool call responses to resume the turn with.
377373
378374 extra_headers: Send extra headers
379375
@@ -392,7 +388,7 @@ def resume(
392388 * ,
393389 agent_id : str ,
394390 session_id : str ,
395- tool_responses : Union [ Iterable [ToolResponseParam ], Iterable [ ToolResponseMessage ] ],
391+ tool_responses : Iterable [ToolResponseParam ],
396392 stream : Literal [False ] | Literal [True ] | NotGiven = NOT_GIVEN ,
397393 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
398394 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -668,7 +664,7 @@ async def resume(
668664 * ,
669665 agent_id : str ,
670666 session_id : str ,
671- tool_responses : Union [ Iterable [ToolResponseParam ], Iterable [ ToolResponseMessage ] ],
667+ tool_responses : Iterable [ToolResponseParam ],
672668 stream : Literal [False ] | NotGiven = NOT_GIVEN ,
673669 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
674670 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -685,8 +681,7 @@ async def resume(
685681 ready.
686682
687683 Args:
688- tool_responses: The tool call responses to resume the turn with. NOTE: ToolResponseMessage will
689- be deprecated. Use ToolResponse.
684+ tool_responses: The tool call responses to resume the turn with.
690685
691686 stream: Whether to stream the response.
692687
@@ -708,7 +703,7 @@ async def resume(
708703 agent_id : str ,
709704 session_id : str ,
710705 stream : Literal [True ],
711- tool_responses : Union [ Iterable [ToolResponseParam ], Iterable [ ToolResponseMessage ] ],
706+ tool_responses : Iterable [ToolResponseParam ],
712707 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
713708 # The extra values given here take precedence over values defined on the client or passed to this method.
714709 extra_headers : Headers | None = None ,
@@ -726,8 +721,7 @@ async def resume(
726721 Args:
727722 stream: Whether to stream the response.
728723
729- tool_responses: The tool call responses to resume the turn with. NOTE: ToolResponseMessage will
730- be deprecated. Use ToolResponse.
724+ tool_responses: The tool call responses to resume the turn with.
731725
732726 extra_headers: Send extra headers
733727
@@ -747,7 +741,7 @@ async def resume(
747741 agent_id : str ,
748742 session_id : str ,
749743 stream : bool ,
750- tool_responses : Union [ Iterable [ToolResponseParam ], Iterable [ ToolResponseMessage ] ],
744+ tool_responses : Iterable [ToolResponseParam ],
751745 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
752746 # The extra values given here take precedence over values defined on the client or passed to this method.
753747 extra_headers : Headers | None = None ,
@@ -765,8 +759,7 @@ async def resume(
765759 Args:
766760 stream: Whether to stream the response.
767761
768- tool_responses: The tool call responses to resume the turn with. NOTE: ToolResponseMessage will
769- be deprecated. Use ToolResponse.
762+ tool_responses: The tool call responses to resume the turn with.
770763
771764 extra_headers: Send extra headers
772765
@@ -785,7 +778,7 @@ async def resume(
785778 * ,
786779 agent_id : str ,
787780 session_id : str ,
788- tool_responses : Union [ Iterable [ToolResponseParam ], Iterable [ ToolResponseMessage ] ],
781+ tool_responses : Iterable [ToolResponseParam ],
789782 stream : Literal [False ] | Literal [True ] | NotGiven = NOT_GIVEN ,
790783 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
791784 # The extra values given here take precedence over values defined on the client or passed to this method.
0 commit comments