o
    ôæ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                   @  ó`   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	dS )r   Úreturnr   c                 C  ó
   t | jƒS ©N)r   Ú_client©Úself© r!   ú[/var/www/html/openai_agents/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"   Ú
assistants)   r$   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
        )r(   r   r!   r!   r"   Úwith_raw_response1   ó   zBeta.with_raw_responseÚBetaWithStreamingResponsec                 C  r)   ©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;   ó   zBeta.with_streaming_responseN)r   r   )r   r   )r   r   )r   r   )r   r(   )r   r-   ©
Ú__name__Ú
__module__Ú__qualname__r   r#   r%   r&   r'   r+   r/   r!   r!   r!   r"   r       ó    	c                   @  r   )r   r   r   c                 C  r   r   )r   r   r   r!   r!   r"   r#   F   r$   zAsyncBeta.chatr   c                 C  r   r   )r   r   r   r!   r!   r"   r%   J   r$   zAsyncBeta.realtimer   c                 C  r   r   )r   r   r   r!   r!   r"   r&   N   r$   zAsyncBeta.assistantsr   c                 C  r   r   )r   r   r   r!   r!   r"   r'   R   r$   zAsyncBeta.threadsÚAsyncBetaWithRawResponsec                 C  r)   r*   )r6   r   r!   r!   r"   r+   V   r,   zAsyncBeta.with_raw_responseÚAsyncBetaWithStreamingResponsec                 C  r)   r.   )r7   r   r!   r!   r"   r/   `   r0   z!AsyncBeta.with_streaming_responseN)r   r   )r   r   )r   r   )r   r   )r   r6   )r   r7   r1   r!   r!   r!   r"   r   E   r5   c                   @  ó2   e Zd Zddd„Zeddd	„ƒZeddd„ƒZdS )r(   Úbetar   r   ÚNonec                 C  ó
   || _ d S r   ©Ú_beta©r    r9   r!   r!   r"   Ú__init__k   ó   
zBetaWithRawResponse.__init__r   c                 C  ó   t | jjƒS r   )r   r=   r&   r   r!   r!   r"   r&   n   ó   zBetaWithRawResponse.assistantsr   c                 C  rA   r   )r   r=   r'   r   r!   r!   r"   r'   r   rB   zBetaWithRawResponse.threadsN©r9   r   r   r:   )r   r   )r   r   ©r2   r3   r4   r?   r   r&   r'   r!   r!   r!   r"   r(   j   ó    
r(   c                   @  r8   )r6   r9   r   r   r:   c                 C  r;   r   r<   r>   r!   r!   r"   r?   x   r@   z!AsyncBetaWithRawResponse.__init__r	   c                 C  rA   r   )r	   r=   r&   r   r!   r!   r"   r&   {   rB   z#AsyncBetaWithRawResponse.assistantsr   c                 C  rA   r   )r   r=   r'   r   r!   r!   r"   r'      rB   z AsyncBetaWithRawResponse.threadsN©r9   r   r   r:   )r   r	   )r   r   rD   r!   r!   r!   r"   r6   w   rE   r6   c                   @  r8   )r-   r9   r   r   r:   c                 C  r;   r   r<   r>   r!   r!   r"   r?   …   r@   z"BetaWithStreamingResponse.__init__r
   c                 C  rA   r   )r
   r=   r&   r   r!   r!   r"   r&   ˆ   rB   z$BetaWithStreamingResponse.assistantsr   c                 C  rA   r   )r   r=   r'   r   r!   r!   r"   r'   Œ   rB   z!BetaWithStreamingResponse.threadsNrC   )r   r
   )r   r   rD   r!   r!   r!   r"   r-   „   rE   r-   c                   @  r8   )r7   r9   r   r   r:   c                 C  r;   r   r<   r>   r!   r!   r"   r?   ’   r@   z'AsyncBetaWithStreamingResponse.__init__r   c                 C  rA   r   )r   r=   r&   r   r!   r!   r"   r&   •   rB   z)AsyncBetaWithStreamingResponse.assistantsr   c                 C  rA   r   )r   r=   r'   r   r!   r!   r"   r'   ™   rB   z&AsyncBetaWithStreamingResponse.threadsNrF   )r   r   )r   r   rD   r!   r!   r!   r"   r7   ‘   rE   r7   N)"Ú
__future__r   Ú_compatr   r&   r   r   r   r	   r
   r   Ú	_resourcer   r   Úthreads.threadsr   r   r   r   r   r   Úresources.chatr   r   Úrealtime.realtimer   r   Ú__all__r   r   r(   r6   r-   r7   r!   r!   r!   r"   Ú<module>   s     %%