Package com.google.genai.types
Enum FunctionCallingConfigMode.Known
java.lang.Object
java.lang.Enum<FunctionCallingConfigMode.Known>
com.google.genai.types.FunctionCallingConfigMode.Known
- All Implemented Interfaces:
Serializable
,Comparable<FunctionCallingConfigMode.Known>
- Enclosing class:
- FunctionCallingConfigMode
Enum representing the known values for FunctionCallingConfigMode.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionModel is constrained to always predicting function calls only.Default model behavior, model decides to predict either function calls or natural language response.The function calling config mode is unspecified.Model will not predict any function calls. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static FunctionCallingConfigMode.Known[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
MODE_UNSPECIFIED
The function calling config mode is unspecified. Should not be used. -
AUTO
Default model behavior, model decides to predict either function calls or natural language response. -
ANY
Model is constrained to always predicting function calls only. If "allowed_function_names" are set, the predicted function calls will be limited to any one of "allowed_function_names", else the predicted function calls will be any one of the provided "function_declarations". -
NONE
Model will not predict any function calls. Model behavior is same as when not passing any function declarations. -
FUNCTION_CALLING_CONFIG_MODE_UNSPECIFIED
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-