Package com.google.genai.types
Class AggregationResult
-
- All Implemented Interfaces:
public abstract class AggregationResult extends JsonSerializable
The aggregation result for a single metric. This data type is not supported in Gemini API.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classAggregationResult.BuilderBuilder for AggregationResult.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description AggregationResult()
-
Method Summary
Modifier and Type Method Description abstract Optional<AggregationMetric>aggregationMetric()Aggregation metric. abstract Optional<BleuMetricValue>bleuMetricValue()Results for bleu metric. abstract Optional<CustomCodeExecutionResult>customCodeExecutionResult()Result for code execution metric. abstract Optional<ExactMatchMetricValue>exactMatchMetricValue()Results for exact match metric. abstract Optional<PairwiseMetricResult>pairwiseMetricResult()Result for pairwise metric. abstract Optional<PointwiseMetricResult>pointwiseMetricResult()Result for pointwise metric. abstract Optional<RougeMetricValue>rougeMetricValue()Results for rouge metric. static AggregationResult.Builderbuilder()Instantiates a builder for AggregationResult. abstract AggregationResult.BuildertoBuilder()Creates a builder with the same values as this instance. static AggregationResultfromJson(String jsonString)Deserializes a JSON string to a AggregationResult object. -
Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
aggregationMetric
abstract Optional<AggregationMetric> aggregationMetric()
Aggregation metric.
-
bleuMetricValue
abstract Optional<BleuMetricValue> bleuMetricValue()
Results for bleu metric.
-
customCodeExecutionResult
abstract Optional<CustomCodeExecutionResult> customCodeExecutionResult()
Result for code execution metric.
-
exactMatchMetricValue
abstract Optional<ExactMatchMetricValue> exactMatchMetricValue()
Results for exact match metric.
-
pairwiseMetricResult
abstract Optional<PairwiseMetricResult> pairwiseMetricResult()
Result for pairwise metric.
-
pointwiseMetricResult
abstract Optional<PointwiseMetricResult> pointwiseMetricResult()
Result for pointwise metric.
-
rougeMetricValue
abstract Optional<RougeMetricValue> rougeMetricValue()
Results for rouge metric.
-
builder
static AggregationResult.Builder builder()
Instantiates a builder for AggregationResult.
-
toBuilder
abstract AggregationResult.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static AggregationResult fromJson(String jsonString)
Deserializes a JSON string to a AggregationResult object.
-
-
-
-