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