
    2h*                    4   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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  SSKJr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)    )annotationsN   )_legacy_response)	NOT_GIVENBodyQueryHeadersNotGiven)maybe_transformasync_maybe_transform)cached_property)SyncAPIResourceAsyncAPIResource)to_streamed_response_wrapper"async_to_streamed_response_wrapper)make_request_options)grader_run_paramsgrader_validate_params)GraderRunResponse)GraderValidateResponseGradersAsyncGradersc                      \ 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      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
)GradersWithRawResponseselfs    b/var/www/auris/envauris/lib/python3.13/site-packages/openai/resources/fine_tuning/alpha/graders.pywith_raw_responseGraders.with_raw_response   s     &d++    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
)GradersWithStreamingResponser   s    r    with_streaming_responseGraders.with_streaming_response    s     ,D11r#   Nitemextra_headersextra_query
extra_bodytimeoutc               v    U R                  S[        UUUS.[        R                  5      [	        XEXgS9[
        S9$ )5  
Run a grader.

Args:
  grader: The grader used for the fine-tuning job.

  model_sample: The model sample to be evaluated. This value will be used to populate the
      `sample` namespace. See
      [the guide](https://platform.openai.com/docs/guides/graders) for more details.
      The `output_json` variable will be populated if the model sample is a valid JSON
      string.

  item: The dataset item provided to the grader. This will be used to populate the
      `item` namespace. See
      [the guide](https://platform.openai.com/docs/guides/graders) for more details.

  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
/fine_tuning/alpha/graders/rungradermodel_sampler*   r+   r,   r-   r.   bodyoptionscast_to)_postr   r   GraderRunParamsr   r   r   r3   r4   r*   r+   r,   r-   r.   s           r    runGraders.run)   sT    J zz, $$0 
 "11 )+Q[ &  
 	
r#   r5   c               r    U R                  S[        SU0[        R                  5      [	        X#XES9[
        S9$ )B  
Validate a grader.

Args:
  grader: The grader used for the fine-tuning job.

  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
#/fine_tuning/alpha/graders/validater3   r5   r6   )r:   r   r   GraderValidateParamsr   r   r   r3   r+   r,   r-   r.   s         r    validateGraders.validate^   sF    2 zz1 (F!35K5`5`a(+Q[ +  
 	
r#    )returnr   )rG   r&   r3   zgrader_run_params.Graderr4   strr*   zobject | NotGivenr+   Headers | Noner,   Query | Noner-   Body | Noner.   'float | httpx.Timeout | None | NotGivenrG   r   r3   zgrader_validate_params.Graderr+   rJ   r,   rK   r-   rL   r.   rM   rG   r   __name__
__module____qualname____firstlineno__r   r!   r'   r   r=   rD   __static_attributes__rF   r#   r    r   r      s    , , 2 2 #, )-$("&;D3
 )3
 	3

  3
 &3
 "3
  3
 93
 
3
v )-$("&;D 
 . 
 & 
 " 
   
 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SS\S.           SS jjr	S	r
g)r      c                    [        U 5      $ r   )AsyncGradersWithRawResponser   s    r    r!   AsyncGraders.with_raw_response   s     +400r#   c                    [        U 5      $ r%   )!AsyncGradersWithStreamingResponser   s    r    r'   $AsyncGraders.with_streaming_response   s     166r#   Nr)   c                  #    U R                  S[        UUUS.[        R                  5      I Sh  vN [	        XEXgS9[
        S9I Sh  vN $  N N7f)r0   r1   r2   Nr5   r6   )r:   r   r   r;   r   r   r<   s           r    r=   AsyncGraders.run   sk     J ZZ,,$$0 
 "11  )+Q[ &   
 
 	

s!   .AA
AA	AAr5   c                  #    U R                  S[        SU0[        R                  5      I Sh  vN [	        X#XES9[
        S9I Sh  vN $  N N7f)r@   rA   r3   Nr5   r6   )r:   r   r   rB   r   r   rC   s         r    rD   AsyncGraders.validate   sY     2 ZZ1,h-?AWAlAlmm(+Q[ +   
 
 	
m
s!   ,AA
AAAArF   )rG   rX   )rG   r[   rH   rN   rO   rF   r#   r    r   r      s    1 1 7 7 #, )-$("&;D3
 )3
 	3

  3
 &3
 "3
  3
 93
 
3
v )-$("&;D 
 . 
 & 
 " 
   
 9 
 
  
  
r#   c                      \ rS rSrSS jrSrg)r      c                    Xl         [        R                  " UR                  5      U l        [        R                  " UR                  5      U l        g N)_gradersr   to_raw_response_wrapperr=   rD   r   graderss     r    __init__GradersWithRawResponse.__init__   s=    #;;KK
 )@@
r#   re   r=   rD   Nrh   r   rG   NonerP   rQ   rR   rS   ri   rT   rF   r#   r    r   r          
r#   r   c                      \ rS rSrSS jrSrg)rX      c                    Xl         [        R                  " UR                  5      U l        [        R                  " UR                  5      U l        g rd   )re   r   async_to_raw_response_wrapperr=   rD   rg   s     r    ri   $AsyncGradersWithRawResponse.__init__   s=    #AAKK
 )FF
r#   rk   Nrh   r   rG   rm   rn   rF   r#   r    rX   rX      ro   r#   rX   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 rd   )re   r   r=   rD   rg   s     r    ri   %GradersWithStreamingResponse.__init__  s1    /KK
 5
r#   rk   Nrl   rn   rF   r#   r    r&   r&     ro   r#   r&   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 rd   )re   r   r=   rD   rg   s     r    ri   *AsyncGradersWithStreamingResponse.__init__  s1    5KK
 ;
r#   rk   Nru   rn   rF   r#   r    r[   r[     ro   r#   r[   )&
__future__r   httpx r   _typesr   r   r   r	   r
   _utilsr   r   _compatr   	_resourcer   r   	_responser   r   _base_clientr   types.fine_tuning.alphar   r   +types.fine_tuning.alpha.grader_run_responser   0types.fine_tuning.alpha.grader_validate_responser   __all__r   r   r   rX   r&   r[   rF   r#   r    <module>r      s    #  ! @ @ = ' ; Z 1 Q M Wn
%i
o i
Xi
# i
X	
 	
	
 	
	
 	
	
 	
r#   