U
    ‡ÀÂh£  ã                   @  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 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Ú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-dms8d3uv/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!   Úthreads-   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_response1   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"   F   s    zAsyncBeta.chatr   c                 C  s
   t | jƒS r   )r   r   r   r    r    r!   r#   J   s    zAsyncBeta.realtimer   c                 C  s
   t | jƒS r   )r   r   r   r    r    r!   r$   N   s    zAsyncBeta.assistantsr   c                 C  s
   t | jƒS r   )r   r   r   r    r    r!   r%   R   s    zAsyncBeta.threadsÚAsyncBetaWithRawResponsec                 C  s   t | ƒS r'   )r0   r   r    r    r!   r(   V   s    zAsyncBeta.with_raw_responseÚAsyncBetaWithStreamingResponsec                 C  s   t | ƒS r*   )r1   r   r    r    r!   r+   `   s    z!AsyncBeta.with_streaming_responseNr,   r    r    r    r!   r   E   s   	c                   @  s@   e Zd Zd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   r4   r    r    r!   Ú__init__k   s    zBetaWithRawResponse.__init__r   r   c                 C  s   t | jjƒS r   )r   r6   r$   r   r    r    r!   r$   n   s    zBetaWithRawResponse.assistantsr   c                 C  s   t | jjƒS r   )r   r6   r%   r   r    r    r!   r%   r   s    zBetaWithRawResponse.threadsN©r-   r.   r/   r8   r   r$   r%   r    r    r    r!   r&   j   s
   r&   c                   @  s@   e Zd Zdddœdd„Zeddœdd	„ƒZed
dœdd„ƒZdS )r0   r   r2   r3   c                 C  s
   || _ d S r   r5   r7   r    r    r!   r8   x   s    z!AsyncBetaWithRawResponse.__init__r	   r   c                 C  s   t | jjƒS r   )r	   r6   r$   r   r    r    r!   r$   {   s    z#AsyncBetaWithRawResponse.assistantsr   c                 C  s   t | jjƒS r   )r   r6   r%   r   r    r    r!   r%      s    z AsyncBetaWithRawResponse.threadsNr9   r    r    r    r!   r0   w   s
   r0   c                   @  s@   e Zd Zdddœdd„Zeddœdd	„ƒZed
dœdd„ƒZdS )r)   r   r2   r3   c                 C  s
   || _ d S r   r5   r7   r    r    r!   r8   …   s    z"BetaWithStreamingResponse.__init__r
   r   c                 C  s   t | jjƒS r   )r
   r6   r$   r   r    r    r!   r$   ˆ   s    z$BetaWithStreamingResponse.assistantsr   c                 C  s   t | jjƒS r   )r   r6   r%   r   r    r    r!   r%   Œ   s    z!BetaWithStreamingResponse.threadsNr9   r    r    r    r!   r)   „   s
   r)   c                   @  s@   e Zd Zdddœdd„Zeddœdd	„ƒZed
dœdd„ƒZdS )r1   r   r2   r3   c                 C  s
   || _ d S r   r5   r7   r    r    r!   r8   ’   s    z'AsyncBetaWithStreamingResponse.__init__r   r   c                 C  s   t | jjƒS r   )r   r6   r$   r   r    r    r!   r$   •   s    z)AsyncBetaWithStreamingResponse.assistantsr   c                 C  s   t | jjƒS r   )r   r6   r%   r   r    r    r!   r%   ™   s    z&AsyncBetaWithStreamingResponse.threadsNr9   r    r    r    r!   r1   ‘   s
   r1   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   Ú__all__r   r   r&   r0   r)   r1   r    r    r    r!   Ú<module>   s     %%