Enum FunctionCallingMode
- Namespace
- GenerativeAI.Types
- Assembly
- GenerativeAI.dll
Defines the execution behavior for function calling by defining the execution mode.
[JsonConverter(typeof(JsonStringEnumConverter<FunctionCallingMode>))]
public enum FunctionCallingMode
- Extension Methods
Fields
FUNCTION_CALLING_MODE_UNSPECIFIED = 0Unspecified function calling mode. This value should not be used.
AUTO = 1Default model behavior, model decides to predict either a function call or a natural language response.
ANY = 2Model 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 = 3Model will not predict any function call. Model behavior is same as when not passing any function declarations.
VALIDATED = 4The model may call functions or respond in natural language, and function calls are validated against the declared schemas.