In this example, we define a tool to get the weather. How you obtain the weather is up to you—you might call a third-party service or something within your own system. Once you have the weather information, you return the response to the LLM, and it finishes processing the prompt with that data. You can read more about tool calling here.
Copy
Ask AI
---provider: Latitudemodel: gpt-4o-minitools: - get_weather: description: Gets the weather temperature from a given location. parameters: type: object additionalProperties: false required: ['location'] properties: location: type: string description: Name of the location---What should I wear for the weather in {{ location }}?