
    piG                        d dl mZ ddlmZ ddlmZ ddlmZmZ ddl	m
Z
mZ ddlmZmZ dd	gZ G d
 de      Z G d d	e      Z G d d      Z G d d      Z G d d      Z G d d      Zy)    )annotations   )_legacy_response)cached_property)SyncAPIResourceAsyncAPIResource)to_streamed_response_wrapper"async_to_streamed_response_wrapper)MessagesAsyncMessagesr   r   c                  x    e Zd Zej                  Zej
                  Zej                  Zedd       Ze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
        the raw response object instead of the parsed content.

        For more information, see https://www.github.com/anthropics/anthropic-sdk-python#accessing-raw-response-data-eg-headers
        )MessagesWithRawResponseselfs    e/opt/services/ai/voice_agent/venv/lib/python3.12/site-packages/anthropic/lib/vertex/_beta_messages.pywith_raw_responsezMessages.with_raw_response   s     't,,    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/anthropics/anthropic-sdk-python#with_streaming_response
        )MessagesWithStreamingResponser   s    r   with_streaming_responsez Messages.with_streaming_response   s     -T22r   N)returnr   )r   r   )
__name__
__module____qualname__FirstPartyMessagesAPIcreatestreamcount_tokensr   r   r    r   r   r   r      sI    "))F"))F(55L- - 3 3r   c                  x    e Zd Zej                  Zej
                  Zej                  Zedd       Zedd       Z	y)r   c                    t        |       S r   )AsyncMessagesWithRawResponser   s    r   r   zAsyncMessages.with_raw_response,   s     ,D11r   c                    t        |       S r   )"AsyncMessagesWithStreamingResponser   s    r   r   z%AsyncMessages.with_streaming_response6   s     2$77r   N)r   r%   )r   r'   )
r   r   r   FirstPartyAsyncMessagesAPIr   r    r!   r   r   r   r"   r   r   r   r   '   sI    '..F'..F-::L2 2 8 8r   c                      e Zd ZddZy)r   c                Z    || _         t        j                  |j                        | _        y N)	_messagesr   to_raw_response_wrapperr   r   messagess     r   __init__z MessagesWithRawResponse.__init__A   s"    !&>>OO
r   Nr/   r   r   Noner   r   r   r0   r"   r   r   r   r   @       
r   r   c                      e Zd ZddZy)r%   c                Z    || _         t        j                  |j                        | _        y r+   )r,   r   async_to_raw_response_wrapperr   r.   s     r   r0   z%AsyncMessagesWithRawResponse.__init__J   s"    !&DDOO
r   Nr/   r   r   r2   r3   r"   r   r   r%   r%   I   r4   r   r%   c                      e Zd ZddZy)r   c                F    || _         t        |j                        | _        y r+   )r,   r	   r   r.   s     r   r0   z&MessagesWithStreamingResponse.__init__S   s    !2OO
r   Nr1   r3   r"   r   r   r   r   R   r4   r   r   c                      e Zd ZddZy)r'   c                F    || _         t        |j                        | _        y r+   )r,   r
   r   r.   s     r   r0   z+AsyncMessagesWithStreamingResponse.__init__\   s    !8OO
r   Nr8   r3   r"   r   r   r'   r'   [   r4   r   r'   N)
__future__r    r   _compatr   	_resourcer   r   	_responser	   r
   resources.betar   r   r   r(   __all__r   r%   r   r'   r"   r   r   <module>rD      sd    #   & : Y l
'3 328$ 82
 

 

 

 
r   