Table of Contents

Class TunedModel

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

TunedModel for the Tuned Model of a Tuning Job.

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

Properties

Checkpoints

The checkpoints associated with this TunedModel. This field is only populated for tuning jobs that enable intermediate checkpoints.

[JsonPropertyName("checkpoints")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public List<TunedModelCheckpoint>? Checkpoints { get; set; }

Property Value

List<TunedModelCheckpoint>

Endpoint

Output only. A resource name of an Endpoint. Format: projects/{project}/locations/{location}/endpoints/{endpoint}.

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

Property Value

string

Model

Output only. The resource name of the TunedModel. Format: projects/{project}/locations/{location}/models/{model}@{version_id} When tuning from a base model, the version_id will be 1. For continuous tuning, the version id will be incremented by 1 from the last version id in the parent model. E.g., projects/{project}/locations/{location}/models/{model}@{last_version_id + 1}

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

Property Value

string

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a TunedModel object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

TunedModel

The deserialized TunedModel object, or null if deserialization fails.