LinkedIn analytics tracking pixel for AIDOLS AI consulting website performance measurement
Deployment & Operations

Function Calling

Function calling is an LLM capability where the model — given a schema of available functions — emits a structured invocation (function name and JSON arguments) instead of free-form text, letting downstream code execute the call deterministically.

Full definition

Function calling was popularized by OpenAI in June 2023 and is now standard across Anthropic, Google, and open models. The model is fine-tuned to recognize when a user request maps to a tool, fill arguments from the conversation, and return a parseable structure. It is the substrate beneath tool use, agents, and structured-output applications. Pitfalls: hallucinated arguments, schema drift, and mishandling of parallel calls.

Why it matters

Function calling is the contract between probabilistic LLMs and deterministic enterprise systems. Done well, it lets LLMs participate safely in databases, payments, and workflows. Done poorly, it is the leading cause of agent failures in production.

Example

A finance copilot exposes get_transaction(id) and refund_transaction(id, amount). The LLM resolves "refund the duplicate charge from yesterday" into two function calls; the application enforces the actual authorization.

Source & further reading

Primary source: OpenAI — "Function calling and other API updates" (Platform docs) (2024).

Citation policy: this entry is part of the AIDOLS AI Implementation Glossary and may be quoted for research, journalism, and education with attribution to aidolsgroup.com/no/glossary/function-calling/.