+
    Uid`                       ^ RI Ht ^ RIHtHtHtHt ^ RIHt ^ RI	t	^RI
Ht ^RIHtHtHtHtHtHtHt ^RIHtHtHt ^RIHt ^R	IHtHt ^R
IHtHt ^RI H!t!H"t" ^RI#H$t$H%t% ^RI&H't'H(t(H)t) ^RI*H+t+ ^RI,H-t- ^RI.H/t/ ^RI0H1t1 ^RI2H3t3 RR.t4 ! R R]4      t5 ! R R]4      t6 ! R R4      t7 ! R R4      t8 ! R R4      t9 ! R R4      t:R# )    )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                      ] tR t^tRt]R R l4       t]R R l4       tR]RRR	RR
RR]	/R R llt
R]RRR	RR
RR]	/R R lltR]R]R]R]RRR	RR
RR]	/R R lltRRR	RR
RR]	/R R lltRtR# )r%   ,Manage conversations and conversation items.c                   V ^8  d   QhRR/# )   returnItemsWithRawResponse )formats   "c/home/ubuntu/hermes-agent/venv/lib/python3.14/site-packages/openai/resources/conversations/items.py__annotate__Items.__annotate__    s     * *#7 *    c                    \        V 4      # 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
)r,   selfs   &r/   with_raw_responseItems.with_raw_response   s     $D))r2   c                   V ^8  d   QhRR/# )r*   r+   ItemsWithStreamingResponser-   )r.   s   "r/   r0   r1   *   s     0 0)C 0r2   c                    \        V 4      # 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:   r5   s   &r/   with_streaming_responseItems.with_streaming_response)   s     *$//r2   includeextra_headersNextra_query
extra_bodytimeoutc               8    V ^8  d   QhRRRRRRRRR	R
RRRRRR/# r*   conversation_idstritemsz Iterable[ResponseInputItemParam]r?   List[ResponseIncludable] | Omitr@   Headers | NonerA   Query | NonerB   Body | NonerC   'float | httpx.Timeout | None | NotGivenr+   r$   r-   )r.   s   "r/   r0   r1   2   Z     ,
 ,
,
 0	,

 1,
 &,
 ",
  ,
 9,
 
,
r2   c                   V'       g   \        RV: 24      hV P                  \        RVR7      \        RV/\        P
                  4      \        VVVV\        RV/\        P
                  4      R7      \        R7      # )  
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rF   rH   r?   r@   rA   rB   rC   querybodyoptionscast_to)
ValueError_postr   r   r   ItemCreateParamsr   r$   r6   rF   rH   r?   r@   rA   rB   rC   s   &&$$$$$$r/   createItems.create2   s    > ]^m]pqrrzzBTcd '5!13E3V3VW(+'%%y'&:<N<_<_` )  
 	
r2   c               8    V ^8  d   QhRRRRRRRRRR	R
RRRRR/# r*   item_idrG   rF   r?   rI   r@   rJ   rA   rK   rB   rL   rC   rM   r+   r"   r-   )r.   s   "r/   r0   r1   `   Z     0
 0
0
 	0

 10
 &0
 "0
  0
 90
 
0
r2   c               ,   V'       g   \        RV: 24      hV'       g   \        RV: 24      h\        \        V P                  \	        RW!R7      \        VVVV\        RV/\        P                  4      R7      \        \        \        4      R7      4      # )>  
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
rQ   6Expected a non-empty value for `item_id` but received 0/conversations/{conversation_id}/items/{item_id}rF   rb   r?   rT   rX   rY   )
rZ   r   r"   _getr   r   r   r   ItemRetrieveParamsr   r6   rb   rF   r?   r@   rA   rB   rC   s   &&$$$$$$r/   retrieveItems.retrieve`   s    : ]^m]pqrrUV]U`abbIIFXg -"/ +)#)9g*>@T@g@gh S"23  
 	
r2   afterlimitorderc               @    V ^8  d   QhRRRRRRRRR	R
RRRRRRRRRR/
# )r*   rF   rG   ro   
str | Omitr?   rI   rp   
int | Omitrq   Literal['asc', 'desc'] | Omitr@   rJ   rA   rK   rB   rL   rC   rM   r+   z,SyncConversationCursorPage[ConversationItem]r-   )r.   s   "r/   r0   r1      sz     M
 M
M
 	M

 1M
 M
 -M
 &M
 "M
  M
 9M
 
6M
r2   c                  V'       g   \        RV: 24      hV P                  \        RVR7      \        \        ,          \        VVVV	\        RVRVRVRV/\        P                  4      R7      \        \        \        4      R	7      # 
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
rQ   rR   rS   ro   r?   rp   rq   rT   )pagerX   model)rZ   _get_api_listr   r   r"   r   r   r   ItemListParamsr   r   
r6   rF   ro   r?   rp   rq   r@   rA   rB   rC   s
   &&$$$$$$$$r/   list
Items.list   s    p ]^m]pqrr!!BTcd+,<=(+'%%!7	 %33 s,-% " 
 	
r2   c               4    V ^8  d   QhRRRRRRRRRR	R
RRR/# r*   rb   rG   rF   r@   rJ   rA   rK   rB   rL   rC   rM   r+   r    r-   )r.   s   "r/   r0   r1      P     $
 $
$
 	$
 &$
 "$
  $
 9$
 
$
r2   c          
         V'       g   \        RV: 24      hV'       g   \        RV: 24      hV P                  \        RW!R7      \        W4WVR7      \        R7      # )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
rQ   rf   rg   rh   r@   rA   rB   rC   ri   rZ   _deleter   r   r    r6   rb   rF   r@   rA   rB   rC   s   &&$$$$$r/   deleteItems.delete   sm    0 ]^m]pqrrUV]U`abb||BTc )+Q[ !  
 	
r2   r-   __name__
__module____qualname____firstlineno____doc__r   r7   r=   r   r   r^   rm   r}   r   __static_attributes__r-   r2   r/   r%   r%      s0   6* * 0 0,

 48,
 )-,
 %),
 #',
 <E,
\0

 480
 )-0
 %)0
 #'0
 <E0
dM
 !	M

 48M
 !M
 04M
 )-M
 %)M
 #'M
 <EM
^$
 )-$
 %)$
 #'$
 <E$
 $
r2   c                      ] tR tRtRt]R R l4       t]R R l4       tR]RR	R
R	RR	R]	/R R llt
R]RR	R
R	RR	R]	/R R lltR]R]R]R]RR	R
R	RR	R]	/R R lltRR	R
R	RR	R]	/R R lltRtR	# )r&   i  r(   c                   V ^8  d   QhRR/# )r*   r+   AsyncItemsWithRawResponser-   )r.   s   "r/   r0   AsyncItems.__annotate__  s     / /#< /r2   c                    \        V 4      # r4   )r   r5   s   &r/   r7   AsyncItems.with_raw_response  s     )..r2   c                   V ^8  d   QhRR/# )r*   r+   AsyncItemsWithStreamingResponser-   )r.   s   "r/   r0   r     s     5 5)H 5r2   c                    \        V 4      # r<   )r   r5   s   &r/   r=   "AsyncItems.with_streaming_response  s     /t44r2   r?   r@   NrA   rB   rC   c               8    V ^8  d   QhRRRRRRRRR	R
RRRRRR/# rE   r-   )r.   s   "r/   r0   r     rN   r2   c               @  "   V'       g   \        RV: 24      hT P                  \        RVR7      \        RV/\        P
                  4      G Rj  xL
 \        TTTT\        RV/\        P
                  4      G Rj  xL
 R7      \        R7      G Rj  xL
 #  LG L L5i)	rP   rQ   rR   rS   rH   Nr?   rT   rV   )rZ   r[   r   r   r   r\   r   r$   r]   s   &&$$$$$$r/   r^   AsyncItems.create  s     > ]^m]pqrrZZBTcd,gu-=?Q?b?bcc(+'%19g2FHZHkHkll )   
 
 	
c m
s6   ABB
+B<B=BBBBBc               8    V ^8  d   QhRRRRRRRRRR	R
RRRRR/# ra   r-   )r.   s   "r/   r0   r   L  rc   r2   c               \  "   V'       g   \        RV: 24      hV'       g   \        RV: 24      h\        \        T P                  \	        RW!R7      \        TTTT\        RV/\        P                  4      G Rj  xL
 R7      \        \        \        4      R7      G Rj  xL
 4      #  L- L
5i)	re   rQ   rf   rg   rh   r?   NrT   ri   )
rZ   r   r"   rj   r   r   r   r   rk   r   rl   s   &&$$$$$$r/   rm   AsyncItems.retrieveL  s     : ]^m]pqrrUV]U`abb))FXg -"/ +)# 5y'6JL`LsLs tt S"23   
 	
 us)   B,AB,:B(;$B,B*
 	B,*B,ro   rp   rq   c               @    V ^8  d   QhRRRRRRRRR	R
RRRRRRRRRR/
# )r*   rF   rG   ro   rs   r?   rI   rp   rt   rq   ru   r@   rJ   rA   rK   rB   rL   rC   rM   r+   zOAsyncPaginator[ConversationItem, AsyncConversationCursorPage[ConversationItem]]r-   )r.   s   "r/   r0   r   ~  s{     M
 M
M
 	M

 1M
 M
 -M
 &M
 "M
  M
 9M
 
YM
r2   c                  V'       g   \        RV: 24      hV P                  \        RVR7      \        \        ,          \        VVVV	\        RVRVRVRV/\        P                  4      R7      \        \        \        4      R	7      # rw   )rZ   rz   r   r   r"   r   r   r   r{   r   r   r|   s
   &&$$$$$$$$r/   r}   AsyncItems.list~  s    p ]^m]pqrr!!BTcd,-=>(+'%%!7	 %33 s,-% " 
 	
r2   c               4    V ^8  d   QhRRRRRRRRRR	R
RRR/# r   r-   )r.   s   "r/   r0   r     r   r2   c          
        "   V'       g   \        RV: 24      hV'       g   \        RV: 24      hV P                  \        RW!R7      \        W4WVR7      \        R7      G Rj  xL
 #  L5i)r   rQ   rf   rg   rh   r   ri   Nr   r   s   &&$$$$$r/   r   AsyncItems.delete  sz     0 ]^m]pqrrUV]U`abb\\BTc )+Q[ ! " 
 
 	
 
s   A)A A)"A'#A)r-   r   r-   r2   r/   r&   r&     s0   6/ / 5 5,

 48,
 )-,
 %),
 #',
 <E,
\0

 480
 )-0
 %)0
 #'0
 <E0
dM
 !	M

 48M
 !M
 04M
 )-M
 %)M
 #'M
 <EM
^$
 )-$
 %)$
 #'$
 <E$
 $
r2   c                  "    ] tR tRtR R ltRtR# )r,   i  c                    V ^8  d   QhRRRR/# r*   rH   r%   r+   Noner-   )r.   s   "r/   r0   !ItemsWithRawResponse.__annotate__       
 
e 
 
r2   c                	:   Wn         \        P                  ! VP                  4      V n        \        P                  ! VP                  4      V n        \        P                  ! VP
                  4      V n        \        P                  ! VP                  4      V n        R # N)_itemsr	   to_raw_response_wrapperr^   rm   r}   r   r6   rH   s   &&r/   __init__ItemsWithRawResponse.__init__  sq    &>>LL
 )@@NN
 %<<JJ
	 '>>LL
r2   r   r^   r   r}   rm   Nr   r   r   r   r   r   r-   r2   r/   r,   r,         
 
r2   r,   c                  "    ] tR tRtR R ltRtR# )r   i  c                    V ^8  d   QhRRRR/# r*   rH   r&   r+   r   r-   )r.   s   "r/   r0   &AsyncItemsWithRawResponse.__annotate__       
 
j 
T 
r2   c                	:   Wn         \        P                  ! VP                  4      V n        \        P                  ! VP                  4      V n        \        P                  ! VP
                  4      V n        \        P                  ! VP                  4      V n        R # r   )r   r	   async_to_raw_response_wrapperr^   rm   r}   r   r   s   &&r/   r   "AsyncItemsWithRawResponse.__init__  sq    &DDLL
 )FFNN
 %BBJJ
	 'DDLL
r2   r   Nr   r-   r2   r/   r   r     r   r2   r   c                  "    ] tR tRtR R ltRtR# )r:   i  c                    V ^8  d   QhRRRR/# r   r-   )r.   s   "r/   r0   'ItemsWithStreamingResponse.__annotate__  r   r2   c                	    Wn         \        VP                  4      V n        \        VP                  4      V n        \        VP                  4      V n        \        VP
                  4      V n        R # r   )r   r   r^   rm   r}   r   r   s   &&r/   r   #ItemsWithStreamingResponse.__init__  sY    2LL
 5NN
 1JJ
	 3LL
r2   r   Nr   r-   r2   r/   r:   r:     r   r2   r:   c                  "    ] tR tRtR R ltRtR# )r   i*  c                    V ^8  d   QhRRRR/# r   r-   )r.   s   "r/   r0   ,AsyncItemsWithStreamingResponse.__annotate__+  r   r2   c                	    Wn         \        VP                  4      V n        \        VP                  4      V n        \        VP                  4      V n        \        VP
                  4      V n        R # r   )r   r   r^   rm   r}   r   r   s   &&r/   r   (AsyncItemsWithStreamingResponse.__init__+  sY    8LL
 ;NN
 7JJ
	 9LL
r2   r   Nr   r-   r2   r/   r   r   *  r   r2   r   );
__future__r   typingr   r   r   r   typing_extensionsr   httpx 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   r:   r   r-   r2   r/   <module>r      s    # , , %    K K K K K & : Y Q @ ] ] < E E O NL
!i
O i
Xi
! i
X
 
$
 
$
 
$
 
r2   