Package com.google.genai.types
Class AggregationOutput
-
- All Implemented Interfaces:
public abstract class AggregationOutput extends JsonSerializable
The aggregation result for the entire dataset and all metrics. This data type is not supported in Gemini API.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classAggregationOutput.BuilderBuilder for AggregationOutput.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description AggregationOutput()
-
Method Summary
Modifier and Type Method Description abstract Optional<List<AggregationResult>>aggregationResults()One AggregationResult per metric. abstract Optional<EvaluationDataset>dataset()The dataset used for evaluation &aggregation. static AggregationOutput.Builderbuilder()Instantiates a builder for AggregationOutput. abstract AggregationOutput.BuildertoBuilder()Creates a builder with the same values as this instance. static AggregationOutputfromJson(String jsonString)Deserializes a JSON string to a AggregationOutput 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
-
aggregationResults
abstract Optional<List<AggregationResult>> aggregationResults()
One AggregationResult per metric.
-
dataset
abstract Optional<EvaluationDataset> dataset()
The dataset used for evaluation &aggregation.
-
builder
static AggregationOutput.Builder builder()
Instantiates a builder for AggregationOutput.
-
toBuilder
abstract AggregationOutput.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static AggregationOutput fromJson(String jsonString)
Deserializes a JSON string to a AggregationOutput object.
-
-
-
-