U
    ·ÜŸjf  ã                   @  sü   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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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é   )ÚChatÚ	AsyncChat)Ú
AssistantsÚAsyncAssistantsÚAssistantsWithRawResponseÚAsyncAssistantsWithRawResponseÚAssistantsWithStreamingResponseÚ$AsyncAssistantsWithStreamingResponse)ÚSyncAPIResourceÚAsyncAPIResource)ÚThreadsÚAsyncThreadsÚThreadsWithRawResponseÚAsyncThreadsWithRawResponseÚThreadsWithStreamingResponseÚ!AsyncThreadsWithStreamingResponse)Ú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-2qj3ofc_/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   Z	chat.chatr   r   r(   r   r	   r
   r   r   r   Z	_resourcer   r   Zthreads.threadsr   r   r   r   r   r   Zrealtime.realtimer   r   r   r   r   r   Ú__all__r   r   r*   r4   r-   r5   r$   r$   r$   r%   Ú<module>   s      	%%