Google Gemini · Schema

FunctionCallingConfig

Configuration for specifying function calling behavior.

Agentic AIArtificial IntelligenceCode GenerationEmbeddingsGenerative AIImage GenerationLLMMachine LearningMultimodal

Properties

Name Type Description
mode string Specifies the mode in which function calling should execute.
allowedFunctionNames array A set of function names that, when provided, limits the functions the model will call. This should only be set when the Mode is ANY. Function names should match FunctionDeclaration.name.
View JSON Schema on GitHub

JSON Schema

google-gemini-functioncallingconfig-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/FunctionCallingConfig",
  "title": "FunctionCallingConfig",
  "type": "object",
  "description": "Configuration for specifying function calling behavior.",
  "properties": {
    "mode": {
      "type": "string",
      "description": "Specifies the mode in which function calling should execute.",
      "enum": [
        "MODE_UNSPECIFIED",
        "AUTO",
        "ANY",
        "NONE"
      ]
    },
    "allowedFunctionNames": {
      "type": "array",
      "description": "A set of function names that, when provided, limits the functions the model will call. This should only be set when the Mode is ANY. Function names should match FunctionDeclaration.name.",
      "items": {
        "type": "string"
      }
    }
  }
}