Class TuningExample
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
TextInput
Optional. Text model input.
[JsonPropertyName("textInput")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? TextInput { get; set; }
Property Value
Methods
FromJson(string, JsonSerializerOptions?)
Deserializes a JSON string to a TuningExample object.
public static TuningExample? FromJson(string jsonString, JsonSerializerOptions? options = null)
Parameters
jsonStringstringThe JSON string to deserialize.
optionsJsonSerializerOptionsOptional JsonSerializerOptions.
Returns
- TuningExample
The deserialized TuningExample object, or null if deserialization fails.