Package com.google.genai.types
Class PairwiseMetricResult
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.PairwiseMetricResult
Spec for pairwise metric result. This data type is not supported in Gemini API.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for PairwiseMetricResult. -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PairwiseMetricResult.Builderbuilder()Instantiates a builder for PairwiseMetricResult.abstract Optional<CustomOutput>Output only.Output only.static PairwiseMetricResultDeserializes a JSON string to a PairwiseMetricResult object.abstract Optional<PairwiseChoice>Output only.abstract PairwiseMetricResult.BuilderCreates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
PairwiseMetricResult
public PairwiseMetricResult()
-
-
Method Details
-
customOutput
Output only. Spec for custom output. -
explanation
Output only. Explanation for pairwise metric score. -
pairwiseChoice
Output only. Pairwise metric choice. -
builder
Instantiates a builder for PairwiseMetricResult. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a PairwiseMetricResult object.
-