FunctionCallingConfig_Mode class final
Function calling mode.
- Inheritance
-
- Object
- ProtoEnum
- FunctionCallingConfig_Mode
Constructors
- FunctionCallingConfig_Mode(String value)
-
const
- FunctionCallingConfig_Mode.fromJson(Object? json)
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isNotDefault → bool
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → String
-
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String -
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- $default → const FunctionCallingConfig_Mode
- The default value for FunctionCallingConfig_Mode.
- any → const FunctionCallingConfig_Mode
-
Model is constrained to always predicting function calls only.
If
allowed_function_namesare set, the predicted function calls will be limited to any one ofallowed_function_names, else the predicted function calls will be any one of the provided FunctionDeclaration. - auto → const FunctionCallingConfig_Mode
- Default model behavior, model decides to predict either function calls or natural language response.
- modeUnspecified → const FunctionCallingConfig_Mode
- Unspecified function calling mode. This value should not be used.
- none → const FunctionCallingConfig_Mode
- Model will not predict any function calls. Model behavior is same as when not passing any function declarations.
- validated → const FunctionCallingConfig_Mode
-
Model is constrained to predict either function calls or natural language
response.
If
allowed_function_namesare set, the predicted function calls will be limited to any one ofallowed_function_names, else the predicted function calls will be any one of the provided FunctionDeclaration.