Package com.google.genai.types
Class GenerationConfigRoutingConfig
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.GenerationConfigRoutingConfig
The configuration for routing the request to a specific model. This can be used to control which
model is used for the generation, either automatically or by specifying a model name. This data
type is not supported in Gemini API.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for GenerationConfigRoutingConfig. -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionautoMode()In this mode, the model is selected automatically based on the content of the request.builder()Instantiates a builder for GenerationConfigRoutingConfig.Deserializes a JSON string to a GenerationConfigRoutingConfig object.In this mode, the model is specified manually.Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
GenerationConfigRoutingConfig
public GenerationConfigRoutingConfig()
-
-
Method Details
-
autoMode
In this mode, the model is selected automatically based on the content of the request. -
manualMode
In this mode, the model is specified manually. -
builder
Instantiates a builder for GenerationConfigRoutingConfig. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a GenerationConfigRoutingConfig object.
-