feat(aia): Complete AIA V2.0 with universal streaming capabilities
Major Changes: - Add StreamingService with OpenAI Compatible format - Upgrade Chat component V2 with Ant Design X integration - Implement AIA module with 12 intelligent agents - Update API routes to unified /api/v1 prefix - Update system documentation Backend (~1300 lines): - common/streaming: OpenAI Compatible adapter - modules/aia: 12 agents, conversation service, streaming integration - Update route versions (RVW, PKB to v1) Frontend (~3500 lines): - modules/aia: AgentHub + ChatWorkspace (100% prototype restoration) - shared/Chat: AIStreamChat, ThinkingBlock, useAIStream Hook - Update API endpoints to v1 Documentation: - AIA module status guide - Universal capabilities catalog - System overview updates - All module documentation sync Tested: Stream response verified, authentication working Status: AIA V2.0 core completed (85%)
This commit is contained in:
@@ -6,44 +6,44 @@
|
||||
|
||||
### ========================================
|
||||
### 1. åˆ›å»ºä»»åŠ¡ï¼ˆä¸Šä¼ ç¨¿ä»¶ï¼‰
|
||||
### POST /api/v2/rvw/tasks
|
||||
### POST /api/v1/rvw/tasks
|
||||
### ========================================
|
||||
|
||||
# 注意:需要使用工具(如Postman)上传文件
|
||||
# curl -X POST http://localhost:3001/api/v2/rvw/tasks \
|
||||
# 注æ„<EFBFBD>:需è¦<EFBFBD>使用工具(如Postmanï¼‰ä¸Šä¼ æ–‡ä»?
|
||||
# curl -X POST http://localhost:3001/api/v1/rvw/tasks \
|
||||
# -F "file=@test.docx" \
|
||||
# -F "modelType=deepseek-v3"
|
||||
|
||||
|
||||
### ========================================
|
||||
### 2. 获å<C2B7>–任务列表
|
||||
### GET /api/v2/rvw/tasks
|
||||
### GET /api/v1/rvw/tasks
|
||||
### ========================================
|
||||
|
||||
### 获å<C2B7>–全部任务
|
||||
GET {{baseUrl}}/api/v2/rvw/tasks
|
||||
GET {{baseUrl}}/api/v1/rvw/tasks
|
||||
Content-Type: application/json
|
||||
|
||||
### 获取待处理任务
|
||||
GET {{baseUrl}}/api/v2/rvw/tasks?status=pending
|
||||
### 获å<EFBFBD>–待处ç<EFBFBD>†ä»»åŠ?
|
||||
GET {{baseUrl}}/api/v1/rvw/tasks?status=pending
|
||||
Content-Type: application/json
|
||||
|
||||
### 获取已完成任务
|
||||
GET {{baseUrl}}/api/v2/rvw/tasks?status=completed
|
||||
### 获å<EFBFBD>–已完æˆ<EFBFBD>ä»»åŠ?
|
||||
GET {{baseUrl}}/api/v1/rvw/tasks?status=completed
|
||||
Content-Type: application/json
|
||||
|
||||
### 分页获å<C2B7>–
|
||||
GET {{baseUrl}}/api/v2/rvw/tasks?page=1&limit=10
|
||||
GET {{baseUrl}}/api/v1/rvw/tasks?page=1&limit=10
|
||||
Content-Type: application/json
|
||||
|
||||
|
||||
### ========================================
|
||||
### 3. è¿<C3A8>行审查(选择智能体)
|
||||
### POST /api/v2/rvw/tasks/:taskId/run
|
||||
### POST /api/v1/rvw/tasks/:taskId/run
|
||||
### ========================================
|
||||
|
||||
### å<>ªé€‰æ‹©è§„范性智能体
|
||||
POST {{baseUrl}}/api/v2/rvw/tasks/{{taskId}}/run
|
||||
POST {{baseUrl}}/api/v1/rvw/tasks/{{taskId}}/run
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
@@ -51,15 +51,15 @@ Content-Type: application/json
|
||||
}
|
||||
|
||||
### å<>ªé€‰æ‹©æ–¹æ³•妿™ºèƒ½ä½“
|
||||
POST {{baseUrl}}/api/v2/rvw/tasks/{{taskId}}/run
|
||||
POST {{baseUrl}}/api/v1/rvw/tasks/{{taskId}}/run
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"agents": ["methodology"]
|
||||
}
|
||||
|
||||
### 同时选择两个智能体(默认)
|
||||
POST {{baseUrl}}/api/v2/rvw/tasks/{{taskId}}/run
|
||||
### å<EFBFBD>Œæ—¶é€‰æ‹©ä¸¤ä¸ªæ™ºèƒ½ä½“(默认ï¼?
|
||||
POST {{baseUrl}}/api/v1/rvw/tasks/{{taskId}}/run
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
@@ -69,10 +69,10 @@ Content-Type: application/json
|
||||
|
||||
### ========================================
|
||||
### 4. 批é‡<C3A9>è¿<C3A8>行审查
|
||||
### POST /api/v2/rvw/tasks/batch/run
|
||||
### POST /api/v1/rvw/tasks/batch/run
|
||||
### ========================================
|
||||
|
||||
POST {{baseUrl}}/api/v2/rvw/tasks/batch/run
|
||||
POST {{baseUrl}}/api/v1/rvw/tasks/batch/run
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
@@ -83,28 +83,28 @@ Content-Type: application/json
|
||||
|
||||
### ========================================
|
||||
### 5. 获å<C2B7>–任务详情
|
||||
### GET /api/v2/rvw/tasks/:taskId
|
||||
### GET /api/v1/rvw/tasks/:taskId
|
||||
### ========================================
|
||||
|
||||
GET {{baseUrl}}/api/v2/rvw/tasks/{{taskId}}
|
||||
GET {{baseUrl}}/api/v1/rvw/tasks/{{taskId}}
|
||||
Content-Type: application/json
|
||||
|
||||
|
||||
### ========================================
|
||||
### 6. 获å<C2B7>–审查报告
|
||||
### GET /api/v2/rvw/tasks/:taskId/report
|
||||
### GET /api/v1/rvw/tasks/:taskId/report
|
||||
### ========================================
|
||||
|
||||
GET {{baseUrl}}/api/v2/rvw/tasks/{{taskId}}/report
|
||||
GET {{baseUrl}}/api/v1/rvw/tasks/{{taskId}}/report
|
||||
Content-Type: application/json
|
||||
|
||||
|
||||
### ========================================
|
||||
### 7. åˆ é™¤ä»»åŠ¡
|
||||
### DELETE /api/v2/rvw/tasks/:taskId
|
||||
### DELETE /api/v1/rvw/tasks/:taskId
|
||||
### ========================================
|
||||
|
||||
DELETE {{baseUrl}}/api/v2/rvw/tasks/{{taskId}}
|
||||
DELETE {{baseUrl}}/api/v1/rvw/tasks/{{taskId}}
|
||||
Content-Type: application/json
|
||||
|
||||
|
||||
@@ -112,15 +112,15 @@ Content-Type: application/json
|
||||
### 旧版API(兼容性测试)
|
||||
### ========================================
|
||||
|
||||
### 旧版:获取任务列表
|
||||
### 旧版:获å<EFBFBD>–任务列è¡?
|
||||
GET {{baseUrl}}/api/v1/review/tasks
|
||||
Content-Type: application/json
|
||||
|
||||
### 旧版:获取任务状态
|
||||
### 旧版:获å<EFBFBD>–任务状æ€?
|
||||
GET {{baseUrl}}/api/v1/review/tasks/{{taskId}}
|
||||
Content-Type: application/json
|
||||
|
||||
### 旧版:获取报告
|
||||
### 旧版:获å<EFBFBD>–报å‘?
|
||||
GET {{baseUrl}}/api/v1/review/tasks/{{taskId}}/report
|
||||
Content-Type: application/json
|
||||
|
||||
@@ -132,3 +132,4 @@ Content-Type: application/json
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user