go/resources/graders/subresources/grader_models/index.md +0 −1028 deleted
File Deleted View Diff
1# Grader Models
2
3## Domain Types
4
5### Grader Inputs
6
7- `type GraderInputs []GraderInputUnion`
8
9 A list of inputs, each of which may be either an input text, output text, input
10 image, or input audio object.
11
12 - `string`
13
14 - `type ResponseInputText struct{…}`
15
16 A text input to the model.
17
18 - `Text string`
19
20 The text input to the model.
21
22 - `Type InputText`
23
24 The type of the input item. Always `input_text`.
25
26 - `const InputTextInputText InputText = "input_text"`
27
28 - `type GraderInputOutputText struct{…}`
29
30 A text output from the model.
31
32 - `Text string`
33
34 The text output from the model.
35
36 - `Type OutputText`
37
38 The type of the output text. Always `output_text`.
39
40 - `const OutputTextOutputText OutputText = "output_text"`
41
42 - `type GraderInputInputImage struct{…}`
43
44 An image input block used within EvalItem content arrays.
45
46 - `ImageURL string`
47
48 The URL of the image input.
49
50 - `Type InputImage`
51
52 The type of the image input. Always `input_image`.
53
54 - `const InputImageInputImage InputImage = "input_image"`
55
56 - `Detail string`
57
58 The detail level of the image to be sent to the model. One of `high`, `low`, or `auto`. Defaults to `auto`.
59
60 - `type ResponseInputAudio struct{…}`
61
62 An audio input to the model.
63
64 - `InputAudio ResponseInputAudioInputAudio`
65
66 - `Data string`
67
68 Base64-encoded audio data.
69
70 - `Format string`
71
72 The format of the audio data. Currently supported formats are `mp3` and
73 `wav`.
74
75 - `const ResponseInputAudioInputAudioFormatMP3 ResponseInputAudioInputAudioFormat = "mp3"`
76
77 - `const ResponseInputAudioInputAudioFormatWAV ResponseInputAudioInputAudioFormat = "wav"`
78
79 - `Type InputAudio`
80
81 The type of the input item. Always `input_audio`.
82
83 - `const InputAudioInputAudio InputAudio = "input_audio"`
84
85### Label Model Grader
86
87- `type LabelModelGrader struct{…}`
88
89 A LabelModelGrader object which uses a model to assign labels to each item
90 in the evaluation.
91
92 - `Input []LabelModelGraderInput`
93
94 - `Content LabelModelGraderInputContentUnion`
95
96 Inputs to the model - can contain template strings. Supports text, output text, input images, and input audio, either as a single item or an array of items.
97
98 - `string`
99
100 - `type ResponseInputText struct{…}`
101
102 A text input to the model.
103
104 - `Text string`
105
106 The text input to the model.
107
108 - `Type InputText`
109
110 The type of the input item. Always `input_text`.
111
112 - `const InputTextInputText InputText = "input_text"`
113
114 - `type LabelModelGraderInputContentOutputText struct{…}`
115
116 A text output from the model.
117
118 - `Text string`
119
120 The text output from the model.
121
122 - `Type OutputText`
123
124 The type of the output text. Always `output_text`.
125
126 - `const OutputTextOutputText OutputText = "output_text"`
127
128 - `type LabelModelGraderInputContentInputImage struct{…}`
129
130 An image input block used within EvalItem content arrays.
131
132 - `ImageURL string`
133
134 The URL of the image input.
135
136 - `Type InputImage`
137
138 The type of the image input. Always `input_image`.
139
140 - `const InputImageInputImage InputImage = "input_image"`
141
142 - `Detail string`
143
144 The detail level of the image to be sent to the model. One of `high`, `low`, or `auto`. Defaults to `auto`.
145
146 - `type ResponseInputAudio struct{…}`
147
148 An audio input to the model.
149
150 - `InputAudio ResponseInputAudioInputAudio`
151
152 - `Data string`
153
154 Base64-encoded audio data.
155
156 - `Format string`
157
158 The format of the audio data. Currently supported formats are `mp3` and
159 `wav`.
160
161 - `const ResponseInputAudioInputAudioFormatMP3 ResponseInputAudioInputAudioFormat = "mp3"`
162
163 - `const ResponseInputAudioInputAudioFormatWAV ResponseInputAudioInputAudioFormat = "wav"`
164
165 - `Type InputAudio`
166
167 The type of the input item. Always `input_audio`.
168
169 - `const InputAudioInputAudio InputAudio = "input_audio"`
170
171 - `type GraderInputs []GraderInputUnion`
172
173 A list of inputs, each of which may be either an input text, output text, input
174 image, or input audio object.
175
176 - `string`
177
178 - `type ResponseInputText struct{…}`
179
180 A text input to the model.
181
182 - `type GraderInputOutputText struct{…}`
183
184 A text output from the model.
185
186 - `Text string`
187
188 The text output from the model.
189
190 - `Type OutputText`
191
192 The type of the output text. Always `output_text`.
193
194 - `const OutputTextOutputText OutputText = "output_text"`
195
196 - `type GraderInputInputImage struct{…}`
197
198 An image input block used within EvalItem content arrays.
199
200 - `ImageURL string`
201
202 The URL of the image input.
203
204 - `Type InputImage`
205
206 The type of the image input. Always `input_image`.
207
208 - `const InputImageInputImage InputImage = "input_image"`
209
210 - `Detail string`
211
212 The detail level of the image to be sent to the model. One of `high`, `low`, or `auto`. Defaults to `auto`.
213
214 - `type ResponseInputAudio struct{…}`
215
216 An audio input to the model.
217
218 - `Role string`
219
220 The role of the message input. One of `user`, `assistant`, `system`, or
221 `developer`.
222
223 - `const LabelModelGraderInputRoleUser LabelModelGraderInputRole = "user"`
224
225 - `const LabelModelGraderInputRoleAssistant LabelModelGraderInputRole = "assistant"`
226
227 - `const LabelModelGraderInputRoleSystem LabelModelGraderInputRole = "system"`
228
229 - `const LabelModelGraderInputRoleDeveloper LabelModelGraderInputRole = "developer"`
230
231 - `Type string`
232
233 The type of the message input. Always `message`.
234
235 - `const LabelModelGraderInputTypeMessage LabelModelGraderInputType = "message"`
236
237 - `Labels []string`
238
239 The labels to assign to each item in the evaluation.
240
241 - `Model string`
242
243 The model to use for the evaluation. Must support structured outputs.
244
245 - `Name string`
246
247 The name of the grader.
248
249 - `PassingLabels []string`
250
251 The labels that indicate a passing result. Must be a subset of labels.
252
253 - `Type LabelModel`
254
255 The object type, which is always `label_model`.
256
257 - `const LabelModelLabelModel LabelModel = "label_model"`
258
259### Multi Grader
260
261- `type MultiGrader struct{…}`
262
263 A MultiGrader object combines the output of multiple graders to produce a single score.
264
265 - `CalculateOutput string`
266
267 A formula to calculate the output based on grader results.
268
269 - `Graders MultiGraderGradersUnion`
270
271 A StringCheckGrader object that performs a string comparison between input and reference using a specified operation.
272
273 - `type StringCheckGrader struct{…}`
274
275 A StringCheckGrader object that performs a string comparison between input and reference using a specified operation.
276
277 - `Input string`
278
279 The input text. This may include template strings.
280
281 - `Name string`
282
283 The name of the grader.
284
285 - `Operation StringCheckGraderOperation`
286
287 The string check operation to perform. One of `eq`, `ne`, `like`, or `ilike`.
288
289 - `const StringCheckGraderOperationEq StringCheckGraderOperation = "eq"`
290
291 - `const StringCheckGraderOperationNe StringCheckGraderOperation = "ne"`
292
293 - `const StringCheckGraderOperationLike StringCheckGraderOperation = "like"`
294
295 - `const StringCheckGraderOperationIlike StringCheckGraderOperation = "ilike"`
296
297 - `Reference string`
298
299 The reference text. This may include template strings.
300
301 - `Type StringCheck`
302
303 The object type, which is always `string_check`.
304
305 - `const StringCheckStringCheck StringCheck = "string_check"`
306
307 - `type TextSimilarityGrader struct{…}`
308
309 A TextSimilarityGrader object which grades text based on similarity metrics.
310
311 - `EvaluationMetric TextSimilarityGraderEvaluationMetric`
312
313 The evaluation metric to use. One of `cosine`, `fuzzy_match`, `bleu`,
314 `gleu`, `meteor`, `rouge_1`, `rouge_2`, `rouge_3`, `rouge_4`, `rouge_5`,
315 or `rouge_l`.
316
317 - `const TextSimilarityGraderEvaluationMetricCosine TextSimilarityGraderEvaluationMetric = "cosine"`
318
319 - `const TextSimilarityGraderEvaluationMetricFuzzyMatch TextSimilarityGraderEvaluationMetric = "fuzzy_match"`
320
321 - `const TextSimilarityGraderEvaluationMetricBleu TextSimilarityGraderEvaluationMetric = "bleu"`
322
323 - `const TextSimilarityGraderEvaluationMetricGleu TextSimilarityGraderEvaluationMetric = "gleu"`
324
325 - `const TextSimilarityGraderEvaluationMetricMeteor TextSimilarityGraderEvaluationMetric = "meteor"`
326
327 - `const TextSimilarityGraderEvaluationMetricRouge1 TextSimilarityGraderEvaluationMetric = "rouge_1"`
328
329 - `const TextSimilarityGraderEvaluationMetricRouge2 TextSimilarityGraderEvaluationMetric = "rouge_2"`
330
331 - `const TextSimilarityGraderEvaluationMetricRouge3 TextSimilarityGraderEvaluationMetric = "rouge_3"`
332
333 - `const TextSimilarityGraderEvaluationMetricRouge4 TextSimilarityGraderEvaluationMetric = "rouge_4"`
334
335 - `const TextSimilarityGraderEvaluationMetricRouge5 TextSimilarityGraderEvaluationMetric = "rouge_5"`
336
337 - `const TextSimilarityGraderEvaluationMetricRougeL TextSimilarityGraderEvaluationMetric = "rouge_l"`
338
339 - `Input string`
340
341 The text being graded.
342
343 - `Name string`
344
345 The name of the grader.
346
347 - `Reference string`
348
349 The text being graded against.
350
351 - `Type TextSimilarity`
352
353 The type of grader.
354
355 - `const TextSimilarityTextSimilarity TextSimilarity = "text_similarity"`
356
357 - `type PythonGrader struct{…}`
358
359 A PythonGrader object that runs a python script on the input.
360
361 - `Name string`
362
363 The name of the grader.
364
365 - `Source string`
366
367 The source code of the python script.
368
369 - `Type Python`
370
371 The object type, which is always `python`.
372
373 - `const PythonPython Python = "python"`
374
375 - `ImageTag string`
376
377 The image tag to use for the python script.
378
379 - `type ScoreModelGrader struct{…}`
380
381 A ScoreModelGrader object that uses a model to assign a score to the input.
382
383 - `Input []ScoreModelGraderInput`
384
385 The input messages evaluated by the grader. Supports text, output text, input image, and input audio content blocks, and may include template strings.
386
387 - `Content ScoreModelGraderInputContentUnion`
388
389 Inputs to the model - can contain template strings. Supports text, output text, input images, and input audio, either as a single item or an array of items.
390
391 - `string`
392
393 - `type ResponseInputText struct{…}`
394
395 A text input to the model.
396
397 - `Text string`
398
399 The text input to the model.
400
401 - `Type InputText`
402
403 The type of the input item. Always `input_text`.
404
405 - `const InputTextInputText InputText = "input_text"`
406
407 - `type ScoreModelGraderInputContentOutputText struct{…}`
408
409 A text output from the model.
410
411 - `Text string`
412
413 The text output from the model.
414
415 - `Type OutputText`
416
417 The type of the output text. Always `output_text`.
418
419 - `const OutputTextOutputText OutputText = "output_text"`
420
421 - `type ScoreModelGraderInputContentInputImage struct{…}`
422
423 An image input block used within EvalItem content arrays.
424
425 - `ImageURL string`
426
427 The URL of the image input.
428
429 - `Type InputImage`
430
431 The type of the image input. Always `input_image`.
432
433 - `const InputImageInputImage InputImage = "input_image"`
434
435 - `Detail string`
436
437 The detail level of the image to be sent to the model. One of `high`, `low`, or `auto`. Defaults to `auto`.
438
439 - `type ResponseInputAudio struct{…}`
440
441 An audio input to the model.
442
443 - `InputAudio ResponseInputAudioInputAudio`
444
445 - `Data string`
446
447 Base64-encoded audio data.
448
449 - `Format string`
450
451 The format of the audio data. Currently supported formats are `mp3` and
452 `wav`.
453
454 - `const ResponseInputAudioInputAudioFormatMP3 ResponseInputAudioInputAudioFormat = "mp3"`
455
456 - `const ResponseInputAudioInputAudioFormatWAV ResponseInputAudioInputAudioFormat = "wav"`
457
458 - `Type InputAudio`
459
460 The type of the input item. Always `input_audio`.
461
462 - `const InputAudioInputAudio InputAudio = "input_audio"`
463
464 - `type GraderInputs []GraderInputUnion`
465
466 A list of inputs, each of which may be either an input text, output text, input
467 image, or input audio object.
468
469 - `string`
470
471 - `type ResponseInputText struct{…}`
472
473 A text input to the model.
474
475 - `type GraderInputOutputText struct{…}`
476
477 A text output from the model.
478
479 - `Text string`
480
481 The text output from the model.
482
483 - `Type OutputText`
484
485 The type of the output text. Always `output_text`.
486
487 - `const OutputTextOutputText OutputText = "output_text"`
488
489 - `type GraderInputInputImage struct{…}`
490
491 An image input block used within EvalItem content arrays.
492
493 - `ImageURL string`
494
495 The URL of the image input.
496
497 - `Type InputImage`
498
499 The type of the image input. Always `input_image`.
500
501 - `const InputImageInputImage InputImage = "input_image"`
502
503 - `Detail string`
504
505 The detail level of the image to be sent to the model. One of `high`, `low`, or `auto`. Defaults to `auto`.
506
507 - `type ResponseInputAudio struct{…}`
508
509 An audio input to the model.
510
511 - `Role string`
512
513 The role of the message input. One of `user`, `assistant`, `system`, or
514 `developer`.
515
516 - `const ScoreModelGraderInputRoleUser ScoreModelGraderInputRole = "user"`
517
518 - `const ScoreModelGraderInputRoleAssistant ScoreModelGraderInputRole = "assistant"`
519
520 - `const ScoreModelGraderInputRoleSystem ScoreModelGraderInputRole = "system"`
521
522 - `const ScoreModelGraderInputRoleDeveloper ScoreModelGraderInputRole = "developer"`
523
524 - `Type string`
525
526 The type of the message input. Always `message`.
527
528 - `const ScoreModelGraderInputTypeMessage ScoreModelGraderInputType = "message"`
529
530 - `Model string`
531
532 The model to use for the evaluation.
533
534 - `Name string`
535
536 The name of the grader.
537
538 - `Type ScoreModel`
539
540 The object type, which is always `score_model`.
541
542 - `const ScoreModelScoreModel ScoreModel = "score_model"`
543
544 - `Range []float64`
545
546 The range of the score. Defaults to `[0, 1]`.
547
548 - `SamplingParams ScoreModelGraderSamplingParams`
549
550 The sampling parameters for the model.
551
552 - `MaxCompletionsTokens int64`
553
554 The maximum number of tokens the grader model may generate in its response.
555
556 - `ReasoningEffort ReasoningEffort`
557
558 Constrains effort on reasoning for
559 [reasoning models](https://platform.openai.com/docs/guides/reasoning).
560 Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing
561 reasoning effort can result in faster responses and fewer tokens used
562 on reasoning in a response.
563
564 - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
565 - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
566 - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
567 - `xhigh` is supported for all models after `gpt-5.1-codex-max`.
568
569 - `const ReasoningEffortNone ReasoningEffort = "none"`
570
571 - `const ReasoningEffortMinimal ReasoningEffort = "minimal"`
572
573 - `const ReasoningEffortLow ReasoningEffort = "low"`
574
575 - `const ReasoningEffortMedium ReasoningEffort = "medium"`
576
577 - `const ReasoningEffortHigh ReasoningEffort = "high"`
578
579 - `const ReasoningEffortXhigh ReasoningEffort = "xhigh"`
580
581 - `Seed int64`
582
583 A seed value to initialize the randomness, during sampling.
584
585 - `Temperature float64`
586
587 A higher temperature increases randomness in the outputs.
588
589 - `TopP float64`
590
591 An alternative to temperature for nucleus sampling; 1.0 includes all tokens.
592
593 - `type LabelModelGrader struct{…}`
594
595 A LabelModelGrader object which uses a model to assign labels to each item
596 in the evaluation.
597
598 - `Input []LabelModelGraderInput`
599
600 - `Content LabelModelGraderInputContentUnion`
601
602 Inputs to the model - can contain template strings. Supports text, output text, input images, and input audio, either as a single item or an array of items.
603
604 - `string`
605
606 - `type ResponseInputText struct{…}`
607
608 A text input to the model.
609
610 - `type LabelModelGraderInputContentOutputText struct{…}`
611
612 A text output from the model.
613
614 - `Text string`
615
616 The text output from the model.
617
618 - `Type OutputText`
619
620 The type of the output text. Always `output_text`.
621
622 - `const OutputTextOutputText OutputText = "output_text"`
623
624 - `type LabelModelGraderInputContentInputImage struct{…}`
625
626 An image input block used within EvalItem content arrays.
627
628 - `ImageURL string`
629
630 The URL of the image input.
631
632 - `Type InputImage`
633
634 The type of the image input. Always `input_image`.
635
636 - `const InputImageInputImage InputImage = "input_image"`
637
638 - `Detail string`
639
640 The detail level of the image to be sent to the model. One of `high`, `low`, or `auto`. Defaults to `auto`.
641
642 - `type ResponseInputAudio struct{…}`
643
644 An audio input to the model.
645
646 - `type GraderInputs []GraderInputUnion`
647
648 A list of inputs, each of which may be either an input text, output text, input
649 image, or input audio object.
650
651 - `Role string`
652
653 The role of the message input. One of `user`, `assistant`, `system`, or
654 `developer`.
655
656 - `const LabelModelGraderInputRoleUser LabelModelGraderInputRole = "user"`
657
658 - `const LabelModelGraderInputRoleAssistant LabelModelGraderInputRole = "assistant"`
659
660 - `const LabelModelGraderInputRoleSystem LabelModelGraderInputRole = "system"`
661
662 - `const LabelModelGraderInputRoleDeveloper LabelModelGraderInputRole = "developer"`
663
664 - `Type string`
665
666 The type of the message input. Always `message`.
667
668 - `const LabelModelGraderInputTypeMessage LabelModelGraderInputType = "message"`
669
670 - `Labels []string`
671
672 The labels to assign to each item in the evaluation.
673
674 - `Model string`
675
676 The model to use for the evaluation. Must support structured outputs.
677
678 - `Name string`
679
680 The name of the grader.
681
682 - `PassingLabels []string`
683
684 The labels that indicate a passing result. Must be a subset of labels.
685
686 - `Type LabelModel`
687
688 The object type, which is always `label_model`.
689
690 - `const LabelModelLabelModel LabelModel = "label_model"`
691
692 - `Name string`
693
694 The name of the grader.
695
696 - `Type Multi`
697
698 The object type, which is always `multi`.
699
700 - `const MultiMulti Multi = "multi"`
701
702### Python Grader
703
704- `type PythonGrader struct{…}`
705
706 A PythonGrader object that runs a python script on the input.
707
708 - `Name string`
709
710 The name of the grader.
711
712 - `Source string`
713
714 The source code of the python script.
715
716 - `Type Python`
717
718 The object type, which is always `python`.
719
720 - `const PythonPython Python = "python"`
721
722 - `ImageTag string`
723
724 The image tag to use for the python script.
725
726### Score Model Grader
727
728- `type ScoreModelGrader struct{…}`
729
730 A ScoreModelGrader object that uses a model to assign a score to the input.
731
732 - `Input []ScoreModelGraderInput`
733
734 The input messages evaluated by the grader. Supports text, output text, input image, and input audio content blocks, and may include template strings.
735
736 - `Content ScoreModelGraderInputContentUnion`
737
738 Inputs to the model - can contain template strings. Supports text, output text, input images, and input audio, either as a single item or an array of items.
739
740 - `string`
741
742 - `type ResponseInputText struct{…}`
743
744 A text input to the model.
745
746 - `Text string`
747
748 The text input to the model.
749
750 - `Type InputText`
751
752 The type of the input item. Always `input_text`.
753
754 - `const InputTextInputText InputText = "input_text"`
755
756 - `type ScoreModelGraderInputContentOutputText struct{…}`
757
758 A text output from the model.
759
760 - `Text string`
761
762 The text output from the model.
763
764 - `Type OutputText`
765
766 The type of the output text. Always `output_text`.
767
768 - `const OutputTextOutputText OutputText = "output_text"`
769
770 - `type ScoreModelGraderInputContentInputImage struct{…}`
771
772 An image input block used within EvalItem content arrays.
773
774 - `ImageURL string`
775
776 The URL of the image input.
777
778 - `Type InputImage`
779
780 The type of the image input. Always `input_image`.
781
782 - `const InputImageInputImage InputImage = "input_image"`
783
784 - `Detail string`
785
786 The detail level of the image to be sent to the model. One of `high`, `low`, or `auto`. Defaults to `auto`.
787
788 - `type ResponseInputAudio struct{…}`
789
790 An audio input to the model.
791
792 - `InputAudio ResponseInputAudioInputAudio`
793
794 - `Data string`
795
796 Base64-encoded audio data.
797
798 - `Format string`
799
800 The format of the audio data. Currently supported formats are `mp3` and
801 `wav`.
802
803 - `const ResponseInputAudioInputAudioFormatMP3 ResponseInputAudioInputAudioFormat = "mp3"`
804
805 - `const ResponseInputAudioInputAudioFormatWAV ResponseInputAudioInputAudioFormat = "wav"`
806
807 - `Type InputAudio`
808
809 The type of the input item. Always `input_audio`.
810
811 - `const InputAudioInputAudio InputAudio = "input_audio"`
812
813 - `type GraderInputs []GraderInputUnion`
814
815 A list of inputs, each of which may be either an input text, output text, input
816 image, or input audio object.
817
818 - `string`
819
820 - `type ResponseInputText struct{…}`
821
822 A text input to the model.
823
824 - `type GraderInputOutputText struct{…}`
825
826 A text output from the model.
827
828 - `Text string`
829
830 The text output from the model.
831
832 - `Type OutputText`
833
834 The type of the output text. Always `output_text`.
835
836 - `const OutputTextOutputText OutputText = "output_text"`
837
838 - `type GraderInputInputImage struct{…}`
839
840 An image input block used within EvalItem content arrays.
841
842 - `ImageURL string`
843
844 The URL of the image input.
845
846 - `Type InputImage`
847
848 The type of the image input. Always `input_image`.
849
850 - `const InputImageInputImage InputImage = "input_image"`
851
852 - `Detail string`
853
854 The detail level of the image to be sent to the model. One of `high`, `low`, or `auto`. Defaults to `auto`.
855
856 - `type ResponseInputAudio struct{…}`
857
858 An audio input to the model.
859
860 - `Role string`
861
862 The role of the message input. One of `user`, `assistant`, `system`, or
863 `developer`.
864
865 - `const ScoreModelGraderInputRoleUser ScoreModelGraderInputRole = "user"`
866
867 - `const ScoreModelGraderInputRoleAssistant ScoreModelGraderInputRole = "assistant"`
868
869 - `const ScoreModelGraderInputRoleSystem ScoreModelGraderInputRole = "system"`
870
871 - `const ScoreModelGraderInputRoleDeveloper ScoreModelGraderInputRole = "developer"`
872
873 - `Type string`
874
875 The type of the message input. Always `message`.
876
877 - `const ScoreModelGraderInputTypeMessage ScoreModelGraderInputType = "message"`
878
879 - `Model string`
880
881 The model to use for the evaluation.
882
883 - `Name string`
884
885 The name of the grader.
886
887 - `Type ScoreModel`
888
889 The object type, which is always `score_model`.
890
891 - `const ScoreModelScoreModel ScoreModel = "score_model"`
892
893 - `Range []float64`
894
895 The range of the score. Defaults to `[0, 1]`.
896
897 - `SamplingParams ScoreModelGraderSamplingParams`
898
899 The sampling parameters for the model.
900
901 - `MaxCompletionsTokens int64`
902
903 The maximum number of tokens the grader model may generate in its response.
904
905 - `ReasoningEffort ReasoningEffort`
906
907 Constrains effort on reasoning for
908 [reasoning models](https://platform.openai.com/docs/guides/reasoning).
909 Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing
910 reasoning effort can result in faster responses and fewer tokens used
911 on reasoning in a response.
912
913 - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
914 - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
915 - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
916 - `xhigh` is supported for all models after `gpt-5.1-codex-max`.
917
918 - `const ReasoningEffortNone ReasoningEffort = "none"`
919
920 - `const ReasoningEffortMinimal ReasoningEffort = "minimal"`
921
922 - `const ReasoningEffortLow ReasoningEffort = "low"`
923
924 - `const ReasoningEffortMedium ReasoningEffort = "medium"`
925
926 - `const ReasoningEffortHigh ReasoningEffort = "high"`
927
928 - `const ReasoningEffortXhigh ReasoningEffort = "xhigh"`
929
930 - `Seed int64`
931
932 A seed value to initialize the randomness, during sampling.
933
934 - `Temperature float64`
935
936 A higher temperature increases randomness in the outputs.
937
938 - `TopP float64`
939
940 An alternative to temperature for nucleus sampling; 1.0 includes all tokens.
941
942### String Check Grader
943
944- `type StringCheckGrader struct{…}`
945
946 A StringCheckGrader object that performs a string comparison between input and reference using a specified operation.
947
948 - `Input string`
949
950 The input text. This may include template strings.
951
952 - `Name string`
953
954 The name of the grader.
955
956 - `Operation StringCheckGraderOperation`
957
958 The string check operation to perform. One of `eq`, `ne`, `like`, or `ilike`.
959
960 - `const StringCheckGraderOperationEq StringCheckGraderOperation = "eq"`
961
962 - `const StringCheckGraderOperationNe StringCheckGraderOperation = "ne"`
963
964 - `const StringCheckGraderOperationLike StringCheckGraderOperation = "like"`
965
966 - `const StringCheckGraderOperationIlike StringCheckGraderOperation = "ilike"`
967
968 - `Reference string`
969
970 The reference text. This may include template strings.
971
972 - `Type StringCheck`
973
974 The object type, which is always `string_check`.
975
976 - `const StringCheckStringCheck StringCheck = "string_check"`
977
978### Text Similarity Grader
979
980- `type TextSimilarityGrader struct{…}`
981
982 A TextSimilarityGrader object which grades text based on similarity metrics.
983
984 - `EvaluationMetric TextSimilarityGraderEvaluationMetric`
985
986 The evaluation metric to use. One of `cosine`, `fuzzy_match`, `bleu`,
987 `gleu`, `meteor`, `rouge_1`, `rouge_2`, `rouge_3`, `rouge_4`, `rouge_5`,
988 or `rouge_l`.
989
990 - `const TextSimilarityGraderEvaluationMetricCosine TextSimilarityGraderEvaluationMetric = "cosine"`
991
992 - `const TextSimilarityGraderEvaluationMetricFuzzyMatch TextSimilarityGraderEvaluationMetric = "fuzzy_match"`
993
994 - `const TextSimilarityGraderEvaluationMetricBleu TextSimilarityGraderEvaluationMetric = "bleu"`
995
996 - `const TextSimilarityGraderEvaluationMetricGleu TextSimilarityGraderEvaluationMetric = "gleu"`
997
998 - `const TextSimilarityGraderEvaluationMetricMeteor TextSimilarityGraderEvaluationMetric = "meteor"`
999
1000 - `const TextSimilarityGraderEvaluationMetricRouge1 TextSimilarityGraderEvaluationMetric = "rouge_1"`
1001
1002 - `const TextSimilarityGraderEvaluationMetricRouge2 TextSimilarityGraderEvaluationMetric = "rouge_2"`
1003
1004 - `const TextSimilarityGraderEvaluationMetricRouge3 TextSimilarityGraderEvaluationMetric = "rouge_3"`
1005
1006 - `const TextSimilarityGraderEvaluationMetricRouge4 TextSimilarityGraderEvaluationMetric = "rouge_4"`
1007
1008 - `const TextSimilarityGraderEvaluationMetricRouge5 TextSimilarityGraderEvaluationMetric = "rouge_5"`
1009
1010 - `const TextSimilarityGraderEvaluationMetricRougeL TextSimilarityGraderEvaluationMetric = "rouge_l"`
1011
1012 - `Input string`
1013
1014 The text being graded.
1015
1016 - `Name string`
1017
1018 The name of the grader.
1019
1020 - `Reference string`
1021
1022 The text being graded against.
1023
1024 - `Type TextSimilarity`
1025
1026 The type of grader.
1027
1028 - `const TextSimilarityTextSimilarity TextSimilarity = "text_similarity"`