o
    ¨Ýj "  ã                   @  sL  d dl mZ ddlmZ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!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gZ0G dd„ deƒZ1G dd„ deƒZ2G dd„ dƒZ3G dd„ dƒZ4G dd„ dƒZ5G dd„ dƒZ6dS )é    )Úannotationsé   )ÚChatÚ	AsyncChaté   )Úcached_propertyé   )Ú
AssistantsÚAsyncAssistantsÚAssistantsWithRawResponseÚAsyncAssistantsWithRawResponseÚAssistantsWithStreamingResponseÚ$AsyncAssistantsWithStreamingResponse)ÚSyncAPIResourceÚAsyncAPIResource)ÚAgentsÚAsyncAgentsÚAgentsWithRawResponseÚAsyncAgentsWithRawResponseÚAgentsWithStreamingResponseÚ AsyncAgentsWithStreamingResponse)ÚChatKitÚAsyncChatKitÚChatKitWithRawResponseÚAsyncChatKitWithRawResponseÚChatKitWithStreamingResponseÚ!AsyncChatKitWithStreamingResponse)ÚThreadsÚAsyncThreadsÚThreadsWithRawResponseÚAsyncThreadsWithRawResponseÚThreadsWithStreamingResponseÚ!AsyncThreadsWithStreamingResponse)Ú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ed&dd„ƒZdS )'r+   Úreturnr   c                 C  ó
   t | jƒS ©N)r   Ú_client©Úself© r4   úU/var/www/html/chatgpt/venv/lib/python3.10/site-packages/openai/resources/beta/beta.pyÚchat6   ó   
z	Beta.chatr#   c                 C  r/   r0   )r#   r1   r2   r4   r4   r5   Úrealtime:   r7   zBeta.realtimer   c                 C  r/   r0   )r   r1   r2   r4   r4   r5   Úagents>   r7   zBeta.agentsr%   c                 C  r/   ©z"Create and manage model responses.)r%   r1   r2   r4   r4   r5   Ú	responsesB   ó   
zBeta.responsesr   c                 C  r/   r0   )r   r1   r2   r4   r4   r5   ÚchatkitG   r7   zBeta.chatkitr	   c                 C  r/   ©z4Build Assistants that can call models and use tools.)r	   r1   r2   r4   r4   r5   Ú
assistantsK   r<   zBeta.assistantsr   c                 C  r/   r>   )r   r1   r2   r4   r4   r5   ÚthreadsP   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
        )rA   r2   r4   r4   r5   Úwith_raw_responseU   ó   zBeta.with_raw_responseÚBetaWithStreamingResponsec                 C  rB   ©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
        )rF   r2   r4   r4   r5   Úwith_streaming_response_   ó   zBeta.with_streaming_responseN)r.   r   )r.   r#   )r.   r   )r.   r%   )r.   r   )r.   r	   )r.   r   )r.   rA   )r.   rF   ©Ú__name__Ú
__module__Ú__qualname__r   r6   r8   r9   r;   r=   r?   r@   rD   rH   r4   r4   r4   r5   r+   5   ó&    	c                   @  r-   )'r,   r.   r   c                 C  r/   r0   )r   r1   r2   r4   r4   r5   r6   j   r7   zAsyncBeta.chatr$   c                 C  r/   r0   )r$   r1   r2   r4   r4   r5   r8   n   r7   zAsyncBeta.realtimer   c                 C  r/   r0   )r   r1   r2   r4   r4   r5   r9   r   r7   zAsyncBeta.agentsr&   c                 C  r/   r:   )r&   r1   r2   r4   r4   r5   r;   v   r<   zAsyncBeta.responsesr   c                 C  r/   r0   )r   r1   r2   r4   r4   r5   r=   {   r7   zAsyncBeta.chatkitr
   c                 C  r/   r>   )r
   r1   r2   r4   r4   r5   r?      r<   zAsyncBeta.assistantsr   c                 C  r/   r>   )r   r1   r2   r4   r4   r5   r@   „   r<   zAsyncBeta.threadsÚAsyncBetaWithRawResponsec                 C  rB   rC   )rO   r2   r4   r4   r5   rD   ‰   rE   zAsyncBeta.with_raw_responseÚAsyncBetaWithStreamingResponsec                 C  rB   rG   )rP   r2   r4   r4   r5   rH   “   rI   z!AsyncBeta.with_streaming_responseN)r.   r   )r.   r$   )r.   r   )r.   r&   )r.   r   )r.   r
   )r.   r   )r.   rO   )r.   rP   rJ   r4   r4   r4   r5   r,   i   rN   c                   @  ó\   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eddd„ƒZ	dS )rA   Úbetar+   r.   ÚNonec                 C  ó
   || _ d S r0   ©Ú_beta©r3   rR   r4   r4   r5   Ú__init__ž   ó   
zBetaWithRawResponse.__init__r   c                 C  ó   t | jjƒS r0   )r   rV   r9   r2   r4   r4   r5   r9   ¡   ó   zBetaWithRawResponse.agentsr'   c                 C  rZ   r:   )r'   rV   r;   r2   r4   r4   r5   r;   ¥   ó   zBetaWithRawResponse.responsesr   c                 C  rZ   r0   )r   rV   r=   r2   r4   r4   r5   r=   ª   r[   zBetaWithRawResponse.chatkitr   c                 C  rZ   r>   )r   rV   r?   r2   r4   r4   r5   r?   ®   r\   zBetaWithRawResponse.assistantsr   c                 C  rZ   r>   )r   rV   r@   r2   r4   r4   r5   r@   ³   r\   zBetaWithRawResponse.threadsN©rR   r+   r.   rS   )r.   r   )r.   r'   )r.   r   )r.   r   )r.   r   ©
rK   rL   rM   rX   r   r9   r;   r=   r?   r@   r4   r4   r4   r5   rA   �   ó    
rA   c                   @  rQ   )rO   rR   r,   r.   rS   c                 C  rT   r0   rU   rW   r4   r4   r5   rX   º   rY   z!AsyncBetaWithRawResponse.__init__r   c                 C  rZ   r0   )r   rV   r9   r2   r4   r4   r5   r9   ½   r[   zAsyncBetaWithRawResponse.agentsr(   c                 C  rZ   r:   )r(   rV   r;   r2   r4   r4   r5   r;   Á   r\   z"AsyncBetaWithRawResponse.responsesr   c                 C  rZ   r0   )r   rV   r=   r2   r4   r4   r5   r=   Æ   r[   z AsyncBetaWithRawResponse.chatkitr   c                 C  rZ   r>   )r   rV   r?   r2   r4   r4   r5   r?   Ê   r\   z#AsyncBetaWithRawResponse.assistantsr    c                 C  rZ   r>   )r    rV   r@   r2   r4   r4   r5   r@   Ï   r\   z AsyncBetaWithRawResponse.threadsN©rR   r,   r.   rS   )r.   r   )r.   r(   )r.   r   )r.   r   )r.   r    r^   r4   r4   r4   r5   rO   ¹   r_   rO   c                   @  rQ   )rF   rR   r+   r.   rS   c                 C  rT   r0   rU   rW   r4   r4   r5   rX   Ö   rY   z"BetaWithStreamingResponse.__init__r   c                 C  rZ   r0   )r   rV   r9   r2   r4   r4   r5   r9   Ù   r[   z BetaWithStreamingResponse.agentsr)   c                 C  rZ   r:   )r)   rV   r;   r2   r4   r4   r5   r;   Ý   r\   z#BetaWithStreamingResponse.responsesr   c                 C  rZ   r0   )r   rV   r=   r2   r4   r4   r5   r=   â   r[   z!BetaWithStreamingResponse.chatkitr   c                 C  rZ   r>   )r   rV   r?   r2   r4   r4   r5   r?   æ   r\   z$BetaWithStreamingResponse.assistantsr!   c                 C  rZ   r>   )r!   rV   r@   r2   r4   r4   r5   r@   ë   r\   z!BetaWithStreamingResponse.threadsNr]   )r.   r   )r.   r)   )r.   r   )r.   r   )r.   r!   r^   r4   r4   r4   r5   rF   Õ   r_   rF   c                   @  rQ   )rP   rR   r,   r.   rS   c                 C  rT   r0   rU   rW   r4   r4   r5   rX   ò   rY   z'AsyncBetaWithStreamingResponse.__init__r   c                 C  rZ   r0   )r   rV   r9   r2   r4   r4   r5   r9   õ   r[   z%AsyncBetaWithStreamingResponse.agentsr*   c                 C  rZ   r:   )r*   rV   r;   r2   r4   r4   r5   r;   ù   r\   z(AsyncBetaWithStreamingResponse.responsesr   c                 C  rZ   r0   )r   rV   r=   r2   r4   r4   r5   r=   þ   r[   z&AsyncBetaWithStreamingResponse.chatkitr   c                 C  rZ   r>   )r   rV   r?   r2   r4   r4   r5   r?     r\   z)AsyncBetaWithStreamingResponse.assistantsr"   c                 C  rZ   r>   )r"   rV   r@   r2   r4   r4   r5   r@     r\   z&AsyncBetaWithStreamingResponse.threadsNr`   )r.   r   )r.   r*   )r.   r   )r.   r   )r.   r"   r^   r4   r4   r4   r5   rP   ñ   r_   rP   N)7Ú
__future__r   r6   r   r   Z_compatr   r?   r	   r
   r   r   r   r   Z	_resourcer   r   Zagents.agentsr   r   r   r   r   r   Zchatkit.chatkitr   r   r   r   r   r   Zthreads.threadsr   r   r   r    r!   r"   Zrealtime.realtimer#   r$   Zresponses.responsesr%   r&   r'   r(   r)   r*   Ú__all__r+   r,   rA   rO   rF   rP   r4   r4   r4   r5   Ú<module>   s"        	44