feat: 向量记忆 RAG、工具市场、SSE 流式响应、前端集成与测试覆盖

- 新增 embedding_service(语义检索)、knowledge_service(RAG)、text_chunker、document_parser
- 新增 tool_registry(自定义工具注册表)并完善工具市场 API(CRUD + code/http 执行)
- 新增 agent_vector_memory / knowledge_base 模型及对应数据库表
- 实现 SSE 流式响应与 Agent 预算控制
- AgentChat.vue 集成 MainLayout 导航布局
- 完善测试体系:7 个新测试文件共 110 个测试覆盖
- 修复 conftest.py SQLite 内存数据库连接隔离问题

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
renjianbo
2026-05-01 22:30:46 +08:00
parent 036f533881
commit 7b9e0826de
35 changed files with 4353 additions and 365 deletions

View File

@@ -78,7 +78,9 @@
</el-menu>
<!-- 页面内容 -->
<slot />
<div class="page-content">
<slot />
</div>
</el-main>
</el-container>
</div>
@@ -109,6 +111,7 @@ const activeMenu = computed(() => {
if (route.path === '/monitoring') return 'monitoring'
if (route.path === '/agent-monitoring') return 'agent-monitoring'
if (route.path === '/alert-rules') return 'alert-rules'
if (route.path === '/agent-chat' || route.path.startsWith('/agent-chat/')) return 'agent-chat'
return 'workflows'
})
@@ -189,4 +192,17 @@ const handleLogout = () => {
height: 50px;
line-height: 50px;
}
:deep(.el-main) {
display: flex;
flex-direction: column;
padding: 20px;
}
.page-content {
flex: 1;
display: flex;
flex-direction: column;
min-height: 0;
}
</style>