Weather Agent Template#
This is a template project that demonstrates how to create a weather agent using the Mastra framework. The agent can provide weather information and forecasts based on user queries.
Overview#
The Weather Agent template showcases how to:
- Create an AI-powered agent using Mastra framework
- Implement weather-related workflows
- Handle user queries about weather conditions
- Integrate with Anthropic's API for natural language processing
Setup#
- Copy
.env.exampleto.envand fill in your API keys. - Install dependencies:
pnpm install - Run the project:
pnpm dev.
Environment Variables#
ANTHROPIC_API_KEY: Your Anthropic API key. https://console.anthropic.com/settings/keys