
    Oj8"                    p   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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Z0 G d de      Z1 G d de      Z2 G d d      Z3 G d d      Z4 G d d      Z5 G d d      Z6y)    )annotations   )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)Chat	AsyncChat)RealtimeAsyncRealtime)	ResponsesAsyncResponsesResponsesWithRawResponseAsyncResponsesWithRawResponseResponsesWithStreamingResponse#AsyncResponsesWithStreamingResponseBeta	AsyncBetac                      e Zd Zedd       Zedd       Zedd       Zedd       Zedd       Zedd       Z	edd       Z
edd       Zedd	       Zy
)r+   c                ,    t        | j                        S N)r!   _clientselfs    q/var/www/origus_pro_usr/data/www/origus.pro/core/.venv/lib/python3.12/site-packages/openai/resources/beta/beta.pychatz	Beta.chat9   s    DLL!!    c                ,    t        | j                        S r/   )r#   r0   r1   s    r3   realtimezBeta.realtime=   s    %%r5   c                ,    t        | j                        S r/   )r   r0   r1   s    r3   agentszBeta.agentsA   s    dll##r5   c                ,    t        | j                        S z"Create and manage model responses.)r%   r0   r1   s    r3   	responseszBeta.responsesE   s     &&r5   c                ,    t        | j                        S r/   )r   r0   r1   s    r3   chatkitzBeta.chatkitJ   s    t||$$r5   c                ,    t        | j                        S z4Build Assistants that can call models and use tools.)r   r0   r1   s    r3   
assistantszBeta.assistantsN   s     $,,''r5   c                ,    t        | j                        S r@   )r   r0   r1   s    r3   threadszBeta.threadsS   s     t||$$r5   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
        )BetaWithRawResponser1   s    r3   with_raw_responsezBeta.with_raw_responseX   s     #4((r5   c                    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
        )BetaWithStreamingResponser1   s    r3   with_streaming_responsezBeta.with_streaming_responseb   s     )..r5   N)returnr!   )rL   r#   )rL   r   )rL   r%   )rL   r   )rL   r   )rL   r   )rL   rF   )rL   rJ   __name__
__module____qualname__r   r4   r7   r9   r<   r>   rA   rC   rG   rK    r5   r3   r+   r+   8   s    " " & & $ $ ' ' % % ( ( % % ) ) / /r5   c                      e Zd Zedd       Zedd       Zedd       Zedd       Zedd       Zedd       Z	edd       Z
edd       Zedd	       Zy
)r,   c                ,    t        | j                        S r/   )r"   r0   r1   s    r3   r4   zAsyncBeta.chatm   s    &&r5   c                ,    t        | j                        S r/   )r$   r0   r1   s    r3   r7   zAsyncBeta.realtimeq   s    T\\**r5   c                ,    t        | j                        S r/   )r   r0   r1   s    r3   r9   zAsyncBeta.agentsu   s    4<<((r5   c                ,    t        | j                        S r;   )r&   r0   r1   s    r3   r<   zAsyncBeta.responsesy   s     dll++r5   c                ,    t        | j                        S r/   )r   r0   r1   s    r3   r>   zAsyncBeta.chatkit~   s    DLL))r5   c                ,    t        | j                        S r@   )r   r0   r1   s    r3   rA   zAsyncBeta.assistants   s     t||,,r5   c                ,    t        | j                        S r@   )r   r0   r1   s    r3   rC   zAsyncBeta.threads   s     DLL))r5   c                    t        |       S rE   )AsyncBetaWithRawResponser1   s    r3   rG   zAsyncBeta.with_raw_response   s     (--r5   c                    t        |       S rI   )AsyncBetaWithStreamingResponser1   s    r3   rK   z!AsyncBeta.with_streaming_response   s     .d33r5   N)rL   r"   )rL   r$   )rL   r   )rL   r&   )rL   r   )rL   r   )rL   r   )rL   r[   )rL   r]   rM   rQ   r5   r3   r,   r,   l   s    ' ' + + ) ) , , * * - - * * . . 4 4r5   c                  n    e Zd ZddZed	d       Zed
d       Zedd       Zedd       Zedd       Z	y)rF   c                    || _         y r/   _betar2   betas     r3   __init__zBetaWithRawResponse.__init__   	    
r5   c                @    t        | j                  j                        S r/   )r   ra   r9   r1   s    r3   r9   zBetaWithRawResponse.agents   s    $TZZ%6%677r5   c                @    t        | j                  j                        S r;   )r'   ra   r<   r1   s    r3   r<   zBetaWithRawResponse.responses   s     (

(<(<==r5   c                @    t        | j                  j                        S r/   )r   ra   r>   r1   s    r3   r>   zBetaWithRawResponse.chatkit   s    %djj&8&899r5   c                @    t        | j                  j                        S r@   )r	   ra   rA   r1   s    r3   rA   zBetaWithRawResponse.assistants   s     ))>)>??r5   c                @    t        | j                  j                        S r@   )r   ra   rC   r1   s    r3   rC   zBetaWithRawResponse.threads   s     &djj&8&899r5   Nrc   r+   rL   None)rL   r   )rL   r'   )rL   r   )rL   r	   )rL   r   
rN   rO   rP   rd   r   r9   r<   r>   rA   rC   rQ   r5   r3   rF   rF      sm     8 8 > > : : @ @ : :r5   rF   c                  n    e Zd ZddZed	d       Zed
d       Zedd       Zedd       Zedd       Z	y)r[   c                    || _         y r/   r`   rb   s     r3   rd   z!AsyncBetaWithRawResponse.__init__   re   r5   c                @    t        | j                  j                        S r/   )r   ra   r9   r1   s    r3   r9   zAsyncBetaWithRawResponse.agents   s    )$***;*;<<r5   c                @    t        | j                  j                        S r;   )r(   ra   r<   r1   s    r3   r<   z"AsyncBetaWithRawResponse.responses   s     -TZZ-A-ABBr5   c                @    t        | j                  j                        S r/   )r   ra   r>   r1   s    r3   r>   z AsyncBetaWithRawResponse.chatkit   s    *4::+=+=>>r5   c                @    t        | j                  j                        S r@   )r
   ra   rA   r1   s    r3   rA   z#AsyncBetaWithRawResponse.assistants   s     .djj.C.CDDr5   c                @    t        | j                  j                        S r@   )r   ra   rC   r1   s    r3   rC   z AsyncBetaWithRawResponse.threads   s     +4::+=+=>>r5   Nrc   r,   rL   rl   )rL   r   )rL   r(   )rL   r   )rL   r
   )rL   r   rm   rQ   r5   r3   r[   r[      so     = = C C ? ? E E ? ?r5   r[   c                  n    e Zd ZddZed	d       Zed
d       Zedd       Zedd       Zedd       Z	y)rJ   c                    || _         y r/   r`   rb   s     r3   rd   z"BetaWithStreamingResponse.__init__   re   r5   c                @    t        | j                  j                        S r/   )r   ra   r9   r1   s    r3   r9   z BetaWithStreamingResponse.agents   s    *4::+<+<==r5   c                @    t        | j                  j                        S r;   )r)   ra   r<   r1   s    r3   r<   z#BetaWithStreamingResponse.responses   s     .djj.B.BCCr5   c                @    t        | j                  j                        S r/   )r   ra   r>   r1   s    r3   r>   z!BetaWithStreamingResponse.chatkit   s    +DJJ,>,>??r5   c                @    t        | j                  j                        S r@   )r   ra   rA   r1   s    r3   rA   z$BetaWithStreamingResponse.assistants   s     /tzz/D/DEEr5   c                @    t        | j                  j                        S r@   )r   ra   rC   r1   s    r3   rC   z!BetaWithStreamingResponse.threads   s     ,DJJ,>,>??r5   Nrk   )rL   r   )rL   r)   )rL   r   )rL   r   )rL   r   rm   rQ   r5   r3   rJ   rJ      ss     > > D D @ @ F F @ @r5   rJ   c                  n    e Zd ZddZed	d       Zed
d       Zedd       Zedd       Zedd       Z	y)r]   c                    || _         y r/   r`   rb   s     r3   rd   z'AsyncBetaWithStreamingResponse.__init__   re   r5   c                @    t        | j                  j                        S r/   )r   ra   r9   r1   s    r3   r9   z%AsyncBetaWithStreamingResponse.agents   s    /

0A0ABBr5   c                @    t        | j                  j                        S r;   )r*   ra   r<   r1   s    r3   r<   z(AsyncBetaWithStreamingResponse.responses   s     34::3G3GHHr5   c                @    t        | j                  j                        S r/   )r   ra   r>   r1   s    r3   r>   z&AsyncBetaWithStreamingResponse.chatkit  s    01C1CDDr5   c                @    t        | j                  j                        S r@   )r   ra   rA   r1   s    r3   rA   z)AsyncBetaWithStreamingResponse.assistants  s     4DJJ4I4IJJr5   c                @    t        | j                  j                        S r@   )r    ra   rC   r1   s    r3   rC   z&AsyncBetaWithStreamingResponse.threads
  s     11C1CDDr5   Nru   )rL   r   )rL   r*   )rL   r   )rL   r   )rL   r    rm   rQ   r5   r3   r]   r]      su     C C I I E E K K E Er5   r]   N)7
__future__r   _compatr   rA   r   r   r	   r
   r   r   	_resourcer   r   agents.agentsr   r   r   r   r   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,   rF   r[   rJ   r]   rQ   r5   r3   <module>r      s    # &  ;    .  ;
1/? 1/h14  14h: :8? ?8@ @8E Er5   