
    2i                    *   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dS )    )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                  R    e Zd Zedd            Zedd            ZdddedddZdS )r   returnContentWithRawResponsec                     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
        )r   selfs    f/root/.openclaw/workspace/.venv-openai/lib/python3.11/site-packages/openai/resources/skills/content.pywith_raw_responsezContent.with_raw_response   s     &d+++    ContentWithStreamingResponsec                     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
        )r   r   s    r   with_streaming_responsezContent.with_streaming_response!   s     ,D111r   Nextra_headersextra_query
extra_bodytimeoutskill_idstrr$   Headers | Noner%   Query | Noner&   Body | Noner'   'float | httpx.Timeout | None | NotGiven+_legacy_response.HttpxBinaryResponseContentc          	         |st          d|          ddi|pi }|                     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   r(   r$   r%   r&   r'   s         r   retrievezContent.retrieve*   s    .  	ecW_ccddd!#7QM<ORQyy)x)))(+Q[el   %?  
 
 	
r   )r   r   )r   r   r(   r)   r$   r*   r%   r+   r&   r,   r'   r-   r   r.   __name__
__module____qualname__r   r   r"   r
   r>    r   r   r   r      s~        , , , _, 2 2 2 _2 )-$("&;D 
  
  
  
  
  
  
  
r   c                  R    e Zd Zedd            Zedd            ZdddedddZdS )r   r   AsyncContentWithRawResponsec                     t          |           S r   )rF   r   s    r   r   zAsyncContent.with_raw_responseN   s     +4000r   !AsyncContentWithStreamingResponsec                     t          |           S r!   )rH   r   s    r   r"   z$AsyncContent.with_streaming_responseX   s     1666r   Nr#   r(   r)   r$   r*   r%   r+   r&   r,   r'   r-   r.   c          	        K   |st          d|          ddi|pi }|                     d| dt          ||||          t          j                   d{V S )	r0   r1   r2   r3   r4   r5   r#   r6   Nr9   r=   s         r   r>   zAsyncContent.retrievea   s      .  	ecW_ccddd!#7QM<ORQYY)x)))(+Q[el   %?  
 
 
 
 
 
 
 
 	
r   )r   rF   )r   rH   r?   r@   rD   r   r   r   r   M   s~        1 1 1 _1 7 7 7 _7 )-$("&;D 
  
  
  
  
  
  
  
r   c                      e Zd ZddZdS )r   contentr   r   Nonec                P    || _         t          j        |j                  | _        d S N)_contentr   to_raw_response_wrapperr>   r   rL   s     r   __init__zContentWithRawResponse.__init__   s'    (@
 
r   NrL   r   r   rM   rA   rB   rC   rS   rD   r   r   r   r      (        
 
 
 
 
 
r   r   c                      e Zd ZddZdS )rF   rL   r   r   rM   c                P    || _         t          j        |j                  | _        d S rO   )rP   r   async_to_raw_response_wrapperr>   rR   s     r   rS   z$AsyncContentWithRawResponse.__init__   s'    (F
 
r   NrL   r   r   rM   rU   rD   r   r   rF   rF      rV   r   rF   c                      e Zd ZddZdS )r   rL   r   r   rM   c                R    || _         t          |j        t                    | _        d S rO   )rP   r   r>   r   rR   s     r   rS   z%ContentWithStreamingResponse.__init__   s'    ;%
 
r   NrT   rU   rD   r   r   r   r      (        
 
 
 
 
 
r   r   c                      e Zd ZddZdS )rH   rL   r   r   rM   c                R    || _         t          |j        t                    | _        d S rO   )rP   r   r>   r   rR   s     r   rS   z*AsyncContentWithStreamingResponse.__init__   s'    A*
 
r   NrZ   rU   rD   r   r   rH   rH      r]   r   rH   )
__future__r   httpx r   _typesr   r   r   r	   r
   _compatr   	_resourcer   r   	_responser   r   r   r   _base_clientr   __all__r   r   r   rF   r   rH   rD   r   r   <module>ri      s   # " " " " "              ? ? ? ? ? ? ? ? ? ? ? ? ? ? & & & & & & : : : : : : : :            1 0 0 0 0 0n
%4
 4
 4
 4
 4
o 4
 4
 4
n4
 4
 4
 4
 4
# 4
 4
 4
n
 
 
 
 
 
 
 

 
 
 
 
 
 
 

 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
r   