This project is a simple Node.js AI agent that uses Google's Gemini API to answer user queries and fetch current weather information for any location using the WeatherAPI service.
- Interactive command-line interface
- Integrates with Google Gemini (via
@google/genai) - Fetches real-time weather data using WeatherAPI
- Supports
.envconfiguration for API keys
- Node.js (v18+ recommended)
- WeatherAPI and Google Gemini API keys
-
Clone the repository and navigate to the project directory.
-
Install dependencies:
npm install cp .env.example .env node server.js