Use Tools to test if your functions and external APIs are used correctly
Enable the Tools Panel
Add a New Tool
Create a Tool Manually
Generate a Tool with AI Assistance
Test the Tool
get_weather
tool in Langtail with external open weather API:
Add the Weather Tool definition
get_weather
tool function using the structure provided below. This is the definiton part.Add the Weather Tool handler
Test the Tool
Evaluate the Prompt
get_weather
tool should be called based on your prompt. If the evaluation is successful, you’ll see the tool function call displayed in the output, along with the correct response.