
    _i=.                    l   S SK Jr  S SKrSSKJr  SSKJrJrJrJ	r	J
r
JrJr  SSKJrJr  SSKJr  SSKJrJr  SS	KJrJr  SS
KJr  SSKJrJrJrJrJr  SSK J!r!  SSK"Jr  SSK#Jr  SSK$Jr  SSK%Jr  SS/r& " S S\5      r' " S S\5      r( " S S5      r) " S S5      r* " S S5      r+ " S S5      r,g)    )annotationsN   )_legacy_response)BodyOmitQueryHeadersNotGivenomit	not_given)maybe_transformasync_maybe_transform)cached_property)SyncAPIResourceAsyncAPIResource)to_streamed_response_wrapper"async_to_streamed_response_wrapper)make_request_options)ChatSessionWorkflowParamChatSessionRateLimitsParamChatSessionExpiresAfterParam$ChatSessionChatKitConfigurationParamsession_create_params)ChatSession)r   )r   )r   )r   SessionsAsyncSessionsc                      \ rS rSr\S
S j5       r\SS j5       r\\\SSS\S.                   SS jjr	SSS\S.           SS jjr
S	rg)r      c                    [        U 5      $ z
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
)SessionsWithRawResponseselfs    b/var/www/html/land-ocr/venv/lib/python3.13/site-packages/openai/resources/beta/chatkit/sessions.pywith_raw_responseSessions.with_raw_response   s     't,,    c                    [        U 5      $ 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
)SessionsWithStreamingResponser"   s    r$   with_streaming_response Sessions.with_streaming_response)   s     -T22r'   Nchatkit_configurationexpires_afterrate_limitsextra_headersextra_query
extra_bodytimeoutc       	            SS0U=(       d    0 EnU R                  S[        UUUUUS.[        R                  5      [	        XgXS9[
        S9$ )  
Create a ChatKit session

Args:
  user: A free-form string that identifies your end user; ensures this Session can
      access other objects that have the same `user` scope.

  workflow: Workflow that powers the session.

  chatkit_configuration: Optional overrides for ChatKit runtime configuration features

  expires_after: Optional override for session expiration timing in seconds from creation.
      Defaults to 10 minutes.

  rate_limits: Optional override for per-minute request limits. When omitted, defaults to 10.

  extra_headers: Send extra headers

  extra_query: Add additional query parameters to the request

  extra_body: Add additional JSON properties to the request

  timeout: Override the client-level default timeout for this request, in seconds
OpenAI-Betachatkit_beta=v1/chatkit/sessionsuserworkflowr.   r/   r0   r1   r2   r3   r4   bodyoptionscast_to)_postr   r   SessionCreateParamsr   r   
r#   r;   r<   r.   r/   r0   r1   r2   r3   r4   s
             r$   createSessions.create2   so    N '(9Sm>QrSzz   (-B%2#. &99	 )+Q[    
 	
r'   r=   c          
         U(       d  [        SU< 35      eSS0U=(       d    0 EnU R                  SU S3[        X#XES9[        S9$ )  
Cancel a ChatKit session

Args:
  extra_headers: Send extra headers

  extra_query: Add additional query parameters to the request

  extra_body: Add additional JSON properties to the request

  timeout: Override the client-level default timeout for this request, in seconds
9Expected a non-empty value for `session_id` but received r7   r8   /chatkit/sessions//cancelr=   r@   rA   
ValueErrorrB   r   r   r#   
session_idr1   r2   r3   r4   s         r$   cancelSessions.cancell   sf    . XYcXfghh&(9Sm>QrSzz G4(+Q[    
 	
r'    )returnr!   )rT   r*   r;   strr<   r   r.   z+ChatSessionChatKitConfigurationParam | Omitr/   z#ChatSessionExpiresAfterParam | Omitr0   z!ChatSessionRateLimitsParam | Omitr1   Headers | Noner2   Query | Noner3   Body | Noner4   'float | httpx.Timeout | None | NotGivenrT   r   rP   rV   r1   rW   r2   rX   r3   rY   r4   rZ   rT   r   __name__
__module____qualname____firstlineno__r   r%   r+   r   r   rE   rQ   __static_attributes__rS   r'   r$   r   r      s    - - 3 3 NR=A9= )-$("&;D8
 8
 +	8

  K8
 ;8
 78
 &8
 "8
  8
 98
 
8
@ )-$("&;D 
 
 & 
 " 
   
 9 
 
 
  
r'   c                      \ rS rSr\S
S j5       r\SS j5       r\\\SSS\S.                   SS jjr	SSS\S.           SS jjr
S	rg)r      c                    [        U 5      $ r    )AsyncSessionsWithRawResponser"   s    r$   r%   AsyncSessions.with_raw_response   s     ,D11r'   c                    [        U 5      $ r)   )"AsyncSessionsWithStreamingResponser"   s    r$   r+   %AsyncSessions.with_streaming_response   s     2$77r'   Nr-   c       	           #    SS0U=(       d    0 EnU R                  S[        UUUUUS.[        R                  5      I Sh  vN [	        XgXS9[
        S9I Sh  vN $  N N7f)r6   r7   r8   r9   r:   Nr=   r>   )rB   r   r   rC   r   r   rD   s
             r$   rE   AsyncSessions.create   s     N '(9Sm>QrSZZ,  (-B%2#. &99	 	 )+Q[     
 
 	
	
s#   ?A"A
A"A A" A"r=   c          
        #    U(       d  [        SU< 35      eSS0U=(       d    0 EnU R                  SU S3[        X#XES9[        S9I Sh  vN $  N7f)	rH   rI   r7   r8   rJ   rK   r=   rL   NrM   rO   s         r$   rQ   AsyncSessions.cancel   ss     . XYcXfghh&(9Sm>QrSZZ G4(+Q[     
 
 	
 
s   A
AAArS   )rT   re   )rT   rh   rU   r[   r\   rS   r'   r$   r   r      s    2 2 8 8 NR=A9= )-$("&;D8
 8
 +	8

  K8
 ;8
 78
 &8
 "8
  8
 98
 
8
@ )-$("&;D 
 
 & 
 " 
   
 9 
 
 
  
r'   c                      \ rS rSrSS jrSrg)r!      c                    Xl         [        R                  " UR                  5      U l        [        R                  " UR                  5      U l        g N)	_sessionsr   to_raw_response_wrapperrE   rQ   r#   sessionss     r$   __init__ SessionsWithRawResponse.__init__  s;    !&>>OO
 '>>OO
r'   rr   rQ   rE   Nru   r   rT   Noner]   r^   r_   r`   rv   ra   rS   r'   r$   r!   r!          
r'   r!   c                      \ rS rSrSS jrSrg)re   i  c                    Xl         [        R                  " UR                  5      U l        [        R                  " UR                  5      U l        g rq   )rr   r   async_to_raw_response_wrapperrE   rQ   rt   s     r$   rv   %AsyncSessionsWithRawResponse.__init__  s;    !&DDOO
 'DDOO
r'   rx   Nru   r   rT   rz   r{   rS   r'   r$   re   re     r|   r'   re   c                      \ rS rSrSS jrSrg)r*   i  c                x    Xl         [        UR                  5      U l        [        UR                  5      U l        g rq   )rr   r   rE   rQ   rt   s     r$   rv   &SessionsWithStreamingResponse.__init__  s/    !2OO
 3OO
r'   rx   Nry   r{   rS   r'   r$   r*   r*     r|   r'   r*   c                      \ rS rSrSS jrSrg)rh   i$  c                x    Xl         [        UR                  5      U l        [        UR                  5      U l        g rq   )rr   r   rE   rQ   rt   s     r$   rv   +AsyncSessionsWithStreamingResponse.__init__%  s/    !8OO
 9OO
r'   rx   Nr   r{   rS   r'   r$   rh   rh   $  r|   r'   rh   )-
__future__r   httpx r   _typesr   r   r   r	   r
   r   r   _utilsr   r   _compatr   	_resourcer   r   	_responser   r   _base_clientr   types.beta.chatkitr   r   r   r   r   types.beta.chatkit.chat_sessionr   .types.beta.chatkit.chat_session_workflow_param1types.beta.chatkit.chat_session_rate_limits_param3types.beta.chatkit.chat_session_expires_after_param;types.beta.chatkit.chat_session_chatkit_configuration_param__all__r   r   r!   re   r*   rh   rS   r'   r$   <module>r      s    #  ! L L L = ' ; Z 1  < W \ ` p
'n
 n
bn
$ n
b	
 	
	
 	
	
 	
	
 	
r'   