o
    $i                     @  s   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mZmZmZmZ ddl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   )ThreadsAsyncThreadsThreadsWithRawResponseAsyncThreadsWithRawResponseThreadsWithStreamingResponse!AsyncThreadsWithStreamingResponse)SessionsAsyncSessionsSessionsWithRawResponseAsyncSessionsWithRawResponseSessionsWithStreamingResponse"AsyncSessionsWithStreamingResponse   )cached_property)SyncAPIResourceAsyncAPIResourceChatKitAsyncChatKitc                   @  D   e Z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   e/var/www/html/flask_server/venv/lib/python3.10/site-packages/openai/resources/beta/chatkit/chatkit.pysessions      
zChatKit.sessionsr   c                 C  r   r   )r   r   r   r   r   r   threads    r    zChatKit.threadsChatKitWithRawResponsec                 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_response$      zChatKit.with_raw_responseChatKitWithStreamingResponsec                 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ChatKit.with_streaming_responseN)r   r
   )r   r   )r   r"   )r   r'   __name__
__module____qualname__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   9   r    zAsyncChatKit.sessionsr   c                 C  r   r   )r   r   r   r   r   r   r!   =   r    zAsyncChatKit.threadsAsyncChatKitWithRawResponsec                 C  r#   r$   )r0   r   r   r   r   r%   A   r&   zAsyncChatKit.with_raw_response!AsyncChatKitWithStreamingResponsec                 C  r#   r(   )r1   r   r   r   r   r)   K   r*   z$AsyncChatKit.with_streaming_responseN)r   r   )r   r   )r   r0   )r   r1   r+   r   r   r   r   r   8   r/   c                   @  2   e Zd ZdddZeddd	ZedddZdS )r"   chatkitr   r   Nonec                 C  
   || _ d S r   _chatkitr   r3   r   r   r   __init__V      
zChatKitWithRawResponse.__init__r   c                 C     t | jjS r   )r   r7   r   r   r   r   r   r   Y      zChatKitWithRawResponse.sessionsr   c                 C  r;   r   )r   r7   r!   r   r   r   r   r!   ]   r<   zChatKitWithRawResponse.threadsNr3   r   r   r4   )r   r   )r   r   r,   r-   r.   r9   r   r   r!   r   r   r   r   r"   U       
r"   c                   @  r2   )r0   r3   r   r   r4   c                 C  r5   r   r6   r8   r   r   r   r9   c   r:   z$AsyncChatKitWithRawResponse.__init__r   c                 C  r;   r   )r   r7   r   r   r   r   r   r   f   r<   z$AsyncChatKitWithRawResponse.sessionsr   c                 C  r;   r   )r   r7   r!   r   r   r   r   r!   j   r<   z#AsyncChatKitWithRawResponse.threadsNr3   r   r   r4   )r   r   )r   r   r>   r   r   r   r   r0   b   r?   r0   c                   @  r2   )r'   r3   r   r   r4   c                 C  r5   r   r6   r8   r   r   r   r9   p   r:   z%ChatKitWithStreamingResponse.__init__r   c                 C  r;   r   )r   r7   r   r   r   r   r   r   s   r<   z%ChatKitWithStreamingResponse.sessionsr   c                 C  r;   r   )r   r7   r!   r   r   r   r   r!   w   r<   z$ChatKitWithStreamingResponse.threadsNr=   )r   r   )r   r   r>   r   r   r   r   r'   o   r?   r'   c                   @  r2   )r1   r3   r   r   r4   c                 C  r5   r   r6   r8   r   r   r   r9   }   r:   z*AsyncChatKitWithStreamingResponse.__init__r   c                 C  r;   r   )r   r7   r   r   r   r   r   r      r<   z*AsyncChatKitWithStreamingResponse.sessionsr	   c                 C  r;   r   )r	   r7   r!   r   r   r   r   r!      r<   z)AsyncChatKitWithStreamingResponse.threadsNr@   )r   r   )r   r	   r>   r   r   r   r   r1   |   r?   r1   N)
__future__r   r!   r   r   r   r   r   r	   r   r
   r   r   r   r   r   _compatr   	_resourcer   r   __all__r   r   r"   r0   r'   r1   r   r   r   r   <module>   s     