What does "tool use" (or function calling) mean for an LLM?
Options
- The model runs code directly on your server
- The model downloads plugins by itself
- The model returns a structured request naming a function and its arguments; your code runs it and sends the result back (Correct option)
- The model edits its own weights to learn a new skill
Answer
The model returns a structured request naming a function and its arguments; your code runs it and sends the result back
Why
You describe the available tools (name, purpose, parameters). When the model decides one is needed, it answers with the tool name and arguments instead of text.
Your program checks that request, runs the function and passes the result back, and the model then writes the final answer.
The model never executes anything itself, so you control what is allowed.
Remember
The model asks; your code decides and runs.