Tool calling
Letting a model request external functions
A mechanism where a model creates a tool request that an application can execute.
Tool calling connects a language model to external functions such as checking stock or retrieving a manual. The model typically specifies which function it needs and the arguments to use; the application validates and executes the request. The result can then return to the context. This distinction matters: requesting an action does not prove it succeeded. Check arguments, permissions and error handling, and ground responses in the actual tool result. Otherwise an assistant might confirm stock availability even though the database request never returned usable information about the product.