FunctionCallingConfig_Mode class final
Defines the execution behavior for function calling by defining the execution mode.
- Inheritance
-
- Object
- ProtoEnum
- FunctionCallingConfig_Mode
Constructors
- FunctionCallingConfig_Mode(String value)
-
const
- FunctionCallingConfig_Mode.fromJson(String 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 a function call only. If "allowed_function_names" are set, the predicted function call will be limited to any one of "allowed_function_names", else the predicted function call will be any one of the provided "function_declarations".
- auto → const FunctionCallingConfig_Mode
- Default model behavior, model decides to predict either a function call or a 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 call. Model behavior is same as when not passing any function declarations.
- validated → const FunctionCallingConfig_Mode
- Model decides to predict either a function call or a natural language response, but will validate function calls with constrained decoding. If "allowed_function_names" are set, the predicted function call will be limited to any one of "allowed_function_names", else the predicted function call will be any one of the provided "function_declarations".