o
    i                     @  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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)ChatKitAsyncChatKitChatKitWithRawResponseAsyncChatKitWithRawResponseChatKitWithStreamingResponse!AsyncChatKitWithStreamingResponse)ThreadsAsyncThreadsThreadsWithRawResponseAsyncThreadsWithRawResponseThreadsWithStreamingResponse!AsyncThreadsWithStreamingResponse)Chat	AsyncChat)RealtimeAsyncRealtimeBeta	AsyncBetac                   @  n   e Zd ZedddZedddZedd	d
ZedddZedddZedddZ	edddZ
dS )r   returnr   c                 C  
   t | jS N)r   _clientself r'   T/home/kim/smarthome/.venv/lib/python3.10/site-packages/openai/resources/beta/beta.pychat)      
z	Beta.chatr   c                 C  r"   r#   )r   r$   r%   r'   r'   r(   realtime-   r*   zBeta.realtimer   c                 C  r"   r#   )r   r$   r%   r'   r'   r(   chatkit1   r*   zBeta.chatkitr   c                 C  r"   z4Build Assistants that can call models and use tools.)r   r$   r%   r'   r'   r(   
assistants5      
zBeta.assistantsr   c                 C  r"   r-   )r   r$   r%   r'   r'   r(   threads:   r/   zBeta.threadsBetaWithRawResponsec                 C     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
        )r1   r%   r'   r'   r(   with_raw_response?      zBeta.with_raw_responseBetaWithStreamingResponsec                 C  r2   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
        )r6   r%   r'   r'   r(   with_streaming_responseI      zBeta.with_streaming_responseN)r!   r   )r!   r   )r!   r   )r!   r   )r!   r   )r!   r1   )r!   r6   __name__
__module____qualname__r   r)   r+   r,   r.   r0   r4   r8   r'   r'   r'   r(   r   (       	c                   @  r    )r   r!   r   c                 C  r"   r#   )r   r$   r%   r'   r'   r(   r)   T   r*   zAsyncBeta.chatr   c                 C  r"   r#   )r   r$   r%   r'   r'   r(   r+   X   r*   zAsyncBeta.realtimer   c                 C  r"   r#   )r   r$   r%   r'   r'   r(   r,   \   r*   zAsyncBeta.chatkitr   c                 C  r"   r-   )r   r$   r%   r'   r'   r(   r.   `   r/   zAsyncBeta.assistantsr   c                 C  r"   r-   )r   r$   r%   r'   r'   r(   r0   e   r/   zAsyncBeta.threadsAsyncBetaWithRawResponsec                 C  r2   r3   )r?   r%   r'   r'   r(   r4   j   r5   zAsyncBeta.with_raw_responseAsyncBetaWithStreamingResponsec                 C  r2   r7   )r@   r%   r'   r'   r(   r8   t   r9   z!AsyncBeta.with_streaming_responseN)r!   r   )r!   r   )r!   r   )r!   r   )r!   r   )r!   r?   )r!   r@   r:   r'   r'   r'   r(   r   S   r>   c                   @  @   e Zd ZdddZeddd	ZedddZedddZdS )r1   betar   r!   Nonec                 C  
   || _ d S r#   _betar&   rB   r'   r'   r(   __init__      
zBetaWithRawResponse.__init__r   c                 C     t | jjS r#   )r   rF   r,   r%   r'   r'   r(   r,         zBetaWithRawResponse.chatkitr   c                 C  rJ   r-   )r   rF   r.   r%   r'   r'   r(   r.         zBetaWithRawResponse.assistantsr   c                 C  rJ   r-   )r   rF   r0   r%   r'   r'   r(   r0      rL   zBetaWithRawResponse.threadsNrB   r   r!   rC   )r!   r   )r!   r   )r!   r   r;   r<   r=   rH   r   r,   r.   r0   r'   r'   r'   r(   r1   ~       
r1   c                   @  rA   )r?   rB   r   r!   rC   c                 C  rD   r#   rE   rG   r'   r'   r(   rH      rI   z!AsyncBetaWithRawResponse.__init__r   c                 C  rJ   r#   )r   rF   r,   r%   r'   r'   r(   r,      rK   z AsyncBetaWithRawResponse.chatkitr	   c                 C  rJ   r-   )r	   rF   r.   r%   r'   r'   r(   r.      rL   z#AsyncBetaWithRawResponse.assistantsr   c                 C  rJ   r-   )r   rF   r0   r%   r'   r'   r(   r0      rL   z AsyncBetaWithRawResponse.threadsNrB   r   r!   rC   )r!   r   )r!   r	   )r!   r   rN   r'   r'   r'   r(   r?      rO   r?   c                   @  rA   )r6   rB   r   r!   rC   c                 C  rD   r#   rE   rG   r'   r'   r(   rH      rI   z"BetaWithStreamingResponse.__init__r   c                 C  rJ   r#   )r   rF   r,   r%   r'   r'   r(   r,      rK   z!BetaWithStreamingResponse.chatkitr
   c                 C  rJ   r-   )r
   rF   r.   r%   r'   r'   r(   r.      rL   z$BetaWithStreamingResponse.assistantsr   c                 C  rJ   r-   )r   rF   r0   r%   r'   r'   r(   r0      rL   z!BetaWithStreamingResponse.threadsNrM   )r!   r   )r!   r
   )r!   r   rN   r'   r'   r'   r(   r6      rO   r6   c                   @  rA   )r@   rB   r   r!   rC   c                 C  rD   r#   rE   rG   r'   r'   r(   rH      rI   z'AsyncBetaWithStreamingResponse.__init__r   c                 C  rJ   r#   )r   rF   r,   r%   r'   r'   r(   r,      rK   z&AsyncBetaWithStreamingResponse.chatkitr   c                 C  rJ   r-   )r   rF   r.   r%   r'   r'   r(   r.      rL   z)AsyncBetaWithStreamingResponse.assistantsr   c                 C  rJ   r-   )r   rF   r0   r%   r'   r'   r(   r0      rL   z&AsyncBetaWithStreamingResponse.threadsNrP   )r!   r   )r!   r   )r!   r   rN   r'   r'   r'   r(   r@      rO   r@   N))
__future__r   Z_compatr   r.   r   r   r   r	   r
   r   Z	_resourcer   r   Zchatkit.chatkitr   r   r   r   r   r   Zthreads.threadsr   r   r   r   r   r   Zresources.chatr   r   Zrealtime.realtimer   r   __all__r   r   r1   r?   r6   r@   r'   r'   r'   r(   <module>   s      ++