
    2Rjv%                    t   d dl mZ d dlmZmZmZ d dlmZ d dlZddl	m
Z
 ddlmZmZmZmZmZmZmZ ddlmZmZmZmZ dd	lmZ dd
lmZmZ ddlmZmZ ddl m!Z!m"Z" ddl#m$Z$m%Z% ddl&m'Z' ddl(m)Z) ddl*m+Z+ ddgZ, G d de      Z- G d de      Z. G d d      Z/ G d d      Z0 G d d      Z1 G d d      Z2y)    )annotations)AnyListcast)LiteralN   )_legacy_response)BodyOmitQueryHeadersNotGivenomit	not_given)is_givenpath_templatemaybe_transformstrip_not_given)cached_property)SyncAPIResourceAsyncAPIResource)to_streamed_response_wrapper"async_to_streamed_response_wrapper)SyncCursorPageAsyncCursorPage)AsyncPaginatormake_request_options)input_item_list_params)BetaResponseItem)BetaResponseIncludable
InputItemsAsyncInputItemsc            
      x    e Zd Zedd       Zedd       Zeeeeeddded		 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 ddZy)	r!   c                    t        |       S a  
        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    s/var/www/html/meridian/meridian-ai/venv/lib/python3.12/site-packages/openai/resources/beta/responses/input_items.pywith_raw_responsezInputItems.with_raw_response   s     )..    c                    t        |       S 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_responsez"InputItems.with_streaming_response$   s     /t44r+   N	afterincludelimitorderbetasextra_headersextra_query
extra_bodytimeoutc       	        p   |st        d|      i t        dt        |      rdj                  d |D              nt        i      |xs i }| j                  t        d|      t        t           t        |||	|
t        ||||dt        j                        dd	i
      t        t        t                    S )  
        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
        :Expected a non-empty value for `response_id` but received openai-beta,c              3  2   K   | ]  }t        |        y wNstr.0es     r)   	<genexpr>z"InputItems.list.<locals>.<genexpr>Y        6M!s1v6M   ./responses/{response_id}/input_items?beta=trueresponse_idr1   r2   r3   r4   bearer_authTr6   r7   r8   r9   querysecuritypageoptionsmodel)
ValueErrorr   r   joinr   _get_api_listr   r   r   r   r   r   InputItemListParamsr   r   r(   rK   r1   r2   r3   r4   r5   r6   r7   r8   r9   s              r)   listzInputItems.list-   s    R YZeYhijj
}QYZ_Q`chh6Mu6M.Mfopq
"
 !!JXcd 01(+'%%!&#*!&!&	 +>> (.  s,-' " 
 	
r+   )returnr&   )r[   r.   )rK   rB   r1   
str | Omitr2   #List[BetaResponseIncludable] | Omitr3   
int | Omitr4   Literal['asc', 'desc'] | Omitr5   0List[Literal['responses_multi_agent=v1']] | Omitr6   Headers | Noner7   Query | Noner8   Body | Noner9   'float | httpx.Timeout | None | NotGivenr[   z SyncCursorPage[BetaResponseItem]	__name__
__module____qualname__r   r*   r/   r   r   rZ    r+   r)   r!   r!      s    / / 5 5 !7; /3BF )-$("&;DC
C
 	C

 5C
 C
 -C
 @C
 &C
 "C
  C
 9C
 
*C
r+   c            
      x    e Zd Zedd       Zedd       Zeeeeeddded		 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 ddZy)	r"   c                    t        |       S r%   )AsyncInputItemsWithRawResponser'   s    r)   r*   z!AsyncInputItems.with_raw_responset   s     .d33r+   c                    t        |       S r-   )$AsyncInputItemsWithStreamingResponser'   s    r)   r/   z'AsyncInputItems.with_streaming_response~   s     4D99r+   Nr0   c       	        p   |st        d|      i t        dt        |      rdj                  d |D              nt        i      |xs i }| j                  t        d|      t        t           t        |||	|
t        ||||dt        j                        dd	i
      t        t        t                    S )r;   r<   r=   r>   c              3  2   K   | ]  }t        |        y wr@   rA   rC   s     r)   rF   z'AsyncInputItems.list.<locals>.<genexpr>   rG   rH   rI   rJ   rL   rM   TrN   rQ   )rU   r   r   rV   r   rW   r   r   r   r   r   r   rX   r   r   rY   s              r)   rZ   zAsyncInputItems.list   s    R YZeYhijj
}QYZ_Q`chh6Mu6M.Mfopq
"
 !!JXcd !12(+'%%!&#*!&!&	 +>> (.  s,-' " 
 	
r+   )r[   rl   )r[   rn   )rK   rB   r1   r\   r2   r]   r3   r^   r4   r_   r5   r`   r6   ra   r7   rb   r8   rc   r9   rd   r[   zCAsyncPaginator[BetaResponseItem, AsyncCursorPage[BetaResponseItem]]re   ri   r+   r)   r"   r"   s   s    4 4 : : !7; /3BF )-$("&;DC
C
 	C

 5C
 C
 -C
 @C
 &C
 "C
  C
 9C
 
MC
r+   c                      e Zd ZddZy)r&   c                Z    || _         t        j                  |j                        | _        y r@   )_input_itemsr	   to_raw_response_wrapperrZ   r(   input_itemss     r)   __init__z"InputItemsWithRawResponse.__init__   s%    '$<<
	r+   Nrv   r!   r[   Nonerf   rg   rh   rw   ri   r+   r)   r&   r&          
r+   r&   c                      e Zd ZddZy)rl   c                Z    || _         t        j                  |j                        | _        y r@   )rs   r	   async_to_raw_response_wrapperrZ   ru   s     r)   rw   z'AsyncInputItemsWithRawResponse.__init__   s%    '$BB
	r+   Nrv   r"   r[   ry   rz   ri   r+   r)   rl   rl      r{   r+   rl   c                      e Zd ZddZy)r.   c                F    || _         t        |j                        | _        y r@   )rs   r   rZ   ru   s     r)   rw   z(InputItemsWithStreamingResponse.__init__   s    '0
	r+   Nrx   rz   ri   r+   r)   r.   r.      r{   r+   r.   c                      e Zd ZddZy)rn   c                F    || _         t        |j                        | _        y r@   )rs   r   rZ   ru   s     r)   rw   z-AsyncInputItemsWithStreamingResponse.__init__   s    '6
	r+   Nr   rz   ri   r+   r)   rn   rn      r{   r+   rn   )3
__future__r   typingr   r   r   typing_extensionsr   httpx r	   _typesr
   r   r   r   r   r   r   _utilsr   r   r   r   _compatr   	_resourcer   r   	_responser   r   
paginationr   r   _base_clientr   r   types.beta.responsesr   types.beta.beta_response_itemr   #types.beta.beta_response_includabler    __all__r!   r"   r&   rl   r.   rn   ri   r+   r)   <module>r      s    # " " %  ! L L L P P ' ; Z : A ; > J*
+W
 W
tW
& W
t
 

 

 

 
r+   