# AI Architecture ## Purpose Centralise AI functionality. --- # AI Service Layer Applications should not directly call AI providers. Instead: Feature ↓ AI Service ↓ Provider ↓ Model --- # Providers Support: - OpenAI. - Gemini. - Claude. - Groq. - Ollama. --- # Requirements Support: - Switching providers. - Usage tracking. - Error handling. - Cost control. --- # Rules AI output requires validation.