
    i                    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/piyush/.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          ||||ddi          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)   bearer_authTr%   r&   r'   r(   security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(+'%'.   %?  

 

 
	
r   )r   r   )r   r    r)   r*   r%   r+   r&   r,   r'   r-   r(   r.   r   r/   __name__
__module____qualname__r   r   r#   r
   rB    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   )rJ   r   s    r   r   zAsyncContent.with_raw_responseS   s     +4000r   !AsyncContentWithStreamingResponsec                     t          |           S r"   )rL   r   s    r   r#   z$AsyncContent.with_streaming_response]   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          ||||ddi          t          j        	           d
{V S )r1   r2   r3   r4   r5   r6   r7   Tr8   r:   Nr=   rA   s         r   rB   zAsyncContent.retrievef   s      .  	ecW_ccddd!#7QM<ORQYY6JJJ(+'%'.   %?  

 

 

 

 

 

 

 

 
	
r   )r   rJ   )r   rL   rC   rD   rH   r   r   r   r   R   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_wrapperrB   r   rP   s     r   __init__zContentWithRawResponse.__init__   s'    (@
 
r   NrP   r   r   rQ   rE   rF   rG   rW   rH   r   r   r   r      (        
 
 
 
 
 
r   r   c                      e Zd ZddZdS )rJ   rP   r   r   rQ   c                P    || _         t          j        |j                  | _        d S rS   )rT   r   async_to_raw_response_wrapperrB   rV   s     r   rW   z$AsyncContentWithRawResponse.__init__   s'    (F
 
r   NrP   r   r   rQ   rY   rH   r   r   rJ   rJ      rZ   r   rJ   c                      e Zd ZddZdS )r    rP   r   r   rQ   c                R    || _         t          |j        t                    | _        d S rS   )rT   r   rB   r   rV   s     r   rW   z%ContentWithStreamingResponse.__init__   s'    ;%
 
r   NrX   rY   rH   r   r   r    r       (        
 
 
 
 
 
r   r    c                      e Zd ZddZdS )rL   rP   r   r   rQ   c                R    || _         t          |j        t                    | _        d S rS   )rT   r   rB   r   rV   s     r   rW   z*AsyncContentWithStreamingResponse.__init__   s'    A*
 
r   Nr^   rY   rH   r   r   rL   rL      ra   r   rL   ) 
__future__r   httpx r   _typesr   r   r   r	   r
   _utilsr   _compatr   	_resourcer   r   	_responser   r   r   r   _base_clientr   __all__r   r   r   rJ   r    rL   rH   r   r   <module>rn      s   # " " " " "              ? ? ? ? ? ? ? ? ? ? ? ? ? ? # # # # # # & & & & & & : : : : : : : :            1 0 0 0 0 0n
%8
 8
 8
 8
 8
o 8
 8
 8
v8
 8
 8
 8
 8
# 8
 8
 8
v
 
 
 
 
 
 
 

 
 
 
 
 
 
 

 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
r   