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
CreateTime
Output only. The timestamp when this model was created.
[JsonPropertyName("createTime")]
public Timestamp? CreateTime { get; set; }
Property Value
Description
Optional. A short description of the tuned model.
[JsonPropertyName("description")]
public string? Description { get; set; }
Property Value
DisplayName
Optional. The display name of the tuned model.
[JsonPropertyName("displayName")]
public string? DisplayName { get; set; }
Property Value
Name
Output only. The tuned model name, e.g. tunedModels/my-model-id.
[JsonPropertyName("name")]
public string? Name { get; set; }
Property Value
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
State
Output only. The state of the tuned model.
[JsonPropertyName("state")]
public TuningState? State { get; set; }
Property Value
Temperature
Optional. Default sampling temperature of the tuned model.
[JsonPropertyName("temperature")]
public double? Temperature { get; set; }
Property Value
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
TunedModelSource
Optional. Tuned model as a source for training a new model.
[JsonPropertyName("tunedModelSource")]
public TunedModelSource? TunedModelSource { get; set; }
Property Value
TuningTask
Required. The tuning task that creates the tuned model.
[JsonPropertyName("tuningTask")]
public TuningTask? TuningTask { get; set; }
Property Value
UpdateTime
Output only. The timestamp when this model was updated.
[JsonPropertyName("updateTime")]
public Timestamp? UpdateTime { get; set; }
Property Value
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()