U
    ~fhm                     @  s   d dl mZ ddlmZ ddlmZmZmZmZm	Z	m
Z
 ddlmZmZ ddlmZmZmZmZmZmZ ddlmZmZ dd	lmZmZmZmZmZmZ d
dgZG dd
 d
eZ G dd deZ!G dd dZ"G dd dZ#G dd dZ$G dd dZ%dS )    )annotations   )cached_property   )
AssistantsAsyncAssistantsAssistantsWithRawResponseAsyncAssistantsWithRawResponseAssistantsWithStreamingResponse$AsyncAssistantsWithStreamingResponse)SyncAPIResourceAsyncAPIResource)ThreadsAsyncThreadsThreadsWithRawResponseAsyncThreadsWithRawResponseThreadsWithStreamingResponse!AsyncThreadsWithStreamingResponse)Chat	AsyncChat)RealtimeAsyncRealtimeRealtimeWithRawResponseAsyncRealtimeWithRawResponseRealtimeWithStreamingResponse"AsyncRealtimeWithStreamingResponseBeta	AsyncBetac                   @  sx   e Zd ZeddddZeddddZeddd	d
ZeddddZeddddZeddddZ	dS )r   r   returnc                 C  s
   t | jS N)r   _clientself r$   >/tmp/pip-unpacked-wheel-rjiviquo/openai/resources/beta/beta.pychat%   s    z	Beta.chatr   c                 C  s
   t | jS r    )r   r!   r"   r$   r$   r%   realtime)   s    zBeta.realtimer   c                 C  s
   t | jS r    )r   r!   r"   r$   r$   r%   
assistants-   s    zBeta.assistantsr   c                 C  s
   t | jS r    )r   r!   r"   r$   r$   r%   threads1   s    zBeta.threadsBetaWithRawResponsec                 C  s   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*   r"   r$   r$   r%   with_raw_response5   s    zBeta.with_raw_responseBetaWithStreamingResponsec                 C  s   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"   r$   r$   r%   with_streaming_response?   s    zBeta.with_streaming_responseN
__name__
__module____qualname__r   r&   r'   r(   r)   r,   r/   r$   r$   r$   r%   r   $   s   	c                   @  sx   e Zd ZeddddZeddddZeddd	d
ZeddddZeddddZeddddZ	dS )r   r   r   c                 C  s
   t | jS r    )r   r!   r"   r$   r$   r%   r&   J   s    zAsyncBeta.chatr   c                 C  s
   t | jS r    )r   r!   r"   r$   r$   r%   r'   N   s    zAsyncBeta.realtimer   c                 C  s
   t | jS r    )r   r!   r"   r$   r$   r%   r(   R   s    zAsyncBeta.assistantsr   c                 C  s
   t | jS r    )r   r!   r"   r$   r$   r%   r)   V   s    zAsyncBeta.threadsAsyncBetaWithRawResponsec                 C  s   t | S r+   )r4   r"   r$   r$   r%   r,   Z   s    zAsyncBeta.with_raw_responseAsyncBetaWithStreamingResponsec                 C  s   t | S r.   )r5   r"   r$   r$   r%   r/   d   s    z!AsyncBeta.with_streaming_responseNr0   r$   r$   r$   r%   r   I   s   	c                   @  sR   e Zd ZdddddZedddd	Zed
dddZeddddZdS )r*   r   Nonebetar   c                 C  s
   || _ d S r    _betar#   r8   r$   r$   r%   __init__o   s    zBetaWithRawResponse.__init__r   r   c                 C  s   t | jjS r    )r   r:   r'   r"   r$   r$   r%   r'   r   s    zBetaWithRawResponse.realtimer   c                 C  s   t | jjS r    )r   r:   r(   r"   r$   r$   r%   r(   v   s    zBetaWithRawResponse.assistantsr   c                 C  s   t | jjS r    )r   r:   r)   r"   r$   r$   r%   r)   z   s    zBetaWithRawResponse.threadsNr1   r2   r3   r<   r   r'   r(   r)   r$   r$   r$   r%   r*   n   s   r*   c                   @  sR   e Zd ZdddddZedddd	Zed
dddZeddddZdS )r4   r   r6   r7   c                 C  s
   || _ d S r    r9   r;   r$   r$   r%   r<      s    z!AsyncBetaWithRawResponse.__init__r   r   c                 C  s   t | jjS r    )r   r:   r'   r"   r$   r$   r%   r'      s    z!AsyncBetaWithRawResponse.realtimer	   c                 C  s   t | jjS r    )r	   r:   r(   r"   r$   r$   r%   r(      s    z#AsyncBetaWithRawResponse.assistantsr   c                 C  s   t | jjS r    )r   r:   r)   r"   r$   r$   r%   r)      s    z AsyncBetaWithRawResponse.threadsNr=   r$   r$   r$   r%   r4      s   r4   c                   @  sR   e Zd ZdddddZedddd	Zed
dddZeddddZdS )r-   r   r6   r7   c                 C  s
   || _ d S r    r9   r;   r$   r$   r%   r<      s    z"BetaWithStreamingResponse.__init__r   r   c                 C  s   t | jjS r    )r   r:   r'   r"   r$   r$   r%   r'      s    z"BetaWithStreamingResponse.realtimer
   c                 C  s   t | jjS r    )r
   r:   r(   r"   r$   r$   r%   r(      s    z$BetaWithStreamingResponse.assistantsr   c                 C  s   t | jjS r    )r   r:   r)   r"   r$   r$   r%   r)      s    z!BetaWithStreamingResponse.threadsNr=   r$   r$   r$   r%   r-      s   r-   c                   @  sR   e Zd ZdddddZedddd	Zed
dddZeddddZdS )r5   r   r6   r7   c                 C  s
   || _ d S r    r9   r;   r$   r$   r%   r<      s    z'AsyncBetaWithStreamingResponse.__init__r   r   c                 C  s   t | jjS r    )r   r:   r'   r"   r$   r$   r%   r'      s    z'AsyncBetaWithStreamingResponse.realtimer   c                 C  s   t | jjS r    )r   r:   r(   r"   r$   r$   r%   r(      s    z)AsyncBetaWithStreamingResponse.assistantsr   c                 C  s   t | jjS r    )r   r:   r)   r"   r$   r$   r%   r)      s    z&AsyncBetaWithStreamingResponse.threadsNr=   r$   r$   r$   r%   r5      s   r5   N)&
__future__r   _compatr   r(   r   r   r   r	   r
   r   Z	_resourcer   r   Zthreads.threadsr   r   r   r   r   r   Zresources.chatr   r   Zrealtime.realtimer   r   r   r   r   r   __all__r   r   r*   r4   r-   r5   r$   r$   r$   r%   <module>   s      	%%