o
    ØRWjw  ã                   @  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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)ÚChatKitÚAsyncChatKitÚChatKitWithRawResponseÚAsyncChatKitWithRawResponseÚChatKitWithStreamingResponseÚ!AsyncChatKitWithStreamingResponse)ÚThreadsÚAsyncThreadsÚThreadsWithRawResponseÚAsyncThreadsWithRawResponseÚThreadsWithStreamingResponseÚ!AsyncThreadsWithStreamingResponse)ÚChatÚ	AsyncChat)ÚRealtimeÚAsyncRealtime)Ú	ResponsesÚAsyncResponsesÚResponsesWithRawResponseÚAsyncResponsesWithRawResponseÚResponsesWithStreamingResponseÚ#AsyncResponsesWithStreamingResponseÚBetaÚ	AsyncBetac                   @  ó|   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
ed"dd„ƒZdS )#r$   Úreturnr   c                 C  ó
   t | jƒS ©N)r   Ú_client©Úself© r-   úi/home/esfera/Documents/content_generation/venv/lib/python3.10/site-packages/openai/resources/beta/beta.pyÚchat1   ó   
z	Beta.chatr   c                 C  r(   r)   )r   r*   r+   r-   r-   r.   Úrealtime5   r0   zBeta.realtimer   c                 C  r(   r)   )r   r*   r+   r-   r-   r.   Ú	responses9   r0   zBeta.responsesr   c                 C  r(   r)   )r   r*   r+   r-   r-   r.   Úchatkit=   r0   zBeta.chatkitr   c                 C  r(   ©z4Build Assistants that can call models and use tools.)r   r*   r+   r-   r-   r.   Ú
assistantsA   ó   
zBeta.assistantsr   c                 C  r(   r4   )r   r*   r+   r-   r-   r.   ÚthreadsF   r6   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
        )r8   r+   r-   r-   r.   Úwith_raw_responseK   ó   zBeta.with_raw_responseÚBetaWithStreamingResponsec                 C  r9   ©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_responseU   ó   zBeta.with_streaming_responseN)r'   r   )r'   r   )r'   r   )r'   r   )r'   r   )r'   r   )r'   r8   )r'   r=   ©Ú__name__Ú
__module__Ú__qualname__r   r/   r1   r2   r3   r5   r7   r;   r?   r-   r-   r-   r.   r$   0   ó"    	c                   @  r&   )#r%   r'   r   c                 C  r(   r)   )r   r*   r+   r-   r-   r.   r/   `   r0   zAsyncBeta.chatr   c                 C  r(   r)   )r   r*   r+   r-   r-   r.   r1   d   r0   zAsyncBeta.realtimer   c                 C  r(   r)   )r   r*   r+   r-   r-   r.   r2   h   r0   zAsyncBeta.responsesr   c                 C  r(   r)   )r   r*   r+   r-   r-   r.   r3   l   r0   zAsyncBeta.chatkitr   c                 C  r(   r4   )r   r*   r+   r-   r-   r.   r5   p   r6   zAsyncBeta.assistantsr   c                 C  r(   r4   )r   r*   r+   r-   r-   r.   r7   u   r6   zAsyncBeta.threadsÚAsyncBetaWithRawResponsec                 C  r9   r:   )rF   r+   r-   r-   r.   r;   z   r<   zAsyncBeta.with_raw_responseÚAsyncBetaWithStreamingResponsec                 C  r9   r>   )rG   r+   r-   r-   r.   r?   „   r@   z!AsyncBeta.with_streaming_responseN)r'   r   )r'   r   )r'   r   )r'   r   )r'   r   )r'   r   )r'   rF   )r'   rG   rA   r-   r-   r-   r.   r%   _   rE   c                   @  óN   e Zd Z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 )r8   Úbetar$   r'   ÚNonec                 C  ó
   || _ d S r)   ©Ú_beta©r,   rI   r-   r-   r.   Ú__init__�   ó   
zBetaWithRawResponse.__init__r    c                 C  ó   t | jjƒS r)   )r    rM   r2   r+   r-   r-   r.   r2   ’   ó   zBetaWithRawResponse.responsesr   c                 C  rQ   r)   )r   rM   r3   r+   r-   r-   r.   r3   –   rR   zBetaWithRawResponse.chatkitr   c                 C  rQ   r4   )r   rM   r5   r+   r-   r-   r.   r5   š   ó   zBetaWithRawResponse.assistantsr   c                 C  rQ   r4   )r   rM   r7   r+   r-   r-   r.   r7   Ÿ   rS   zBetaWithRawResponse.threadsN©rI   r$   r'   rJ   )r'   r    )r'   r   )r'   r   )r'   r   ©	rB   rC   rD   rO   r   r2   r3   r5   r7   r-   r-   r-   r.   r8   Ž   ó    
r8   c                   @  rH   )rF   rI   r%   r'   rJ   c                 C  rK   r)   rL   rN   r-   r-   r.   rO   ¦   rP   z!AsyncBetaWithRawResponse.__init__r!   c                 C  rQ   r)   )r!   rM   r2   r+   r-   r-   r.   r2   ©   rR   z"AsyncBetaWithRawResponse.responsesr   c                 C  rQ   r)   )r   rM   r3   r+   r-   r-   r.   r3   ­   rR   z AsyncBetaWithRawResponse.chatkitr	   c                 C  rQ   r4   )r	   rM   r5   r+   r-   r-   r.   r5   ±   rS   z#AsyncBetaWithRawResponse.assistantsr   c                 C  rQ   r4   )r   rM   r7   r+   r-   r-   r.   r7   ¶   rS   z AsyncBetaWithRawResponse.threadsN©rI   r%   r'   rJ   )r'   r!   )r'   r   )r'   r	   )r'   r   rU   r-   r-   r-   r.   rF   ¥   rV   rF   c                   @  rH   )r=   rI   r$   r'   rJ   c                 C  rK   r)   rL   rN   r-   r-   r.   rO   ½   rP   z"BetaWithStreamingResponse.__init__r"   c                 C  rQ   r)   )r"   rM   r2   r+   r-   r-   r.   r2   À   rR   z#BetaWithStreamingResponse.responsesr   c                 C  rQ   r)   )r   rM   r3   r+   r-   r-   r.   r3   Ä   rR   z!BetaWithStreamingResponse.chatkitr
   c                 C  rQ   r4   )r
   rM   r5   r+   r-   r-   r.   r5   È   rS   z$BetaWithStreamingResponse.assistantsr   c                 C  rQ   r4   )r   rM   r7   r+   r-   r-   r.   r7   Í   rS   z!BetaWithStreamingResponse.threadsNrT   )r'   r"   )r'   r   )r'   r
   )r'   r   rU   r-   r-   r-   r.   r=   ¼   rV   r=   c                   @  rH   )rG   rI   r%   r'   rJ   c                 C  rK   r)   rL   rN   r-   r-   r.   rO   Ô   rP   z'AsyncBetaWithStreamingResponse.__init__r#   c                 C  rQ   r)   )r#   rM   r2   r+   r-   r-   r.   r2   ×   rR   z(AsyncBetaWithStreamingResponse.responsesr   c                 C  rQ   r)   )r   rM   r3   r+   r-   r-   r.   r3   Û   rR   z&AsyncBetaWithStreamingResponse.chatkitr   c                 C  rQ   r4   )r   rM   r5   r+   r-   r-   r.   r5   ß   rS   z)AsyncBetaWithStreamingResponse.assistantsr   c                 C  rQ   r4   )r   rM   r7   r+   r-   r-   r.   r7   ä   rS   z&AsyncBetaWithStreamingResponse.threadsNrW   )r'   r#   )r'   r   )r'   r   )r'   r   rU   r-   r-   r-   r.   rG   Ó   rV   rG   N)0Ú
__future__r   Ú_compatr   r5   r   r   r   r	   r
   r   Ú	_resourcer   r   Úchatkit.chatkitr   r   r   r   r   r   Úthreads.threadsr   r   r   r   r   r   Úresources.chatr   r   Úrealtime.realtimer   r   Úresponses.responsesr   r   r    r!   r"   r#   Ú__all__r$   r%   r8   rF   r=   rG   r-   r-   r-   r.   Ú<module>   s        	//