feat: 交互Agent + VLM优化 + 企微演示模式

- 新增交互Agent调度器(意图识别 + 工单/查询/报表/闲聊4个Handler)
- 新增工单服务、Excel报表生成器、企微消息加解密模块
- VLM提示词优化(角色设定、≤25字描述、布尔值优先输出)
- VLM降级策略(入侵默认放行、离岗默认拦截)
- 企微演示模式(WECHAT_TEST_UIDS兜底 + SERVICE_BASE_URL修复)
- 新增Agent回调路由和测试接口

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-09 10:42:32 +08:00
parent 1d84456c0f
commit 7cc4f604d0
13 changed files with 827 additions and 54 deletions

View File

@@ -60,6 +60,11 @@ async def lifespan(app: FastAPI):
wechat_svc = get_wechat_service()
wechat_svc.init(settings.wechat)
# 初始化交互Agent
from app.services.agent_dispatcher import get_agent_dispatcher
agent = get_agent_dispatcher()
agent.init(settings.agent)
logger.info("AI 告警平台启动完成")
yield