
    h#                    `   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  SSK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      r-g)    )annotations)AnyListcast)LiteralN   )_legacy_response)	NOT_GIVENBodyQueryHeadersNotGiven)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    X/var/www/html/env/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beforeincludelimitorderextra_headersextra_query
extra_bodytimeoutc       	            U(       d  [        SU< 35      eU R                  SU S3[        [           [	        UUU	U
[        UUUUUS.[        R                  5      S9[        [        [        5      S9$ aq  
Returns a list of input items for a given response.

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

  before: An item ID to list items before, 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 `asc`.

      - `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/z/input_items)r/   r0   r1   r2   r3   )r4   r5   r6   r7   query)pageoptionsmodel)

ValueError_get_api_listr   r   r   r   r   InputItemListParamsr   r   r$   response_idr/   r0   r1   r2   r3   r4   r5   r6   r7   s              r%   listInputItems.list-   s    V YZeYhijj!!+l3-(+'%%!&"(#*!&!& +>>	  sL)' " 
 	
r(    )returnr"   )rF   r+   )rB   strr/   str | NotGivenr0   rH   r1   #List[ResponseIncludable] | NotGivenr2   int | NotGivenr3   !Literal['asc', 'desc'] | NotGivenr4   Headers | Noner5   Query | Noner6   Body | Noner7   'float | httpx.Timeout | None | NotGivenrF   zSyncCursorPage[ResponseItem]
__name__
__module____qualname____firstlineno__r   r&   r,   r
   rC   __static_attributes__rE   r(   r%   r   r      s    / / 5 5 !*!*7@ )3< )-$("&;DA
A
 	A

 A
 5A
 A
 1A
 &A
 "A
  A
 9A
 
&A
 A
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   q   c                    [        U 5      $ r!   )AsyncInputItemsWithRawResponser#   s    r%   r&   !AsyncInputItems.with_raw_responser   s     .d33r(   c                    [        U 5      $ r*   )$AsyncInputItemsWithStreamingResponser#   s    r%   r,   'AsyncInputItems.with_streaming_response|   s     4D99r(   Nr.   c       	            U(       d  [        SU< 35      eU R                  SU S3[        [           [	        UUU	U
[        UUUUUS.[        R                  5      S9[        [        [        5      S9$ r9   )
r>   r?   r   r   r   r   r   r@   r   r   rA   s              r%   rC   AsyncInputItems.list   s    V YZeYhijj!!+l3 .(+'%%!&"(#*!&!& +>>	  sL)' " 
 	
r(   rE   )rF   rY   )rF   r\   )rB   rG   r/   rH   r0   rH   r1   rI   r2   rJ   r3   rK   r4   rL   r5   rM   r6   rN   r7   rO   rF   z;AsyncPaginator[ResponseItem, AsyncCursorPage[ResponseItem]]rP   rE   r(   r%   r   r   q   s    4 4 : : !*!*7@ )3< )-$("&;DA
A
 	A

 A
 5A
 A
 1A
 &A
 "A
  A
 9A
 
EA
 A
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_wrapperrC   r$   input_itemss     r%   __init__"InputItemsWithRawResponse.__init__   s#    '$<<
	r(   rd   rC   Nrg   r   rF   NonerQ   rR   rS   rT   rh   rU   rE   r(   r%   r"   r"          
r(   r"   c                      \ rS rSrSS jrSrg)rY      c                Z    Xl         [        R                  " UR                  5      U l        g rc   )rd   r	   async_to_raw_response_wrapperrC   rf   s     r%   rh   'AsyncInputItemsWithRawResponse.__init__   s#    '$BB
	r(   rj   Nrg   r   rF   rl   rm   rE   r(   r%   rY   rY      rn   r(   rY   c                      \ rS rSrSS jrSrg)r+      c                D    Xl         [        UR                  5      U l        g rc   )rd   r   rC   rf   s     r%   rh   (InputItemsWithStreamingResponse.__init__   s    '0
	r(   rj   Nrk   rm   rE   r(   r%   r+   r+      rn   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 rc   )rd   r   rC   rf   s     r%   rh   -AsyncInputItemsWithStreamingResponse.__init__   s    '6
	r(   rj   Nrt   rm   rE   r(   r%   r\   r\      rn   r(   r\   ).
__future__r   typingr   r   r   typing_extensionsr   httpx r	   _typesr
   r   r   r   r   _utilsr   _compatr   	_resourcer   r   	_responser   r   
paginationr   r   _base_clientr   r   types.responsesr   types.responses.response_itemr   #types.responses.response_includabler   __all__r   r   r"   rY   r+   r\   rE   r(   r%   <module>r      s    # " " %    ? ? % & : Y 9 @ 5 9 E*
+U
 U
pU
& U
p
 

 

 

 
r(   