Function calling
Function calling lets a model return a structured request to run one of your functions instead of plain text.
You describe the available functions with a JSON schema; the model picks one and fills in arguments; your code executes it and returns the result for the next turn. This is the mechanism behind virtually every model integration with databases, search and business systems.