Enumeration FunctionCallingConfigMode

Config for the function calling config mode.

Enumeration Members

Enumeration Members

ANY: "ANY"

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".

AUTO: "AUTO"

Default model behavior, model decides to predict either function calls or natural language response.

MODE_UNSPECIFIED: "MODE_UNSPECIFIED"

The function calling config mode is unspecified. Should not be used.

NONE: "NONE"

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

VALIDATED: "VALIDATED"

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".