A stateful AI chatbot built with LangGraph and Google Gemini. This agent is "time-aware," meaning it knows the current date and year, bypassing the default AI knowledge cutoff.
- State Management: Uses LangGraph to maintain conversation history.
- Gemini 2.5 Integration: Connects to Google's latest Flash models.
- Clone the repository:
git clone <your-repo-url> cd langgraph-simple-agent
- Set up a Virtual Environment:
python -m venv .venv .venv\Scripts\activate
- Install Dependencies:
pip install langchain-google-genai langgraph python-dotenv
- Configure Environment Variables: Create a .env file in the root directory and add your Google API Key: GOOGLE_API_KEY=your_actual_key_here
Run the main script to start a conversation:
python main.py