
    _j#                    l   S SK Jr  S SK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  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%  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      r0g)    )annotations)AnyListcast)LiteralN   )_legacy_response)BodyOmitQueryHeadersNotGivenomit	not_given)path_templatemaybe_transform)cached_property)SyncAPIResourceAsyncAPIResource)to_streamed_response_wrapper"async_to_streamed_response_wrapper)SyncCursorPageAsyncCursorPage)AsyncPaginatormake_request_options)input_item_list_params)ResponseItem)ResponseIncludable
InputItemsAsyncInputItemsc            	          \ 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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
)InputItemsWithRawResponseselfs    [/home/rurouni/.local/lib/python3.13/site-packages/openai/resources/responses/input_items.pywith_raw_responseInputItems.with_raw_response   s     )..    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
)InputItemsWithStreamingResponser&   s    r(   with_streaming_response"InputItems.with_streaming_response$   s     /t44r+   Nafterincludelimitorderextra_headersextra_query
extra_bodytimeoutc                   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$ 	a2  
Returns a list of input items for a given response.

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

  include: Additional fields to include in the response. See the `include` parameter for
      Response creation above for more information.

  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
z:Expected a non-empty value for `response_id` but received z$/responses/{response_id}/input_items)response_id)r2   r3   r4   r5   bearer_authT)r6   r7   r8   r9   querysecurity)pageoptionsmodel)
ValueError_get_api_listr   r   r   r   r   r   InputItemListParamsr   r   
r'   r<   r2   r3   r4   r5   r6   r7   r8   r9   s
             r(   listInputItems.list-   s    P YZeYhijj!!@kZ-(+'%%!&#*!&!&	 +>> (.  sL)' " 
 	
r+    )returnr%   )rJ   r.   )r<   strr2   
str | Omitr3   List[ResponseIncludable] | Omitr4   
int | Omitr5   Literal['asc', 'desc'] | Omitr6   Headers | Noner7   Query | Noner8   Body | Noner9   'float | httpx.Timeout | None | NotGivenrJ   zSyncCursorPage[ResponseItem]__name__
__module____qualname____firstlineno__r   r)   r/   r   r   rG   __static_attributes__rI   r+   r(   r   r      s    / / 5 5 !37 /3 )-$("&;D>
>
 	>

 1>
 >
 ->
 &>
 ">
  >
 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r
g)r    n   c                    [        U 5      $ r$   )AsyncInputItemsWithRawResponser&   s    r(   r)   !AsyncInputItems.with_raw_responseo   s     .d33r+   c                    [        U 5      $ r-   )$AsyncInputItemsWithStreamingResponser&   s    r(   r/   'AsyncInputItems.with_streaming_responsey   s     4D99r+   Nr1   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$ r;   )rC   rD   r   r   r   r   r   r   rE   r   r   rF   s
             r(   rG   AsyncInputItems.list   s    P YZeYhijj!!@kZ .(+'%%!&#*!&!&	 +>> (.  sL)' " 
 	
r+   rI   )rJ   r]   )rJ   r`   )r<   rK   r2   rL   r3   rM   r4   rN   r5   rO   r6   rP   r7   rQ   r8   rR   r9   rS   rJ   z;AsyncPaginator[ResponseItem, AsyncCursorPage[ResponseItem]]rT   rI   r+   r(   r    r    n   s    4 4 : : !37 /3 )-$("&;D>
>
 	>

 1>
 >
 ->
 &>
 ">
  >
 9>
 
E>
 >
r+   c                      \ rS rSrSS jrSrg)r%      c                Z    Xl         [        R                  " UR                  5      U l        g N)_input_itemsr	   to_raw_response_wrapperrG   r'   input_itemss     r(   __init__"InputItemsWithRawResponse.__init__   s#    '$<<
	r+   rh   rG   Nrk   r   rJ   NonerU   rV   rW   rX   rl   rY   rI   r+   r(   r%   r%          
r+   r%   c                      \ rS rSrSS jrSrg)r]      c                Z    Xl         [        R                  " UR                  5      U l        g rg   )rh   r	   async_to_raw_response_wrapperrG   rj   s     r(   rl   'AsyncInputItemsWithRawResponse.__init__   s#    '$BB
	r+   rn   Nrk   r    rJ   rp   rq   rI   r+   r(   r]   r]      rr   r+   r]   c                      \ rS rSrSS jrSrg)r.      c                D    Xl         [        UR                  5      U l        g rg   )rh   r   rG   rj   s     r(   rl   (InputItemsWithStreamingResponse.__init__   s    '0
	r+   rn   Nro   rq   rI   r+   r(   r.   r.      rr   r+   r.   c                      \ rS rSrSS jrSrg)r`      c                D    Xl         [        UR                  5      U l        g rg   )rh   r   rG   rj   s     r(   rl   -AsyncInputItemsWithStreamingResponse.__init__   s    '6
	r+   rn   Nrx   rq   rI   r+   r(   r`   r`      rr   r+   r`   )1
__future__r   typingr   r   r   typing_extensionsr   httpx r	   _typesr
   r   r   r   r   r   r   _utilsr   r   _compatr   	_resourcer   r   	_responser   r   
paginationr   r   _base_clientr   r   types.responsesr   types.responses.response_itemr   #types.responses.response_includabler   __all__r   r    r%   r]   r.   r`   rI   r+   r(   <module>r      s    # " " %    K K K 4 & : Y 9 @ 5 9 E*
+R
 R
jR
& R
j
 

 

 

 
r+   