Table of Contents

Class GoogleAITunedModel

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

A tuned model resource of the Gemini Developer API (tunedModels/{id}).

public class GoogleAITunedModel
Inheritance
GoogleAITunedModel
Inherited Members
Extension Methods

Remarks

TuningClient converts it to a TuningJob with ToTuningJob(), as the google-genai SDK does.

Properties

BaseModel

Immutable. The name of the model to tune, e.g. models/gemini-1.5-flash-001.

[JsonPropertyName("baseModel")]
public string? BaseModel { get; set; }

Property Value

string

CreateTime

Output only. The timestamp when this model was created.

[JsonPropertyName("createTime")]
public Timestamp? CreateTime { get; set; }

Property Value

Timestamp

Description

Optional. A short description of the tuned model.

[JsonPropertyName("description")]
public string? Description { get; set; }

Property Value

string

DisplayName

Optional. The display name of the tuned model.

[JsonPropertyName("displayName")]
public string? DisplayName { get; set; }

Property Value

string

Name

Output only. The tuned model name, e.g. tunedModels/my-model-id.

[JsonPropertyName("name")]
public string? Name { get; set; }

Property Value

string

ReaderProjectNumbers

Optional. List of project numbers that have read access to the tuned model.

[JsonPropertyName("readerProjectNumbers")]
[JsonNumberHandling(JsonNumberHandling.AllowReadingFromString|JsonNumberHandling.WriteAsString)]
public List<long>? ReaderProjectNumbers { get; set; }

Property Value

List<long>

State

Output only. The state of the tuned model.

[JsonPropertyName("state")]
public TuningState? State { get; set; }

Property Value

TuningState?

Temperature

Optional. Default sampling temperature of the tuned model.

[JsonPropertyName("temperature")]
public double? Temperature { get; set; }

Property Value

double?

TopK

Optional. Default top-k sampling value of the tuned model.

[JsonPropertyName("topK")]
public int? TopK { get; set; }

Property Value

int?

TopP

Optional. Default nucleus sampling value of the tuned model.

[JsonPropertyName("topP")]
public double? TopP { get; set; }

Property Value

double?

TunedModelSource

Optional. Tuned model as a source for training a new model.

[JsonPropertyName("tunedModelSource")]
public TunedModelSource? TunedModelSource { get; set; }

Property Value

TunedModelSource

TuningTask

Required. The tuning task that creates the tuned model.

[JsonPropertyName("tuningTask")]
public TuningTask? TuningTask { get; set; }

Property Value

TuningTask

UpdateTime

Output only. The timestamp when this model was updated.

[JsonPropertyName("updateTime")]
public Timestamp? UpdateTime { get; set; }

Property Value

Timestamp

Methods

ToTuningJob()

Converts this Gemini API tuned model into a TuningJob the same way the google-genai SDK does (CREATING maps to JOB_STATE_RUNNING, ACTIVE to JOB_STATE_SUCCEEDED and FAILED to JOB_STATE_FAILED).

public TuningJob ToTuningJob()

Returns

TuningJob

The equivalent TuningJob.

See Also