o
    ÖÝ+i}  ã                   @  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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   úa/var/www/html/psymed-ai/venv/lib/python3.10/site-packages/anthropic/lib/bedrock/_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Úcreater   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   2   r   z%AsyncMessages.with_streaming_responseN)r   r!   )r   r"   )r   r   r   ÚFirstPartyAsyncMessagesAPIr   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__=   ó   
ÿ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,   F   r-   z%AsyncMessagesWithRawResponse.__init__N©r%   r   r   r&   r/   r   r   r   r   r!   E   r0   r!   c                   @  r$   )	r   r%   r
   r   r&   c                 C  ó   || _ t|jƒ| _d S r(   )r)   r   r   r+   r   r   r   r,   O   ó   
ÿz&MessagesWithStreamingResponse.__init__Nr.   r/   r   r   r   r   r   N   r0   r   c                   @  r$   )	r"   r%   r   r   r&   c                 C  r3   r(   )r)   r	   r   r+   r   r   r   r,   X   r4   z+AsyncMessagesWithStreamingResponse.__init__Nr2   r/   r   r   r   r   r"   W   r0   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   			