
     `iG                       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dS )    )annotations   )_legacy_response)cached_property)SyncAPIResourceAsyncAPIResource)to_streamed_response_wrapper"async_to_streamed_response_wrapper)MessagesAsyncMessagesr   r   c                  h    e Zd Zej        Zej        Zej        Zedd            Zedd            Z	dS )	r   returnMessagesWithRawResponsec                     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
        )r   selfs    w/home/jaya/work/projects/VOICE-AGENT/VIET/agent-env/lib/python3.11/site-packages/anthropic/lib/vertex/_beta_messages.pywith_raw_responsezMessages.with_raw_response   s     't,,,    MessagesWithStreamingResponsec                     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
        )r   r   s    r   with_streaming_responsez Messages.with_streaming_response   s     -T222r   N)r   r   )r   r   )
__name__
__module____qualname__FirstPartyMessagesAPIcreatestreamcount_tokensr   r   r    r   r   r   r      sj        ")F")F(5L- - - _- 3 3 3 _3 3 3r   c                  h    e Zd Zej        Zej        Zej        Zedd            Zedd            Z	dS )	r   r   AsyncMessagesWithRawResponsec                     t          |           S r   )r$   r   s    r   r   zAsyncMessages.with_raw_response,   s     ,D111r   "AsyncMessagesWithStreamingResponsec                     t          |           S r   )r&   r   s    r   r   z%AsyncMessages.with_streaming_response6   s     2$777r   N)r   r$   )r   r&   )
r   r   r   FirstPartyAsyncMessagesAPIr   r    r!   r   r   r   r"   r   r   r   r   '   sj        '.F'.F-:L2 2 2 _2 8 8 8 _8 8 8r   c                      e Zd ZddZdS )r   messagesr   r   Nonec                P    || _         t          j        |j                  | _        d S N)	_messagesr   to_raw_response_wrapperr   r   r*   s     r   __init__z MessagesWithRawResponse.__init__A   s&    !&>O
 
r   Nr*   r   r   r+   r   r   r   r1   r"   r   r   r   r   @   (        
 
 
 
 
 
r   r   c                      e Zd ZddZdS )r$   r*   r   r   r+   c                P    || _         t          j        |j                  | _        d S r-   )r.   r   async_to_raw_response_wrapperr   r0   s     r   r1   z%AsyncMessagesWithRawResponse.__init__J   s&    !&DO
 
r   Nr*   r   r   r+   r3   r"   r   r   r$   r$   I   r4   r   r$   c                      e Zd ZddZdS )r   r*   r   r   r+   c                F    || _         t          |j                  | _        d S r-   )r.   r	   r   r0   s     r   r1   z&MessagesWithStreamingResponse.__init__S   s#    !2O
 
r   Nr2   r3   r"   r   r   r   r   R   r4   r   r   c                      e Zd ZddZdS )r&   r*   r   r   r+   c                F    || _         t          |j                  | _        d S r-   )r.   r
   r   r0   s     r   r1   z+AsyncMessagesWithStreamingResponse.__init__\   s#    !8O
 
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      s   # " " " " "             & & & & & & : : : : : : : : Y Y Y Y Y Y Y Y l l l l l l l l
'3 3 3 3 3 3 3 328 8 8 8 8$ 8 8 82
 
 
 
 
 
 
 

 
 
 
 
 
 
 

 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
r   