Tool Use
Definition
Tool Use is a mechanism that allows a language model to interact with external tools: APIs, databases, calculators, search engines. The model generates a structured function call, which is executed by the environment, and the result is returned to the model for further reasoning.
Process
- The model receives a description of available tools (function schemas).
- When necessary, the model generates a function call with arguments.
- The environment executes the function and returns the result.
- The model uses the result to form the final response.
Example
{
"name": "get_weather",
"arguments": {"city": "Moscow"}
}