ai-robot-core/ai-service/app/services/intent
MerCry ff35538a01 feat(ai-service): implement intent recognition and rule engine (Phase 12 T12.1-T12.5)
[AC-AISVC-65~AC-AISVC-70] Intent recognition with keyword and regex matching

- Add IntentRule SQLModel entity with tenant isolation
- Implement IntentRuleService for CRUD operations with hit statistics
- Implement IntentRouter matching engine (priority DESC, keyword then regex)
- Add rule caching by tenant_id with TTL=60s and CRUD invalidation
- Add intent rules management API (POST/GET/PUT/DELETE /admin/intent-rules)
- Support four response types: fixed/rag/flow/transfer

T12.6 (Orchestrator integration) and T12.7 (unit tests) pending for integration phase
2026-02-27 14:20:31 +08:00
..
__init__.py feat(ai-service): implement intent recognition and rule engine (Phase 12 T12.1-T12.5) 2026-02-27 14:20:31 +08:00
router.py feat(ai-service): implement intent recognition and rule engine (Phase 12 T12.1-T12.5) 2026-02-27 14:20:31 +08:00
rule_service.py feat(ai-service): implement intent recognition and rule engine (Phase 12 T12.1-T12.5) 2026-02-27 14:20:31 +08:00