Function calling
An API feature in which a model returns a structured request to run a named function with given arguments.
Also: structured tool calls
OpenAI added function calling to its API in June 2023, and other providers followed. A developer describes available functions, their names, purposes and argument types, in a schema. When the model decides one is needed, it replies not with prose but with the function name and arguments in JSON, which the developer's code runs. The result is sent back and the model continues. Function calling turned language models into components that can book, look up, calculate and update things in other software.