Package com.google.genai.types
Class AggregationResult
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.AggregationResult
The aggregation result for a single metric. This data type is not supported in Gemini API.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for AggregationResult. -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Optional<AggregationMetric>Aggregation metric.abstract Optional<BleuMetricValue>Results for bleu metric.static AggregationResult.Builderbuilder()Instantiates a builder for AggregationResult.abstract Optional<CustomCodeExecutionResult>Result for code execution metric.abstract Optional<ExactMatchMetricValue>Results for exact match metric.static AggregationResultDeserializes a JSON string to a AggregationResult object.abstract Optional<PairwiseMetricResult>Result for pairwise metric.abstract Optional<PointwiseMetricResult>Result for pointwise metric.abstract Optional<RougeMetricValue>Results for rouge metric.abstract AggregationResult.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
-
AggregationResult
public AggregationResult()
-
-
Method Details
-
aggregationMetric
Aggregation metric. -
bleuMetricValue
Results for bleu metric. -
customCodeExecutionResult
Result for code execution metric. -
exactMatchMetricValue
Results for exact match metric. -
pairwiseMetricResult
Result for pairwise metric. -
pointwiseMetricResult
Result for pointwise metric. -
rougeMetricValue
Results for rouge metric. -
builder
Instantiates a builder for AggregationResult. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a AggregationResult object.
-