Table of Contents

Class TuningExample

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

A single example for tuning. This data type is not supported in Vertex AI.

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

Properties

Output

The expected model output.

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

Property Value

string

TextInput

Optional. Text model input.

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

Property Value

string

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a TuningExample object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

TuningExample

The deserialized TuningExample object, or null if deserialization fails.