
    g}                        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                  H    e Zd 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    Y/var/www/openai/venv/lib/python3.12/site-packages/anthropic/lib/bedrock/_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creater   r   r    r   r   r   r      s3    "))F- - 3 3r   c                  H    e Zd 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_response2   s     2$77r   N)r   r#   )r   r%   )r   r   r   FirstPartyAsyncMessagesAPIr   r   r   r   r    r   r   r   r   %   s3    '..F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__=   s"    !&>>OO
r   Nr-   r   r   Noner   r   r   r.   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   r.   z%AsyncMessagesWithRawResponse.__init__F   s"    !&DDOO
r   Nr-   r   r   r0   r1   r    r   r   r#   r#   E   r2   r   r#   c                      e Zd ZddZy)r   c                F    || _         t        |j                        | _        y r)   )r*   r	   r   r,   s     r   r.   z&MessagesWithStreamingResponse.__init__O   s    !2OO
r   Nr/   r1   r    r   r   r   r   N   r2   r   r   c                      e Zd ZddZy)r%   c                F    || _         t        |j                        | _        y r)   )r*   r
   r   r,   s     r   r.   z+AsyncMessagesWithStreamingResponse.__init__X   s    !8OO
r   Nr6   r1   r    r   r   r%   r%   W   r2   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>rB      sd    #   & : Y l
'3 3.8$ 8.
 

 

 

 
r   