Class EvaluationDataset
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
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
Methods
FromJson(string, JsonSerializerOptions?)
Deserializes a JSON string to a EvaluationDataset object.
public static EvaluationDataset? FromJson(string jsonString, JsonSerializerOptions? options = null)
Parameters
jsonStringstringThe JSON string to deserialize.
optionsJsonSerializerOptionsOptional JsonSerializerOptions.
Returns
- EvaluationDataset
The deserialized EvaluationDataset object, or null if deserialization fails.