
    עi                       d dl mZ d dlZddlmZ ddl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 dd	l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)    )annotationsN   )_legacy_response)BodyQueryHeadersNotGiven	not_given)cached_property)SyncAPIResourceAsyncAPIResource)StreamedBinaryAPIResponseAsyncStreamedBinaryAPIResponse#to_custom_streamed_response_wrapper)async_to_custom_streamed_response_wrapper)make_request_optionsContentAsyncContentc                  Z    e Zd Zedd       Zedd       Zddded	 	 	 	 	 	 	 	 	 	 	 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 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
        )ContentWithRawResponseselfs    `/sites/domain-asset-master/.venv/lib/python3.12/site-packages/openai/resources/skills/content.pywith_raw_responsezContent.with_raw_response   s     &d++    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
        )ContentWithStreamingResponser   s    r   with_streaming_responsezContent.with_streaming_response!   s     ,D11r   Nextra_headersextra_query
extra_bodytimeoutc          	         |st        d|      ddi|xs i }| j                  d| dt        ||||      t        j                        S )Z  
        Download a skill zip bundle by its ID.

        Args:
          extra_headers: Send extra headers

          extra_query: Add additional query parameters to the request

          extra_body: Add additional JSON properties to the request

          timeout: Override the client-level default timeout for this request, in seconds
        7Expected a non-empty value for `skill_id` but received Acceptapplication/binary/skills//contentr"   optionscast_to
ValueError_getr   r   HttpxBinaryResponseContentr   skill_idr#   r$   r%   r&   s         r   retrievezContent.retrieve*   sq    . VW_Vbcdd!#7QM<ORQyyxj)(+Q[el %??  
 	
r   )returnr   )r8   r    r6   strr#   zHeaders | Noner$   zQuery | Noner%   zBody | Noner&   z'float | httpx.Timeout | None | NotGivenr8   z+_legacy_response.HttpxBinaryResponseContent__name__
__module____qualname__r   r   r!   r
   r7    r   r   r   r      su    , , 2 2 )-$("&;D 
 
 & 
 " 
   
 9 
 
5 
r   c                  Z    e Zd Zedd       Zedd       Zddded	 	 	 	 	 	 	 	 	 	 	 ddZy)	r   c                    t        |       S r   )AsyncContentWithRawResponser   s    r   r   zAsyncContent.with_raw_responseN   s     +400r   c                    t        |       S r   )!AsyncContentWithStreamingResponser   s    r   r!   z$AsyncContent.with_streaming_responseX   s     166r   Nr"   c          	        K   |st        d|      ddi|xs i }| j                  d| dt        ||||      t        j                         d{   S 7 w)	r(   r)   r*   r+   r,   r-   r"   r.   Nr1   r5   s         r   r7   zAsyncContent.retrievea   s     . VW_Vbcdd!#7QM<ORQYYxj)(+Q[el %??  
 
 	
 
s   AAAA)r8   rB   )r8   rD   r9   r;   r?   r   r   r   r   M   su    1 1 7 7 )-$("&;D 
 
 & 
 " 
   
 9 
 
5 
r   c                      e Zd ZddZy)r   c                Z    || _         t        j                  |j                        | _        y N)_contentr   to_raw_response_wrapperr7   r   contents     r   __init__zContentWithRawResponse.__init__   s$    (@@
r   NrL   r   r8   Noner<   r=   r>   rM   r?   r   r   r   r          
r   r   c                      e Zd ZddZy)rB   c                Z    || _         t        j                  |j                        | _        y rH   )rI   r   async_to_raw_response_wrapperr7   rK   s     r   rM   z$AsyncContentWithRawResponse.__init__   s$    (FF
r   NrL   r   r8   rO   rP   r?   r   r   rB   rB      rQ   r   rB   c                      e Zd ZddZy)r    c                P    || _         t        |j                  t              | _        y rH   )rI   r   r7   r   rK   s     r   rM   z%ContentWithStreamingResponse.__init__   s!    ;%
r   NrN   rP   r?   r   r   r    r           
r   r    c                      e Zd ZddZy)rD   c                P    || _         t        |j                  t              | _        y rH   )rI   r   r7   r   rK   s     r   rM   z*AsyncContentWithStreamingResponse.__init__   s!    A*
r   NrU   rP   r?   r   r   rD   rD      rX   r   rD   )
__future__r   httpx r   _typesr   r   r   r	   r
   _compatr   	_resourcer   r   	_responser   r   r   r   _base_clientr   __all__r   r   r   rB   r    rD   r?   r   r   <module>rd      sx    #    ? ? & :  1n
%4
o 4
n4
# 4
n
 

 

 

 
r   