Table of Contents

Class AggregationOutput

Namespace
Google.GenAI.Types
Assembly
Google.GenAI.dll

The aggregation result for the entire dataset and all metrics. This data type is not supported in Gemini API.

public record AggregationOutput : IEquatable<AggregationOutput>
Inheritance
AggregationOutput
Implements
Inherited Members

Properties

AggregationResults

One AggregationResult per metric.

[JsonPropertyName("aggregationResults")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public List<AggregationResult>? AggregationResults { get; set; }

Property Value

List<AggregationResult>

Dataset

The dataset used for evaluation & aggregation.

[JsonPropertyName("dataset")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public EvaluationDataset? Dataset { get; set; }

Property Value

EvaluationDataset

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a AggregationOutput object.

public static AggregationOutput? FromJson(string jsonString, JsonSerializerOptions? options = null)

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

AggregationOutput

The deserialized AggregationOutput object, or null if deserialization fails.