
    _j4,                    <   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  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)BodyOmitQueryHeadersNotGivenomit	not_given)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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      IManage fine-tuning jobs to tailor a model to your specific training data.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    _/home/rurouni/.local/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                   U R                  S[        UUUS.[        R                  5      [	        UUUUSS0S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-   bearer_authTr.   r/   r0   r1   securitybodyoptionscast_to)_postr   r   GraderRunParamsr   r   r"   r6   r7   r-   r.   r/   r0   r1   s           r#   runGraders.run+   sb    J zz, $$0 
 "11 )+'%'. &#  
 	
r&   r.   r/   r0   r1   c               |    U R                  S[        SU0[        R                  5      [	        UUUUSS0S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/validater6   r8   Tr9   r;   )r?   r   r   GraderValidateParamsr   r   r"   r6   r.   r/   r0   r1   s         r#   validateGraders.validated   sT    2 zz1 (F!35K5`5`a(+'%'. +  
 	
r&    )returnr    )rM   r)   r6   zgrader_run_params.Graderr7   strr-   zobject | Omitr.   Headers | Noner/   Query | Noner0   Body | Noner1   'float | httpx.Timeout | None | NotGivenrM   r   r6   zgrader_validate_params.Graderr.   rP   r/   rQ   r0   rR   r1   rS   rM   r   __name__
__module____qualname____firstlineno____doc__r   r$   r*   r   r   rB   rJ   __static_attributes__rL   r&   r#   r   r      s    S, , 2 2 # )-$("&;D7
 )7
 	7

 7
 &7
 "7
  7
 97
 
7
~ )-$("&;D$
 .$
 &$
 "$
  $
 9$
 
 $
 $
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   )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 [	        UUUUSS0S9[
        S9I Sh  vN $  N! N7f)r3   r4   r5   Nr8   Tr9   r;   )r?   r   r   r@   r   r   rA   s           r#   rB   AsyncGraders.run   sy     J ZZ,,$$0 
 "11  )+'%'. &#   
 
 	

s!   .AA
AAAArD   c                  #    U R                  S[        SU0[        R                  5      I Sh  vN [	        UUUUSS0S9[
        S9I Sh  vN $  N! N7f)rF   rG   r6   Nr8   Tr9   r;   )r?   r   r   rH   r   r   rI   s         r#   rJ   AsyncGraders.validate   sg     2 ZZ1,h-?AWAlAlmm(+'%'. +   
 
 	
m
s!   ,AA
AAAArL   )rM   r_   )rM   rb   rN   rT   rU   rL   r&   r#   r   r      s    S1 1 7 7 # )-$("&;D7
 )7
 	7

 7
 &7
 "7
  7
 97
 
7
~ )-$("&;D$
 .$
 &$
 "$
  $
 9$
 
 $
 $
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)_gradersr   to_raw_response_wrapperrB   rJ   r"   graderss     r#   __init__GradersWithRawResponse.__init__  s=    #;;KK
 )@@
r&   rk   rB   rJ   Nrn   r   rM   NonerV   rW   rX   rY   ro   r[   rL   r&   r#   r    r          
r&   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 rj   )rk   r   async_to_raw_response_wrapperrB   rJ   rm   s     r#   ro   $AsyncGradersWithRawResponse.__init__  s=    #AAKK
 )FF
r&   rq   Nrn   r   rM   rs   rt   rL   r&   r#   r_   r_     ru   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 rj   )rk   r   rB   rJ   rm   s     r#   ro   %GradersWithStreamingResponse.__init__  s1    /KK
 5
r&   rq   Nrr   rt   rL   r&   r#   r)   r)     ru   r&   r)   c                      \ rS rSrSS jrSrg)rb   i%  c                x    Xl         [        UR                  5      U l        [        UR                  5      U l        g rj   )rk   r   rB   rJ   rm   s     r#   ro   *AsyncGradersWithStreamingResponse.__init__&  s1    5KK
 ;
r&   rq   Nrz   rt   rL   r&   r#   rb   rb   %  ru   r&   rb   )(
__future__r   httpx r   _typesr   r   r   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    r_   r)   rb   rL   r&   r#   <module>r      s    #  ! L L L = ' ; Z 1 Q M Wn
%s
o s
ls
# s
l	
 	
	
 	
	
 	
	
 	
r&   