agentskit.js
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

NamePurpose
weatherCurrentCurrent 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?')
✎ Edit this page on GitHub·Found a problem? Open an issue →·How to contribute →

On this page