
    iW                       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 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)path_template)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    p/Users/manta/Documents/Projects/TheRoad-I1/.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                  t        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/{skill_id}/contentskill_idr#   optionscast_to
ValueError_getr   r   r   HttpxBinaryResponseContentr   r/   r$   r%   r&   r'   s         r   retrievezContent.retrieve+   sp    . VW_Vbcdd!#7QM<ORQyy6J(+Q[el %??  
 	
r   )returnr   )r9   r!   r/   strr$   zHeaders | Noner%   zQuery | Noner&   zBody | Noner'   z'float | httpx.Timeout | None | NotGivenr9   z+_legacy_response.HttpxBinaryResponseContent__name__
__module____qualname__r   r   r"   r
   r8    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_responseO   s     +400r   c                    t        |       S r    )!AsyncContentWithStreamingResponser   s    r   r"   z$AsyncContent.with_streaming_responseY   s     166r   Nr#   c          	        K   |st        d|      ddi|xs i }| j                  t        d|      t        ||||      t        j
                         d{   S 7 w)	r)   r*   r+   r,   r-   r.   r#   r0   Nr3   r7   s         r   r8   zAsyncContent.retrieveb   s~     . VW_Vbcdd!#7QM<ORQYY6J(+Q[el %??  
 
 	
 
s   AA!AA!)r9   rC   )r9   rE   r:   r<   r@   r   r   r   r   N   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_wrapperr8   r   contents     r   __init__zContentWithRawResponse.__init__   s$    (@@
r   NrM   r   r9   Noner=   r>   r?   rN   r@   r   r   r   r          
r   r   c                      e Zd ZddZy)rC   c                Z    || _         t        j                  |j                        | _        y rI   )rJ   r   async_to_raw_response_wrapperr8   rL   s     r   rN   z$AsyncContentWithRawResponse.__init__   s$    (FF
r   NrM   r   r9   rP   rQ   r@   r   r   rC   rC      rR   r   rC   c                      e Zd ZddZy)r!   c                P    || _         t        |j                  t              | _        y rI   )rJ   r   r8   r   rL   s     r   rN   z%ContentWithStreamingResponse.__init__   s!    ;%
r   NrO   rQ   r@   r   r   r!   r!          
r   r!   c                      e Zd ZddZy)rE   c                P    || _         t        |j                  t              | _        y rI   )rJ   r   r8   r   rL   s     r   rN   z*AsyncContentWithStreamingResponse.__init__   s!    A*
r   NrV   rQ   r@   r   r   rE   rE      rY   r   rE   ) 
__future__r   httpx r   _typesr   r   r   r	   r
   _utilsr   _compatr   	_resourcer   r   	_responser   r   r   r   _base_clientr   __all__r   r   r   rC   r!   rE   r@   r   r   <module>rf      s{    #    ? ? # & :  1n
%4
o 4
n4
# 4
n
 

 

 

 
r   