Class GenerationConfigRoutingConfigAutoRoutingMode
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
Methods
FromJson(string, JsonSerializerOptions?)
Deserializes a JSON string to a GenerationConfigRoutingConfigAutoRoutingMode object.
public static GenerationConfigRoutingConfigAutoRoutingMode? FromJson(string jsonString, JsonSerializerOptions? options = null)
Parameters
jsonStringstringThe JSON string to deserialize.
optionsJsonSerializerOptionsOptional JsonSerializerOptions.
Returns
- GenerationConfigRoutingConfigAutoRoutingMode
The deserialized GenerationConfigRoutingConfigAutoRoutingMode object, or null if deserialization fails.