Table of Contents

Class TunedModelCheckpoint

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

TunedModelCheckpoint for the Tuned Model of a Tuning Job.

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

Properties

CheckpointId

The ID of the checkpoint.

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

Property Value

string

Endpoint

The Endpoint resource name that the checkpoint is deployed to. Format: projects/{project}/locations/{location}/endpoints/{endpoint}.

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

Property Value

string

Epoch

The epoch of the checkpoint.

[JsonPropertyName("epoch")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonConverter(typeof(StringToNullableLongConverter))]
public long? Epoch { get; set; }

Property Value

long?

Step

The step of the checkpoint.

[JsonPropertyName("step")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonConverter(typeof(StringToNullableLongConverter))]
public long? Step { get; set; }

Property Value

long?

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a TunedModelCheckpoint object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

TunedModelCheckpoint

The deserialized TunedModelCheckpoint object, or null if deserialization fails.