
    s0j                        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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   )AlertsAsyncAlertsAlertsWithRawResponseAsyncAlertsWithRawResponseAlertsWithStreamingResponse AsyncAlertsWithStreamingResponse   )cached_property)SyncAPIResourceAsyncAPIResourceSafetyAsyncSafetyc                  B    e Zd Zedd       Zedd       Zedd       Zy)r   c                ,    t        | j                        S N)r   _clientselfs    V/home/Script/Script_env/lib/python3.12/site-packages/openai/resources/safety/safety.pyalertszSafety.alerts   s    dll##    c                    t        |       S a  
        This property can be used as a prefix for any HTTP method call to return
        the raw response object instead of the parsed content.

        For more information, see https://www.github.com/openai/openai-python#accessing-raw-response-data-eg-headers
        )SafetyWithRawResponser   s    r   with_raw_responsezSafety.with_raw_response   s     %T**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/openai/openai-python#with_streaming_response
        )SafetyWithStreamingResponser   s    r   with_streaming_responsezSafety.with_streaming_response"   s     +400r   N)returnr   )r"   r   )r"   r    __name__
__module____qualname__r   r   r   r!    r   r   r   r      s<    $ $ + + 1 1r   c                  B    e Z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AsyncSafety.alerts-   s    4<<((r   c                    t        |       S r   )AsyncSafetyWithRawResponser   s    r   r   zAsyncSafety.with_raw_response1   s     *$//r   c                    t        |       S r   ) AsyncSafetyWithStreamingResponser   s    r   r!   z#AsyncSafety.with_streaming_response;   s     055r   N)r"   r   )r"   r+   )r"   r-   r#   r'   r   r   r   r   ,   s<    ) ) 0 0 6 6r   c                  &    e Zd ZddZedd       Zy)r   c                    || _         y r   _safetyr   safetys     r   __init__zSafetyWithRawResponse.__init__F   	    r   c                @    t        | j                  j                        S r   )r   r1   r   r   s    r   r   zSafetyWithRawResponse.alertsI   s    $T\\%8%899r   Nr3   r   r"   None)r"   r   r$   r%   r&   r4   r   r   r'   r   r   r   r   E   s     : :r   r   c                  &    e Zd ZddZedd       Zy)r+   c                    || _         y r   r0   r2   s     r   r4   z#AsyncSafetyWithRawResponse.__init__O   r5   r   c                @    t        | j                  j                        S r   )r   r1   r   r   s    r   r   z!AsyncSafetyWithRawResponse.alertsR   s    )$,,*=*=>>r   Nr3   r   r"   r8   )r"   r   r9   r'   r   r   r+   r+   N   s     ? ?r   r+   c                  &    e Zd ZddZedd       Zy)r    c                    || _         y r   r0   r2   s     r   r4   z$SafetyWithStreamingResponse.__init__X   r5   r   c                @    t        | j                  j                        S r   )r	   r1   r   r   s    r   r   z"SafetyWithStreamingResponse.alerts[   s    *4<<+>+>??r   Nr7   )r"   r	   r9   r'   r   r   r    r    W   s     @ @r   r    c                  &    e Zd ZddZedd       Zy)r-   c                    || _         y r   r0   r2   s     r   r4   z)AsyncSafetyWithStreamingResponse.__init__a   r5   r   c                @    t        | j                  j                        S r   )r
   r1   r   r   s    r   r   z'AsyncSafetyWithStreamingResponse.alertsd   s    /0C0CDDr   Nr=   )r"   r
   r9   r'   r   r   r-   r-   `   s     E Er   r-   N)
__future__r   r   r   r   r   r   r	   r
   _compatr   	_resourcer   r   __all__r   r   r   r+   r    r-   r'   r   r   <module>rH      sk    #  ' :]
#1_ 126" 62: :? ?@ @E Er   