
    _iJ                       S SK Jr  S SKJr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  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&  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      r0 " S S\5      r1 " S S5      r2 " S S5      r3 " S S5      r4 " S S5      r5g)    )annotations)IterableOptionalN   )_legacy_response   )Items
AsyncItemsItemsWithRawResponseAsyncItemsWithRawResponseItemsWithStreamingResponseAsyncItemsWithStreamingResponse)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)conversation_create_paramsconversation_update_params)Metadata)Conversation)ResponseInputItemParam)ConversationDeletedResourceConversationsAsyncConversationsc                     \ rS rSr\SS j5       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SS\	S.             SS
 jjrSSS\	S.           SS jjrSrg)r$   !   c                ,    [        U R                  5      $ N)r	   _clientselfs    h/var/www/html/land-ocr/venv/lib/python3.13/site-packages/openai/resources/conversations/conversations.pyitemsConversations.items"   s    T\\""    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
)ConversationsWithRawResponser+   s    r-   with_raw_responseConversations.with_raw_response&   s     ,D11r0   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
)"ConversationsWithStreamingResponser+   s    r-   with_streaming_response%Conversations.with_streaming_response0   s     2$77r0   Nr.   metadataextra_headersextra_query
extra_bodytimeoutc               t    U R                  S[        UUS.[        R                  5      [	        X4XVS9[
        S9$ )  
Create a conversation.

Args:
  items: Initial items to include in the conversation context. You may add up to 20 items
      at a time.

  metadata: Set of 16 key-value pairs that can be attached to an object. This can be useful
      for storing additional information about the object in a structured format, and
      querying for objects via API or the dashboard.

      Keys are strings with a maximum length of 64 characters. Values are strings with
      a maximum length of 512 characters.

  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
/conversationsr.   r<   r=   r>   r?   r@   bodyoptionscast_to)_postr   r   ConversationCreateParamsr   r!   r,   r.   r<   r=   r>   r?   r@   s          r-   createConversations.create9   sQ    D zz " ( +CC )+Q[ !  
 	
r0   rE   c          
     n    U(       d  [        SU< 35      eU R                  SU 3[        X#XES9[        S9$ )  
Get a conversation

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
>Expected a non-empty value for `conversation_id` but received /conversations/rE   rH   rI   
ValueError_getr   r!   r,   conversation_idr=   r>   r?   r@   s         r-   retrieveConversations.retrievej   sP    . ]^m]pqrryyo./(+Q[ !  
 	
r0   c                   U(       d  [        SU< 35      eU R                  SU 3[        SU0[        R                  5      [        X4XVS9[        S9$ ){  
Update a conversation

Args:
  metadata: Set of 16 key-value pairs that can be attached to an object. This can be useful
      for storing additional information about the object in a structured format, and
      querying for objects via API or the dashboard.

      Keys are strings with a maximum length of 64 characters. Values are strings with
      a maximum length of 512 characters.

  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
rQ   rR   r<   rE   rF   )rU   rJ   r   r   ConversationUpdateParamsr   r!   r,   rX   r<   r=   r>   r?   r@   s          r-   updateConversations.update   sf    > ]^m]pqrrzzo./ *h!79S9l9lm(+Q[ !  
 	
r0   c          
     n    U(       d  [        SU< 35      eU R                  SU 3[        X#XES9[        S9$ )A  Delete a conversation.

Items in the conversation will not be deleted.

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
rQ   rR   rE   rS   rU   _deleter   r#   rW   s         r-   deleteConversations.delete   sP    0 ]^m]pqrr||o./(+Q[ 0  
 	
r0    )returnr	   )rh   r3   )rh   r8   r.   z1Optional[Iterable[ResponseInputItemParam]] | Omitr<   zOptional[Metadata] | Omitr=   Headers | Noner>   Query | Noner?   Body | Noner@   'float | httpx.Timeout | None | NotGivenrh   r!   rX   strr=   rj   r>   rk   r?   rl   r@   rm   rh   r!   rX   ro   r<   zOptional[Metadata]r=   rj   r>   rk   r?   rl   r@   rm   rh   r!   rX   ro   r=   rj   r>   rk   r?   rl   r@   rm   rh   r#   __name__
__module____qualname____firstlineno__r   r.   r4   r9   r   r   rM   rY   r_   re   __static_attributes__rg   r0   r-   r$   r$   !   s   # # 2 2 8 8 DH.2 )-$("&;D/
 A/
 ,	/
 &/
 "/
  /
 9/
 
/
n )-$("&;D

 &
 "
  
 9
 

P )-$("&;D(
(
 %	(
 &(
 "(
  (
 9(
 
(
` )-$("&;D 
 
 & 
 " 
   
 9 
 
% 
  
r0   c                     \ rS rSr\SS j5       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SS\	S.             SS
 jjrSSS\	S.           SS jjrSrg)r%      c                ,    [        U R                  5      $ r)   )r
   r*   r+   s    r-   r.   AsyncConversations.items   s    $,,''r0   c                    [        U 5      $ r2   )!AsyncConversationsWithRawResponser+   s    r-   r4   $AsyncConversations.with_raw_response   s     166r0   c                    [        U 5      $ r7   )'AsyncConversationsWithStreamingResponser+   s    r-   r9   *AsyncConversations.with_streaming_response   s     7t<<r0   Nr;   c                  #    U R                  S[        UUS.[        R                  5      I Sh  vN [	        X4XVS9[
        S9I Sh  vN $  N N7f)rB   rC   rD   NrE   rF   )rJ   r   r   rK   r   r!   rL   s          r-   rM   AsyncConversations.create   sh     D ZZ," ( +CC  )+Q[ !   
 
 	

s!   -AA
AAAArE   c          
        #    U(       d  [        SU< 35      eU R                  SU 3[        X#XES9[        S9I Sh  vN $  N7f)rP   rQ   rR   rE   rS   NrT   rW   s         r-   rY   AsyncConversations.retrieve!  s]     . ]^m]pqrrYYo./(+Q[ !  
 
 	
 
   :AAAc                  #    U(       d  [        SU< 35      eU R                  SU 3[        SU0[        R                  5      I Sh  vN [        X4XVS9[        S9I Sh  vN $  N N7f)r\   rQ   rR   r<   NrE   rF   )rU   rJ   r   r   r]   r   r!   r^   s          r-   r_   AsyncConversations.updateB  s     > ]^m]pqrrZZo./,X&(B([([  )+Q[ !   	
 	
 		
	
s$   AA(A$
A(A& A(&A(c          
        #    U(       d  [        SU< 35      eU R                  SU 3[        X#XES9[        S9I Sh  vN $  N7f)rb   rQ   rR   rE   rS   Nrc   rW   s         r-   re   AsyncConversations.deleten  s]     0 ]^m]pqrr\\o./(+Q[ 0 " 
 
 	
 
r   rg   )rh   r
   )rh   r}   )rh   r   ri   rn   rp   rq   rr   rg   r0   r-   r%   r%      s   ( ( 7 7 = = DH.2 )-$("&;D/
 A/
 ,	/
 &/
 "/
  /
 9/
 
/
n )-$("&;D

 &
 "
  
 9
 

P )-$("&;D*
*
 %	*
 &*
 "*
  *
 9*
 
*
d )-$("&;D 
 
 & 
 " 
   
 9 
 
% 
  
r0   c                  2    \ rS rSrSS jr\SS j5       rSrg)r3   i  c                8   Xl         [        R                  " UR                  5      U l        [        R                  " UR                  5      U l        [        R                  " UR
                  5      U l        [        R                  " UR                  5      U l        g r)   )_conversationsr   to_raw_response_wrapperrM   rY   r_   re   r,   conversationss     r-   __init__%ConversationsWithRawResponse.__init__  sz    +&>>  
 )@@""
 '>>  
 '>>  
r0   c                @    [        U R                  R                  5      $ r)   )r   r   r.   r+   s    r-   r.   "ConversationsWithRawResponse.items  s    #D$7$7$=$=>>r0   r   rM   re   rY   r_   Nr   r$   rh   None)rh   r   rs   rt   ru   rv   r   r   r.   rw   rg   r0   r-   r3   r3     s    
  ? ?r0   r3   c                  2    \ rS rSrSS jr\SS j5       rSrg)r}   i  c                8   Xl         [        R                  " UR                  5      U l        [        R                  " UR                  5      U l        [        R                  " UR
                  5      U l        [        R                  " UR                  5      U l        g r)   )r   r   async_to_raw_response_wrapperrM   rY   r_   re   r   s     r-   r   *AsyncConversationsWithRawResponse.__init__  sz    +&DD  
 )FF""
 'DD  
 'DD  
r0   c                @    [        U R                  R                  5      $ r)   )r   r   r.   r+   s    r-   r.   'AsyncConversationsWithRawResponse.items  s    ()<)<)B)BCCr0   r   Nr   r%   rh   r   )rh   r   r   rg   r0   r-   r}   r}     s    
  D Dr0   r}   c                  2    \ rS rSrSS jr\SS j5       rSrg)r8   i  c                    Xl         [        UR                  5      U l        [        UR                  5      U l        [        UR                  5      U l        [        UR
                  5      U l        g r)   )r   r   rM   rY   r_   re   r   s     r-   r   +ConversationsWithStreamingResponse.__init__  sb    +2  
 5""
 3  
 3  
r0   c                @    [        U R                  R                  5      $ r)   )r   r   r.   r+   s    r-   r.   (ConversationsWithStreamingResponse.items  s    )$*=*=*C*CDDr0   r   Nr   )rh   r   r   rg   r0   r-   r8   r8     s    
  E Er0   r8   c                  2    \ rS rSrSS jr\SS j5       rSrg)r   i  c                    Xl         [        UR                  5      U l        [        UR                  5      U l        [        UR                  5      U l        [        UR
                  5      U l        g r)   )r   r   rM   rY   r_   re   r   s     r-   r   0AsyncConversationsWithStreamingResponse.__init__  sb    +8  
 ;""
 9  
 9  
r0   c                @    [        U R                  R                  5      $ r)   )r   r   r.   r+   s    r-   r.   -AsyncConversationsWithStreamingResponse.items  s    .t/B/B/H/HIIr0   r   Nr   )rh   r   r   rg   r0   r-   r   r     s    
  J Jr0   r   )6
__future__r   typingr   r   httpx r   r.   r	   r
   r   r   r   r   _typesr   r   r   r   r   r   r   _utilsr   r   _compatr   	_resourcer   r   	_responser   r   _base_clientr   types.conversationsr   r   types.shared_params.metadatar     types.conversations.conversationr!   )types.responses.response_input_item_paramr"   1types.conversations.conversation_deleted_resourcer#   __all__r$   r%   r3   r}   r8   r   rg   r0   r-   <module>r      s    # %     L K K < & : Y 0 Y 4 < O \0
1t
O t
nv
) v
r? ?,D D,E E,J Jr0   