BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/simple-ai/weather-agent

Weather Agent

simple-ai/weather-agent
FreeUtility

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.json

Source

./src/registry/ai/agents/weather-agent.tssimple-ai.dev/r/weather-agent.json
1import { Experimental_Agent as Agent, stepCountIs } from "ai";
2
3import { model } from "@/registry/ai/models";
4import { getWeatherTool } from "@/registry/ai/tools/get-weather";
5
6export const weatherAgentPrompt = `You are a helpful weather assistant. Your role is to provide accurate and helpful weather information to users.
7
8When users ask about weather:
9- Use the get-weather tool to retrieve current weather conditions
10- Always specify the city and preferred temperature unit (fahrenheit or celsius)
11- Provide clear, concise weather information
12- If a user doesn't specify a unit, default to fahrenheit
13- Be friendly and helpful in your responses`;
14
15export 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

  • ai

Other registry items

  • @simple-ai/models
  • @simple-ai/get-weather

Files it writes

  • ./src/registry/ai/agents/weather-agent.ts

Facts

Registry
simple-ai
Type
registry:lib
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-02
Last confirmed
today

Go to the source

Docs on simple-ai simple-ai.dev Alwurts/simple-ai on GitHub Raw registry item This item as JSON

More from simple-ai

All 77 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
agent-respondagent-respondsimple-aiUtilitiesFree1 dep
agents-tools-registryagents-tools-registrysimple-aiUtilitiesFree1 dep · 2 files
ai-utilsai-utilssimple-aiUtilitiesFree1 dep
Exa Agentexa-agentsimple-aiUtilitiesFree1 dep
exa-toolexa-toolsimple-aiUtilitiesFree3 deps
Firecrawl Agentfirecrawl-agentsimple-aiUtilitiesFree1 dep
firecrawl-toolfirecrawl-toolsimple-aiUtilitiesFree3 deps
get-weatherget-weathersimple-aiUtilitiesFree2 deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex