Table of Contents

Class PreTunedModel

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

A pre-tuned model for continuous tuning. This data type is not supported in Gemini API.

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

Properties

BaseModel

Output only. The name of the base model this PreTunedModel was tuned from.

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

Property Value

string

CheckpointId

Optional. The source checkpoint id. If not specified, the default checkpoint will be used.

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

Property Value

string

TunedModelName

The resource name of the Model. E.g., a model resource name with a specified version id or alias: projects/{project}/locations/{location}/models/{model}@{version_id} projects/{project}/locations/{location}/models/{model}@{alias} Or, omit the version id to use the default version: projects/{project}/locations/{location}/models/{model}

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

Property Value

string

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a PreTunedModel object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

PreTunedModel

The deserialized PreTunedModel object, or null if deserialization fails.