o
    (iG                     @  s   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 deZG dd	 d	eZG dd dZG dd dZG dd dZG d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                   @  :   e Zd ZejZejZejZed	ddZed
ddZ	dS )r
   returnMessagesWithRawResponsec                 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
        )r   self r   `/home/ubuntu/veenaModal/venv/lib/python3.10/site-packages/anthropic/lib/vertex/_beta_messages.pywith_raw_response      zMessages.with_raw_responseMessagesWithStreamingResponsec                 C  r   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   r   r   r   with_streaming_response      z Messages.with_streaming_responseN)r   r   )r   r   )
__name__
__module____qualname__FirstPartyMessagesAPIcreatestreamcount_tokensr   r   r   r   r   r   r   r
          	c                   @  r   )r   r   AsyncMessagesWithRawResponsec                 C  r   r   )r#   r   r   r   r   r   ,   r   zAsyncMessages.with_raw_response"AsyncMessagesWithStreamingResponsec                 C  r   r   )r$   r   r   r   r   r   6   r   z%AsyncMessages.with_streaming_responseN)r   r#   )r   r$   )
r   r   r   FirstPartyAsyncMessagesAPIr   r    r!   r   r   r   r   r   r   r   r   '   r"   c                   @     e Zd ZdddZdS )	r   messagesr
   r   Nonec                 C     || _ t|j| _d S N)	_messagesr   to_raw_response_wrapperr   r   r'   r   r   r   __init__A      
z MessagesWithRawResponse.__init__Nr'   r
   r   r(   r   r   r   r.   r   r   r   r   r   @       r   c                   @  r&   )	r#   r'   r   r   r(   c                 C  r)   r*   )r+   r   async_to_raw_response_wrapperr   r-   r   r   r   r.   J   r/   z%AsyncMessagesWithRawResponse.__init__Nr'   r   r   r(   r1   r   r   r   r   r#   I   r2   r#   c                   @  r&   )	r   r'   r
   r   r(   c                 C     || _ t|j| _d S r*   )r+   r   r   r-   r   r   r   r.   S      
z&MessagesWithStreamingResponse.__init__Nr0   r1   r   r   r   r   r   R   r2   r   c                   @  r&   )	r$   r'   r   r   r(   c                 C  r5   r*   )r+   r	   r   r-   r   r   r   r.   \   r6   z+AsyncMessagesWithStreamingResponse.__init__Nr4   r1   r   r   r   r   r$   [   r2   r$   N)
__future__r    r   _compatr   	_resourcer   r   	_responser   r	   resources.betar
   r   r   r%   __all__r   r#   r   r$   r   r   r   r   <module>   s   			