Tools enhance the capabilities of language models, allowing them to perform specific tasks or access external information. In ModelBench, tools are defined using JSON schema and can be easily integrated into your prompts.
This tool allows the model to fetch current weather information for a given location.
Copy
{ "name": "get_weather", "description": "Get the current weather for a specified location", "parameters": { "type": "object", "properties": { "location": { "type": "string", "description": "The city and state, e.g. San Francisco, CA" } }, "required": ["location"] }}