
    Oj%                    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            
      |    e Zd 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!   "Create and manage model responses.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    /var/www/origus_pro_usr/data/www/origus.pro/core/.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>[        6M!s1v6M   ./responses/{response_id}/input_items?beta=trueresponse_idr2   r3   r4   r5   bearer_authTr7   r8   r9   r:   querysecuritypageoptionsmodel)
ValueErrorr   r   joinr   _get_api_listr   r   r   r   r   r   InputItemListParamsr   r   r)   rL   r2   r3   r4   r5   r6   r7   r8   r9   r:   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/   )rL   rC   r2   
str | Omitr3   #List[BetaResponseIncludable] | Omitr4   
int | Omitr5   Literal['asc', 'desc'] | Omitr6   0List[Literal['responses_multi_agent=v1']] | Omitr7   Headers | Noner8   Query | Noner9   Body | Noner:   (float | httpx2.Timeout | None | NotGivenr\   z SyncCursorPage[BetaResponseItem]
__name__
__module____qualname____doc__r   r+   r0   r   r   r[    r,   r*   r!   r!      s    ,/ / 5 5 !7; /3BF )-$("&<EC
C
 	C

 5C
 C
 -C
 @C
 &C
 "C
  C
 :C
 
*C
r,   c            
      |    e Zd 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"   r$   c                    t        |       S r&   )AsyncInputItemsWithRawResponser(   s    r*   r+   z!AsyncInputItems.with_raw_responsex   s     .d33r,   c                    t        |       S r.   )$AsyncInputItemsWithStreamingResponser(   s    r*   r0   z'AsyncInputItems.with_streaming_response   s     4D99r,   Nr1   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rA   rB   rD   s     r*   rG   z'AsyncInputItems.list.<locals>.<genexpr>   rH   rI   rJ   rK   rM   rN   TrO   rR   )rV   r   r   rW   r   rX   r   r   r   r   r   r   rY   r   r   rZ   s              r*   r[   zAsyncInputItems.list   s    R YZeYhijj
}QYZ_Q`chh6Mu6M.Mfopq
"
 !!JXcd !12(+'%%!&#*!&!&	 +>> (.  s,-' " 
 	
r,   )r\   rn   )r\   rp   )rL   rC   r2   r]   r3   r^   r4   r_   r5   r`   r6   ra   r7   rb   r8   rc   r9   rd   r:   re   r\   zCAsyncPaginator[BetaResponseItem, AsyncCursorPage[BetaResponseItem]]rf   rk   r,   r*   r"   r"   u   s    ,4 4 : : !7; /3BF )-$("&<EC
C
 	C

 5C
 C
 -C
 @C
 &C
 "C
  C
 :C
 
MC
r,   c                      e Zd ZddZy)r'   c                Z    || _         t        j                  |j                        | _        y rA   )_input_itemsr	   to_raw_response_wrapperr[   r)   input_itemss     r*   __init__z"InputItemsWithRawResponse.__init__   s%    '$<<
	r,   Nrx   r!   r\   Nonerg   rh   ri   ry   rk   r,   r*   r'   r'          
r,   r'   c                      e Zd ZddZy)rn   c                Z    || _         t        j                  |j                        | _        y rA   )ru   r	   async_to_raw_response_wrapperr[   rw   s     r*   ry   z'AsyncInputItemsWithRawResponse.__init__   s%    '$BB
	r,   Nrx   r"   r\   r{   r|   rk   r,   r*   rn   rn      r}   r,   rn   c                      e Zd ZddZy)r/   c                F    || _         t        |j                        | _        y rA   )ru   r   r[   rw   s     r*   ry   z(InputItemsWithStreamingResponse.__init__   s    '0
	r,   Nrz   r|   rk   r,   r*   r/   r/      r}   r,   r/   c                      e Zd ZddZy)rp   c                F    || _         t        |j                        | _        y rA   )ru   r   r[   rw   s     r*   ry   z-AsyncInputItemsWithStreamingResponse.__init__   s    '6
	r,   Nr   r|   rk   r,   r*   rp   rp      r}   r,   rp   )3
__future__r   typingr   r   r   typing_extensionsr   httpx2 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'   rn   r/   rp   rk   r,   r*   <module>r      s    # " " %  ! L L L P P ' ; Z : A ; > J*
+Y
 Y
xY
& Y
x
 

 

 

 
r,   