
    i0                    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    p/home/ubuntu/.hermes/hermes-agent/venv/lib/python3.11/site-packages/openai/resources/containers/files/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file_idstrcontainer_idr%   Headers | Noner&   Query | Noner'   Body | Noner(   'float | httpx.Timeout | None | NotGiven+_legacy_response.HttpxBinaryResponseContentc          	         |st          d|          |st          d|          ddi|pi }|                     t          d||          t          ||||          t          j                  S )	S  
        Retrieve Container File Content

        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
        ;Expected a non-empty value for `container_id` but received 6Expected a non-empty value for `file_id` but received Acceptapplication/binary2/containers/{container_id}/files/{file_id}/contentr+   r)   r$   optionscast_to
ValueError_getr   r   r   HttpxBinaryResponseContentr   r)   r+   r%   r&   r'   r(   s          r   retrievezContent.retrieve+   s    0  	mk[gkklll 	caV]aabbb!#7QM<ORQyyDS_ip   )+Q[el   %?  
 
 	
r   )r   r   )r   r    r)   r*   r+   r*   r%   r,   r&   r-   r'   r.   r(   r/   r   r0   __name__
__module____qualname__r   r   r#   r
   rA    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   )rI   r   s    r   r   zAsyncContent.with_raw_responseT   s     +4000r   !AsyncContentWithStreamingResponsec                     t          |           S r"   )rK   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/   r0   c          	        K   |st          d|          |st          d|          ddi|pi }|                     t          d||          t          ||||          t          j                   d	{V S )
r2   r3   r4   r5   r6   r7   r8   r$   r9   Nr<   r@   s          r   rA   zAsyncContent.retrieveg   s      0  	mk[gkklll 	caV]aabbb!#7QM<ORQYYDS_ip   )+Q[el   %?  
 
 
 
 
 
 
 
 	
r   )r   rI   )r   rK   rB   rC   rG   r   r   r   r   S   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_wrapperrA   r   rO   s     r   __init__zContentWithRawResponse.__init__   s'    (@
 
r   NrO   r   r   rP   rD   rE   rF   rV   rG   r   r   r   r      (        
 
 
 
 
 
r   r   c                      e Zd ZddZdS )rI   rO   r   r   rP   c                P    || _         t          j        |j                  | _        d S rR   )rS   r   async_to_raw_response_wrapperrA   rU   s     r   rV   z$AsyncContentWithRawResponse.__init__   s'    (F
 
r   NrO   r   r   rP   rX   rG   r   r   rI   rI      rY   r   rI   c                      e Zd ZddZdS )r    rO   r   r   rP   c                R    || _         t          |j        t                    | _        d S rR   )rS   r   rA   r   rU   s     r   rV   z%ContentWithStreamingResponse.__init__   s'    ;%
 
r   NrW   rX   rG   r   r   r    r       (        
 
 
 
 
 
r   r    c                      e Zd ZddZdS )rK   rO   r   r   rP   c                R    || _         t          |j        t                    | _        d S rR   )rS   r   rA   r   rU   s     r   rV   z*AsyncContentWithStreamingResponse.__init__   s'    A*
 
r   Nr]   rX   rG   r   r   rK   rK      r`   r   rK   ) 
__future__r   httpx r   _typesr   r   r   r	   r
   _utilsr   _compatr   	_resourcer   r   	_responser   r   r   r   _base_clientr   __all__r   r   r   rI   r    rK   rG   r   r   <module>rm      s   # " " " " "  ! ! ! ! ! ! @ @ @ @ @ @ @ @ @ @ @ @ @ @ $ $ $ $ $ $ ' ' ' ' ' ' ; ; ; ; ; ; ; ;            2 1 1 1 1 1n
%9
 9
 9
 9
 9
o 9
 9
 9
x9
 9
 9
 9
 9
# 9
 9
 9
x
 
 
 
 
 
 
 

 
 
 
 
 
 
 

 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
r   