Table of Contents

Class GenerationConfigRoutingConfigAutoRoutingMode

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

The configuration for automated routing. When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference. This data type is not supported in Gemini API.

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

Properties

ModelRoutingPreference

The model routing preference.

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

Property Value

string

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a GenerationConfigRoutingConfigAutoRoutingMode object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

GenerationConfigRoutingConfigAutoRoutingMode

The deserialized GenerationConfigRoutingConfigAutoRoutingMode object, or null if deserialization fails.