
    Dj                       d dl mZ ddlmZmZmZmZmZmZ ddl	m
Z
 ddlmZmZ ddlmZmZmZmZ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   )MessagesAsyncMessagesMessagesWithRawResponseAsyncMessagesWithRawResponseMessagesWithStreamingResponse"AsyncMessagesWithStreamingResponse   )cached_property)SyncAPIResourceAsyncAPIResource)PromptCachingAsyncPromptCachingPromptCachingWithRawResponse!AsyncPromptCachingWithRawResponse"PromptCachingWithStreamingResponse'AsyncPromptCachingWithStreamingResponse)r   r   )r   r   Beta	AsyncBetac                  T    e Zd Zedd       Zedd       Zedd       Zed	d       Zy)
r   c                ,    t        | j                        S N)r   _clientselfs    aC:\Crop_Prediction\Backend\crop-ai-system\venv\Lib\site-packages\anthropic/resources/beta/beta.pymessageszBeta.messages   s    %%    c                ,    t        | j                        S r   )r   r   r   s    r   prompt_cachingzBeta.prompt_caching"       T\\**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
        )BetaWithRawResponser   s    r   with_raw_responsezBeta.with_raw_response&   s     #4((r   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
        )BetaWithStreamingResponser   s    r   with_streaming_responsezBeta.with_streaming_response0   s     )..r   N)returnr   )r+   r   )r+   r%   )r+   r)   __name__
__module____qualname__r   r   r!   r&   r*    r   r   r   r      sP    & & + + ) ) / /r   c                  T    e Zd Zedd       Zedd       Zedd       Zed	d       Zy)
r   c                ,    t        | j                        S r   )r   r   r   s    r   r   zAsyncBeta.messages;   r"   r   c                ,    t        | j                        S r   )r   r   r   s    r   r!   zAsyncBeta.prompt_caching?   s    !$,,//r   c                    t        |       S r$   )AsyncBetaWithRawResponser   s    r   r&   zAsyncBeta.with_raw_responseC   s     (--r   c                    t        |       S r(   )AsyncBetaWithStreamingResponser   s    r   r*   z!AsyncBeta.with_streaming_responseM   s     .d33r   N)r+   r   )r+   r   )r+   r5   )r+   r7   r,   r0   r   r   r   r   :   sP    + + 0 0 . . 4 4r   c                  8    e Zd ZddZedd       Zedd       Zy)r%   c                    || _         y r   _betar   betas     r   __init__zBetaWithRawResponse.__init__X   	    
r   c                @    t        | j                  j                        S r   )r   r;   r   r   s    r   r   zBetaWithRawResponse.messages[   s    &tzz':':;;r   c                @    t        | j                  j                        S r   )r   r;   r!   r   s    r   r!   z"BetaWithRawResponse.prompt_caching_   s    +DJJ,E,EFFr   Nr=   r   r+   None)r+   r   )r+   r   r-   r.   r/   r>   r   r   r!   r0   r   r   r%   r%   W   s1     < < G Gr   r%   c                  8    e Zd ZddZedd       Zedd       Zy)r5   c                    || _         y r   r:   r<   s     r   r>   z!AsyncBetaWithRawResponse.__init__e   r?   r   c                @    t        | j                  j                        S r   )r   r;   r   r   s    r   r   z!AsyncBetaWithRawResponse.messagesh   s    +DJJ,?,?@@r   c                @    t        | j                  j                        S r   )r   r;   r!   r   s    r   r!   z'AsyncBetaWithRawResponse.prompt_cachingl   s    01J1JKKr   Nr=   r   r+   rC   )r+   r   )r+   r   rD   r0   r   r   r5   r5   d   s3     A A L Lr   r5   c                  8    e Zd ZddZedd       Zedd       Zy)r)   c                    || _         y r   r:   r<   s     r   r>   z"BetaWithStreamingResponse.__init__r   r?   r   c                @    t        | j                  j                        S r   )r	   r;   r   r   s    r   r   z"BetaWithStreamingResponse.messagesu   s    ,TZZ-@-@AAr   c                @    t        | j                  j                        S r   )r   r;   r!   r   s    r   r!   z(BetaWithStreamingResponse.prompt_cachingy   s    1$**2K2KLLr   NrB   )r+   r	   )r+   r   rD   r0   r   r   r)   r)   q   s3     B B M Mr   r)   c                  8    e Zd ZddZedd       Zedd       Zy)r7   c                    || _         y r   r:   r<   s     r   r>   z'AsyncBetaWithStreamingResponse.__init__   r?   r   c                @    t        | j                  j                        S r   )r
   r;   r   r   s    r   r   z'AsyncBetaWithStreamingResponse.messages   s    1$**2E2EFFr   c                @    t        | j                  j                        S r   )r   r;   r!   r   s    r   r!   z-AsyncBetaWithStreamingResponse.prompt_caching   s    6tzz7P7PQQr   NrI   )r+   r
   )r+   r   rD   r0   r   r   r7   r7   ~   s3     G G R Rr   r7   N)
__future__r   r   r   r   r   r   r	   r
   _compatr   	_resourcer   r   r!   r   r   r   r   r   r   messages.messagesprompt_caching.prompt_caching__all__r   r   r%   r5   r)   r7   r0   r   r   <module>rX      s    #  ' :  7 L;
/? /:4  4:
G 
G
L 
L
M 
M
R 
Rr   