Table of Contents

Class GenerationConfigRoutingConfigManualRoutingMode

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

The configuration for manual routing. When manual routing is specified, the model will be selected based on the model name provided. This data type is not supported in Gemini API.

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

Properties

ModelName

The name of the model to use. Only public LLM models are accepted.

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

Property Value

string

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a GenerationConfigRoutingConfigManualRoutingMode object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

GenerationConfigRoutingConfigManualRoutingMode

The deserialized GenerationConfigRoutingConfigManualRoutingMode object, or null if deserialization fails.