An API pattern where the LLM returns a structured call to a specified function, often validated and executed by your code.
Function calling enables safer integrations and clearer contracts with engineering. PMs define which functions are exposed, required fields, and audit logging. It affects portability and reduces vendor lock-in. Over-exposing functions increases risk surface and maintenance load.
Design narrow, well-typed functions with strong defaults. Validate all arguments before execution and provide user-facing confirmations for destructive actions. In 2026, pair function calling with per-tenant allowlists and privacy redaction on inputs/outputs.
A billing copilot exposes `create_refund` only with required fields and an approval step. Refund accuracy rises to 96%, while incident rate stays below 0.2% and refunds process in under 20 seconds end-to-end.