
    iW                    6   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dS )    )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                  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/home/ubuntu/.hermes/hermes-agent/venv/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 }|                     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r)   r$   optionscast_to
ValueError_getr   r   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6JJJ(+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   )rG   r   s    r   r   zAsyncContent.with_raw_responseO   s     +4000r   !AsyncContentWithStreamingResponsec                     t          |           S r"   )rI   r   s    r   r#   z$AsyncContent.with_streaming_responseY   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 }|                     t          d|          t          ||||          t          j                   d{V S )	r1   r2   r3   r4   r5   r6   r$   r7   Nr:   r>   s         r   r?   zAsyncContent.retrieveb   s      .  	ecW_ccddd!#7QM<ORQYY6JJJ(+Q[el   %?  
 
 
 
 
 
 
 
 	
r   )r   rG   )r   rI   r@   rA   rE   r   r   r   r   N   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   rM   s     r   __init__zContentWithRawResponse.__init__   s'    (@
 
r   NrM   r   r   rN   rB   rC   rD   rT   rE   r   r   r   r      (        
 
 
 
 
 
r   r   c                      e Zd ZddZdS )rG   rM   r   r   rN   c                P    || _         t          j        |j                  | _        d S rP   )rQ   r   async_to_raw_response_wrapperr?   rS   s     r   rT   z$AsyncContentWithRawResponse.__init__   s'    (F
 
r   NrM   r   r   rN   rV   rE   r   r   rG   rG      rW   r   rG   c                      e Zd ZddZdS )r    rM   r   r   rN   c                R    || _         t          |j        t                    | _        d S rP   )rQ   r   r?   r   rS   s     r   rT   z%ContentWithStreamingResponse.__init__   s'    ;%
 
r   NrU   rV   rE   r   r   r    r       (        
 
 
 
 
 
r   r    c                      e Zd ZddZdS )rI   rM   r   r   rN   c                R    || _         t          |j        t                    | _        d S rP   )rQ   r   r?   r   rS   s     r   rT   z*AsyncContentWithStreamingResponse.__init__   s'    A*
 
r   Nr[   rV   rE   r   r   rI   rI      r^   r   rI   ) 
__future__r   httpx r   _typesr   r   r   r	   r
   _utilsr   _compatr   	_resourcer   r   	_responser   r   r   r   _base_clientr   __all__r   r   r   rG   r    rI   rE   r   r   <module>rk      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   