Package com.openai.models.evals
Interface EvalCreateResponse.TestingCriterion.Visitor
-
- All Implemented Interfaces:
public interface EvalCreateResponse.TestingCriterion.Visitor<T extends Object>
An interface that defines how to map each variant of TestingCriterion to a value of type T.
-
-
Method Summary
Modifier and Type Method Description abstract T
visitLabelModel(EvalLabelModelGrader labelModel)
A LabelModelGrader object which uses a model to assign labels to each item in the evaluation. abstract T
visitStringCheck(EvalStringCheckGrader stringCheck)
A StringCheckGrader object that performs a string comparison between input and reference using a specified operation. abstract T
visitTextSimilarity(EvalTextSimilarityGrader textSimilarity)
A TextSimilarityGrader object which grades text based on similarity metrics. T
unknown(JsonValue json)
Maps an unknown variant of TestingCriterion to a value of type T. -
-
Method Detail
-
visitLabelModel
abstract T visitLabelModel(EvalLabelModelGrader labelModel)
A LabelModelGrader object which uses a model to assign labels to each item in the evaluation.
-
visitStringCheck
abstract T visitStringCheck(EvalStringCheckGrader stringCheck)
A StringCheckGrader object that performs a string comparison between input and reference using a specified operation.
-
visitTextSimilarity
abstract T visitTextSimilarity(EvalTextSimilarityGrader textSimilarity)
A TextSimilarityGrader object which grades text based on similarity metrics.
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of TestingCriterion to a value of type T.
An instance of TestingCriterion can contain an unknown variant if it was deserialized from data that doesn't match any known variant. For example, if the SDK is on an older version than the API, then the API may respond with new variants that the SDK is unaware of.
-
-
-
-