Table of Contents

Class TuningValidationDataset

Namespace
Google.GenAI.Types
Assembly
Google.GenAI.dll
public record TuningValidationDataset : IEquatable<TuningValidationDataset>
Inheritance
TuningValidationDataset
Implements
Inherited Members

Properties

GcsUri

GCS URI of the file containing validation dataset in JSONL format.

[JsonPropertyName("gcsUri")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? GcsUri { get; set; }

Property Value

string

VertexDatasetResource

The resource name of the Gemini Enterprise Agent Platform (previously known as Vertex AI) Multimodal Dataset that is used as validation dataset. Example: 'projects/my-project-id-or-number/locations/my-location/datasets/my-dataset-id'.

[JsonPropertyName("vertexDatasetResource")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? VertexDatasetResource { get; set; }

Property Value

string

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a TuningValidationDataset object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

TuningValidationDataset

The deserialized TuningValidationDataset object, or null if deserialization fails.