
    _j'4                    X   S SK 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      r,g)    )annotations)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)output_item_list_params)OutputItemListResponse)OutputItemRetrieveResponseOutputItemsAsyncOutputItemsc            	          \ rS 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SS\S.                     SS	 jjrS
rg)r      ,Manage and run evals in the OpenAI platform.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
)OutputItemsWithRawResponseselfs    ]/home/rurouni/.local/lib/python3.13/site-packages/openai/resources/evals/runs/output_items.pywith_raw_responseOutputItems.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
) OutputItemsWithStreamingResponser$   s    r&   with_streaming_response#OutputItems.with_streaming_response%   s     055r)   Nextra_headersextra_query
extra_bodytimeoutc                   U(       d  [        SU< 35      eU(       d  [        SU< 35      eU(       d  [        SU< 35      eU R                  [        SUUUS9[        UUUUSS0S9[        S	9$ )
$  
Get an evaluation run output item by ID.

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
6Expected a non-empty value for `eval_id` but received 5Expected a non-empty value for `run_id` but received =Expected a non-empty value for `output_item_id` but received </evals/{eval_id}/runs/{run_id}/output_items/{output_item_id}eval_idrun_idoutput_item_idbearer_authTr0   r1   r2   r3   securityoptionscast_to
ValueError_getr   r   r   r%   r=   r;   r<   r0   r1   r2   r3   s           r&   retrieveOutputItems.retrieve.   s    2 UV]U`abbTU[T^_``\]k\noppyyN-	 )+'%'. /  
 	
r)   afterlimitorderstatusr0   r1   r2   r3   c       	           U(       d  [        SU< 35      eU(       d  [        SU< 35      eU R                  [        SX!S9[        [           [        UUU	U
[        UUUUS.[        R                  5      SS0S9[        S	9$ 
a  
Get a list of output items for an evaluation run.

Args:
  after: Identifier for the last output item from the previous pagination request.

  limit: Number of output items to retrieve.

  order: Sort order for output items by timestamp. Use `asc` for ascending order or
      `desc` for descending order. Defaults to `asc`.

  status: Filter output items by status. Use `failed` to filter by failed output items or
      `pass` to filter by passed output items.

  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
r6   r7   z+/evals/{eval_id}/runs/{run_id}/output_items)r;   r<   )rK   rL   rM   rN   r>   T)r0   r1   r2   r3   queryr@   )pagerB   model)	rE   _get_api_listr   r   r   r   r   r   OutputItemListParamsr%   r<   r;   rK   rL   rM   rN   r0   r1   r2   r3   s              r&   listOutputItems.list^   s    L UV]U`abbTU[T^_``!!GQXh 67(+'%%!&!&!&"(	 ,@@ (.  )' " 
 	
r)    )returnr#   )rZ   r,   r=   strr;   r\   r<   r\   r0   Headers | Noner1   Query | Noner2   Body | Noner3   'float | httpx.Timeout | None | NotGivenrZ   r   )r<   r\   r;   r\   rK   
str | OmitrL   
int | OmitrM   Literal['asc', 'desc'] | OmitrN   Literal['fail', 'pass'] | Omitr0   r]   r1   r^   r2   r_   r3   r`   rZ   z&SyncCursorPage[OutputItemListResponse]__name__
__module____qualname____firstlineno____doc__r   r'   r-   r   rH   r   rW   __static_attributes__rY   r)   r&   r   r      s   60 0 6 6  )-$("&;D.
.
 	.

 .
 &.
 ".
  .
 9.
 
$.
j ! /315 )-$("&;D>
>
 	>

 >
 >
 ->
 />
 &>
 ">
  >
 9>
 
0>
 >
r)   c            	          \ rS 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SS\S.                     SS	 jjrS
rg)r      r    c                    [        U 5      $ r"   )AsyncOutputItemsWithRawResponser$   s    r&   r'   "AsyncOutputItems.with_raw_response   s     /t44r)   c                    [        U 5      $ r+   )%AsyncOutputItemsWithStreamingResponser$   s    r&   r-   (AsyncOutputItems.with_streaming_response   s     5T::r)   Nr/   c                  #    U(       d  [        SU< 35      eU(       d  [        SU< 35      eU(       d  [        SU< 35      eU R                  [        SUUUS9[        UUUUSS0S9[        S	9I S
h  vN $  N7f)r5   r6   r7   r8   r9   r:   r>   Tr?   rA   NrD   rG   s           r&   rH   AsyncOutputItems.retrieve   s     2 UV]U`abbTU[T^_``\]k\noppYYN-	 )+'%'. /  
 
 	
 
s   A2A;4A95A;rJ   c       	           U(       d  [        SU< 35      eU(       d  [        SU< 35      eU R                  [        SX!S9[        [           [        UUU	U
[        UUUUS.[        R                  5      SS0S9[        S	9$ rP   )	rE   rT   r   r   r   r   r   r   rU   rV   s              r&   rW   AsyncOutputItems.list   s    L UV]U`abbTU[T^_``!!GQXh !78(+'%%!&!&!&"(	 ,@@ (.  )' " 
 	
r)   rY   )rZ   ro   )rZ   rr   r[   )r<   r\   r;   r\   rK   ra   rL   rb   rM   rc   rN   rd   r0   r]   r1   r^   r2   r_   r3   r`   rZ   zOAsyncPaginator[OutputItemListResponse, AsyncCursorPage[OutputItemListResponse]]re   rY   r)   r&   r   r      s    65 5 ; ;  )-$("&;D.
.
 	.

 .
 &.
 ".
  .
 9.
 
$.
j ! /315 )-$("&;D>
>
 	>

 >
 >
 ->
 />
 &>
 ">
  >
 9>
 
Y>
 >
r)   c                      \ rS rSrSS jrSrg)r#   i&  c                    Xl         [        R                  " UR                  5      U l        [        R                  " UR                  5      U l        g N)_output_itemsr   to_raw_response_wrapperrH   rW   r%   output_itemss     r&   __init__#OutputItemsWithRawResponse.__init__'  s@    )(@@!!
 %<<
	r)   r{   rW   rH   Nr~   r   rZ   Nonerf   rg   rh   ri   r   rk   rY   r)   r&   r#   r#   &      
r)   r#   c                      \ rS rSrSS jrSrg)ro   i2  c                    Xl         [        R                  " UR                  5      U l        [        R                  " UR                  5      U l        g rz   )r{   r   async_to_raw_response_wrapperrH   rW   r}   s     r&   r   (AsyncOutputItemsWithRawResponse.__init__3  s@    )(FF!!
 %BB
	r)   r   Nr~   r   rZ   r   r   rY   r)   r&   ro   ro   2  r   r)   ro   c                      \ rS rSrSS jrSrg)r,   i>  c                x    Xl         [        UR                  5      U l        [        UR                  5      U l        g rz   )r{   r   rH   rW   r}   s     r&   r   )OutputItemsWithStreamingResponse.__init__?  s4    )4!!
 1
	r)   r   Nr   r   rY   r)   r&   r,   r,   >  r   r)   r,   c                      \ rS rSrSS jrSrg)rr   iJ  c                x    Xl         [        UR                  5      U l        [        UR                  5      U l        g rz   )r{   r   rH   rW   r}   s     r&   r   .AsyncOutputItemsWithStreamingResponse.__init__K  s4    ):!!
 7
	r)   r   Nr   r   rY   r)   r&   rr   rr   J  r   r)   rr   )-
__future__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.evals.runsr   *types.evals.runs.output_item_list_responser   .types.evals.runs.output_item_retrieve_responser   __all__r   r   r#   ro   r,   rr   rY   r)   r&   <module>r      s    # %  ! L L L 5 ' ; Z : A 8 Q Y,
-D
/ D
ND
' D
N	
 	
	
 	
	
 	
	
 	
r)   