What is function calling (tool use)?
BeginnerConceptTool use & function calling
Answer
Function calling lets a model ask your code to run a function. You describe tools with a name, description and JSON-schema parameters; the model replies with a tool name and arguments; your code executes it and sends the result back. The model never runs anything itself, your application does.