#What do you mean by "force function

1 messages · Page 1 of 1 (latest)

limber gate
#

NONE
Model will not predict any function calls. Model behavior is same as when not passing any function declarations.

#

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 "allowedFunctionNames" are set, the predicted function calls will be limited to any one of "allowedFunctionNames", else the predicted function calls will be any one of the provided "function_declarations".

little cedar
#

My understanding was that enable_automatic_function_calling is unrelated to function calling mode. I thought all it did was automatically convert python functions to the valid schema and, if Gemini returned a function to call, would call it with the parameters specified.

limber gate
#

Sorry, I see. That's for Python where it is possible to let the SDK handle even more.

little cedar
#

Right. It's only a parameter in Python.