更新agents

This commit is contained in:
2025-12-23 05:47:16 +00:00
parent e019d9f83e
commit 7fd6703f7a
+39 -4
View File
@@ -1,6 +1,7 @@
# 前端菜单 ↔ API 接口对照(自动整理) # 前端菜单 ↔ API 接口对照(自动整理)
更新时间:2025-12-23 更新时间:2025-12-23
核对时间:2025-12-23(已逐项对照前端源码与 API 文档)
本文件用于回答: 本文件用于回答:
- 前端每个菜单/功能使用了哪些后端接口、传了哪些参数 - 前端每个菜单/功能使用了哪些后端接口、传了哪些参数
@@ -17,6 +18,40 @@
--- ---
## 接口调用稽核(2025-12-23)
### Data Ingestion 服务
| 接口 | 前端页面 / 功能 | 代码位置 |
| --- | --- | --- |
| GET /health | 概览 → 系统组件区块 | [components/dashboard-overview.tsx](components/dashboard-overview.tsx#L55-L97) |
| POST /rapidapi/sync | 数据与工具 → RapidAPI 汇聚标签 → 同步端点按钮 | [app/data-tools/page.tsx](app/data-tools/page.tsx#L175-L193) |
| POST /rapidapi/test | 数据与工具 → RapidAPI 汇聚标签 → 端点测试器 | [app/data-tools/page.tsx](app/data-tools/page.tsx#L198-L226) |
| POST /openapi/parse | 数据与工具 → 运维工具标签 → OpenAPI 解析器 | [app/data-tools/page.tsx](app/data-tools/page.tsx#L223-L266) |
| POST /apillama/process | 数据与工具 → APILLAMA 处理器 | [app/data-tools/page.tsx](app/data-tools/page.tsx#L285-L306) |
| POST /tools/generate | 数据与工具 → 生成新工具按钮 | [app/data-tools/page.tsx](app/data-tools/page.tsx#L319-L335) |
| GET /tools | 数据与工具 → 工具注册表列表加载 | [app/data-tools/page.tsx](app/data-tools/page.tsx#L155-L167) |
| GET /tools/{tool_name} | 数据与工具 → 工具详情对话框 | [app/data-tools/page.tsx](app/data-tools/page.tsx#L268-L289) |
| DELETE /tools/{tool_name} | 数据与工具 → 工具注册表删除按钮 | [app/data-tools/page.tsx](app/data-tools/page.tsx#L300-L315) |
| GET /stats | 数据与工具 → 顶部统计卡片 | [app/data-tools/page.tsx](app/data-tools/page.tsx#L155-L167) |
| POST /cache/clear | 数据与工具 → 运维工具 → 缓存维护 | [app/data-tools/page.tsx](app/data-tools/page.tsx#L236-L252) |
| GET /metrics | 数据与工具 → 运维工具 → 服务指标 | [app/data-tools/page.tsx](app/data-tools/page.tsx#L253-L268) |
### MCP Server 服务
| 接口 | 前端页面 / 功能 | 代码位置 |
| --- | --- | --- |
| GET /health | 概览 → 系统组件区块 | [components/dashboard-overview.tsx](components/dashboard-overview.tsx#L55-L97) |
| GET /agents | 概览 → 活跃代理统计;代理工厂 → Agent Registry 列表 | [components/dashboard-overview.tsx](components/dashboard-overview.tsx#L55-L97)<br>[app/agent-factory/page.tsx](app/agent-factory/page.tsx#L74-L104) |
| POST /agents | 代理工厂 → 创建新代理 | [app/agent-factory/page.tsx](app/agent-factory/page.tsx#L105-L121) |
| GET /agents/{agent_id} | 代理工厂 → 代理详情对话框 | [app/agent-factory/page.tsx](app/agent-factory/page.tsx#L130-L146) |
| POST /agents/{agent_id}/execute | 代理工厂 → 播放按钮执行工具 | [app/agent-factory/page.tsx](app/agent-factory/page.tsx#L116-L128) |
| GET /tools | 代理工厂 → 可用函数工具区域 | [app/agent-factory/page.tsx](app/agent-factory/page.tsx#L74-L104) |
| GET /metrics | 代理工厂 → MCP 服务指标卡片 | [app/agent-factory/page.tsx](app/agent-factory/page.tsx#L150-L170) |
| WebSocket /ws/{agent_id} | 代理工厂 → MCP WebSocket 控制台 | [app/agent-factory/page.tsx](app/agent-factory/page.tsx#L178-L228) |
---
## 概览(/) ## 概览(/)
页面文件:app/page.tsx(渲染组件:components/dashboard-overview.tsx) 页面文件:app/page.tsx(渲染组件:components/dashboard-overview.tsx)
@@ -280,7 +315,7 @@
## 代码位置(前端接入点) ## 代码位置(前端接入点)
- API Client:lib/api-client.ts - API Client:[lib/api-client.ts](lib/api-client.ts)
- 概览:components/dashboard-overview.tsx - 概览:[components/dashboard-overview.tsx](components/dashboard-overview.tsx)
- 数据与工具:app/data-tools/page.tsx - 数据与工具:[app/data-tools/page.tsx](app/data-tools/page.tsx)
- 代理工厂:app/agent-factory/page.tsx - 代理工厂:[app/agent-factory/page.tsx](app/agent-factory/page.tsx)