Starting April 29, 2025, Gemini 1.5 Pro and Gemini 1.5 Flash models are not available in projects that have no prior usage of these models, including new projects. For details, see Model versions and lifecycle.
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".
ANY = 2;
ANY_VALUE
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".
ANY = 2;
AUTO
Default model behavior, model decides to predict either function calls
or natural language response.
AUTO = 1;
AUTO_VALUE
Default model behavior, model decides to predict either function calls
or natural language response.
AUTO = 1;
MODE_UNSPECIFIED
Unspecified function calling mode. This value should not be used.
MODE_UNSPECIFIED = 0;
MODE_UNSPECIFIED_VALUE
Unspecified function calling mode. This value should not be used.
MODE_UNSPECIFIED = 0;
NONE
Model will not predict any function calls. Model behavior is same as when
not passing any function declarations.
NONE = 3;
NONE_VALUE
Model will not predict any function calls. Model behavior is same as when
not passing any function declarations.