feat(ai-assistant): integrate Gemini provider and AI financial advice validation schemas
Features & Changes Overview
Backend: Gemini AI Assistant Integration
This PR introduces the AI Assistant module powered by Google Gemini AI, providing intelligent financial analysis, budget advice, transaction insights, and customized saving goal recommendations.
Key Changes
-
AI Assistant Module: Integrated Gemini AI provider with robust prompt engineering and error handling in
ai-assistant.service.tsandgemini.provider.ts. -
Response Validation: Implemented strict response parsing & validation using Zod schemas (
ai-assistant-response.validation.ts) to ensure reliable structured outputs (JSON). -
Environment & Config: Added
GEMINI_API_KEYconfiguration inenv.config.ts,.env.example, and registered Swagger documentation updates. -
API Routing: Configured AI Assistant endpoint routes in
src/routes/index.ts.