feat: Agent 批量测试、作业助手与上传预览;Windows 启动脚本与文档- 新增 run_agent_test_cases 与示例 JSON、(红头)agent测试用例文档
- 扩展 test_agent_execution(--homework、UTF-8 控制台) - 后端:uploads 预览、file_read、工作流与对话落盘等 - 前端:AgentChatPreview 与设计器相关调整 - 忽略 redis二进制、agent_workspaces、uploads、tessdata 等本机产物 Made-with: Cursor
This commit is contained in:
42
agent_test_cases.example.json
Normal file
42
agent_test_cases.example.json
Normal file
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"version": 1,
|
||||
"defaults": {
|
||||
"base_url": "http://localhost:8037",
|
||||
"username": "admin",
|
||||
"password": "123456",
|
||||
"request_timeout_sec": 120,
|
||||
"max_wait_sec": 300,
|
||||
"poll_interval_sec": 2
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"id": "homework-hello",
|
||||
"name": "学生作业管理助手-打招呼",
|
||||
"agent": { "name": "学生作业管理助手" },
|
||||
"message": "你好",
|
||||
"expect": {
|
||||
"status": "completed",
|
||||
"output_contains": ["作业", "助手"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "homework-by-id-smoke",
|
||||
"name": "按 ID 冒烟(请换成你环境真实 UUID)",
|
||||
"enabled": false,
|
||||
"agent": { "id": "00000000-0000-0000-0000-000000000000" },
|
||||
"message": "你好"
|
||||
},
|
||||
{
|
||||
"id": "generic-with-preview-fields",
|
||||
"name": "带预览扩展字段示例(与前端一致时可开)",
|
||||
"enabled": false,
|
||||
"agent": { "name": "你的Agent名称" },
|
||||
"message": "你好",
|
||||
"input_extra": {
|
||||
"user_id": "preview_script_user",
|
||||
"attachments": []
|
||||
},
|
||||
"expect": { "status": "completed" }
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user