
    Áj                        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                      e Zd Zej                  Zej
                  Zej                  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    K/tmp/pip-target-k_scjv0h/lib/python/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createparsestreamtool_runnerr   r   r    r   r   r   r      sT    "))F!''E"))F'33K- - 3 3r   c                      e Zd Zej                  Zej
                  Zej                  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_response8   s     2$77r   N)r   r&   )r   r(   )r   r   r   FirstPartyAsyncMessagesAPIr   r    r!   r"   r   r   r   r#   r   r   r   r   (   sT    '..F&,,E'..F,88K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__C   s"    !&>>OO
r   Nr0   r   r   Noner   r   r   r1   r#   r   r   r   r   B       
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   r1   z%AsyncMessagesWithRawResponse.__init__L   s"    !&DDOO
r   Nr0   r   r   r3   r4   r#   r   r   r&   r&   K   r5   r   r&   c                      e Zd ZddZy)r   c                F    || _         t        |j                        | _        y r,   )r-   r	   r   r/   s     r   r1   z&MessagesWithStreamingResponse.__init__U   s    !2OO
r   Nr2   r4   r#   r   r   r   r   T   r5   r   r   c                      e Zd ZddZy)r(   c                F    || _         t        |j                        | _        y r,   )r-   r
   r   r/   s     r   r1   z+AsyncMessagesWithStreamingResponse.__init__^   s    !8OO
r   Nr9   r4   r#   r   r   r(   r(   ]   r5   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>rE      sd    #   & : Y l
'3 348$ 84
 

 

 

 
r   