Function Calling
The capability of an LLM to invoke external tools or APIs through structured output, a key foundation for building agent applications and regarded as one of the value-added capabilities of closed-source vendors' engineering ecosystems.
Core Facts
Function Calling (Tool Use) is a standardized mechanism for large models to invoke external tools, where developers pre-declare tool names, descriptions, and parameter schemas, and the model autonomously determines when to make a call.
The classic paradigm of Agent workflows is the separation of the planning layer and the execution layer, where the planning layer is responsible for understanding goals, decomposing tasks, and generating execution plans, while the execution layer handles actual operations via dedicated tools or smaller models.
The core mechanism of Function Calling is that developers describe external function signatures in JSON Schema format, and the model outputs structured JSON invocation instructions that conform to the schema specification.
Timeline (last 90 days)
Constrained decoding and function calling can restrict the selectable tokens during the decoding stage, but they still belong to the generation paradigm and output text rather than a directly usable probability distribution.
An agent's action capability relies on the reasoning and function calling mechanisms of large language models.
The tool-call requests output by the model and its natural-language replies are two independent generation streams that do not share a strong consistency constraint, so "saying one thing and doing another" is architecturally possible.
Function calling makes the model emit a structured call that explicitly names the tool and parameters, and the system can validate and reliably execute that structure.
Small models may have incomplete or poor support for function calling, and enum value deviations can still occur.
Interface drift refers to changes after deployment in tool description text, parameter schemas, or the candidate tool list that cause model function calls to fail, even when the underlying semantics are unchanged.
The second step is letting the model call tools, starting with three common tool chains: retrieval, function calling, and code execution or interface calling.
Function calling is the mechanism by which a model proactively issues a structured request during a conversation, which an external system executes and returns the result of; Google Search grounding is essentially a platform-built-in form of function calling.
The function calling approach depends on the provider's implementation, and behavior may differ across platforms.
Common implementations of structured output include providing a function calling interface, constrained decoding, or post-processing parsing plus validation.
6 more timeline events
All Facts (19)
Function Calling (Tool Use) is a standardized mechanism for large models to invoke external tools, where developers pre-declare tool names, descriptions, and parameter schemas, and the model autonomously determines when to make a call.
90%VerifiedThe classic paradigm of Agent workflows is the separation of the planning layer and the execution layer, where the planning layer is responsible for understanding goals, decomposing tasks, and generating execution plans, while the execution layer handles actual operations via dedicated tools or smaller models.
85%VerifiedThe core mechanism of Function Calling is that developers describe external function signatures in JSON Schema format, and the model outputs structured JSON invocation instructions that conform to the schema specification.
80%UnverifiedConstrained decoding and function calling can restrict the selectable tokens during the decoding stage, but they still belong to the generation paradigm and output text rather than a directly usable probability distribution.
50%UnverifiedAn agent's action capability relies on the reasoning and function calling mechanisms of large language models.
50%UnverifiedThe tool-call requests output by the model and its natural-language replies are two independent generation streams that do not share a strong consistency constraint, so "saying one thing and doing another" is architecturally possible.
50%UnverifiedFunction calling makes the model emit a structured call that explicitly names the tool and parameters, and the system can validate and reliably execute that structure.
50%UnverifiedSmall models may have incomplete or poor support for function calling, and enum value deviations can still occur.
50%UnverifiedInterface drift refers to changes after deployment in tool description text, parameter schemas, or the candidate tool list that cause model function calls to fail, even when the underlying semantics are unchanged.
50%UnverifiedThe second step is letting the model call tools, starting with three common tool chains: retrieval, function calling, and code execution or interface calling.
50%UnverifiedFunction calling is the mechanism by which a model proactively issues a structured request during a conversation, which an external system executes and returns the result of; Google Search grounding is essentially a platform-built-in form of function calling.
50%UnverifiedThe function calling approach depends on the provider's implementation, and behavior may differ across platforms.
50%UnverifiedCommon implementations of structured output include providing a function calling interface, constrained decoding, or post-processing parsing plus validation.
50%UnverifiedContract drift in tool calls (such as a tool changing from returning plain text to returning JSON, or a schema adding a required field) usually does not directly produce an error pointing to the root cause, but instead manifests as the model repeatedly failing to parse, outputting garbled text, or retrying.
50%UnverifiedThe essence of agentic workflows is a sequential reasoning loop: make a plan, choose tools, execute calls, validate outputs, and retry on failure, which naturally increases latency.
50%UnverifiedOpenAI's official guidance draws three lines: the Decisions API for classification, routing, scoring, and gating that require a determination; Structured Outputs (Responses API) for scenarios that require extracting fields or written explanations in a structured form; and function calling for scenarios where the model triggers tools with parameters.
50%UnverifiedA tool-calling/function-calling architecture that separates reasoning from computation can circumvent persuasion-based failures and is a general strategy for addressing hallucination and consistency issues
50%UnverifiedOpenAI's function calling outputs invocation parameters in structured JSON format, greatly reducing parsing error rates.
50%UnverifiedFunction calling allows a model to recognize user intent and output structured function call instructions (including function names and parameters) rather than pure natural language text.
50%