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   úX/var/www/html/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     