
    עik                       d dl mZ d dlmZmZmZ d dlmZmZ d dl	Z	ddl
mZmZ ddlmZmZmZmZmZmZmZ ddlmZmZmZ dd	lmZ dd
lmZmZ ddlmZm Z m!Z!m"Z" ddl#m$Z$m%Z% ddl&m'Z' ddl(m)Z) ddl*m+Z+ ddl,m-Z- ddl.m/Z/ ddl0m1Z1 ddgZ2 G d de      Z3 G d de      Z4 G d d      Z5 G d d      Z6 G d d      Z7 G d d      Z8y)    )annotations)ListUnionIterable)LiteraloverloadN   )interaction_get_paramsinteraction_create_params)BodyOmitQueryHeadersNotGivenomit	not_given)required_argsmaybe_transformasync_maybe_transform)cached_property)SyncAPIResourceAsyncAPIResource)to_raw_response_wrapperto_streamed_response_wrapperasync_to_raw_response_wrapper"async_to_streamed_response_wrapper)StreamAsyncStream)make_request_options)	ToolParam)Interaction)
ModelParam)InteractionSSEEvent)GenerationConfigParamInteractionsResourceAsyncInteractionsResourcec                     e Zd Zedd       Zedd       Zedeeeeeeeeeeddded	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dd       Z	edeeeeeeeeeddded	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d d	       Z	edeeeeeeeeeeddded
	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d!d       Z	edeeeeeeeeeddded	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d"d       Z	edeeeeeeeeeddded	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d#d       Z	 e
ddgg dddgg d      deeeeeeeeeeeeeddded	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d$d       Z	dddded	 	 	 	 	 	 	 	 	 	 	 	 	 d%dZdddded	 	 	 	 	 	 	 	 	 	 	 	 	 d&dZedeeeddded	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d'd       Zedeeddded	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d(d       Zedeeddded	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d)d       Zdeeeddded	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d*dZy)+r%   c                    t        |       S a$  
        This property can be used as a prefix for any HTTP method call to return
        the raw response object instead of the parsed content.

        For more information, see https://www.github.com/stainless-sdks/gemini-next-gen-api-python#accessing-raw-response-data-eg-headers
        )#InteractionsResourceWithRawResponseselfs    r/sites/domain-asset-master/.venv/lib/python3.12/site-packages/google/genai/_interactions/resources/interactions.pywith_raw_responsez&InteractionsResource.with_raw_response0   s     3488    c                    t        |       S z
        An alternative to `.with_raw_response` that doesn't eagerly read the response body.

        For more information, see https://www.github.com/stainless-sdks/gemini-next-gen-api-python#with_streaming_response
        ))InteractionsResourceWithStreamingResponser+   s    r-   with_streaming_responsez,InteractionsResource.with_streaming_response:   s     9>>r/   Napi_version
backgroundgeneration_configprevious_interaction_idresponse_formatresponse_mime_typeresponse_modalitiesstorestreamsystem_instructiontoolsextra_headersextra_query
extra_bodytimeoutinputmodelc                    ya  
        Creates a new interaction.

        Args:
          input: The inputs for the interaction.

          model: The name of the `Model` used for generating the interaction.

          background: Input only. Whether to run the model interaction in the background.

          generation_config: Input only. Configuration parameters for the model interaction.

          previous_interaction_id: The ID of the previous interaction, if any.

          response_format: Enforces that the generated response is a JSON object that complies with
              the JSON schema specified in this field.

          response_mime_type: The mime type of the response. This is required if response_format is set.

          response_modalities: The requested modalities of the response (TEXT, IMAGE, AUDIO).

          store: Input only. Whether to store the response and request for later retrieval.

          stream: Input only. Whether the interaction will be streamed.

          system_instruction: System instruction for the interaction.

          tools: A list of tool declarations the model may call during interaction.

          extra_headers: Send extra headers

          extra_query: Add additional query parameters to the request

          extra_body: Add additional JSON properties to the request

          timeout: Override the client-level default timeout for this request, in seconds
        N r,   r5   rD   rE   r6   r7   r8   r9   r:   r;   r<   r=   r>   r?   r@   rA   rB   rC   s                     r-   createzInteractionsResource.createC       z 	r/   r5   r6   r7   r8   r9   r:   r;   r<   r>   r?   r@   rA   rB   rC   c                    ya  
        Creates a new interaction.

        Args:
          input: The inputs for the interaction.

          model: The name of the `Model` used for generating the interaction.

          stream: Input only. Whether the interaction will be streamed.

          background: Input only. Whether to run the model interaction in the background.

          generation_config: Input only. Configuration parameters for the model interaction.

          previous_interaction_id: The ID of the previous interaction, if any.

          response_format: Enforces that the generated response is a JSON object that complies with
              the JSON schema specified in this field.

          response_mime_type: The mime type of the response. This is required if response_format is set.

          response_modalities: The requested modalities of the response (TEXT, IMAGE, AUDIO).

          store: Input only. Whether to store the response and request for later retrieval.

          system_instruction: System instruction for the interaction.

          tools: A list of tool declarations the model may call during interaction.

          extra_headers: Send extra headers

          extra_query: Add additional query parameters to the request

          extra_body: Add additional JSON properties to the request

          timeout: Override the client-level default timeout for this request, in seconds
        NrH   r,   r5   rD   rE   r=   r6   r7   r8   r9   r:   r;   r<   r>   r?   r@   rA   rB   rC   s                     r-   rJ   zInteractionsResource.create   rK   r/   r5   agent_configr6   r8   r9   r:   r;   r<   r=   r>   r?   r@   rA   rB   rC   agentc                    yaW  
        Creates a new interaction.

        Args:
          agent: The name of the `Agent` used for generating the interaction.

          input: The inputs for the interaction.

          agent_config: Configuration for the agent.

          background: Input only. Whether to run the model interaction in the background.

          previous_interaction_id: The ID of the previous interaction, if any.

          response_format: Enforces that the generated response is a JSON object that complies with
              the JSON schema specified in this field.

          response_mime_type: The mime type of the response. This is required if response_format is set.

          response_modalities: The requested modalities of the response (TEXT, IMAGE, AUDIO).

          store: Input only. Whether to store the response and request for later retrieval.

          stream: Input only. Whether the interaction will be streamed.

          system_instruction: System instruction for the interaction.

          tools: A list of tool declarations the model may call during interaction.

          extra_headers: Send extra headers

          extra_query: Add additional query parameters to the request

          extra_body: Add additional JSON properties to the request

          timeout: Override the client-level default timeout for this request, in seconds
        NrH   r,   r5   rR   rD   rQ   r6   r8   r9   r:   r;   r<   r=   r>   r?   r@   rA   rB   rC   s                     r-   rJ   zInteractionsResource.create   rK   r/   r5   rQ   r6   r8   r9   r:   r;   r<   r>   r?   r@   rA   rB   rC   c                    yaW  
        Creates a new interaction.

        Args:
          agent: The name of the `Agent` used for generating the interaction.

          input: The inputs for the interaction.

          stream: Input only. Whether the interaction will be streamed.

          agent_config: Configuration for the agent.

          background: Input only. Whether to run the model interaction in the background.

          previous_interaction_id: The ID of the previous interaction, if any.

          response_format: Enforces that the generated response is a JSON object that complies with
              the JSON schema specified in this field.

          response_mime_type: The mime type of the response. This is required if response_format is set.

          response_modalities: The requested modalities of the response (TEXT, IMAGE, AUDIO).

          store: Input only. Whether to store the response and request for later retrieval.

          system_instruction: System instruction for the interaction.

          tools: A list of tool declarations the model may call during interaction.

          extra_headers: Send extra headers

          extra_query: Add additional query parameters to the request

          extra_body: Add additional JSON properties to the request

          timeout: Override the client-level default timeout for this request, in seconds
        NrH   r,   r5   rR   rD   r=   rQ   r6   r8   r9   r:   r;   r<   r>   r?   r@   rA   rB   rC   s                     r-   rJ   zInteractionsResource.create   rK   r/   c                    yrN   rH   rO   s                     r-   rJ   zInteractionsResource.create?  rK   r/   rD   rE   r=   rR   rD   r=   r5   rE   r6   r7   r8   r9   r:   r;   r<   r=   r>   r?   rR   rQ   r@   rA   rB   rC   c                  || j                   j                         }|st        d|      |t        ur|t        urt        d      |t        ur|t        urt        d      | j	                  | j                   j                  |d      t        ||||||||	|
|||||d|rt        j                  nt        j                        t        ||||      t        |xs dt        t           	      S 
N:Expected a non-empty value for `api_version` but received zfInvalid request: specified `model` and `agent_config`. If specifying `model`, use `generation_config`.zfInvalid request: specified `agent` and `generation_config`. If specifying `agent`, use `agent_config`.interactionsr5   path)rD   rE   r6   r7   r8   r9   r:   r;   r<   r=   r>   r?   rR   rQ   r@   rA   rB   rC   F)bodyoptionscast_tor=   
stream_cls)_client_get_api_version_path_param
ValueErrorr   _post_build_maybe_vertex_pathr   r   %CreateModelInteractionParamsStreaming(CreateModelInteractionParamsNonStreamingr   r!   r   r#   r,   r5   rD   rE   r6   r7   r8   r9   r:   r;   r<   r=   r>   r?   rR   rQ   r@   rA   rB   rC   s                       r-   rJ   zInteractionsResource.create~  s%   4 ,,BBDKYZeYhijjT!9  F  G  G!2$!>  F  G  GzzLL11kP^1_ """,):/F'6*<+>"$*<""$0"  *OO.WW'* )+Q[el  ?U129  
 	
r/   r5   r@   rA   rB   rC   c          	         || j                   j                         }|st        d|      |st        d|      | j                  | j                   j	                  |d|       t        ||||      t              S )R  
        Deletes the interaction by id.

        Args:
          extra_headers: Send extra headers

          extra_query: Add additional query parameters to the request

          extra_body: Add additional JSON properties to the request

          timeout: Override the client-level default timeout for this request, in seconds
        r`   1Expected a non-empty value for `id` but received interactions/rb   rd   rf   rg   ri   rj   rk   _deleterm   r   objectr,   idr5   r@   rA   rB   rC   s          r-   deletezInteractionsResource.delete  s    0 ,,BBDKYZeYhijjPQSPVWXX||LL11kR_`b_cPd1e(+Q[el   
 	
r/   c          	        || j                   j                         }|st        d|      |st        d|      | j                  | j                   j	                  |d| d      t        ||||      t              S )  Cancels an interaction by id.

        This only applies to background interactions that are still running.

        Args:
          extra_headers: Send extra headers

          extra_query: Add additional query parameters to the request

          extra_body: Add additional JSON properties to the request

          timeout: Override the client-level default timeout for this request, in seconds
        r`   rt   ru   /cancelrb   rd   rv   ri   rj   rk   rl   rm   r   r!   rz   s          r-   cancelzInteractionsResource.cancel  s    2 ,,BBDKYZeYhijjPQSPVWXXzzLL11kR_`b_ccjPk1l(+Q[el    
 	
r/   r5   include_inputlast_event_idr=   r@   rA   rB   rC   c                    ya  
        Retrieves the full details of a single interaction based on its `Interaction.id`.

        Args:
          include_input: If set to true, includes the input in the response.

          last_event_id: Optional. If set, resumes the interaction stream from the next chunk after the event marked by the event id. Can only be used if `stream` is true.

          stream: If set to true, the generated content will be streamed incrementally.

          extra_headers: Send extra headers

          extra_query: Add additional query parameters to the request

          extra_body: Add additional JSON properties to the request

          timeout: Override the client-level default timeout for this request, in seconds
        NrH   
r,   r{   r5   r   r   r=   r@   rA   rB   rC   s
             r-   getzInteractionsResource.get      D 	r/   r5   r   r   r@   rA   rB   rC   c                    ya  
        Retrieves the full details of a single interaction based on its `Interaction.id`.

        Args:
          stream: If set to true, the generated content will be streamed incrementally.

          include_input: If set to true, includes the input in the response.

          last_event_id: Optional. If set, resumes the interaction stream from the next chunk after the event marked by the event id. Can only be used if `stream` is true.

          extra_headers: Send extra headers

          extra_query: Add additional query parameters to the request

          extra_body: Add additional JSON properties to the request

          timeout: Override the client-level default timeout for this request, in seconds
        NrH   
r,   r{   r5   r=   r   r   r@   rA   rB   rC   s
             r-   r   zInteractionsResource.get0  r   r/   c                    yr   rH   r   s
             r-   r   zInteractionsResource.getT  r   r/   c               \   || j                   j                         }|st        d|      |st        d|      | j                  | j                   j	                  |d|       t        ||||	t        |||dt        j                              t        |xs dt        t                 S 	Nr`   rt   ru   rb   )r   r   r=   )r@   rA   rB   rC   queryF)rf   rg   r=   rh   )ri   rj   rk   _getrm   r   r   r
   InteractionGetParamsr!   r   r#   r   s
             r-   r   zInteractionsResource.getx  s     ,,BBDKYZeYhijjPQSPVWXXyyLL11kR_`b_cPd1e(+'%%)6)6"(
 +??  ?U12%  
 	
r/   )returnr*   )r   r2   $r5   
str | NonerD   interaction_create_params.InputrE   r"   r6   bool | Omitr7   GenerationConfigParam | Omitr8   
str | Omitr9   object | Omitr:   r   r;   .List[Literal['text', 'image', 'audio']] | Omitr<   r   r=   Literal[False] | Omitr>   r   r?   Iterable[ToolParam] | Omitr@   Headers | NonerA   Query | NonerB   Body | NonerC   'float | httpx.Timeout | None | NotGivenr   r!   )$r5   r   rD   r   rE   r"   r=   Literal[True]r6   r   r7   r   r8   r   r9   r   r:   r   r;   r   r<   r   r>   r   r?   r   r@   r   rA   r   rB   r   rC   r   r   Stream[InteractionSSEEvent]$r5   r   rR   8Union[str, Literal['deep-research-pro-preview-12-2025']]rD   r   rQ   ,interaction_create_params.AgentConfig | Omitr6   r   r8   r   r9   r   r:   r   r;   r   r<   r   r=   r   r>   r   r?   r   r@   r   rA   r   rB   r   rC   r   r   r!   )$r5   r   rR   r   rD   r   r=   r   rQ   r   r6   r   r8   r   r9   r   r:   r   r;   r   r<   r   r>   r   r?   r   r@   r   rA   r   rB   r   rC   r   r   r   )$r5   r   rD   r   rE   r"   r=   boolr6   r   r7   r   r8   r   r9   r   r:   r   r;   r   r<   r   r>   r   r?   r   r@   r   rA   r   rB   r   rC   r   r   )Interaction | Stream[InteractionSSEEvent])(r5   r   rD   r   rE   ModelParam | Omitr6   r   r7   r   r8   r   r9   r   r:   r   r;   r   r<   r   r=   %Literal[False] | Literal[True] | Omitr>   r   r?   r   rR   ?Union[str, Literal['deep-research-pro-preview-12-2025']] | OmitrQ   r   r@   r   rA   r   rB   r   rC   r   r   r   r{   strr5   r   r@   r   rA   r   rB   r   rC   r   r   ry   r{   r   r5   r   r@   r   rA   r   rB   r   rC   r   r   r!   r{   r   r5   r   r   r   r   r   r=   r   r@   r   rA   r   rB   r   rC   r   r   r!   )r{   r   r5   r   r=   r   r   r   r   r   r@   r   rA   r   rB   r   rC   r   r   r   )r{   r   r5   r   r=   r   r   r   r   r   r@   r   rA   r   rB   r   rC   r   r   r   )r{   r   r5   r   r   r   r   r   r=   r   r@   r   rA   r   rB   r   rC   r   r   r   __name__
__module____qualname__r   r.   r3   r   r   r   rJ   r   r|   r   r   rH   r/   r-   r%   r%   /   s:	   9 9 ? ?  #' #':>.2)-)-NR!(,)-,0 )-$("&;D+<  < /	<
 <  < 8< ",< '< '< L< < &< '< *<$ &%<& "'<(  )<* 9+<, 
-< <|  #' #':>.2)-)-NR!)-,0 )-$("&;D+<  < /	<
 < <  < 8< ",< '< '< L< < '< *<$ &%<& "'<(  )<* 9+<, 
%-< <|  #' FJ"&.2)-)-NR!(,)-,0 )-$("&;D+<  < H	<
 /< C<  < ",< '< '< L< < &< '< *<$ &%<& "'<(  )<* 9+<, 
-< <|  #' FJ"&.2)-)-NR!)-,0 )-$("&;D+<  < H	<
 /< < C<  < ",< '< '< L< < '< *<$ &%<& "'<(  )<* 9+<, 
%-< <|  #' #':>.2)-)-NR!)-,0 )-$("&;D+<  < /	<
 < <  < 8< ",< '< '< L< < '< *<$ &%<& "'<(  )<* 9+<, 
3-< <| GW%'CgwEWYuv #'#'"&:>.2)-)-NR!8<)-,0QUEI )-$("&;D/>
  >
 /	>

 !>
  >
 8>
 ",>
 '>
 '>
 L>
 >
 6>
 '>
 *>
  O!>
" C#>
( &)>
* "+>
,  ->
. 9/>
0 
31>
 w>
H #' )-$("&;D$
$
  	$
 &$
 "$
  $
 9$
 
$
T #' )-$("&;D%
%
  	%
 &%
 "%
  %
 9%
 
%
N 
 #'%)$((, )-$("&;D!!  	!
 #! "! &! &! "!  ! 9! 
! !F 
 #'%)$( )-$("&;D!!  	!
 ! #! "! &! "!  ! 9! 
%! !F 
 #'%)$( )-$("&;D!!  	!
 ! #! "! &! "!  ! 9! 
3! !N #'%)$(8< )-$("&;D(
(
  	(

 #(
 "(
 6(
 &(
 "(
  (
 9(
 
3(
r/   c                     e Zd Zedd       Zedd       Zedeeeeeeeeeeddded	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dd       Z	edeeeeeeeeeddded	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d d	       Z	edeeeeeeeeeeddded
	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d!d       Z	edeeeeeeeeeddded	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d"d       Z	edeeeeeeeeeddded	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d#d       Z	 e
ddgg dddgg d      deeeeeeeeeeeeeddded	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d$d       Z	dddded	 	 	 	 	 	 	 	 	 	 	 	 	 d%dZdddded	 	 	 	 	 	 	 	 	 	 	 	 	 d&dZedeeeddded	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d'd       Zedeeddded	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d(d       Zedeeddded	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d)d       Zdeeeddded	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d*dZy)+r&   c                    t        |       S r)   )(AsyncInteractionsResourceWithRawResponser+   s    r-   r.   z+AsyncInteractionsResource.with_raw_response  s     8==r/   c                    t        |       S r1   ).AsyncInteractionsResourceWithStreamingResponser+   s    r-   r3   z1AsyncInteractionsResource.with_streaming_response  s     >dCCr/   Nr4   rD   rE   c                  K   ywrG   rH   rI   s                     r-   rJ   z AsyncInteractionsResource.create       z 	   rL   c                  K   ywrN   rH   rO   s                     r-   rJ   z AsyncInteractionsResource.create  r   r   rP   rR   c                  K   ywrT   rH   rU   s                     r-   rJ   z AsyncInteractionsResource.create5  r   r   rV   c                  K   ywrX   rH   rY   s                     r-   rJ   z AsyncInteractionsResource.createt  r   r   c                  K   ywrN   rH   rO   s                     r-   rJ   z AsyncInteractionsResource.create  r   r   r[   r\   r]   c                 K   || j                   j                         }|st        d|      |t        ur|t        urt        d      |t        ur|t        urt        d      | j	                  | j                   j                  |d      t        ||||||||	|
|||||d|rt        j                  nt        j                         d {   t        ||||      t        |xs dt        t           	       d {   S 7 57 wr_   )ri   rj   rk   r   rl   rm   r   r   rn   ro   r   r!   r   r#   rp   s                       r-   rJ   z AsyncInteractionsResource.create  s>    4 ,,BBDKYZeYhijjT!9  F  G  G!2$!>  F  G  GZZLL11kP^1_,""",):/F'6*<+>"$*<""$0"  *OO.WW' * )+Q[el  ?U"#679   
 
 	

s$   CD
D 
0D;D<DDrq   c          	       K   || j                   j                         }|st        d|      |st        d|      | j                  | j                   j	                  |d|       t        ||||      t               d{   S 7 w)rs   Nr`   rt   ru   rb   rd   rv   rw   rz   s          r-   r|   z AsyncInteractionsResource.delete3  s     0 ,,BBDKYZeYhijjPQSPVWXX\\LL11kR_`b_cPd1e(+Q[el  " 
 
 	
 
s   BBB
Bc          	       K   || j                   j                         }|st        d|      |st        d|      | j                  | j                   j	                  |d| d      t        ||||      t               d{   S 7 w)	r~   Nr`   rt   ru   r   rb   rd   rv   r   rz   s          r-   r   z AsyncInteractionsResource.cancelY  s     2 ,,BBDKYZeYhijjPQSPVWXXZZLL11kR_`b_ccjPk1l(+Q[el     
 
 	
 
s   BBBBr   c                  K   ywr   rH   r   s
             r-   r   zAsyncInteractionsResource.get       D 	r   r   c                  K   ywr   rH   r   s
             r-   r   zAsyncInteractionsResource.get  r   r   c                  K   ywr   rH   r   s
             r-   r   zAsyncInteractionsResource.get  r   r   c                 K   || j                   j                         }|st        d|      |st        d|      | j                  | j                   j	                  |d|       t        ||||	t        |||dt        j                         d {         t        |xs dt        t                  d {   S 7 ,7 wr   )ri   rj   rk   r   rm   r   r   r
   r   r!   r   r#   r   s
             r-   r   zAsyncInteractionsResource.get  s      ,,BBDKYZeYhijjPQSPVWXXYYLL11kR_`b_cPd1e(+'%1)6)6"(
 +??   ?U"#67%  
 
 	

s$   BCC 'C;C<CC)r   r   )r   r   r   )$r5   r   rD   r   rE   r"   r=   r   r6   r   r7   r   r8   r   r9   r   r:   r   r;   r   r<   r   r>   r   r?   r   r@   r   rA   r   rB   r   rC   r   r    AsyncStream[InteractionSSEEvent]r   )$r5   r   rR   r   rD   r   r=   r   rQ   r   r6   r   r8   r   r9   r   r:   r   r;   r   r<   r   r>   r   r?   r   r@   r   rA   r   rB   r   rC   r   r   r   )$r5   r   rD   r   rE   r"   r=   r   r6   r   r7   r   r8   r   r9   r   r:   r   r;   r   r<   r   r>   r   r?   r   r@   r   rA   r   rB   r   rC   r   r   .Interaction | AsyncStream[InteractionSSEEvent])(r5   r   rD   r   rE   r   r6   r   r7   r   r8   r   r9   r   r:   r   r;   r   r<   r   r=   r   r>   r   r?   r   rR   r   rQ   r   r@   r   rA   r   rB   r   rC   r   r   r   r   r   r   )r{   r   r5   r   r=   r   r   r   r   r   r@   r   rA   r   rB   r   rC   r   r   r   )r{   r   r5   r   r=   r   r   r   r   r   r@   r   rA   r   rB   r   rC   r   r   r   )r{   r   r5   r   r   r   r   r   r=   r   r@   r   rA   r   rB   r   rC   r   r   r   r   rH   r/   r-   r&   r&     s<	   > > D D  #' #':>.2)-)-NR!(,)-,0 )-$("&;D+<  < /	<
 <  < 8< ",< '< '< L< < &< '< *<$ &%<& "'<(  )<* 9+<, 
-< <|  #' #':>.2)-)-NR!)-,0 )-$("&;D+<  < /	<
 < <  < 8< ",< '< '< L< < '< *<$ &%<& "'<(  )<* 9+<, 
*-< <|  #' FJ"&.2)-)-NR!(,)-,0 )-$("&;D+<  < H	<
 /< C<  < ",< '< '< L< < &< '< *<$ &%<& "'<(  )<* 9+<, 
-< <|  #' FJ"&.2)-)-NR!)-,0 )-$("&;D+<  < H	<
 /< < C<  < ",< '< '< L< < '< *<$ &%<& "'<(  )<* 9+<, 
*-< <|  #' #':>.2)-)-NR!)-,0 )-$("&;D+<  < /	<
 < <  < 8< ",< '< '< L< < '< *<$ &%<& "'<(  )<* 9+<, 
8-< <| GW%'CgwEWYuv #'#'"&:>.2)-)-NR!8<)-,0QUEI )-$("&;D/>
  >
 /	>

 !>
  >
 8>
 ",>
 '>
 '>
 L>
 >
 6>
 '>
 *>
  O!>
" C#>
( &)>
* "+>
,  ->
. 9/>
0 
81>
 w>
H #' )-$("&;D$
$
  	$
 &$
 "$
  $
 9$
 
$
T #' )-$("&;D%
%
  	%
 &%
 "%
  %
 9%
 
%
N 
 #'%)$((, )-$("&;D!!  	!
 #! "! &! &! "!  ! 9! 
! !F 
 #'%)$( )-$("&;D!!  	!
 ! #! "! &! "!  ! 9! 
*! !F 
 #'%)$( )-$("&;D!!  	!
 ! #! "! &! "!  ! 9! 
8! !N #'%)$(8< )-$("&;D(
(
  	(

 #(
 "(
 6(
 &(
 "(
  (
 9(
 
8(
r/   c                      e Zd ZddZy)r*   c                    || _         t        |j                        | _        t        |j                        | _        t        |j                        | _        t        |j
                        | _        y N)_interactionsr   rJ   r|   r   r   r,   ra   s     r-   __init__z,InteractionsResourceWithRawResponse.__init__  sd    )-
 .
 .
 +
r/   Nra   r%   r   Noner   r   r   r   rH   r/   r-   r*   r*         
r/   r*   c                      e Zd ZddZy)r   c                    || _         t        |j                        | _        t        |j                        | _        t        |j                        | _        t        |j
                        | _        y r   )r   r   rJ   r|   r   r   r   s     r-   r   z1AsyncInteractionsResourceWithRawResponse.__init__*  sd    )3
 4
 4
 1
r/   Nra   r&   r   r   r   rH   r/   r-   r   r   )  r   r/   r   c                      e Zd ZddZy)r2   c                    || _         t        |j                        | _        t        |j                        | _        t        |j                        | _        t        |j
                        | _        y r   )r   r   rJ   r|   r   r   r   s     r-   r   z2InteractionsResourceWithStreamingResponse.__init__<  sd    )2
 3
 3
 0
r/   Nr   r   rH   r/   r-   r2   r2   ;  r   r/   r2   c                      e Zd ZddZy)r   c                    || _         t        |j                        | _        t        |j                        | _        t        |j                        | _        t        |j
                        | _        y r   )r   r   rJ   r|   r   r   r   s     r-   r   z7AsyncInteractionsResourceWithStreamingResponse.__init__N  sd    )8
 9
 9
 6
r/   Nr   r   rH   r/   r-   r   r   M  r   r/   r   )9
__future__r   typingr   r   r   typing_extensionsr   r   httpxtypesr
   r   _typesr   r   r   r   r   r   r   _utilsr   r   r   _compatr   	_resourcer   r   	_responser   r   r   r   
_streamingr   r   _base_clientr   types.tool_paramr    types.interactionr!   types.model_paramr"   types.interaction_sse_eventr#   types.generation_config_paramr$   __all__r%   r&   r*   r   r2   r   rH   r/   r-   <module>r      s   $ # ( ( /  E J J J J J % 9  - / ( + * = A!#>
?q	
? q	
hq	
 0 q	
h
 
$
 
$
 
$
 
r/   