Table of Contents

Struct AggregationMetric

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

Aggregation metric. This enum is not supported in Gemini API.

[JsonConverter(typeof(AggregationMetricConverter))]
public readonly record struct AggregationMetric : IEquatable<AggregationMetric>
Implements
Inherited Members

Properties

AggregationMetricUnspecified

Unspecified aggregation metric.

public static AggregationMetric AggregationMetricUnspecified { get; }

Property Value

AggregationMetric

AllValues

public static IReadOnlyList<AggregationMetric> AllValues { get; }

Property Value

IReadOnlyList<AggregationMetric>

Average

Average aggregation metric. Not supported for Pairwise metric.

public static AggregationMetric Average { get; }

Property Value

AggregationMetric

Maximum

Maximum aggregation metric. Not supported for pairwise metric.

public static AggregationMetric Maximum { get; }

Property Value

AggregationMetric

Median

Median aggregation metric. Not supported for pairwise metric.

public static AggregationMetric Median { get; }

Property Value

AggregationMetric

Minimum

Minimum aggregation metric. Not supported for pairwise metric.

public static AggregationMetric Minimum { get; }

Property Value

AggregationMetric

Mode

Mode aggregation metric.

public static AggregationMetric Mode { get; }

Property Value

AggregationMetric

PercentileP90

90th percentile aggregation metric. Not supported for pairwise metric.

public static AggregationMetric PercentileP90 { get; }

Property Value

AggregationMetric

PercentileP95

95th percentile aggregation metric. Not supported for pairwise metric.

public static AggregationMetric PercentileP95 { get; }

Property Value

AggregationMetric

PercentileP99

99th percentile aggregation metric. Not supported for pairwise metric.

public static AggregationMetric PercentileP99 { get; }

Property Value

AggregationMetric

StandardDeviation

Standard deviation aggregation metric. Not supported for pairwise metric.

public static AggregationMetric StandardDeviation { get; }

Property Value

AggregationMetric

Value

public string Value { get; }

Property Value

string

Variance

Variance aggregation metric. Not supported for pairwise metric.

public static AggregationMetric Variance { get; }

Property Value

AggregationMetric

Methods

Equals(AggregationMetric)

public bool Equals(AggregationMetric other)

Parameters

other AggregationMetric

Returns

bool

FromString(string)

public static AggregationMetric FromString(string value)

Parameters

value string

Returns

AggregationMetric

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

implicit operator AggregationMetric(string)

public static implicit operator AggregationMetric(string value)

Parameters

value string

Returns

AggregationMetric