ai-robot-core/ai-service/app/services/monitoring
MerCry 3cf7d02daf feat(v0.7.0): implement intent rule testing and prompt template monitoring
Backend APIs:
- [AC-AISVC-96] POST /admin/intent-rules/{ruleId}/test - Intent rule testing with conflict detection
- [AC-AISVC-97] GET /admin/monitoring/intent-rules - Intent rule statistics
- [AC-AISVC-98] GET /admin/monitoring/intent-rules/{ruleId}/hits - Intent rule hit records
- [AC-AISVC-99] POST /admin/prompt-templates/{tplId}/preview - Prompt template preview with token count
- [AC-AISVC-100] GET /admin/monitoring/prompt-templates - Prompt template usage statistics

Frontend Components:
- [AC-ASA-53] IntentRuleTestDialog - Test dialog for intent rules
- [AC-ASA-54/55] IntentRules monitoring page with hit records drawer
- [AC-ASA-56/57] PromptTemplatePreviewDialog with variable editing
- [AC-ASA-58] PromptTemplates monitoring page with scene breakdown

New files:
- ai-service/app/services/intent/tester.py
- ai-service/app/services/monitoring/intent_monitor.py
- ai-service/app/services/monitoring/prompt_monitor.py
- ai-service/app/api/admin/monitoring.py
- ai-service-admin/src/views/admin/intent-rule/components/TestDialog.vue
- ai-service-admin/src/views/admin/monitoring/IntentRules.vue
- ai-service-admin/src/views/admin/monitoring/PromptTemplates.vue
- ai-service-admin/src/views/admin/prompt-template/components/PreviewDialog.vue
2026-02-27 23:15:46 +08:00
..
__init__.py feat(v0.7.0-window2): implement flow simulation and guardrail testing/monitoring 2026-02-27 23:13:45 +08:00
cache.py feat(v0.7.0): implement intent rule testing and prompt template monitoring 2026-02-27 23:15:46 +08:00
dashboard_service.py feat(v0.7.0): implement intent rule testing and prompt template monitoring 2026-02-27 23:15:46 +08:00
flow_monitor.py feat(v0.7.0-window2): implement flow simulation and guardrail testing/monitoring 2026-02-27 23:13:45 +08:00
guardrail_monitor.py feat(v0.7.0-window2): implement flow simulation and guardrail testing/monitoring 2026-02-27 23:13:45 +08:00
intent_monitor.py feat(v0.7.0): implement intent rule testing and prompt template monitoring 2026-02-27 23:15:46 +08:00
prompt_monitor.py feat(v0.7.0): implement intent rule testing and prompt template monitoring 2026-02-27 23:15:46 +08:00
recorder.py feat(v0.7.0): implement intent rule testing and prompt template monitoring 2026-02-27 23:15:46 +08:00