ó
    ûÞ jVb  ã                  ó   • S SK Jr  S SKJrJrJrJr  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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!J"r"  SSK#J$r$J%r%  SSK&J'r'J(r(J)r)  SSK*J+r+  SSK,J-r-  SSK.J/r/  SSK0J1r1  SSK2J3r3  SS/r4 " S S\5      r5 " S S\5      r6 " S S5      r7 " S S5      r8 " S S5      r9 " S S5      r:g) é    )Úannotations)ÚAnyÚListÚIterableÚcast)ÚLiteralNé   )Ú_legacy_response)ÚBodyÚOmitÚQueryÚHeadersÚNotGivenÚomitÚ	not_given)Úpath_templateÚmaybe_transformÚasync_maybe_transform)Úcached_property)ÚSyncAPIResourceÚAsyncAPIResource)Úto_streamed_response_wrapperÚ"async_to_streamed_response_wrapper)ÚSyncConversationCursorPageÚAsyncConversationCursorPage)ÚAsyncPaginatorÚmake_request_options)Úitem_list_paramsÚitem_create_paramsÚitem_retrieve_params)ÚConversation)ÚResponseIncludable)ÚConversationItem)ÚResponseInputItemParam)ÚConversationItemListÚItemsÚ
AsyncItemsc            	      ó(  • \ rS 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SS\	S	.                   SS
 jjrSSS\	S.             SS jjrSrg)r&   é   ú,Manage conversations and conversation items.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
)ÚItemsWithRawResponse©Úselfs    Ú^/var/www/html/gaurav/venv/lib/python3.13/site-packages/openai/resources/conversations/items.pyÚwith_raw_responseÚItems.with_raw_response   s   € ô $ DÓ)Ð)ó    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
)ÚItemsWithStreamingResponser.   s    r0   Úwith_streaming_responseÚItems.with_streaming_response)   s   € ô *¨$Ó/Ð/r3   N©ÚincludeÚextra_headersÚextra_queryÚ
extra_bodyÚtimeoutc               óî   • U(       d  [        SU< 35      eU R                  [        SUS9[        SU0[        R
                  5      [        UUUU[        SU0[        R
                  5      SS0S9[        S	9$ )
áŒ  
Create items in a conversation with the given ID.

Args:
  items: The items to add to the conversation. You may add up to 20 items at a time.

  include: Additional fields to include in the response. See the `include` parameter for
      [listing Conversation items above](https://platform.openai.com/docs/api-reference/conversations/list-items#conversations_list_items-include)
      for more information.

  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/{conversation_id}/items©Úconversation_idÚitemsr:   Úbearer_authT©r;   r<   r=   r>   ÚqueryÚsecurity©ÚbodyÚoptionsÚcast_to)Ú
ValueErrorÚ_postr   r   r   ÚItemCreateParamsr   r%   ©r/   rD   rE   r:   r;   r<   r=   r>   s           r0   ÚcreateÚItems.create2   s‹   € ö> ÜÐ]Ð^mÑ]pÐqÓrÐrØ�z‰zÜÐBÐTcÑdÜ  '¨5Ð!1Ô3E×3VÑ3VÓWÜ(Ø+Ø'Ø%ØÜ% y°'Ð&:Ô<N×<_Ñ<_Ó`Ø'¨Ð.ñô )ð ð 
ð 	
r3   c               ó  • U(       d  [        SU< 35      eU(       d  [        SU< 35      e[        [        U R                  [	        SX!S9[        UUUU[        SU0[        R                  5      SS0S9[        [        [        5      S	95      $ )
á>  
Get a single item from a conversation with the given IDs.

Args:
  include: Additional fields to include in the response. See the `include` parameter for
      [listing Conversation items above](https://platform.openai.com/docs/api-reference/conversations/list-items#conversations_list_items-include)
      for more information.

  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
rA   ú6Expected a non-empty value for `item_id` but received ú0/conversations/{conversation_id}/items/{item_id}©rD   Úitem_idr:   rF   TrG   ©rL   rM   )
rN   r   r#   Ú_getr   r   r   r    ÚItemRetrieveParamsr   ©r/   rY   rD   r:   r;   r<   r=   r>   s           r0   ÚretrieveÚItems.retrievea   s¤   € ö: ÜÐ]Ð^mÑ]pÐqÓrÐrÞÜÐUÐV]ÑU`ÐaÓbÐbÜÜØ�I‰IÜØFÐXgñô -Ø"/Ø +Ø)Ø#Ü)¨9°gÐ*>Ô@T×@gÑ@gÓhØ+¨TÐ2ñô œSÔ"2Ó3ð ð ó
ð 	
r3   ©Úafterr:   ÚlimitÚorderr;   r<   r=   r>   c               óò   • U(       d  [        SU< 35      eU R                  [        SUS9[        [           [        UUUU	[        UUUUS.[        R                  5      SS0S9[        [        [        5      S9$ ©	aô  
List all items for a conversation with the given ID.

Args:
  after: An item ID to list items after, used in pagination.

  include: Specify additional output data to include in the model response. Currently
      supported values are:

      - `web_search_call.action.sources`: Include the sources of the web search tool
        call.
      - `code_interpreter_call.outputs`: Includes the outputs of python code execution
        in code interpreter tool call items.
      - `computer_call_output.output.image_url`: Include image urls from the computer
        call output.
      - `file_search_call.results`: Include the search results of the file search tool
        call.
      - `message.input_image.image_url`: Include image urls from the input message.
      - `message.output_text.logprobs`: Include logprobs with assistant messages.
      - `reasoning.encrypted_content`: Includes an encrypted version of reasoning
        tokens in reasoning item outputs. This enables reasoning items to be used in
        multi-turn conversations when using the Responses API statelessly (like when
        the `store` parameter is set to `false`, or when an organization is enrolled
        in the zero data retention program).

  limit: A limit on the number of objects to be returned. Limit can range between 1 and
      100, and the default is 20.

  order: The order to return the input items in. Default is `desc`.

      - `asc`: Return the input items in ascending order.
      - `desc`: Return the input items in descending order.

  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
rA   rB   rC   )ra   r:   rb   rc   rF   TrG   )ÚpagerL   Úmodel)rN   Ú_get_api_listr   r   r#   r   r   r   ÚItemListParamsr   r   ©
r/   rD   ra   r:   rb   rc   r;   r<   r=   r>   s
             r0   ÚlistÚ
Items.list”   s™   € öp ÜÐ]Ð^mÑ]pÐqÓrÐrØ×!Ñ!ÜÐBÐTcÑdÜ+Ô,<Ñ=Ü(Ø+Ø'Ø%ØÜ%à!&Ø#*Ø!&Ø!&ñ	ô %×3Ñ3óð (¨Ð.ñô  ”sÔ,Ó-ð' "ð 
ð 	
r3   ©r;   r<   r=   r>   c               ó®   • U(       d  [        SU< 35      eU(       d  [        SU< 35      eU R                  [        SX!S9[        UUUUSS0S9[        S9$ )	á2  
Delete an item from a conversation with the given IDs.

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
rA   rV   rW   rX   rF   T©r;   r<   r=   r>   rI   rZ   ©rN   Ú_deleter   r   r!   ©r/   rY   rD   r;   r<   r=   r>   s          r0   ÚdeleteÚItems.deleteä   s{   € ö0 ÜÐ]Ð^mÑ]pÐqÓrÐrÞÜÐUÐV]ÑU`ÐaÓbÐbØ�|‰|ÜØBÐTcñô )Ø+Ø'Ø%ØØ'¨Ð.ñô !ð ð 
ð 	
r3   © )Úreturnr-   )rw   r6   ©rD   ÚstrrE   z Iterable[ResponseInputItemParam]r:   úList[ResponseIncludable] | Omitr;   úHeaders | Noner<   úQuery | Noner=   úBody | Noner>   ú(float | httpx2.Timeout | None | NotGivenrw   r%   ©rY   ry   rD   ry   r:   rz   r;   r{   r<   r|   r=   r}   r>   r~   rw   r#   )rD   ry   ra   ú
str | Omitr:   rz   rb   ú
int | Omitrc   úLiteral['asc', 'desc'] | Omitr;   r{   r<   r|   r=   r}   r>   r~   rw   z,SyncConversationCursorPage[ConversationItem]©rY   ry   rD   ry   r;   r{   r<   r|   r=   r}   r>   r~   rw   r!   ©Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r1   r7   r   r   rR   r^   rk   rt   Ú__static_attributes__rv   r3   r0   r&   r&      sä  † Ù6àó*ó ð*ð ó0ó ð0ð 48ð )-Ø$(Ø"&Ø<Eñ-
àð-
ð 0ð	-
ð
 1ð-
ð &ð-
ð "ð-
ð  ð-
ð :ð-
ð 
õ-
ðh 48ð )-Ø$(Ø"&Ø<Eñ1
àð1
ð ð	1
ð
 1ð1
ð &ð1
ð "ð1
ð  ð1
ð :ð1
ð 
õ1
ðn !Ø37Ø Ø/3ð )-Ø$(Ø"&Ø<EñN
àðN
ð ð	N
ð
 1ðN
ð ðN
ð -ðN
ð &ðN
ð "ðN
ð  ðN
ð :ðN
ð 
6õN
ðn )-Ø$(Ø"&Ø<Eñ(
àð(
ð ð	(
ð &ð(
ð "ð(
ð  ð(
ð :ð(
ð 
÷(
ð (
r3   c            	      ó(  • \ rS 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SS\	S	.                   SS
 jjrSSS\	S.             SS jjrSrg)r'   i  r*   c                ó   • [        U 5      $ r,   )ÚAsyncItemsWithRawResponser.   s    r0   r1   ÚAsyncItems.with_raw_response  s   € ô )¨Ó.Ð.r3   c                ó   • [        U 5      $ r5   )ÚAsyncItemsWithStreamingResponser.   s    r0   r7   Ú"AsyncItems.with_streaming_response  s   € ô /¨tÓ4Ð4r3   Nr9   c             ƒ  ó2  #   • U(       d  [        SU< 35      eU R                  [        SUS9[        SU0[        R
                  5      I Sh  v•N [        UUUU[        SU0[        R
                  5      I Sh  v•N SS0S	9[        S
9I Sh  v•N $  ND N N7f)r@   rA   rB   rC   rE   Nr:   rF   TrG   rJ   )rN   rO   r   r   r   rP   r   r%   rQ   s           r0   rR   ÚAsyncItems.create%  s§   é € ö> ÜÐ]Ð^mÑ]pÐqÓrÐrØ—Z‘ZÜÐBÐTcÑdÜ,¨g°uÐ-=Ô?Q×?bÑ?bÓc×cÜ(Ø+Ø'Ø%ØÜ1°9¸gÐ2FÔHZ×HkÑHkÓl×lØ'¨Ð.ñô )ð  ð 
÷ 
ð 	
ácñ mñ
ùs6   ‚A
BÁB
Á+BÁ8BÁ9BÂBÂBÂBÂBc             ƒ  óL  #   • U(       d  [        SU< 35      eU(       d  [        SU< 35      e[        [        U R                  [	        SX!S9[        UUUU[        SU0[        R                  5      I Sh  v•N SS0S	9[        [        [        5      S
9I Sh  v•N 5      $  N* N
7f)rU   rA   rV   rW   rX   r:   NrF   TrG   rZ   )
rN   r   r#   r[   r   r   r   r    r\   r   r]   s           r0   r^   ÚAsyncItems.retrieveT  sº   é € ö: ÜÐ]Ð^mÑ]pÐqÓrÐrÞÜÐUÐV]ÑU`ÐaÓbÐbÜÜØ—)‘)ÜØFÐXgñô -Ø"/Ø +Ø)Ø#Ü 5°yÀ'Ð6JÔL`×LsÑLsÓ t×tØ+¨TÐ2ñô œSÔ"2Ó3ð ð ÷ ó
ð 	
ñ uñùs$   ‚A3B$Á5B Á6!B$ÂB"
Â	B$Â"B$r`   c               óò   • U(       d  [        SU< 35      eU R                  [        SUS9[        [           [        UUUU	[        UUUUS.[        R                  5      SS0S9[        [        [        5      S9$ re   )rN   rh   r   r   r#   r   r   r   ri   r   r   rj   s
             r0   rk   ÚAsyncItems.list‡  s™   € öp ÜÐ]Ð^mÑ]pÐqÓrÐrØ×!Ñ!ÜÐBÐTcÑdÜ,Ô-=Ñ>Ü(Ø+Ø'Ø%ØÜ%à!&Ø#*Ø!&Ø!&ñ	ô %×3Ñ3óð (¨Ð.ñô  ”sÔ,Ó-ð' "ð 
ð 	
r3   rm   c             ƒ  óÊ   #   • U(       d  [        SU< 35      eU(       d  [        SU< 35      eU R                  [        SX!S9[        UUUUSS0S9[        S9I S	h  v•N $  N7f)
ro   rA   rV   rW   rX   rF   Trp   rZ   Nrq   rs   s          r0   rt   ÚAsyncItems.delete×  sˆ   é € ö0 ÜÐ]Ð^mÑ]pÐqÓrÐrÞÜÐUÐV]ÑU`ÐaÓbÐbØ—\‘\ÜØBÐTcñô )Ø+Ø'Ø%ØØ'¨Ð.ñô !ð "ð 
÷ 
ð 	
ñ 
ùs   ‚AA#ÁA!ÁA#rv   )rw   r�   )rw   r�   rx   r   )rD   ry   ra   r€   r:   rz   rb   r�   rc   r‚   r;   r{   r<   r|   r=   r}   r>   r~   rw   zOAsyncPaginator[ConversationItem, AsyncConversationCursorPage[ConversationItem]]rƒ   r„   rv   r3   r0   r'   r'     så  † Ù6àó/ó ð/ð ó5ó ð5ð 48ð )-Ø$(Ø"&Ø<Eñ-
àð-
ð 0ð	-
ð
 1ð-
ð &ð-
ð "ð-
ð  ð-
ð :ð-
ð 
õ-
ðh 48ð )-Ø$(Ø"&Ø<Eñ1
àð1
ð ð	1
ð
 1ð1
ð &ð1
ð "ð1
ð  ð1
ð :ð1
ð 
õ1
ðn !Ø37Ø Ø/3ð )-Ø$(Ø"&Ø<EñN
àðN
ð ð	N
ð
 1ðN
ð ðN
ð -ðN
ð &ðN
ð "ðN
ð  ðN
ð :ðN
ð 
YõN
ðn )-Ø$(Ø"&Ø<Eñ(
àð(
ð ð	(
ð &ð(
ð "ð(
ð  ð(
ð :ð(
ð 
÷(
ð (
r3   c                  ó   • \ rS rSrSS j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 ©N)Ú_itemsr
   Úto_raw_response_wrapperrR   r^   rk   rt   ©r/   rE   s     r0   Ú__init__ÚItemsWithRawResponse.__init__  sq   € ØŒä&×>Ò>Ø�L‰Ló
ˆŒô )×@Ò@Ø�N‰Nó
ˆŒô %×<Ò<Ø�J‰Jó
ˆŒ	ô '×>Ò>Ø�L‰Ló
ˆ�r3   ©r�   rR   rt   rk   r^   N©rE   r&   rw   ÚNone©r…   r†   r‡   rˆ   r    rŠ   rv   r3   r0   r-   r-     ó   † ÷
r3   r-   c                  ó   • \ rS rSrSS j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_wrapperrR   r^   rk   rt   rŸ   s     r0   r    Ú"AsyncItemsWithRawResponse.__init__  sq   € ØŒä&×DÒDØ�L‰Ló
ˆŒô )×FÒFØ�N‰Nó
ˆŒô %×BÒBØ�J‰Jó
ˆŒ	ô '×DÒDØ�L‰Ló
ˆ�r3   r¢   N©rE   r'   rw   r¤   r¥   rv   r3   r0   r�   r�     r¦   r3   r�   c                  ó   • \ rS rSrSS jrSrg)r6   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   rR   r^   rk   rt   rŸ   s     r0   r    Ú#ItemsWithStreamingResponse.__init__'  sY   € ØŒä2Ø�L‰Ló
ˆŒô 5Ø�N‰Nó
ˆŒô 1Ø�J‰Jó
ˆŒ	ô 3Ø�L‰Ló
ˆ�r3   r¢   Nr£   r¥   rv   r3   r0   r6   r6   &  r¦   r3   r6   c                  ó   • \ rS rSrSS jrSrg)r�   i8  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   rR   r^   rk   rt   rŸ   s     r0   r    Ú(AsyncItemsWithStreamingResponse.__init__9  sY   € ØŒä8Ø�L‰Ló
ˆŒô ;Ø�N‰Nó
ˆŒô 7Ø�J‰Jó
ˆŒ	ô 9Ø�L‰Ló
ˆ�r3   r¢   Nr«   r¥   rv   r3   r0   r�   r�   8  r¦   r3   r�   );Ú
__future__r   Útypingr   r   r   r   Útyping_extensionsr   Úhttpx2Ú r
   Ú_typesr   r   r   r   r   r   r   Ú_utilsr   r   r   Ú_compatr   Ú	_resourcer   r   Ú	_responser   r   Ú
paginationr   r   Ú_base_clientr   r   Útypes.conversationsr   r   r    Ú types.conversations.conversationr!   Ú#types.responses.response_includabler"   Ú%types.conversations.conversation_itemr#   Ú)types.responses.response_input_item_paramr$   Ú*types.conversations.conversation_item_listr%   Ú__all__r&   r'   r-   r�   r6   r�   rv   r3   r0   Ú<module>rÅ      s�   ðõ #ç ,Ó ,Ý %ã å  ß K× KÑ Kß KÑ KÝ &ß :ß Yß Qß @ß ]Ñ ]Ý <Ý EÝ EÝ OÝ Nà�LÐ
!€ôp
ˆOô p
ôfp
Ð!ô p
÷f
ñ 
÷$
ñ 
÷$
ñ 
÷$
ò 
r3   