Table of Contents

Class Checkpoint

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

Describes the machine learning model version checkpoint.

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

Properties

CheckpointId

The ID of the checkpoint.

[JsonPropertyName("checkpointId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? CheckpointId { 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 Checkpoint object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

Checkpoint

The deserialized Checkpoint object, or null if deserialization fails.