Weather Agent
simple-ai/weather-agentFreeUtility
A weather agent with tools for getting the weather.
Live preview
live · rendered by the registry
Rendered by simple-ai on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://simple-ai.dev/r/weather-agent.jsonSource
1import { Experimental_Agent as Agent, stepCountIs } from "ai";23import { model } from "@/registry/ai/models";4import { getWeatherTool } from "@/registry/ai/tools/get-weather";56export const weatherAgentPrompt = `You are a helpful weather assistant. Your role is to provide accurate and helpful weather information to users.78When users ask about weather:9- Use the get-weather tool to retrieve current weather conditions10- Always specify the city and preferred temperature unit (fahrenheit or celsius)11- Provide clear, concise weather information12- If a user doesn't specify a unit, default to fahrenheit13- Be friendly and helpful in your responses`;1415export const weatherAgent = new Agent({16 model: model.languageModel("gpt-5-nano"),17 system: weatherAgentPrompt,18 tools: {19 "get-weather": getWeatherTool,20 },21 stopWhen: stepCountIs(20),22});
What it pulls in
npm packages
Other registry items
Files it writes
More from simple-ai
All 77 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| agent-respondagent-respond | simple-ai | Utilities | Free | 1 dep | |
| agents-tools-registryagents-tools-registry | simple-ai | Utilities | Free | 1 dep · 2 files | |
| ai-utilsai-utils | simple-ai | Utilities | Free | 1 dep | |
| Exa Agentexa-agent | simple-ai | Utilities | Free | 1 dep | |
| exa-toolexa-tool | simple-ai | Utilities | Free | 3 deps | |
| Firecrawl Agentfirecrawl-agent | simple-ai | Utilities | Free | 1 dep | |
| firecrawl-toolfirecrawl-tool | simple-ai | Utilities | Free | 3 deps | |
| get-weatherget-weather | simple-ai | Utilities | Free | 2 deps |
