Tool config. This config is shared for all tools provided in the request.
JSON representation |
---|
{
"functionCallingConfig": {
object ( |
Fields | |
---|---|
functionCallingConfig |
Optional. Function calling config. |
FunctionCallingConfig
Function calling config.
JSON representation |
---|
{
"mode": enum ( |
Fields | |
---|---|
mode |
Optional. Function calling mode. |
allowedFunctionNames[] |
Optional. Function names to call. Only set when the Mode is ANY. Function names should match [FunctionDeclaration.name]. With mode set to ANY, model will predict a function call from the set of function names provided. |
Mode
Function calling mode.
Enums | |
---|---|
MODE_UNSPECIFIED |
Unspecified function calling mode. This value should not be used. |
AUTO |
Default model behavior, model decides to predict either a function call or a natural language repspose. |
ANY |
Model is constrained to always predicting a function call only. If "allowedFunctionNames" are set, the predicted function call will be limited to any one of "allowedFunctionNames", else the predicted function call will be any one of the provided "functionDeclarations". |
NONE |
Model will not predict any function call. Model behavior is same as when not passing any function declarations. |