Weather
Looks up the current weather for a location via the Open-Meteo API.
Live preview
FlueOutput will stream here when you run the agent.
Summary
The Weather Agent is the classic starter: ask about a place and it reports the current conditions. It geocodes the location and fetches live weather from the free Open-Meteo API — no key required. Reach for it as a minimal, end-to-end example of an agent with a single tool.
Install
$ pnpm dlx shadcn@latest add https://agentcn.vercel.app/r/flue/weather.json
Composition
agents/
└── weather.ts # Agent with the get_weather tool
tools/
└── get-weather.ts # Geocode + current forecast (Open-Meteo)Customization
- Add a forecast. Extend
get-weather.tsto request daily/hourly data. - Add units. Pass a
unitsparameter (metric/imperial) to the API. - Add a workflow. Wrap it in a workflow with a typed forecast schema.
- Swap the model. Change the
modelfield on the agent.