Table of Contents

Class TuningDataset

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

Supervised fine-tuning training dataset.

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

Properties

Examples

Inline examples with simple input/output text.

[JsonPropertyName("examples")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public List<TuningExample>? Examples { get; set; }

Property Value

List<TuningExample>

GcsUri

GCS URI of the file containing training 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 training 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 TuningDataset object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

TuningDataset

The deserialized TuningDataset object, or null if deserialization fails.