Table of Contents

Class ModelStatus

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

The status of the underlying model. This is used to indicate the stage of the underlying model and the retirement time if applicable. This data type is not supported in Vertex AI.

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

Properties

Message

A message explaining the model status.

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

Property Value

string

ModelStage

The stage of the underlying model.

[JsonPropertyName("modelStage")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public ModelStage? ModelStage { get; set; }

Property Value

ModelStage?

RetirementTime

The time at which the model will be retired.

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

Property Value

DateTime?

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a ModelStatus object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

ModelStatus

The deserialized ModelStatus object, or null if deserialization fails.