Skip to content
ai

Function calling

LLM Function Calling

Definition

Function calling allows language models to request the execution of predefined functions by emitting structured JSON describing the function name and arguments. The host application executes the function and returns the result to the model, which incorporates it into the response.

Function calling is the foundation for tool use in AI agents, enabling models to query databases, call APIs, and interact with external systems.


Ship secure code faster

Crash Override integrates security into the developer workflow. No context switching, no waiting on reviews.