Table of Contents

Class EvaluationDataset

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

The dataset used for evaluation. This data type is not supported in Gemini API.

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

Properties

BigquerySource

BigQuery source holds the dataset.

[JsonPropertyName("bigquerySource")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public BigQuerySource? BigquerySource { get; set; }

Property Value

BigQuerySource

GcsSource

Cloud storage source holds the dataset. Currently only one Cloud Storage file path is supported.

[JsonPropertyName("gcsSource")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public GcsSource? GcsSource { get; set; }

Property Value

GcsSource

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a EvaluationDataset object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

EvaluationDataset

The deserialized EvaluationDataset object, or null if deserialization fails.