FunctionCallingMode Enumeration

Defines the execution behavior for function calling by defining the execution mode.

Definition

Namespace: GenerativeAI.Types
Assembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
C#
public enum FunctionCallingMode

Members

FUNCTION_CALLING_MODE_UNSPECIFIED0 Unspecified function calling mode. This value should not be used.
AUTO1 Default model behavior, model decides to predict either a function call or a natural language response.
ANY2 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".
NONE3 Model will not predict any function call. Model behavior is same as when not passing any function declarations.

See Also