- Python
- Bash
Call tools
Use function and tool calling with Serverless Inference to let models invoke external tools and APIs during generation.
Tool calling allows you to extend a model’s capabilities to include invoking tools as part of its response. Serverless Inference only supports calling functions at this time.
To call functions, specify them and their arguments as part of your request to the model. The model determines whether it needs to run the function to fulfill a request, and then specifies the function’s argument values if needed.