ToolsIntegrations
weather
Current weather by lat/lng. Free tier via open-meteo by default; swap provider via config.
import { weather } from '@agentskit/tools'
const runtime = createRuntime({
adapter,
tools: [...weather()],
})Sub-tools
| Name | Purpose |
|---|---|
weatherCurrent | Current conditions at a coordinate |
Bundled: weather(config).
Config
type WeatherConfig = {
provider?: 'open-meteo' | 'openweathermap' | 'weatherapi'
apiKey?: string // required except for open-meteo
units?: 'metric' | 'imperial'
fetch?: typeof fetch
}Example
await runtime.run('What\'s the weather at 38.72, -9.14 right now?')Related
- Integrations overview · maps — pair for NL → coords.