Function Calling
Function calling is an API capability that OpenAI introduced in June 2023. Developers describe functions to the model with JSON Schema, and the model can answer with a function name and JSON arguments instead of plain text. The application then runs the function and sends the result back, which lets the model work with tools, databases and live data.[1][2] Anthropic calls the same capability "tool use", and Google's Gemini API also supports it.[4][6]