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   ú`/var/www/html/psymed-ai/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   			