A command-line AI agent that detects the topic of any educational question and responds in haiku format using Gemini API (OpenAI-compatible interface).
- 🧠 Topic detection using Gemini
- 📜 Poetic answers in 5-7-5 haiku style
- 💻 Minimal CLI interface
- 🚀 Fast Gemini-2.0 Flash model
- 🧪 Tested across 20+ educational topics
git clone https://github.com/muhammadwaheedairi/eduhaiku-agent.git
cd eduhaiku-agentuv venv.venv\Scripts\activatesource .venv/bin/activateuv pip install -r requirements.txt- Create a
.envfile in the root folder - Paste your Gemini API key:
GEMINI_API_KEY=your-real-gemini-api-key-hereSee
.env.examplefor reference
python main.py💬 You'll be prompted to ask an educational question.
Ask your educational question: What is gravity?
📚 Detected Topic: Physics
🎓 Haiku Response:
A force unseen pulls,
Objects drawn to center mass,
Earth's gentle embrace.
eduhaiku-agent/
├── main.py
├── .env
├── .env.example
├── requirements.txt
├── .gitignore
└── README.md
Built with ❤️ by Muhammad Waheed Follow the journey: @muhammadwaheedairi