Table of Contents

Class GetModelConfig

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

Optional parameters for models.get method.

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

Properties

HttpOptions

Used to override HTTP request options.

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

Property Value

HttpOptions

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a GetModelConfig object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

GetModelConfig

The deserialized GetModelConfig object, or null if deserialization fails.