Table of Contents

Class TunedModelInfo

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

A tuned machine learning model.

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

Properties

BaseModel

ID of the base model that you want to tune.

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

Property Value

string

CreateTime

Date and time when the base model was created.

[JsonPropertyName("createTime")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public DateTime? CreateTime { get; set; }

Property Value

DateTime?

UpdateTime

Date and time when the base model was last updated.

[JsonPropertyName("updateTime")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public DateTime? UpdateTime { get; set; }

Property Value

DateTime?

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a TunedModelInfo object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

TunedModelInfo

The deserialized TunedModelInfo object, or null if deserialization fails.