@next-api-sdk/llm-sdk 1.4.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/contracts.json +2113 -42
- package/dist/cjs/api/llm/agent_flow/chatForAgentFlow.js +16 -0
- package/dist/cjs/api/llm/agent_flow/chatForAgentFlow.js.map +1 -0
- package/dist/cjs/api/llm/agent_flow/getSurveyStatus.js +16 -0
- package/dist/cjs/api/llm/agent_flow/getSurveyStatus.js.map +1 -0
- package/dist/cjs/api/llm/agent_flow/index.js +44 -0
- package/dist/cjs/api/llm/agent_flow/index.js.map +1 -1
- package/dist/cjs/api/llm/agent_flow/listAllMcpTools.js +14 -0
- package/dist/cjs/api/llm/agent_flow/listAllMcpTools.js.map +1 -0
- package/dist/cjs/api/llm/agent_flow/submitSurvey.js +16 -0
- package/dist/cjs/api/llm/agent_flow/submitSurvey.js.map +1 -0
- package/dist/cjs/api/llm/aiops_tools/templateLlmChatV2.js.map +1 -1
- package/dist/cjs/api/llm/elevo/bindProjectAiEmployees.js +14 -0
- package/dist/cjs/api/llm/elevo/bindProjectAiEmployees.js.map +1 -0
- package/dist/cjs/api/llm/elevo/bindProjectUsers.js +14 -0
- package/dist/cjs/api/llm/elevo/bindProjectUsers.js.map +1 -0
- package/dist/cjs/api/llm/elevo/createElevoAgent.js +14 -0
- package/dist/cjs/api/llm/elevo/createElevoAgent.js.map +1 -0
- package/dist/cjs/api/llm/elevo/createElevoAiEmployee.js +14 -0
- package/dist/cjs/api/llm/elevo/createElevoAiEmployee.js.map +1 -0
- package/dist/cjs/api/llm/elevo/createElevoConversation.js +14 -0
- package/dist/cjs/api/llm/elevo/createElevoConversation.js.map +1 -0
- package/dist/cjs/api/llm/elevo/createElevoProject.js +14 -0
- package/dist/cjs/api/llm/elevo/createElevoProject.js.map +1 -0
- package/dist/cjs/api/llm/elevo/deleteElevoAgent.js +14 -0
- package/dist/cjs/api/llm/elevo/deleteElevoAgent.js.map +1 -0
- package/dist/cjs/api/llm/elevo/deleteElevoAiEmployee.js +14 -0
- package/dist/cjs/api/llm/elevo/deleteElevoAiEmployee.js.map +1 -0
- package/dist/cjs/api/llm/elevo/deleteElevoProject.js +14 -0
- package/dist/cjs/api/llm/elevo/deleteElevoProject.js.map +1 -0
- package/dist/cjs/api/llm/elevo/getElevoAgent.js +14 -0
- package/dist/cjs/api/llm/elevo/getElevoAgent.js.map +1 -0
- package/dist/cjs/api/llm/elevo/getElevoAiEmployee.js +14 -0
- package/dist/cjs/api/llm/elevo/getElevoAiEmployee.js.map +1 -0
- package/dist/cjs/api/llm/elevo/getElevoConversationState.js +14 -0
- package/dist/cjs/api/llm/elevo/getElevoConversationState.js.map +1 -0
- package/dist/cjs/api/llm/elevo/getElevoConversationStream.js +19 -0
- package/dist/cjs/api/llm/elevo/getElevoConversationStream.js.map +1 -0
- package/dist/cjs/api/llm/elevo/getElevoProject.js +14 -0
- package/dist/cjs/api/llm/elevo/getElevoProject.js.map +1 -0
- package/dist/cjs/api/llm/elevo/getElevoProjects.js +17 -0
- package/dist/cjs/api/llm/elevo/getElevoProjects.js.map +1 -0
- package/dist/cjs/api/llm/elevo/index.js +303 -0
- package/dist/cjs/api/llm/elevo/index.js.map +1 -0
- package/dist/cjs/api/llm/elevo/listElevoAgents.js +17 -0
- package/dist/cjs/api/llm/elevo/listElevoAgents.js.map +1 -0
- package/dist/cjs/api/llm/elevo/listElevoAiEmployees.js +17 -0
- package/dist/cjs/api/llm/elevo/listElevoAiEmployees.js.map +1 -0
- package/dist/cjs/api/llm/elevo/listElevoAiEmployeesByProject.js +17 -0
- package/dist/cjs/api/llm/elevo/listElevoAiEmployeesByProject.js.map +1 -0
- package/dist/cjs/api/llm/elevo/listElevoConversations.js +17 -0
- package/dist/cjs/api/llm/elevo/listElevoConversations.js.map +1 -0
- package/dist/cjs/api/llm/elevo/listUsersByProject.js +17 -0
- package/dist/cjs/api/llm/elevo/listUsersByProject.js.map +1 -0
- package/dist/cjs/api/llm/elevo/sendElevoMessage.js +16 -0
- package/dist/cjs/api/llm/elevo/sendElevoMessage.js.map +1 -0
- package/dist/cjs/api/llm/elevo/terminateElevoConversation.js +14 -0
- package/dist/cjs/api/llm/elevo/terminateElevoConversation.js.map +1 -0
- package/dist/cjs/api/llm/elevo/unbindProjectAiEmployees.js +14 -0
- package/dist/cjs/api/llm/elevo/unbindProjectAiEmployees.js.map +1 -0
- package/dist/cjs/api/llm/elevo/unbindProjectUsers.js +14 -0
- package/dist/cjs/api/llm/elevo/unbindProjectUsers.js.map +1 -0
- package/dist/cjs/api/llm/elevo/updateElevoAgent.js +14 -0
- package/dist/cjs/api/llm/elevo/updateElevoAgent.js.map +1 -0
- package/dist/cjs/api/llm/elevo/updateElevoAiEmployee.js +14 -0
- package/dist/cjs/api/llm/elevo/updateElevoAiEmployee.js.map +1 -0
- package/dist/cjs/api/llm/elevo/updateElevoProject.js +14 -0
- package/dist/cjs/api/llm/elevo/updateElevoProject.js.map +1 -0
- package/dist/cjs/api/llm/webhook/alertWebhook.js +14 -0
- package/dist/cjs/api/llm/webhook/alertWebhook.js.map +1 -0
- package/dist/cjs/api/llm/webhook/index.js +17 -0
- package/dist/cjs/api/llm/webhook/index.js.map +1 -0
- package/dist/cjs/index.js +30 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/model/aiops_service/ModelLlmChatMessage.js.map +1 -1
- package/dist/cjs/model/aiops_service/ModelLlmChatResponse.js.map +1 -1
- package/dist/cjs/model/common/ModelIcon.js +6 -0
- package/dist/cjs/model/common/ModelIcon.js.map +1 -0
- package/dist/cjs/model/common/index.js +17 -0
- package/dist/cjs/model/common/index.js.map +1 -0
- package/dist/cjs/model/llm/ModelElevoAgent.js +6 -0
- package/dist/cjs/model/llm/ModelElevoAgent.js.map +1 -0
- package/dist/cjs/model/llm/ModelElevoAiEmployee.js +6 -0
- package/dist/cjs/model/llm/ModelElevoAiEmployee.js.map +1 -0
- package/dist/cjs/model/llm/ModelElevoConversionResponse.js +6 -0
- package/dist/cjs/model/llm/ModelElevoConversionResponse.js.map +1 -0
- package/dist/cjs/model/llm/ModelElevoProject.js +6 -0
- package/dist/cjs/model/llm/ModelElevoProject.js.map +1 -0
- package/dist/cjs/model/llm/ModelLlmKnowledgeBase.js +6 -0
- package/dist/cjs/model/llm/ModelLlmKnowledgeBase.js.map +1 -0
- package/dist/cjs/model/llm/ModelModelConfig.js +6 -0
- package/dist/cjs/model/llm/ModelModelConfig.js.map +1 -0
- package/dist/cjs/model/llm/index.js +66 -0
- package/dist/cjs/model/llm/index.js.map +1 -1
- package/dist/esm/api/llm/agent_flow/chatForAgentFlow.js +10 -0
- package/dist/esm/api/llm/agent_flow/chatForAgentFlow.js.map +1 -0
- package/dist/esm/api/llm/agent_flow/getSurveyStatus.js +10 -0
- package/dist/esm/api/llm/agent_flow/getSurveyStatus.js.map +1 -0
- package/dist/esm/api/llm/agent_flow/index.js +4 -0
- package/dist/esm/api/llm/agent_flow/index.js.map +1 -1
- package/dist/esm/api/llm/agent_flow/listAllMcpTools.js +7 -0
- package/dist/esm/api/llm/agent_flow/listAllMcpTools.js.map +1 -0
- package/dist/esm/api/llm/agent_flow/submitSurvey.js +10 -0
- package/dist/esm/api/llm/agent_flow/submitSurvey.js.map +1 -0
- package/dist/esm/api/llm/aiops_tools/templateLlmChatV2.js.map +1 -1
- package/dist/esm/api/llm/elevo/bindProjectAiEmployees.js +7 -0
- package/dist/esm/api/llm/elevo/bindProjectAiEmployees.js.map +1 -0
- package/dist/esm/api/llm/elevo/bindProjectUsers.js +7 -0
- package/dist/esm/api/llm/elevo/bindProjectUsers.js.map +1 -0
- package/dist/esm/api/llm/elevo/createElevoAgent.js +7 -0
- package/dist/esm/api/llm/elevo/createElevoAgent.js.map +1 -0
- package/dist/esm/api/llm/elevo/createElevoAiEmployee.js +7 -0
- package/dist/esm/api/llm/elevo/createElevoAiEmployee.js.map +1 -0
- package/dist/esm/api/llm/elevo/createElevoConversation.js +7 -0
- package/dist/esm/api/llm/elevo/createElevoConversation.js.map +1 -0
- package/dist/esm/api/llm/elevo/createElevoProject.js +7 -0
- package/dist/esm/api/llm/elevo/createElevoProject.js.map +1 -0
- package/dist/esm/api/llm/elevo/deleteElevoAgent.js +8 -0
- package/dist/esm/api/llm/elevo/deleteElevoAgent.js.map +1 -0
- package/dist/esm/api/llm/elevo/deleteElevoAiEmployee.js +8 -0
- package/dist/esm/api/llm/elevo/deleteElevoAiEmployee.js.map +1 -0
- package/dist/esm/api/llm/elevo/deleteElevoProject.js +8 -0
- package/dist/esm/api/llm/elevo/deleteElevoProject.js.map +1 -0
- package/dist/esm/api/llm/elevo/getElevoAgent.js +7 -0
- package/dist/esm/api/llm/elevo/getElevoAgent.js.map +1 -0
- package/dist/esm/api/llm/elevo/getElevoAiEmployee.js +7 -0
- package/dist/esm/api/llm/elevo/getElevoAiEmployee.js.map +1 -0
- package/dist/esm/api/llm/elevo/getElevoConversationState.js +7 -0
- package/dist/esm/api/llm/elevo/getElevoConversationState.js.map +1 -0
- package/dist/esm/api/llm/elevo/getElevoConversationStream.js +13 -0
- package/dist/esm/api/llm/elevo/getElevoConversationStream.js.map +1 -0
- package/dist/esm/api/llm/elevo/getElevoProject.js +7 -0
- package/dist/esm/api/llm/elevo/getElevoProject.js.map +1 -0
- package/dist/esm/api/llm/elevo/getElevoProjects.js +10 -0
- package/dist/esm/api/llm/elevo/getElevoProjects.js.map +1 -0
- package/dist/esm/api/llm/elevo/index.js +28 -0
- package/dist/esm/api/llm/elevo/index.js.map +1 -0
- package/dist/esm/api/llm/elevo/listElevoAgents.js +10 -0
- package/dist/esm/api/llm/elevo/listElevoAgents.js.map +1 -0
- package/dist/esm/api/llm/elevo/listElevoAiEmployees.js +10 -0
- package/dist/esm/api/llm/elevo/listElevoAiEmployees.js.map +1 -0
- package/dist/esm/api/llm/elevo/listElevoAiEmployeesByProject.js +10 -0
- package/dist/esm/api/llm/elevo/listElevoAiEmployeesByProject.js.map +1 -0
- package/dist/esm/api/llm/elevo/listElevoConversations.js +10 -0
- package/dist/esm/api/llm/elevo/listElevoConversations.js.map +1 -0
- package/dist/esm/api/llm/elevo/listUsersByProject.js +10 -0
- package/dist/esm/api/llm/elevo/listUsersByProject.js.map +1 -0
- package/dist/esm/api/llm/elevo/sendElevoMessage.js +10 -0
- package/dist/esm/api/llm/elevo/sendElevoMessage.js.map +1 -0
- package/dist/esm/api/llm/elevo/terminateElevoConversation.js +7 -0
- package/dist/esm/api/llm/elevo/terminateElevoConversation.js.map +1 -0
- package/dist/esm/api/llm/elevo/unbindProjectAiEmployees.js +7 -0
- package/dist/esm/api/llm/elevo/unbindProjectAiEmployees.js.map +1 -0
- package/dist/esm/api/llm/elevo/unbindProjectUsers.js +7 -0
- package/dist/esm/api/llm/elevo/unbindProjectUsers.js.map +1 -0
- package/dist/esm/api/llm/elevo/updateElevoAgent.js +7 -0
- package/dist/esm/api/llm/elevo/updateElevoAgent.js.map +1 -0
- package/dist/esm/api/llm/elevo/updateElevoAiEmployee.js +7 -0
- package/dist/esm/api/llm/elevo/updateElevoAiEmployee.js.map +1 -0
- package/dist/esm/api/llm/elevo/updateElevoProject.js +7 -0
- package/dist/esm/api/llm/elevo/updateElevoProject.js.map +1 -0
- package/dist/esm/api/llm/webhook/alertWebhook.js +7 -0
- package/dist/esm/api/llm/webhook/alertWebhook.js.map +1 -0
- package/dist/esm/api/llm/webhook/index.js +2 -0
- package/dist/esm/api/llm/webhook/index.js.map +1 -0
- package/dist/esm/index.js +4 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/model/aiops_service/ModelLlmChatMessage.js.map +1 -1
- package/dist/esm/model/aiops_service/ModelLlmChatResponse.js.map +1 -1
- package/dist/esm/model/common/ModelIcon.js +2 -0
- package/dist/esm/model/common/ModelIcon.js.map +1 -0
- package/dist/esm/model/common/index.js +2 -0
- package/dist/esm/model/common/index.js.map +1 -0
- package/dist/esm/model/llm/ModelElevoAgent.js +2 -0
- package/dist/esm/model/llm/ModelElevoAgent.js.map +1 -0
- package/dist/esm/model/llm/ModelElevoAiEmployee.js +2 -0
- package/dist/esm/model/llm/ModelElevoAiEmployee.js.map +1 -0
- package/dist/esm/model/llm/ModelElevoConversionResponse.js +2 -0
- package/dist/esm/model/llm/ModelElevoConversionResponse.js.map +1 -0
- package/dist/esm/model/llm/ModelElevoProject.js +2 -0
- package/dist/esm/model/llm/ModelElevoProject.js.map +1 -0
- package/dist/esm/model/llm/ModelLlmKnowledgeBase.js +2 -0
- package/dist/esm/model/llm/ModelLlmKnowledgeBase.js.map +1 -0
- package/dist/esm/model/llm/ModelModelConfig.js +2 -0
- package/dist/esm/model/llm/ModelModelConfig.js.map +1 -0
- package/dist/esm/model/llm/index.js +6 -0
- package/dist/esm/model/llm/index.js.map +1 -1
- package/dist/types/api/llm/agent_flow/chatForAgentFlow.d.ts +19 -0
- package/dist/types/api/llm/agent_flow/getSurveyStatus.d.ts +15 -0
- package/dist/types/api/llm/agent_flow/index.d.ts +4 -0
- package/dist/types/api/llm/agent_flow/listAllMcpTools.d.ts +26 -0
- package/dist/types/api/llm/agent_flow/submitSurvey.d.ts +21 -0
- package/dist/types/api/llm/aiops_tools/templateLlmChatV2.d.ts +4 -0
- package/dist/types/api/llm/elevo/bindProjectAiEmployees.d.ts +10 -0
- package/dist/types/api/llm/elevo/bindProjectUsers.d.ts +14 -0
- package/dist/types/api/llm/elevo/createElevoAgent.d.ts +9 -0
- package/dist/types/api/llm/elevo/createElevoAiEmployee.d.ts +9 -0
- package/dist/types/api/llm/elevo/createElevoConversation.d.ts +24 -0
- package/dist/types/api/llm/elevo/createElevoProject.d.ts +18 -0
- package/dist/types/api/llm/elevo/deleteElevoAgent.d.ts +6 -0
- package/dist/types/api/llm/elevo/deleteElevoAiEmployee.d.ts +6 -0
- package/dist/types/api/llm/elevo/deleteElevoProject.d.ts +6 -0
- package/dist/types/api/llm/elevo/getElevoAgent.d.ts +8 -0
- package/dist/types/api/llm/elevo/getElevoAiEmployee.d.ts +8 -0
- package/dist/types/api/llm/elevo/getElevoConversationState.d.ts +14 -0
- package/dist/types/api/llm/elevo/getElevoConversationStream.d.ts +17 -0
- package/dist/types/api/llm/elevo/getElevoProject.d.ts +8 -0
- package/dist/types/api/llm/elevo/getElevoProjects.d.ts +20 -0
- package/dist/types/api/llm/elevo/index.d.ts +27 -0
- package/dist/types/api/llm/elevo/listElevoAgents.d.ts +20 -0
- package/dist/types/api/llm/elevo/listElevoAiEmployees.d.ts +22 -0
- package/dist/types/api/llm/elevo/listElevoAiEmployeesByProject.d.ts +20 -0
- package/dist/types/api/llm/elevo/listElevoConversations.d.ts +54 -0
- package/dist/types/api/llm/elevo/listUsersByProject.d.ts +28 -0
- package/dist/types/api/llm/elevo/sendElevoMessage.d.ts +17 -0
- package/dist/types/api/llm/elevo/terminateElevoConversation.d.ts +14 -0
- package/dist/types/api/llm/elevo/unbindProjectAiEmployees.d.ts +10 -0
- package/dist/types/api/llm/elevo/unbindProjectUsers.d.ts +10 -0
- package/dist/types/api/llm/elevo/updateElevoAgent.d.ts +9 -0
- package/dist/types/api/llm/elevo/updateElevoAiEmployee.d.ts +9 -0
- package/dist/types/api/llm/elevo/updateElevoProject.d.ts +18 -0
- package/dist/types/api/llm/webhook/alertWebhook.d.ts +32 -0
- package/dist/types/api/llm/webhook/index.d.ts +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/model/aiops_service/ModelLlmChatMessage.d.ts +2 -0
- package/dist/types/model/aiops_service/ModelLlmChatResponse.d.ts +2 -0
- package/dist/types/model/common/ModelIcon.d.ts +13 -0
- package/dist/types/model/common/index.d.ts +1 -0
- package/dist/types/model/llm/ModelElevoAgent.d.ts +33 -0
- package/dist/types/model/llm/ModelElevoAiEmployee.d.ts +40 -0
- package/dist/types/model/llm/ModelElevoConversionResponse.d.ts +13 -0
- package/dist/types/model/llm/ModelElevoProject.d.ts +21 -0
- package/dist/types/model/llm/ModelLlmKnowledgeBase.d.ts +14 -0
- package/dist/types/model/llm/ModelModelConfig.d.ts +19 -0
- package/dist/types/model/llm/index.d.ts +6 -0
- package/package.json +2 -2
package/contracts.json
CHANGED
|
@@ -252,6 +252,131 @@
|
|
|
252
252
|
}
|
|
253
253
|
]
|
|
254
254
|
},
|
|
255
|
+
{
|
|
256
|
+
"contract": "llm.agent_flow.ChatForAgentFlow",
|
|
257
|
+
"name": "ChatForAgentFlow",
|
|
258
|
+
"version": "1.0.0",
|
|
259
|
+
"description": "agent flow 连续对话聊天, 流式返回, 则继续执行任务。只返回新的消息",
|
|
260
|
+
"endpoint": {
|
|
261
|
+
"method": "POST",
|
|
262
|
+
"uri": "/api/v1/llm/agent/flow/chat"
|
|
263
|
+
},
|
|
264
|
+
"import": [
|
|
265
|
+
"easyops/model/llm/flow_agent_task_response"
|
|
266
|
+
],
|
|
267
|
+
"request": {
|
|
268
|
+
"type": "object",
|
|
269
|
+
"fields": [
|
|
270
|
+
{
|
|
271
|
+
"name": "input",
|
|
272
|
+
"type": "string",
|
|
273
|
+
"description": "用户输入"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"name": "taskId",
|
|
277
|
+
"type": "string",
|
|
278
|
+
"description": "任务id, 如果为空, 则创建新任务"
|
|
279
|
+
}
|
|
280
|
+
],
|
|
281
|
+
"required": [
|
|
282
|
+
"input",
|
|
283
|
+
"taskId"
|
|
284
|
+
]
|
|
285
|
+
},
|
|
286
|
+
"response": {
|
|
287
|
+
"type": "object",
|
|
288
|
+
"description": "流式返回的数据",
|
|
289
|
+
"fields": [
|
|
290
|
+
{
|
|
291
|
+
"ref": "FlowAgentTaskResponse.*"
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"name": "sseDataList",
|
|
295
|
+
"type": "value[]",
|
|
296
|
+
"description": "流式数据列表"
|
|
297
|
+
}
|
|
298
|
+
]
|
|
299
|
+
},
|
|
300
|
+
"examples": [
|
|
301
|
+
{
|
|
302
|
+
"description": {
|
|
303
|
+
"zh": "创建agent flow的任务"
|
|
304
|
+
},
|
|
305
|
+
"request": {
|
|
306
|
+
"method": "POST",
|
|
307
|
+
"uri": "http://ip:port/api/v1/llm/agent/flow/create",
|
|
308
|
+
"headers": {
|
|
309
|
+
"Content-Type": "application/json",
|
|
310
|
+
"user": "linus",
|
|
311
|
+
"org": 1234
|
|
312
|
+
},
|
|
313
|
+
"body": "{\n \"input\": \"今天深圳天气\",\n \"taskId\": \"a8239375684858666781\"\n}"
|
|
314
|
+
},
|
|
315
|
+
"response": {
|
|
316
|
+
"headers": {
|
|
317
|
+
"Content-Type": "application/json; charset=utf-8"
|
|
318
|
+
},
|
|
319
|
+
"status_code": 200,
|
|
320
|
+
"body": "data: {\"id\":\"a8239375684858666781\", \"state\":\"working\",\"plan\":[{\"id\":\"job_1\",\"instruction\":\"查询城市码\"},{\"id\":\"job_2\",\"instruction\":\"通过城市码查询城市天气\"}]}\\n\\n data: {\"jobs\":[{\"id\":\"job_1\",\"instruction\":\"查询城市码\",\"state\":\"working\",\"toolCall\":{\"name\":\"search_city_code\",\"arguments\":{\"city\":\"深圳\"}}}]}\\n\\n data: {\"jobs\":[{\"id\":\"job_1\",\"state\":\"completed\",\"messages\":[{\"role\":\"assistant\",\"parts\":[{\"type\":\"text\",\"text\":\"SZX\"}]}]}]}\\n\\n data: {\"jobs\":[{\"id\":\"job_2\",\"instruction\":\"通过城市码查询城市天气\",\"state\":\"working\",\"toolCall\":{\"name\":\"search_weather\",\"arguments\":{\"city\":\"SZX\"}}}]}\\n\\n\ndata: [DONE]"
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
]
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"contract": "llm.agent_flow.GetSurveyStatus",
|
|
327
|
+
"name": "GetSurveyStatus",
|
|
328
|
+
"version": "1.0.0",
|
|
329
|
+
"description": "获取agent flow问卷填写状态",
|
|
330
|
+
"endpoint": {
|
|
331
|
+
"method": "POST",
|
|
332
|
+
"uri": "/api/v1/llm/agent/flow/get_survey_status"
|
|
333
|
+
},
|
|
334
|
+
"request": {
|
|
335
|
+
"type": "object",
|
|
336
|
+
"fields": [
|
|
337
|
+
{
|
|
338
|
+
"name": "taskId",
|
|
339
|
+
"type": "string",
|
|
340
|
+
"description": "任务id"
|
|
341
|
+
}
|
|
342
|
+
]
|
|
343
|
+
},
|
|
344
|
+
"response": {
|
|
345
|
+
"type": "object",
|
|
346
|
+
"description": "是否完成填写",
|
|
347
|
+
"fields": [
|
|
348
|
+
{
|
|
349
|
+
"name": "done",
|
|
350
|
+
"type": "bool",
|
|
351
|
+
"description": "是否完成填写"
|
|
352
|
+
}
|
|
353
|
+
]
|
|
354
|
+
},
|
|
355
|
+
"examples": [
|
|
356
|
+
{
|
|
357
|
+
"description": {
|
|
358
|
+
"zh": "获取问卷填写状态"
|
|
359
|
+
},
|
|
360
|
+
"request": {
|
|
361
|
+
"method": "POST",
|
|
362
|
+
"uri": "http://ip:port/api/v1/llm/agent/flow/get_survey_status",
|
|
363
|
+
"headers": {
|
|
364
|
+
"Content-Type": "application/json",
|
|
365
|
+
"user": "linus",
|
|
366
|
+
"org": 1234
|
|
367
|
+
},
|
|
368
|
+
"body": "{\n \"taskId\": \"111\"\n}"
|
|
369
|
+
},
|
|
370
|
+
"response": {
|
|
371
|
+
"headers": {
|
|
372
|
+
"Content-Type": "application/json; charset=utf-8"
|
|
373
|
+
},
|
|
374
|
+
"status_code": 200,
|
|
375
|
+
"body": "{\n \"done\": true\n}"
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
]
|
|
379
|
+
},
|
|
255
380
|
{
|
|
256
381
|
"contract": "llm.agent_flow.GetTaskDetailForAgentFlow",
|
|
257
382
|
"name": "GetTaskDetailForAgentFlow",
|
|
@@ -313,6 +438,83 @@
|
|
|
313
438
|
}
|
|
314
439
|
]
|
|
315
440
|
},
|
|
441
|
+
{
|
|
442
|
+
"contract": "llm.agent_flow.ListAllMcpTools",
|
|
443
|
+
"name": "ListAllMcpTools",
|
|
444
|
+
"version": "1.0.0",
|
|
445
|
+
"description": "列出所有mcp工具",
|
|
446
|
+
"endpoint": {
|
|
447
|
+
"method": "POST",
|
|
448
|
+
"uri": "/api/v1/llm/agent/flow/mcp_tools/list_all"
|
|
449
|
+
},
|
|
450
|
+
"request": null,
|
|
451
|
+
"response": {
|
|
452
|
+
"type": "object",
|
|
453
|
+
"fields": [
|
|
454
|
+
{
|
|
455
|
+
"name": "data",
|
|
456
|
+
"type": "object[]",
|
|
457
|
+
"description": "mcp工具列表",
|
|
458
|
+
"fields": [
|
|
459
|
+
{
|
|
460
|
+
"name": "name",
|
|
461
|
+
"type": "string",
|
|
462
|
+
"description": "mcp工具名称"
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
"name": "description",
|
|
466
|
+
"type": "string",
|
|
467
|
+
"description": "mcp工具描述"
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
"name": "title",
|
|
471
|
+
"type": "string",
|
|
472
|
+
"description": "mcp工具标题"
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
"name": "server",
|
|
476
|
+
"type": "object",
|
|
477
|
+
"description": "mcp工具server",
|
|
478
|
+
"fields": [
|
|
479
|
+
{
|
|
480
|
+
"name": "id",
|
|
481
|
+
"type": "string",
|
|
482
|
+
"description": "mcp工具server id"
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
"name": "name",
|
|
486
|
+
"type": "string",
|
|
487
|
+
"description": "mcp工具server name"
|
|
488
|
+
}
|
|
489
|
+
]
|
|
490
|
+
}
|
|
491
|
+
]
|
|
492
|
+
}
|
|
493
|
+
]
|
|
494
|
+
},
|
|
495
|
+
"examples": [
|
|
496
|
+
{
|
|
497
|
+
"description": {
|
|
498
|
+
"en": "list all mcp tools",
|
|
499
|
+
"zh": "列出所有mcp工具"
|
|
500
|
+
},
|
|
501
|
+
"request": {
|
|
502
|
+
"method": "POST",
|
|
503
|
+
"uri": "/api/v1/llm/agent/flow/mcp_tools/list_all",
|
|
504
|
+
"headers": {
|
|
505
|
+
"Content-Type": "application/json"
|
|
506
|
+
},
|
|
507
|
+
"body": "{ }"
|
|
508
|
+
},
|
|
509
|
+
"response": {
|
|
510
|
+
"headers": {
|
|
511
|
+
"Content-Type": "application/json; charset=utf-8"
|
|
512
|
+
},
|
|
513
|
+
"body": "{\n \"code\": 0,\n \"codeExplain\": \"\",\n \"error\": \"\",\n \"data\": [\n {\n \"name\": \"mcp_tools_name\",\n \"description\": \"mcp_tools_description\",\n \"title\": \"mcp_tools_title\",\n \"server\": {\n \"id\": \"mcp_tools_server_id\",\n \"name\": \"mcp_tools_server_name\"\n }\n }\n ]\n}"
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
]
|
|
517
|
+
},
|
|
316
518
|
{
|
|
317
519
|
"contract": "llm.agent_flow.SearchTaskForAgentFlow",
|
|
318
520
|
"name": "SearchTaskForAgentFlow",
|
|
@@ -412,6 +614,76 @@
|
|
|
412
614
|
}
|
|
413
615
|
]
|
|
414
616
|
},
|
|
617
|
+
{
|
|
618
|
+
"contract": "llm.agent_flow.SubmitSurvey",
|
|
619
|
+
"name": "SubmitSurvey",
|
|
620
|
+
"version": "1.0.0",
|
|
621
|
+
"description": "填写agent flow问卷",
|
|
622
|
+
"endpoint": {
|
|
623
|
+
"method": "POST",
|
|
624
|
+
"uri": "/api/v1/llm/agent/flow/submit_survey"
|
|
625
|
+
},
|
|
626
|
+
"request": {
|
|
627
|
+
"type": "object",
|
|
628
|
+
"fields": [
|
|
629
|
+
{
|
|
630
|
+
"name": "taskId",
|
|
631
|
+
"type": "string",
|
|
632
|
+
"description": "任务id"
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
"name": "plan",
|
|
636
|
+
"type": "string[]",
|
|
637
|
+
"description": "对plan的评价"
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
"name": "result",
|
|
641
|
+
"type": "string[]",
|
|
642
|
+
"description": "对结论的评价"
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
"name": "feedback",
|
|
646
|
+
"type": "string",
|
|
647
|
+
"description": "用户反馈"
|
|
648
|
+
}
|
|
649
|
+
]
|
|
650
|
+
},
|
|
651
|
+
"response": {
|
|
652
|
+
"type": "object",
|
|
653
|
+
"description": "是否完成填写",
|
|
654
|
+
"fields": [
|
|
655
|
+
{
|
|
656
|
+
"name": "done",
|
|
657
|
+
"type": "bool",
|
|
658
|
+
"description": "是否完成填写"
|
|
659
|
+
}
|
|
660
|
+
]
|
|
661
|
+
},
|
|
662
|
+
"examples": [
|
|
663
|
+
{
|
|
664
|
+
"description": {
|
|
665
|
+
"zh": "填写调查问卷"
|
|
666
|
+
},
|
|
667
|
+
"request": {
|
|
668
|
+
"method": "POST",
|
|
669
|
+
"uri": "http://ip:port/api/v1/llm/agent/flow/submit_survey",
|
|
670
|
+
"headers": {
|
|
671
|
+
"Content-Type": "application/json",
|
|
672
|
+
"user": "linus",
|
|
673
|
+
"org": 1234
|
|
674
|
+
},
|
|
675
|
+
"body": "{\n \"taskId\": \"111\",\n \"plan\": [\"还行\"],\n \"result\": [\"还行\"],\n \"feedback\": \"还有改进空间\"\n}"
|
|
676
|
+
},
|
|
677
|
+
"response": {
|
|
678
|
+
"headers": {
|
|
679
|
+
"Content-Type": "application/json; charset=utf-8"
|
|
680
|
+
},
|
|
681
|
+
"status_code": 200,
|
|
682
|
+
"body": "{\n \"done\": true\n}"
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
]
|
|
686
|
+
},
|
|
415
687
|
{
|
|
416
688
|
"contract": "llm.agent_flow.UpdateStateForAgentFlow",
|
|
417
689
|
"name": "UpdateStateForAgentFlow",
|
|
@@ -3668,6 +3940,11 @@
|
|
|
3668
3940
|
"description": "输入的图片url",
|
|
3669
3941
|
"name": "images",
|
|
3670
3942
|
"type": "string[]"
|
|
3943
|
+
},
|
|
3944
|
+
{
|
|
3945
|
+
"description": "请求最大 token 数",
|
|
3946
|
+
"name": "maxTokens",
|
|
3947
|
+
"type": "int"
|
|
3671
3948
|
}
|
|
3672
3949
|
],
|
|
3673
3950
|
"required": [],
|
|
@@ -3685,6 +3962,11 @@
|
|
|
3685
3962
|
"name": "data",
|
|
3686
3963
|
"type": "value"
|
|
3687
3964
|
},
|
|
3965
|
+
{
|
|
3966
|
+
"description": "推理模型的推理内容",
|
|
3967
|
+
"name": "reasoning_content",
|
|
3968
|
+
"type": "string"
|
|
3969
|
+
},
|
|
3688
3970
|
{
|
|
3689
3971
|
"description": "调试时大模型返回值",
|
|
3690
3972
|
"name": "debug_resp",
|
|
@@ -3724,67 +4006,1757 @@
|
|
|
3724
4006
|
]
|
|
3725
4007
|
},
|
|
3726
4008
|
{
|
|
3727
|
-
"contract": "llm.
|
|
3728
|
-
"name": "
|
|
4009
|
+
"contract": "llm.elevo.BindProjectAiEmployees",
|
|
4010
|
+
"name": "BindProjectAiEmployees",
|
|
3729
4011
|
"version": "1.0.0",
|
|
3730
|
-
"description": "
|
|
4012
|
+
"description": "绑定项目与数字人关系",
|
|
3731
4013
|
"endpoint": {
|
|
3732
4014
|
"method": "POST",
|
|
3733
|
-
"uri": "/api/v1/
|
|
4015
|
+
"uri": "/api/v1/elevo/projects/:projectInstanceId/bind-ai-employees"
|
|
3734
4016
|
},
|
|
3735
4017
|
"request": {
|
|
3736
4018
|
"type": "object",
|
|
3737
4019
|
"fields": [
|
|
3738
4020
|
{
|
|
3739
|
-
"name": "
|
|
4021
|
+
"name": "projectInstanceId",
|
|
3740
4022
|
"type": "string",
|
|
3741
|
-
"description": "
|
|
4023
|
+
"description": "项目实例ID"
|
|
3742
4024
|
},
|
|
3743
4025
|
{
|
|
3744
|
-
"name": "
|
|
3745
|
-
"type": "string",
|
|
3746
|
-
"description": "
|
|
4026
|
+
"name": "aiEmployeeInstanceIds",
|
|
4027
|
+
"type": "string[]",
|
|
4028
|
+
"description": "数字人实例ID列表"
|
|
3747
4029
|
}
|
|
3748
4030
|
],
|
|
3749
4031
|
"required": [
|
|
3750
|
-
"
|
|
3751
|
-
|
|
3752
|
-
},
|
|
3753
|
-
"response": {
|
|
3754
|
-
"type": "object",
|
|
3755
|
-
"fields": [
|
|
3756
|
-
{
|
|
3757
|
-
"name": "outputs",
|
|
3758
|
-
"type": "object[]",
|
|
3759
|
-
"description": "llm的输出",
|
|
3760
|
-
"fields": [
|
|
3761
|
-
{
|
|
3762
|
-
"name": "type",
|
|
3763
|
-
"type": "string",
|
|
3764
|
-
"enum": [
|
|
3765
|
-
"markdown",
|
|
3766
|
-
"storyboard"
|
|
3767
|
-
],
|
|
3768
|
-
"description": "输出内容的类型,markdown或者storyboard"
|
|
3769
|
-
},
|
|
3770
|
-
{
|
|
3771
|
-
"name": "content",
|
|
3772
|
-
"type": "string",
|
|
3773
|
-
"description": "输出内容"
|
|
3774
|
-
}
|
|
3775
|
-
]
|
|
3776
|
-
},
|
|
3777
|
-
{
|
|
3778
|
-
"name": "sessionId",
|
|
3779
|
-
"type": "string",
|
|
3780
|
-
"description": "会话id"
|
|
3781
|
-
}
|
|
4032
|
+
"projectInstanceId",
|
|
4033
|
+
"aiEmployeeInstanceIds"
|
|
3782
4034
|
]
|
|
3783
4035
|
},
|
|
4036
|
+
"response": null,
|
|
3784
4037
|
"examples": [
|
|
3785
4038
|
{
|
|
3786
4039
|
"description": {
|
|
3787
|
-
"zh": "
|
|
4040
|
+
"zh": "绑定项目与数字人关系"
|
|
4041
|
+
},
|
|
4042
|
+
"request": {
|
|
4043
|
+
"method": "POST",
|
|
4044
|
+
"uri": "http://ip:port/api/v1/elevo/projects/project_123/bind-ai-employees",
|
|
4045
|
+
"headers": {
|
|
4046
|
+
"Content-Type": "application/json",
|
|
4047
|
+
"user": "linus",
|
|
4048
|
+
"org": 1234
|
|
4049
|
+
},
|
|
4050
|
+
"body": "{\n \"projectInstanceId\": \"project_123\",\n \"aiEmployeeInstanceIds\": [\"emp_001\", \"emp_002\", \"emp_003\"]\n}"
|
|
4051
|
+
},
|
|
4052
|
+
"response": {
|
|
4053
|
+
"headers": {
|
|
4054
|
+
"Content-Type": "application/json; charset=utf-8"
|
|
4055
|
+
},
|
|
4056
|
+
"status_code": 200,
|
|
4057
|
+
"body": "{\n \"code\": 0,\n \"message\": \"success\"\n}"
|
|
4058
|
+
}
|
|
4059
|
+
}
|
|
4060
|
+
]
|
|
4061
|
+
},
|
|
4062
|
+
{
|
|
4063
|
+
"contract": "llm.elevo.BindProjectUsers",
|
|
4064
|
+
"name": "BindProjectUsers",
|
|
4065
|
+
"version": "1.0.0",
|
|
4066
|
+
"description": "绑定项目与用户的关系",
|
|
4067
|
+
"endpoint": {
|
|
4068
|
+
"method": "POST",
|
|
4069
|
+
"uri": "/api/v1/elevo/project-users/:projectInstanceId/bind-users"
|
|
4070
|
+
},
|
|
4071
|
+
"request": {
|
|
4072
|
+
"type": "object",
|
|
4073
|
+
"fields": [
|
|
4074
|
+
{
|
|
4075
|
+
"name": "projectInstanceId",
|
|
4076
|
+
"type": "string",
|
|
4077
|
+
"description": "项目实例ID"
|
|
4078
|
+
},
|
|
4079
|
+
{
|
|
4080
|
+
"name": "users",
|
|
4081
|
+
"type": "object[]",
|
|
4082
|
+
"description": "用户列表",
|
|
4083
|
+
"fields": [
|
|
4084
|
+
{
|
|
4085
|
+
"name": "instanceId",
|
|
4086
|
+
"type": "string",
|
|
4087
|
+
"description": "用户的instanceId"
|
|
4088
|
+
}
|
|
4089
|
+
]
|
|
4090
|
+
}
|
|
4091
|
+
],
|
|
4092
|
+
"required": [
|
|
4093
|
+
"projectInstanceId",
|
|
4094
|
+
"users"
|
|
4095
|
+
]
|
|
4096
|
+
},
|
|
4097
|
+
"response": null,
|
|
4098
|
+
"examples": [
|
|
4099
|
+
{
|
|
4100
|
+
"description": {
|
|
4101
|
+
"zh": "绑定项目与用户的关系"
|
|
4102
|
+
},
|
|
4103
|
+
"request": {
|
|
4104
|
+
"method": "POST",
|
|
4105
|
+
"uri": "http://ip:port/api/v1/elevo/projects/project_123/bind-users",
|
|
4106
|
+
"headers": {
|
|
4107
|
+
"Content-Type": "application/json",
|
|
4108
|
+
"user": "linus",
|
|
4109
|
+
"org": 1234
|
|
4110
|
+
},
|
|
4111
|
+
"body": "{\n \"projectInstanceId\": \"project_123\",\n \"users\": [\n {\"instanceId\": \"j523532df\"}\n ]\n}"
|
|
4112
|
+
},
|
|
4113
|
+
"response": {
|
|
4114
|
+
"headers": {
|
|
4115
|
+
"Content-Type": "application/json; charset=utf-8"
|
|
4116
|
+
},
|
|
4117
|
+
"status_code": 200,
|
|
4118
|
+
"body": "{\n \"code\": 0,\n \"message\": \"success\"\n}"
|
|
4119
|
+
}
|
|
4120
|
+
}
|
|
4121
|
+
]
|
|
4122
|
+
},
|
|
4123
|
+
{
|
|
4124
|
+
"contract": "llm.elevo.CreateElevoAgent",
|
|
4125
|
+
"name": "CreateElevoAgent",
|
|
4126
|
+
"version": "1.0.0",
|
|
4127
|
+
"description": "创建elevo智能体",
|
|
4128
|
+
"endpoint": {
|
|
4129
|
+
"method": "POST",
|
|
4130
|
+
"uri": "/api/v1/elevo/agents"
|
|
4131
|
+
},
|
|
4132
|
+
"import": [
|
|
4133
|
+
"easyops/model/llm/elevo_agent"
|
|
4134
|
+
],
|
|
4135
|
+
"request": {
|
|
4136
|
+
"type": "ElevoAgent"
|
|
4137
|
+
},
|
|
4138
|
+
"response": {
|
|
4139
|
+
"type": "ElevoAgent"
|
|
4140
|
+
},
|
|
4141
|
+
"examples": [
|
|
4142
|
+
{
|
|
4143
|
+
"description": {
|
|
4144
|
+
"zh": "创建elevo智能体"
|
|
4145
|
+
},
|
|
4146
|
+
"request": {
|
|
4147
|
+
"method": "POST",
|
|
4148
|
+
"uri": "http://ip:port/api/v1/elevo/agents",
|
|
4149
|
+
"headers": {
|
|
4150
|
+
"Content-Type": "application/json",
|
|
4151
|
+
"user": "linus",
|
|
4152
|
+
"org": 1234
|
|
4153
|
+
},
|
|
4154
|
+
"body": "{\n \"agentId\": \"agent_123\",\n \"name\": \"智能助手Agent\",\n \"description\": \"用于智能助手的基础Agent\",\n \"state\": \"active\",\n \"capabilities\": [\"对话\", \"分析\", \"搜索\"],\n \"mcpServers\": [\"mcp_server_1\", \"mcp_server_2\"],\n \"planTool\": \"plan_tool_id\",\n \"modelConfig\": {\n \"defaultModel\": \"gpt-4\",\n \"temperature\": 0.7,\n \"maxTokens\": 4000,\n \"baseSystemPrompt\": \"你是一个智能助手Agent\"\n }\n}"
|
|
4155
|
+
},
|
|
4156
|
+
"response": {
|
|
4157
|
+
"headers": {
|
|
4158
|
+
"Content-Type": "application/json; charset=utf-8"
|
|
4159
|
+
},
|
|
4160
|
+
"status_code": 200,
|
|
4161
|
+
"body": "{\n \"code\": 0,\n \"message\": \"success\",\n \"data\": {\n \"instanceId\": \"cmdb_instance_789\",\n \"agentId\": \"agent_123\",\n \"name\": \"智能助手Agent\",\n \"description\": \"用于智能助手的基础Agent\",\n \"state\": \"active\",\n \"capabilities\": [\"对话\", \"分析\", \"搜索\"],\n \"mcpServers\": [\"mcp_server_1\", \"mcp_server_2\"],\n \"planTool\": \"plan_tool_id\",\n \"modelConfig\": {\n \"defaultModel\": \"gpt-4\",\n \"temperature\": 0.7,\n \"maxTokens\": 4000,\n \"baseSystemPrompt\": \"你是一个智能助手Agent\"\n },\n \"creator\": \"user123\",\n \"ctime\": \"2024-01-01T00:00:00Z\",\n \"mtime\": \"2024-01-01T00:00:00Z\"\n }\n}"
|
|
4162
|
+
}
|
|
4163
|
+
}
|
|
4164
|
+
]
|
|
4165
|
+
},
|
|
4166
|
+
{
|
|
4167
|
+
"contract": "llm.elevo.CreateElevoAiEmployee",
|
|
4168
|
+
"name": "CreateElevoAiEmployee",
|
|
4169
|
+
"version": "1.0.0",
|
|
4170
|
+
"description": "创建elevo数字人",
|
|
4171
|
+
"endpoint": {
|
|
4172
|
+
"method": "POST",
|
|
4173
|
+
"uri": "/api/v1/elevo/ai-employees"
|
|
4174
|
+
},
|
|
4175
|
+
"import": [
|
|
4176
|
+
"easyops/model/llm/elevo_ai_employee"
|
|
4177
|
+
],
|
|
4178
|
+
"request": {
|
|
4179
|
+
"type": "ElevoAiEmployee"
|
|
4180
|
+
},
|
|
4181
|
+
"response": {
|
|
4182
|
+
"type": "ElevoAiEmployee"
|
|
4183
|
+
},
|
|
4184
|
+
"examples": [
|
|
4185
|
+
{
|
|
4186
|
+
"description": {
|
|
4187
|
+
"zh": "创建elevo数字人"
|
|
4188
|
+
},
|
|
4189
|
+
"request": {
|
|
4190
|
+
"method": "POST",
|
|
4191
|
+
"uri": "http://ip:port/api/v1/elevo/ai-employees",
|
|
4192
|
+
"headers": {
|
|
4193
|
+
"Content-Type": "application/json",
|
|
4194
|
+
"user": "linus",
|
|
4195
|
+
"org": 1234
|
|
4196
|
+
},
|
|
4197
|
+
"body": "{\n \"employeeId\": \"emp_123\",\n \"name\": \"数字人名称\",\n \"description\": \"数字人描述\",\n \"industry\": \"技术\",\n \"role\": \"助手\",\n \"capabilities\": [\"文档处理\", \"数据分析\", \"代码生成\"],\n \"excludeTools\": [\"工具1\", \"工具2\"],\n \"state\": \"active\",\n \"planTool\": \"plan_tool_id\",\n \"agent\": {\n \"instanceId\": \"cmdb_instance_agent_123\"\n },\n \"modelConfig\": {\n \"defaultModel\": \"gpt-4\",\n \"temperature\": 0.7,\n \"maxTokens\": 4000,\n \"baseSystemPrompt\": \"你是一个智能助手\"\n }\n}"
|
|
4198
|
+
},
|
|
4199
|
+
"response": {
|
|
4200
|
+
"headers": {
|
|
4201
|
+
"Content-Type": "application/json; charset=utf-8"
|
|
4202
|
+
},
|
|
4203
|
+
"status_code": 200,
|
|
4204
|
+
"body": "{\n \"code\": 0,\n \"message\": \"success\",\n \"data\": {\n \"instanceId\": \"cmdb_instance_456\",\n \"employeeId\": \"emp_123\",\n \"name\": \"数字人名称\",\n \"description\": \"数字人描述\",\n \"industry\": \"技术\",\n \"role\": \"助手\",\n \"capabilities\": [\"文档处理\", \"数据分析\"],\n \"excludeTools\": [\"tool1\"],\n \"state\": \"active\",\n \"planTool\": \"plan_tool_id\",\n \"creator\": \"user123\",\n \"ctime\": \"2024-01-01T00:00:00Z\",\n \"mtime\": \"2024-01-01T00:00:00Z\"\n }\n}"
|
|
4205
|
+
}
|
|
4206
|
+
}
|
|
4207
|
+
]
|
|
4208
|
+
},
|
|
4209
|
+
{
|
|
4210
|
+
"contract": "llm.elevo.CreateElevoConversation",
|
|
4211
|
+
"name": "CreateElevoConversation",
|
|
4212
|
+
"version": "1.0.0",
|
|
4213
|
+
"description": "创建elevo空会话",
|
|
4214
|
+
"endpoint": {
|
|
4215
|
+
"method": "POST",
|
|
4216
|
+
"uri": "/api/v1/elevo/conversations"
|
|
4217
|
+
},
|
|
4218
|
+
"request": {
|
|
4219
|
+
"type": "object",
|
|
4220
|
+
"fields": [
|
|
4221
|
+
{
|
|
4222
|
+
"name": "projectId",
|
|
4223
|
+
"type": "string",
|
|
4224
|
+
"description": "项目ID"
|
|
4225
|
+
},
|
|
4226
|
+
{
|
|
4227
|
+
"name": "aiEmployeeId",
|
|
4228
|
+
"type": "string",
|
|
4229
|
+
"description": "指定数字人ID(可选)"
|
|
4230
|
+
}
|
|
4231
|
+
]
|
|
4232
|
+
},
|
|
4233
|
+
"response": {
|
|
4234
|
+
"type": "object",
|
|
4235
|
+
"fields": [
|
|
4236
|
+
{
|
|
4237
|
+
"name": "conversationId",
|
|
4238
|
+
"type": "string",
|
|
4239
|
+
"description": "会话ID"
|
|
4240
|
+
},
|
|
4241
|
+
{
|
|
4242
|
+
"name": "projectId",
|
|
4243
|
+
"type": "string",
|
|
4244
|
+
"description": "项目ID"
|
|
4245
|
+
},
|
|
4246
|
+
{
|
|
4247
|
+
"name": "state",
|
|
4248
|
+
"type": "string",
|
|
4249
|
+
"description": "会话状态"
|
|
4250
|
+
},
|
|
4251
|
+
{
|
|
4252
|
+
"name": "title",
|
|
4253
|
+
"type": "string",
|
|
4254
|
+
"description": "标题"
|
|
4255
|
+
},
|
|
4256
|
+
{
|
|
4257
|
+
"name": "aiEmployeeId",
|
|
4258
|
+
"type": "string",
|
|
4259
|
+
"description": "分配的数字人ID"
|
|
4260
|
+
}
|
|
4261
|
+
]
|
|
4262
|
+
},
|
|
4263
|
+
"examples": [
|
|
4264
|
+
{
|
|
4265
|
+
"description": {
|
|
4266
|
+
"zh": "创建elevo空会话"
|
|
4267
|
+
},
|
|
4268
|
+
"request": {
|
|
4269
|
+
"method": "POST",
|
|
4270
|
+
"uri": "http://ip:port/api/v1/elevo/conversations",
|
|
4271
|
+
"headers": {
|
|
4272
|
+
"Content-Type": "application/json",
|
|
4273
|
+
"user": "linus",
|
|
4274
|
+
"org": 1234
|
|
4275
|
+
},
|
|
4276
|
+
"body": "{\n \"projectId\": \"project_123\",\n \"aiEmployeeId\": \"emp_123\"\n}"
|
|
4277
|
+
},
|
|
4278
|
+
"response": {
|
|
4279
|
+
"headers": {
|
|
4280
|
+
"Content-Type": "application/json; charset=utf-8"
|
|
4281
|
+
},
|
|
4282
|
+
"status_code": 200,
|
|
4283
|
+
"body": "{\n \"code\": 0,\n \"message\": \"success\",\n \"data\": {\n \"conversationId\": \"conv_123\",\n \"projectId\": \"project_123\",\n \"state\": \"submitted\",\n \"title\": \"\",\n \"aiEmployeeId\": \"emp_123\"\n }\n}"
|
|
4284
|
+
}
|
|
4285
|
+
}
|
|
4286
|
+
]
|
|
4287
|
+
},
|
|
4288
|
+
{
|
|
4289
|
+
"contract": "llm.elevo.CreateElevoProject",
|
|
4290
|
+
"name": "CreateElevoProject",
|
|
4291
|
+
"version": "1.0.0",
|
|
4292
|
+
"description": "创建elevo项目",
|
|
4293
|
+
"endpoint": {
|
|
4294
|
+
"method": "POST",
|
|
4295
|
+
"uri": "/api/v1/elevo/projects"
|
|
4296
|
+
},
|
|
4297
|
+
"import": [
|
|
4298
|
+
"easyops/model/llm/elevo_project"
|
|
4299
|
+
],
|
|
4300
|
+
"request": {
|
|
4301
|
+
"type": "object",
|
|
4302
|
+
"fields": [
|
|
4303
|
+
{
|
|
4304
|
+
"name": "name",
|
|
4305
|
+
"type": "string",
|
|
4306
|
+
"description": "项目名称"
|
|
4307
|
+
},
|
|
4308
|
+
{
|
|
4309
|
+
"name": "description",
|
|
4310
|
+
"type": "string",
|
|
4311
|
+
"description": "项目描述"
|
|
4312
|
+
},
|
|
4313
|
+
{
|
|
4314
|
+
"name": "defaultAiEmployeeId",
|
|
4315
|
+
"type": "string",
|
|
4316
|
+
"description": "默认数字人ID"
|
|
4317
|
+
},
|
|
4318
|
+
{
|
|
4319
|
+
"name": "state",
|
|
4320
|
+
"type": "string",
|
|
4321
|
+
"description": "状态:active, inactive"
|
|
4322
|
+
}
|
|
4323
|
+
],
|
|
4324
|
+
"required": [
|
|
4325
|
+
"name"
|
|
4326
|
+
]
|
|
4327
|
+
},
|
|
4328
|
+
"response": {
|
|
4329
|
+
"type": "ElevoProject"
|
|
4330
|
+
},
|
|
4331
|
+
"examples": [
|
|
4332
|
+
{
|
|
4333
|
+
"description": {
|
|
4334
|
+
"zh": "创建elevo项目"
|
|
4335
|
+
},
|
|
4336
|
+
"request": {
|
|
4337
|
+
"method": "POST",
|
|
4338
|
+
"uri": "http://ip:port/api/v1/elevo/projects",
|
|
4339
|
+
"headers": {
|
|
4340
|
+
"Content-Type": "application/json",
|
|
4341
|
+
"user": "linus",
|
|
4342
|
+
"org": 1234
|
|
4343
|
+
},
|
|
4344
|
+
"body": "{\n \"name\": \"项目名称\",\n \"description\": \"项目描述\",\n \"defaultAiEmployeeId\": \"ai_employee_id_1\",\n \"state\": \"active\"\n}"
|
|
4345
|
+
},
|
|
4346
|
+
"response": {
|
|
4347
|
+
"headers": {
|
|
4348
|
+
"Content-Type": "application/json; charset=utf-8"
|
|
4349
|
+
},
|
|
4350
|
+
"status_code": 200,
|
|
4351
|
+
"body": "{\n \"code\": 0,\n \"message\": \"success\",\n \"data\": {\n \"instanceId\": \"cmdb_instance_123\",\n \"name\": \"项目名称\",\n \"description\": \"项目描述\",\n \"state\": \"active\",\n \"defaultAiEmployeeId\": \"ai_employee_id_1\",\n \"creator\": \"user123\",\n \"ctime\": \"2024-01-01T00:00:00Z\",\n \"mtime\": \"2024-01-01T00:00:00Z\"\n }\n}"
|
|
4352
|
+
}
|
|
4353
|
+
}
|
|
4354
|
+
]
|
|
4355
|
+
},
|
|
4356
|
+
{
|
|
4357
|
+
"contract": "llm.elevo.DeleteElevoAgent",
|
|
4358
|
+
"name": "DeleteElevoAgent",
|
|
4359
|
+
"version": "1.0.0",
|
|
4360
|
+
"description": "删除elevo智能体",
|
|
4361
|
+
"endpoint": {
|
|
4362
|
+
"method": "DELETE",
|
|
4363
|
+
"uri": "/api/v1/elevo/agents/:instanceId"
|
|
4364
|
+
},
|
|
4365
|
+
"request": {
|
|
4366
|
+
"type": "object",
|
|
4367
|
+
"fields": [
|
|
4368
|
+
{
|
|
4369
|
+
"name": "instanceId",
|
|
4370
|
+
"type": "string",
|
|
4371
|
+
"description": "智能体实例ID"
|
|
4372
|
+
}
|
|
4373
|
+
],
|
|
4374
|
+
"required": [
|
|
4375
|
+
"instanceId"
|
|
4376
|
+
]
|
|
4377
|
+
},
|
|
4378
|
+
"response": null,
|
|
4379
|
+
"examples": [
|
|
4380
|
+
{
|
|
4381
|
+
"description": {
|
|
4382
|
+
"zh": "删除elevo智能体"
|
|
4383
|
+
},
|
|
4384
|
+
"request": {
|
|
4385
|
+
"method": "DELETE",
|
|
4386
|
+
"uri": "http://ip:port/api/v1/elevo/agents/cmdb_instance_789",
|
|
4387
|
+
"headers": {
|
|
4388
|
+
"Content-Type": "application/json",
|
|
4389
|
+
"user": "linus",
|
|
4390
|
+
"org": 1234
|
|
4391
|
+
}
|
|
4392
|
+
},
|
|
4393
|
+
"response": {
|
|
4394
|
+
"headers": {
|
|
4395
|
+
"Content-Type": "application/json; charset=utf-8"
|
|
4396
|
+
},
|
|
4397
|
+
"status_code": 200,
|
|
4398
|
+
"body": "{\n \"code\": 0,\n \"message\": \"success\"\n}"
|
|
4399
|
+
}
|
|
4400
|
+
}
|
|
4401
|
+
]
|
|
4402
|
+
},
|
|
4403
|
+
{
|
|
4404
|
+
"contract": "llm.elevo.DeleteElevoAiEmployee",
|
|
4405
|
+
"name": "DeleteElevoAiEmployee",
|
|
4406
|
+
"version": "1.0.0",
|
|
4407
|
+
"description": "删除elevo数字人",
|
|
4408
|
+
"endpoint": {
|
|
4409
|
+
"method": "DELETE",
|
|
4410
|
+
"uri": "/api/v1/elevo/ai-employees/:instanceId"
|
|
4411
|
+
},
|
|
4412
|
+
"request": {
|
|
4413
|
+
"type": "object",
|
|
4414
|
+
"fields": [
|
|
4415
|
+
{
|
|
4416
|
+
"name": "instanceId",
|
|
4417
|
+
"type": "string",
|
|
4418
|
+
"description": "数字人实例ID"
|
|
4419
|
+
}
|
|
4420
|
+
],
|
|
4421
|
+
"required": [
|
|
4422
|
+
"instanceId"
|
|
4423
|
+
]
|
|
4424
|
+
},
|
|
4425
|
+
"response": null,
|
|
4426
|
+
"examples": [
|
|
4427
|
+
{
|
|
4428
|
+
"description": {
|
|
4429
|
+
"zh": "删除elevo数字人"
|
|
4430
|
+
},
|
|
4431
|
+
"request": {
|
|
4432
|
+
"method": "DELETE",
|
|
4433
|
+
"uri": "http://ip:port/api/v1/elevo/ai-employees/cmdb_instance_456",
|
|
4434
|
+
"headers": {
|
|
4435
|
+
"Content-Type": "application/json",
|
|
4436
|
+
"user": "linus",
|
|
4437
|
+
"org": 1234
|
|
4438
|
+
}
|
|
4439
|
+
},
|
|
4440
|
+
"response": {
|
|
4441
|
+
"headers": {
|
|
4442
|
+
"Content-Type": "application/json; charset=utf-8"
|
|
4443
|
+
},
|
|
4444
|
+
"status_code": 200,
|
|
4445
|
+
"body": "{\n \"code\": 0,\n \"message\": \"success\"\n}"
|
|
4446
|
+
}
|
|
4447
|
+
}
|
|
4448
|
+
]
|
|
4449
|
+
},
|
|
4450
|
+
{
|
|
4451
|
+
"contract": "llm.elevo.DeleteElevoProject",
|
|
4452
|
+
"name": "DeleteElevoProject",
|
|
4453
|
+
"version": "1.0.0",
|
|
4454
|
+
"description": "删除elevo项目",
|
|
4455
|
+
"endpoint": {
|
|
4456
|
+
"method": "DELETE",
|
|
4457
|
+
"uri": "/api/v1/elevo/projects/:instanceId"
|
|
4458
|
+
},
|
|
4459
|
+
"request": {
|
|
4460
|
+
"type": "object",
|
|
4461
|
+
"fields": [
|
|
4462
|
+
{
|
|
4463
|
+
"name": "instanceId",
|
|
4464
|
+
"type": "string",
|
|
4465
|
+
"description": "项目实例ID"
|
|
4466
|
+
}
|
|
4467
|
+
],
|
|
4468
|
+
"required": [
|
|
4469
|
+
"instanceId"
|
|
4470
|
+
]
|
|
4471
|
+
},
|
|
4472
|
+
"response": null,
|
|
4473
|
+
"examples": [
|
|
4474
|
+
{
|
|
4475
|
+
"description": {
|
|
4476
|
+
"zh": "删除elevo项目"
|
|
4477
|
+
},
|
|
4478
|
+
"request": {
|
|
4479
|
+
"method": "DELETE",
|
|
4480
|
+
"uri": "http://ip:port/api/v1/elevo/projects/cmdb_instance_123",
|
|
4481
|
+
"headers": {
|
|
4482
|
+
"Content-Type": "application/json",
|
|
4483
|
+
"user": "linus",
|
|
4484
|
+
"org": 1234
|
|
4485
|
+
}
|
|
4486
|
+
},
|
|
4487
|
+
"response": {
|
|
4488
|
+
"headers": {
|
|
4489
|
+
"Content-Type": "application/json; charset=utf-8"
|
|
4490
|
+
},
|
|
4491
|
+
"status_code": 200,
|
|
4492
|
+
"body": "{\n \"code\": 0,\n \"message\": \"success\"\n}"
|
|
4493
|
+
}
|
|
4494
|
+
}
|
|
4495
|
+
]
|
|
4496
|
+
},
|
|
4497
|
+
{
|
|
4498
|
+
"contract": "llm.elevo.GetElevoAgent",
|
|
4499
|
+
"name": "GetElevoAgent",
|
|
4500
|
+
"version": "1.0.0",
|
|
4501
|
+
"description": "获取elevo智能体详情",
|
|
4502
|
+
"endpoint": {
|
|
4503
|
+
"method": "GET",
|
|
4504
|
+
"uri": "/api/v1/elevo/agents/:instanceId"
|
|
4505
|
+
},
|
|
4506
|
+
"import": [
|
|
4507
|
+
"easyops/model/llm/elevo_agent"
|
|
4508
|
+
],
|
|
4509
|
+
"request": {
|
|
4510
|
+
"type": "object",
|
|
4511
|
+
"fields": [
|
|
4512
|
+
{
|
|
4513
|
+
"name": "instanceId",
|
|
4514
|
+
"type": "string",
|
|
4515
|
+
"description": "智能体实例ID"
|
|
4516
|
+
}
|
|
4517
|
+
],
|
|
4518
|
+
"required": [
|
|
4519
|
+
"instanceId"
|
|
4520
|
+
]
|
|
4521
|
+
},
|
|
4522
|
+
"response": {
|
|
4523
|
+
"type": "ElevoAgent"
|
|
4524
|
+
},
|
|
4525
|
+
"examples": [
|
|
4526
|
+
{
|
|
4527
|
+
"description": {
|
|
4528
|
+
"zh": "获取elevo智能体详情"
|
|
4529
|
+
},
|
|
4530
|
+
"request": {
|
|
4531
|
+
"method": "GET",
|
|
4532
|
+
"uri": "http://ip:port/api/v1/elevo/agents/cmdb_instance_789",
|
|
4533
|
+
"headers": {
|
|
4534
|
+
"Content-Type": "application/json",
|
|
4535
|
+
"user": "linus",
|
|
4536
|
+
"org": 1234
|
|
4537
|
+
}
|
|
4538
|
+
},
|
|
4539
|
+
"response": {
|
|
4540
|
+
"headers": {
|
|
4541
|
+
"Content-Type": "application/json; charset=utf-8"
|
|
4542
|
+
},
|
|
4543
|
+
"status_code": 200,
|
|
4544
|
+
"body": "{\n \"code\": 0,\n \"message\": \"success\",\n \"data\": {\n \"instanceId\": \"cmdb_instance_789\",\n \"agentId\": \"agent_123\",\n \"name\": \"智能助手Agent\",\n \"description\": \"用于智能助手的基础Agent\",\n \"state\": \"active\",\n \"capabilities\": [\"对话\", \"分析\", \"搜索\"],\n \"mcpServers\": [\"mcp_server_1\", \"mcp_server_2\"],\n \"planTool\": \"plan_tool_id\",\n \"creator\": \"user123\",\n \"ctime\": \"2024-01-01T00:00:00Z\",\n \"mtime\": \"2024-01-01T00:00:00Z\",\n \"modifier\": \"user123\"\n }\n}"
|
|
4545
|
+
}
|
|
4546
|
+
}
|
|
4547
|
+
]
|
|
4548
|
+
},
|
|
4549
|
+
{
|
|
4550
|
+
"contract": "llm.elevo.GetElevoAiEmployee",
|
|
4551
|
+
"name": "GetElevoAiEmployee",
|
|
4552
|
+
"version": "1.0.0",
|
|
4553
|
+
"description": "获取elevo数字人详情",
|
|
4554
|
+
"endpoint": {
|
|
4555
|
+
"method": "GET",
|
|
4556
|
+
"uri": "/api/v1/elevo/ai-employees/:instanceId"
|
|
4557
|
+
},
|
|
4558
|
+
"import": [
|
|
4559
|
+
"easyops/model/llm/elevo_ai_employee"
|
|
4560
|
+
],
|
|
4561
|
+
"request": {
|
|
4562
|
+
"type": "object",
|
|
4563
|
+
"fields": [
|
|
4564
|
+
{
|
|
4565
|
+
"name": "instanceId",
|
|
4566
|
+
"type": "string",
|
|
4567
|
+
"description": "数字人实例ID"
|
|
4568
|
+
}
|
|
4569
|
+
],
|
|
4570
|
+
"required": [
|
|
4571
|
+
"instanceId"
|
|
4572
|
+
]
|
|
4573
|
+
},
|
|
4574
|
+
"response": {
|
|
4575
|
+
"type": "ElevoAiEmployee"
|
|
4576
|
+
},
|
|
4577
|
+
"examples": [
|
|
4578
|
+
{
|
|
4579
|
+
"description": {
|
|
4580
|
+
"zh": "获取elevo数字人详情"
|
|
4581
|
+
},
|
|
4582
|
+
"request": {
|
|
4583
|
+
"method": "GET",
|
|
4584
|
+
"uri": "http://ip:port/api/v1/elevo/ai-employees/cmdb_instance_456",
|
|
4585
|
+
"headers": {
|
|
4586
|
+
"Content-Type": "application/json",
|
|
4587
|
+
"user": "linus",
|
|
4588
|
+
"org": 1234
|
|
4589
|
+
}
|
|
4590
|
+
},
|
|
4591
|
+
"response": {
|
|
4592
|
+
"headers": {
|
|
4593
|
+
"Content-Type": "application/json; charset=utf-8"
|
|
4594
|
+
},
|
|
4595
|
+
"status_code": 200,
|
|
4596
|
+
"body": "{\n \"code\": 0,\n \"message\": \"success\",\n \"data\": {\n \"instanceId\": \"cmdb_instance_456\",\n \"employeeId\": \"emp_123\",\n \"name\": \"智能助手小E\",\n \"description\": \"专业的智能助手\",\n \"industry\": \"技术\",\n \"role\": \"助手\",\n \"capabilities\": [\"文档处理\", \"数据分析\"],\n \"excludeTools\": [\"tool1\"],\n \"state\": \"active\",\n \"planTool\": \"plan_tool_id\",\n \"agent\": {\n \"instanceId\": \"agent_instance_789\",\n \"agentId\": \"agent_123\",\n \"name\": \"基础Agent\",\n \"description\": \"基础智能体\",\n \"state\": \"active\",\n \"capabilities\": [\"对话\", \"分析\"],\n \"mcpServers\": [\"server1\"],\n \"planTool\": \"plan_tool_id\"\n },\n \"modelConfig\": {\n \"defaultModel\": \"gpt-4\",\n \"temperature\": 0.7,\n \"maxTokens\": 4000,\n \"baseSystemPrompt\": \"你是一个智能助手\"\n },\n \"creator\": \"user123\",\n \"ctime\": \"2024-01-01T00:00:00Z\",\n \"mtime\": \"2024-01-01T00:00:00Z\",\n \"modifier\": \"user123\"\n }\n}"
|
|
4597
|
+
}
|
|
4598
|
+
}
|
|
4599
|
+
]
|
|
4600
|
+
},
|
|
4601
|
+
{
|
|
4602
|
+
"contract": "llm.elevo.GetElevoConversationState",
|
|
4603
|
+
"name": "GetElevoConversationState",
|
|
4604
|
+
"version": "1.0.0",
|
|
4605
|
+
"description": "获取elevo会话状态",
|
|
4606
|
+
"endpoint": {
|
|
4607
|
+
"method": "GET",
|
|
4608
|
+
"uri": "/api/v1/elevo/conversations/:conversationId/state"
|
|
4609
|
+
},
|
|
4610
|
+
"request": {
|
|
4611
|
+
"type": "object",
|
|
4612
|
+
"fields": [
|
|
4613
|
+
{
|
|
4614
|
+
"name": "conversationId",
|
|
4615
|
+
"type": "string",
|
|
4616
|
+
"description": "会话ID"
|
|
4617
|
+
}
|
|
4618
|
+
],
|
|
4619
|
+
"required": [
|
|
4620
|
+
"conversationId"
|
|
4621
|
+
]
|
|
4622
|
+
},
|
|
4623
|
+
"response": {
|
|
4624
|
+
"type": "object",
|
|
4625
|
+
"fields": [
|
|
4626
|
+
{
|
|
4627
|
+
"name": "conversation_id",
|
|
4628
|
+
"type": "string",
|
|
4629
|
+
"description": "会话ID"
|
|
4630
|
+
},
|
|
4631
|
+
{
|
|
4632
|
+
"name": "state",
|
|
4633
|
+
"type": "string",
|
|
4634
|
+
"description": "会话状态"
|
|
4635
|
+
},
|
|
4636
|
+
{
|
|
4637
|
+
"name": "updated_at",
|
|
4638
|
+
"type": "int",
|
|
4639
|
+
"description": "更新时间(毫秒时间戳)"
|
|
4640
|
+
}
|
|
4641
|
+
]
|
|
4642
|
+
},
|
|
4643
|
+
"examples": [
|
|
4644
|
+
{
|
|
4645
|
+
"description": {
|
|
4646
|
+
"zh": "获取elevo会话状态"
|
|
4647
|
+
},
|
|
4648
|
+
"request": {
|
|
4649
|
+
"method": "GET",
|
|
4650
|
+
"uri": "http://ip:port/api/v1/elevo/conversations/conv_123/state",
|
|
4651
|
+
"headers": {
|
|
4652
|
+
"Content-Type": "application/json",
|
|
4653
|
+
"user": "linus",
|
|
4654
|
+
"org": 1234
|
|
4655
|
+
}
|
|
4656
|
+
},
|
|
4657
|
+
"response": {
|
|
4658
|
+
"headers": {
|
|
4659
|
+
"Content-Type": "application/json; charset=utf-8"
|
|
4660
|
+
},
|
|
4661
|
+
"status_code": 200,
|
|
4662
|
+
"body": "{\n \"code\": 0,\n \"message\": \"success\",\n \"data\": {\n \"conversation_id\": \"conv_123\",\n \"state\": \"executing\",\n \"updated_at\": 1713547260000\n }\n}"
|
|
4663
|
+
}
|
|
4664
|
+
}
|
|
4665
|
+
]
|
|
4666
|
+
},
|
|
4667
|
+
{
|
|
4668
|
+
"contract": "llm.elevo.GetElevoConversationStream",
|
|
4669
|
+
"name": "GetElevoConversationStream",
|
|
4670
|
+
"version": "1.0.0",
|
|
4671
|
+
"description": "获取elevo会话流式数据",
|
|
4672
|
+
"endpoint": {
|
|
4673
|
+
"method": "GET",
|
|
4674
|
+
"uri": "/api/v1/elevo/conversations/:conversationId/stream"
|
|
4675
|
+
},
|
|
4676
|
+
"import": [
|
|
4677
|
+
"easyops/model/llm/elevo_conversion_response"
|
|
4678
|
+
],
|
|
4679
|
+
"request": {
|
|
4680
|
+
"type": "object",
|
|
4681
|
+
"fields": [
|
|
4682
|
+
{
|
|
4683
|
+
"name": "conversationId",
|
|
4684
|
+
"type": "string",
|
|
4685
|
+
"description": "会话ID"
|
|
4686
|
+
},
|
|
4687
|
+
{
|
|
4688
|
+
"name": "lastIndex",
|
|
4689
|
+
"type": "int",
|
|
4690
|
+
"description": "最后一条消息的索引,用于增量拉取"
|
|
4691
|
+
}
|
|
4692
|
+
],
|
|
4693
|
+
"required": [
|
|
4694
|
+
"conversationId"
|
|
4695
|
+
]
|
|
4696
|
+
},
|
|
4697
|
+
"response": {
|
|
4698
|
+
"type": "object",
|
|
4699
|
+
"description": "SSE流式数据",
|
|
4700
|
+
"fields": [
|
|
4701
|
+
{
|
|
4702
|
+
"ref": "ElevoConversionResponse.*"
|
|
4703
|
+
},
|
|
4704
|
+
{
|
|
4705
|
+
"name": "sseDataList",
|
|
4706
|
+
"type": "value[]",
|
|
4707
|
+
"description": "流式数据列表"
|
|
4708
|
+
}
|
|
4709
|
+
]
|
|
4710
|
+
},
|
|
4711
|
+
"examples": [
|
|
4712
|
+
{
|
|
4713
|
+
"description": {
|
|
4714
|
+
"zh": "获取elevo会话流式数据"
|
|
4715
|
+
},
|
|
4716
|
+
"request": {
|
|
4717
|
+
"method": "GET",
|
|
4718
|
+
"uri": "http://ip:port/api/v1/elevo/conversations/conv_123/stream?lastIndex=5",
|
|
4719
|
+
"headers": {
|
|
4720
|
+
"Accept": "text/event-stream",
|
|
4721
|
+
"user": "linus",
|
|
4722
|
+
"org": 1234
|
|
4723
|
+
}
|
|
4724
|
+
},
|
|
4725
|
+
"response": {
|
|
4726
|
+
"headers": {
|
|
4727
|
+
"Content-Type": "text/event-stream; charset=utf-8"
|
|
4728
|
+
},
|
|
4729
|
+
"status_code": 200,
|
|
4730
|
+
"body": "data: {\"id\":\"conv_123\",\"tasks\":[{\"id\":\"task_1\", \"state\":\"working\",\"plan\":[{\"id\":\"job_1\",\"instruction\":\"查询城市码\"},{\"id\":\"job_2\",\"instruction\":\"通过城市码查询城市天气\"}]}]}\\n\\n data: {\"id\":\"conv_123\",\"tasks\":[{\"id\":\"task_1\",\"jobs\":[{\"id\":\"job_1\",\"instruction\":\"查询城市码\",\"state\":\"working\",\"toolCall\":{\"name\":\"search_city_code\",\"arguments\":{\"city\":\"深圳\"}}}]}]}\\n\\n data: {\"id\":\"conv_123\",\"tasks\":[{\"id\":\"task_1\",\"jobs\":[{\"id\":\"job_1\",\"state\":\"completed\",\"messages\":[{\"role\":\"assistant\",\"parts\":[{\"type\":\"text\",\"text\":\"SZX\"}]}]}]}]}\\n\\n data: {\"id\":\"conv_123\",\"tasks\":[{\"id\":\"task_1\",\"jobs\":[{\"id\":\"job_2\",\"instruction\":\"通过城市码查询城市天气\",\"state\":\"working\",\"toolCall\":{\"name\":\"search_weather\",\"arguments\":{\"city\":\"SZX\"}}}]}]}\\n\\n\ndata: [DONE]"
|
|
4731
|
+
}
|
|
4732
|
+
}
|
|
4733
|
+
]
|
|
4734
|
+
},
|
|
4735
|
+
{
|
|
4736
|
+
"contract": "llm.elevo.GetElevoProject",
|
|
4737
|
+
"name": "GetElevoProject",
|
|
4738
|
+
"version": "1.0.0",
|
|
4739
|
+
"description": "获取elevo项目详情",
|
|
4740
|
+
"endpoint": {
|
|
4741
|
+
"method": "GET",
|
|
4742
|
+
"uri": "/api/v1/elevo/projects/:instanceId"
|
|
4743
|
+
},
|
|
4744
|
+
"import": [
|
|
4745
|
+
"easyops/model/llm/elevo_project"
|
|
4746
|
+
],
|
|
4747
|
+
"request": {
|
|
4748
|
+
"type": "object",
|
|
4749
|
+
"fields": [
|
|
4750
|
+
{
|
|
4751
|
+
"name": "instanceId",
|
|
4752
|
+
"type": "string",
|
|
4753
|
+
"description": "项目实例ID"
|
|
4754
|
+
}
|
|
4755
|
+
],
|
|
4756
|
+
"required": [
|
|
4757
|
+
"instanceId"
|
|
4758
|
+
]
|
|
4759
|
+
},
|
|
4760
|
+
"response": {
|
|
4761
|
+
"type": "ElevoProject"
|
|
4762
|
+
},
|
|
4763
|
+
"examples": [
|
|
4764
|
+
{
|
|
4765
|
+
"description": {
|
|
4766
|
+
"zh": "获取elevo项目详情"
|
|
4767
|
+
},
|
|
4768
|
+
"request": {
|
|
4769
|
+
"method": "GET",
|
|
4770
|
+
"uri": "http://ip:port/api/v1/elevo/projects/cmdb_instance_123",
|
|
4771
|
+
"headers": {
|
|
4772
|
+
"Content-Type": "application/json",
|
|
4773
|
+
"user": "linus",
|
|
4774
|
+
"org": 1234
|
|
4775
|
+
}
|
|
4776
|
+
},
|
|
4777
|
+
"response": {
|
|
4778
|
+
"headers": {
|
|
4779
|
+
"Content-Type": "application/json; charset=utf-8"
|
|
4780
|
+
},
|
|
4781
|
+
"status_code": 200,
|
|
4782
|
+
"body": "{\n \"code\": 0,\n \"message\": \"success\",\n \"data\": {\n \"instanceId\": \"cmdb_instance_123\",\n \"name\": \"项目名称\",\n \"description\": \"项目描述\",\n \"state\": \"active\",\n \"defaultAiEmployeeId\": \"ai_employee_id_1\",\n \"creator\": \"user123\",\n \"ctime\": \"2024-01-01T00:00:00Z\",\n \"mtime\": \"2024-01-01T00:00:00Z\",\n \"modifier\": \"user123\"\n }\n}"
|
|
4783
|
+
}
|
|
4784
|
+
}
|
|
4785
|
+
]
|
|
4786
|
+
},
|
|
4787
|
+
{
|
|
4788
|
+
"contract": "llm.elevo.GetElevoProjects",
|
|
4789
|
+
"name": "GetElevoProjects",
|
|
4790
|
+
"version": "1.0.0",
|
|
4791
|
+
"description": "获取elevo项目列表",
|
|
4792
|
+
"endpoint": {
|
|
4793
|
+
"method": "list",
|
|
4794
|
+
"uri": "/api/v1/elevo/projects"
|
|
4795
|
+
},
|
|
4796
|
+
"import": [
|
|
4797
|
+
"easyops/model/llm/elevo_project"
|
|
4798
|
+
],
|
|
4799
|
+
"request": {
|
|
4800
|
+
"type": "object",
|
|
4801
|
+
"fields": [
|
|
4802
|
+
{
|
|
4803
|
+
"name": "page",
|
|
4804
|
+
"type": "int",
|
|
4805
|
+
"description": "页码"
|
|
4806
|
+
},
|
|
4807
|
+
{
|
|
4808
|
+
"name": "page_size",
|
|
4809
|
+
"type": "int",
|
|
4810
|
+
"description": "每页数量"
|
|
4811
|
+
},
|
|
4812
|
+
{
|
|
4813
|
+
"name": "key",
|
|
4814
|
+
"type": "string",
|
|
4815
|
+
"description": "搜索关键词"
|
|
4816
|
+
},
|
|
4817
|
+
{
|
|
4818
|
+
"name": "state",
|
|
4819
|
+
"type": "string",
|
|
4820
|
+
"description": "状态过滤"
|
|
4821
|
+
}
|
|
4822
|
+
]
|
|
4823
|
+
},
|
|
4824
|
+
"response": {
|
|
4825
|
+
"type": "ElevoProject"
|
|
4826
|
+
},
|
|
4827
|
+
"examples": [
|
|
4828
|
+
{
|
|
4829
|
+
"description": {
|
|
4830
|
+
"zh": "获取elevo项目列表"
|
|
4831
|
+
},
|
|
4832
|
+
"request": {
|
|
4833
|
+
"method": "GET",
|
|
4834
|
+
"uri": "http://ip:port/api/v1/elevo/projects?page=1&page_size=20&key=数据分析&state=active",
|
|
4835
|
+
"headers": {
|
|
4836
|
+
"Content-Type": "application/json",
|
|
4837
|
+
"user": "linus",
|
|
4838
|
+
"org": 1234
|
|
4839
|
+
}
|
|
4840
|
+
},
|
|
4841
|
+
"response": {
|
|
4842
|
+
"headers": {
|
|
4843
|
+
"Content-Type": "application/json; charset=utf-8"
|
|
4844
|
+
},
|
|
4845
|
+
"status_code": 200,
|
|
4846
|
+
"body": "{\n \"code\": 0,\n \"message\": \"success\",\n \"data\": {\n \"page\": 1,\n \"page_size\": 20,\n \"total\": 1,\n \"list\": [\n {\n \"instanceId\": \"cmdb_instance_123\",\n \"name\": \"数据分析项目\",\n \"description\": \"用于分析销售数据的项目\",\n \"state\": \"active\",\n \"defaultAiEmployeeId\": \"ai_employee_id_1\",\n \"creator\": \"user123\",\n \"ctime\": \"2024-01-01T00:00:00Z\",\n \"mtime\": \"2024-01-01T00:00:00Z\"\n }\n ]\n }\n}"
|
|
4847
|
+
}
|
|
4848
|
+
}
|
|
4849
|
+
]
|
|
4850
|
+
},
|
|
4851
|
+
{
|
|
4852
|
+
"contract": "llm.elevo.ListElevoAgents",
|
|
4853
|
+
"name": "ListElevoAgents",
|
|
4854
|
+
"version": "1.0.0",
|
|
4855
|
+
"description": "获取elevo智能体列表",
|
|
4856
|
+
"endpoint": {
|
|
4857
|
+
"method": "list",
|
|
4858
|
+
"uri": "/api/v1/elevo/agents"
|
|
4859
|
+
},
|
|
4860
|
+
"import": [
|
|
4861
|
+
"easyops/model/llm/elevo_agent"
|
|
4862
|
+
],
|
|
4863
|
+
"request": {
|
|
4864
|
+
"type": "object",
|
|
4865
|
+
"fields": [
|
|
4866
|
+
{
|
|
4867
|
+
"name": "page",
|
|
4868
|
+
"type": "int",
|
|
4869
|
+
"description": "页码"
|
|
4870
|
+
},
|
|
4871
|
+
{
|
|
4872
|
+
"name": "page_size",
|
|
4873
|
+
"type": "int",
|
|
4874
|
+
"description": "每页数量"
|
|
4875
|
+
},
|
|
4876
|
+
{
|
|
4877
|
+
"name": "key",
|
|
4878
|
+
"type": "string",
|
|
4879
|
+
"description": "搜索关键词"
|
|
4880
|
+
},
|
|
4881
|
+
{
|
|
4882
|
+
"name": "state",
|
|
4883
|
+
"type": "string",
|
|
4884
|
+
"description": "状态过滤"
|
|
4885
|
+
}
|
|
4886
|
+
]
|
|
4887
|
+
},
|
|
4888
|
+
"response": {
|
|
4889
|
+
"type": "ElevoAgent"
|
|
4890
|
+
},
|
|
4891
|
+
"examples": [
|
|
4892
|
+
{
|
|
4893
|
+
"description": {
|
|
4894
|
+
"zh": "获取elevo智能体列表"
|
|
4895
|
+
},
|
|
4896
|
+
"request": {
|
|
4897
|
+
"method": "GET",
|
|
4898
|
+
"uri": "http://ip:port/api/v1/elevo/agents?page=1&page_size=20&key=智能助手&state=active",
|
|
4899
|
+
"headers": {
|
|
4900
|
+
"Content-Type": "application/json",
|
|
4901
|
+
"user": "linus",
|
|
4902
|
+
"org": 1234
|
|
4903
|
+
}
|
|
4904
|
+
},
|
|
4905
|
+
"response": {
|
|
4906
|
+
"headers": {
|
|
4907
|
+
"Content-Type": "application/json; charset=utf-8"
|
|
4908
|
+
},
|
|
4909
|
+
"status_code": 200,
|
|
4910
|
+
"body": "{\n \"code\": 0,\n \"message\": \"success\",\n \"data\": {\n \"page\": 1,\n \"page_size\": 20,\n \"total\": 1,\n \"list\": [\n {\n \"instanceId\": \"cmdb_instance_789\",\n \"agentId\": \"agent_123\",\n \"name\": \"智能助手Agent\",\n \"description\": \"用于智能助手的基础Agent\",\n \"state\": \"active\",\n \"capabilities\": [\"对话\", \"分析\", \"搜索\"],\n \"mcpServers\": [\"mcp_server_1\", \"mcp_server_2\"],\n \"planTool\": \"plan_tool_id\",\n \"creator\": \"user123\",\n \"ctime\": \"2024-01-01T00:00:00Z\",\n \"mtime\": \"2024-01-01T00:00:00Z\"\n }\n ]\n }\n}"
|
|
4911
|
+
}
|
|
4912
|
+
}
|
|
4913
|
+
]
|
|
4914
|
+
},
|
|
4915
|
+
{
|
|
4916
|
+
"contract": "llm.elevo.ListElevoAiEmployees",
|
|
4917
|
+
"name": "ListElevoAiEmployees",
|
|
4918
|
+
"version": "1.0.0",
|
|
4919
|
+
"description": "获取elevo数字人列表",
|
|
4920
|
+
"endpoint": {
|
|
4921
|
+
"method": "list",
|
|
4922
|
+
"uri": "/api/v1/elevo/ai-employees"
|
|
4923
|
+
},
|
|
4924
|
+
"import": [
|
|
4925
|
+
"easyops/model/llm/elevo_ai_employee"
|
|
4926
|
+
],
|
|
4927
|
+
"request": {
|
|
4928
|
+
"type": "object",
|
|
4929
|
+
"fields": [
|
|
4930
|
+
{
|
|
4931
|
+
"name": "projectId",
|
|
4932
|
+
"type": "string",
|
|
4933
|
+
"description": "项目ID"
|
|
4934
|
+
},
|
|
4935
|
+
{
|
|
4936
|
+
"name": "page",
|
|
4937
|
+
"type": "int",
|
|
4938
|
+
"description": "页码"
|
|
4939
|
+
},
|
|
4940
|
+
{
|
|
4941
|
+
"name": "page_size",
|
|
4942
|
+
"type": "int",
|
|
4943
|
+
"description": "每页数量"
|
|
4944
|
+
},
|
|
4945
|
+
{
|
|
4946
|
+
"name": "key",
|
|
4947
|
+
"type": "string",
|
|
4948
|
+
"description": "搜索关键词"
|
|
4949
|
+
},
|
|
4950
|
+
{
|
|
4951
|
+
"name": "state",
|
|
4952
|
+
"type": "string",
|
|
4953
|
+
"description": "状态过滤"
|
|
4954
|
+
}
|
|
4955
|
+
]
|
|
4956
|
+
},
|
|
4957
|
+
"response": {
|
|
4958
|
+
"type": "ElevoAiEmployee"
|
|
4959
|
+
},
|
|
4960
|
+
"examples": [
|
|
4961
|
+
{
|
|
4962
|
+
"description": {
|
|
4963
|
+
"zh": "获取elevo数字人列表"
|
|
4964
|
+
},
|
|
4965
|
+
"request": {
|
|
4966
|
+
"method": "GET",
|
|
4967
|
+
"uri": "http://ip:port/api/v1/elevo/ai-employees?projectId=project_123&page=1&page_size=20&key=智能助手&state=active",
|
|
4968
|
+
"headers": {
|
|
4969
|
+
"Content-Type": "application/json",
|
|
4970
|
+
"user": "linus",
|
|
4971
|
+
"org": 1234
|
|
4972
|
+
}
|
|
4973
|
+
},
|
|
4974
|
+
"response": {
|
|
4975
|
+
"headers": {
|
|
4976
|
+
"Content-Type": "application/json; charset=utf-8"
|
|
4977
|
+
},
|
|
4978
|
+
"status_code": 200,
|
|
4979
|
+
"body": "{\n \"code\": 0,\n \"message\": \"success\",\n \"data\": {\n \"page\": 1,\n \"page_size\": 20,\n \"total\": 1,\n \"list\": [\n {\n \"instanceId\": \"cmdb_instance_456\",\n \"employeeId\": \"emp_123\",\n \"name\": \"智能助手小E\",\n \"description\": \"专业的智能助手\",\n \"industry\": \"技术\",\n \"role\": \"助手\",\n \"capabilities\": [\"文档处理\", \"数据分析\"],\n \"excludeTools\": [\"tool1\"],\n \"state\": \"active\",\n \"planTool\": \"plan_tool_id\",\n \"creator\": \"user123\",\n \"ctime\": \"2024-01-01T00:00:00Z\",\n \"mtime\": \"2024-01-01T00:00:00Z\"\n }\n ]\n }\n}"
|
|
4980
|
+
}
|
|
4981
|
+
}
|
|
4982
|
+
]
|
|
4983
|
+
},
|
|
4984
|
+
{
|
|
4985
|
+
"contract": "llm.elevo.ListElevoAiEmployeesByProject",
|
|
4986
|
+
"name": "ListElevoAiEmployeesByProject",
|
|
4987
|
+
"version": "1.0.0",
|
|
4988
|
+
"description": "获取指定项目的elevo数字人列表",
|
|
4989
|
+
"endpoint": {
|
|
4990
|
+
"method": "list",
|
|
4991
|
+
"uri": "/api/v1/elevo/ai-employees/by-project/:projectId"
|
|
4992
|
+
},
|
|
4993
|
+
"import": [
|
|
4994
|
+
"easyops/model/llm/elevo_ai_employee"
|
|
4995
|
+
],
|
|
4996
|
+
"request": {
|
|
4997
|
+
"type": "object",
|
|
4998
|
+
"fields": [
|
|
4999
|
+
{
|
|
5000
|
+
"name": "projectId",
|
|
5001
|
+
"type": "string",
|
|
5002
|
+
"description": "项目ID"
|
|
5003
|
+
},
|
|
5004
|
+
{
|
|
5005
|
+
"name": "page",
|
|
5006
|
+
"type": "int",
|
|
5007
|
+
"description": "页码"
|
|
5008
|
+
},
|
|
5009
|
+
{
|
|
5010
|
+
"name": "page_size",
|
|
5011
|
+
"type": "int",
|
|
5012
|
+
"description": "每页数量"
|
|
5013
|
+
},
|
|
5014
|
+
{
|
|
5015
|
+
"name": "key",
|
|
5016
|
+
"type": "string",
|
|
5017
|
+
"description": "搜索关键词"
|
|
5018
|
+
},
|
|
5019
|
+
{
|
|
5020
|
+
"name": "state",
|
|
5021
|
+
"type": "string",
|
|
5022
|
+
"description": "状态过滤"
|
|
5023
|
+
}
|
|
5024
|
+
],
|
|
5025
|
+
"required": [
|
|
5026
|
+
"projectId"
|
|
5027
|
+
]
|
|
5028
|
+
},
|
|
5029
|
+
"response": {
|
|
5030
|
+
"type": "ElevoAiEmployee"
|
|
5031
|
+
},
|
|
5032
|
+
"examples": [
|
|
5033
|
+
{
|
|
5034
|
+
"description": {
|
|
5035
|
+
"zh": "获取指定项目的elevo数字人列表"
|
|
5036
|
+
},
|
|
5037
|
+
"request": {
|
|
5038
|
+
"method": "GET",
|
|
5039
|
+
"uri": "http://ip:port/api/v1/elevo/ai-employees/by-project/project_123?page=1&page_size=20&key=智能助手&state=active",
|
|
5040
|
+
"headers": {
|
|
5041
|
+
"Content-Type": "application/json",
|
|
5042
|
+
"user": "linus",
|
|
5043
|
+
"org": 1234
|
|
5044
|
+
}
|
|
5045
|
+
},
|
|
5046
|
+
"response": {
|
|
5047
|
+
"headers": {
|
|
5048
|
+
"Content-Type": "application/json; charset=utf-8"
|
|
5049
|
+
},
|
|
5050
|
+
"status_code": 200,
|
|
5051
|
+
"body": "{\n \"code\": 0,\n \"message\": \"success\",\n \"data\": {\n \"page\": 1,\n \"page_size\": 20,\n \"total\": 1,\n \"list\": [\n {\n \"instanceId\": \"cmdb_instance_456\",\n \"employeeId\": \"emp_123\",\n \"name\": \"智能助手小E\",\n \"description\": \"专业的智能助手\",\n \"industry\": \"技术\",\n \"role\": \"助手\",\n \"capabilities\": [\"文档处理\", \"数据分析\"],\n \"excludeTools\": [\"tool1\"],\n \"state\": \"active\",\n \"planTool\": \"plan_tool_id\",\n \"creator\": \"user123\",\n \"ctime\": \"2024-01-01T00:00:00Z\",\n \"mtime\": \"2024-01-01T00:00:00Z\"\n }\n ]\n }\n}"
|
|
5052
|
+
}
|
|
5053
|
+
}
|
|
5054
|
+
]
|
|
5055
|
+
},
|
|
5056
|
+
{
|
|
5057
|
+
"contract": "llm.elevo.ListElevoConversations",
|
|
5058
|
+
"name": "ListElevoConversations",
|
|
5059
|
+
"version": "1.0.0",
|
|
5060
|
+
"description": "获取elevo会话列表",
|
|
5061
|
+
"endpoint": {
|
|
5062
|
+
"method": "GET",
|
|
5063
|
+
"uri": "/api/v1/elevo/conversations"
|
|
5064
|
+
},
|
|
5065
|
+
"request": {
|
|
5066
|
+
"type": "object",
|
|
5067
|
+
"fields": [
|
|
5068
|
+
{
|
|
5069
|
+
"name": "projectId",
|
|
5070
|
+
"type": "string",
|
|
5071
|
+
"description": "项目ID"
|
|
5072
|
+
},
|
|
5073
|
+
{
|
|
5074
|
+
"name": "username",
|
|
5075
|
+
"type": "string",
|
|
5076
|
+
"description": "用户名"
|
|
5077
|
+
},
|
|
5078
|
+
{
|
|
5079
|
+
"name": "state",
|
|
5080
|
+
"type": "string",
|
|
5081
|
+
"description": "会话状态(submitted, working, completed)"
|
|
5082
|
+
},
|
|
5083
|
+
{
|
|
5084
|
+
"name": "title",
|
|
5085
|
+
"type": "string",
|
|
5086
|
+
"description": "标题搜索关键词"
|
|
5087
|
+
},
|
|
5088
|
+
{
|
|
5089
|
+
"name": "token",
|
|
5090
|
+
"type": "string",
|
|
5091
|
+
"description": "分页token"
|
|
5092
|
+
},
|
|
5093
|
+
{
|
|
5094
|
+
"name": "limit",
|
|
5095
|
+
"type": "int",
|
|
5096
|
+
"description": "每页数量"
|
|
5097
|
+
},
|
|
5098
|
+
{
|
|
5099
|
+
"name": "onlyOwner",
|
|
5100
|
+
"type": "bool",
|
|
5101
|
+
"description": "是否只查询当前用户的会话"
|
|
5102
|
+
}
|
|
5103
|
+
]
|
|
5104
|
+
},
|
|
5105
|
+
"response": {
|
|
5106
|
+
"type": "object",
|
|
5107
|
+
"fields": [
|
|
5108
|
+
{
|
|
5109
|
+
"name": "conversations",
|
|
5110
|
+
"type": "object[]",
|
|
5111
|
+
"description": "会话列表",
|
|
5112
|
+
"fields": [
|
|
5113
|
+
{
|
|
5114
|
+
"name": "conversationId",
|
|
5115
|
+
"type": "string",
|
|
5116
|
+
"description": "会话ID"
|
|
5117
|
+
},
|
|
5118
|
+
{
|
|
5119
|
+
"name": "projectId",
|
|
5120
|
+
"type": "string",
|
|
5121
|
+
"description": "项目ID"
|
|
5122
|
+
},
|
|
5123
|
+
{
|
|
5124
|
+
"name": "title",
|
|
5125
|
+
"type": "string",
|
|
5126
|
+
"description": "会话标题"
|
|
5127
|
+
},
|
|
5128
|
+
{
|
|
5129
|
+
"name": "state",
|
|
5130
|
+
"type": "string",
|
|
5131
|
+
"description": "会话状态"
|
|
5132
|
+
},
|
|
5133
|
+
{
|
|
5134
|
+
"name": "leadAiEmployeeId",
|
|
5135
|
+
"type": "string",
|
|
5136
|
+
"description": "主导数字人ID"
|
|
5137
|
+
},
|
|
5138
|
+
{
|
|
5139
|
+
"name": "lastLeadAiEmployeeId",
|
|
5140
|
+
"type": "string",
|
|
5141
|
+
"description": "上次主导的数字人ID"
|
|
5142
|
+
},
|
|
5143
|
+
{
|
|
5144
|
+
"name": "username",
|
|
5145
|
+
"type": "string",
|
|
5146
|
+
"description": "用户名"
|
|
5147
|
+
},
|
|
5148
|
+
{
|
|
5149
|
+
"name": "rootContextId",
|
|
5150
|
+
"type": "string",
|
|
5151
|
+
"description": "根上下文ID"
|
|
5152
|
+
},
|
|
5153
|
+
{
|
|
5154
|
+
"name": "executingContextId",
|
|
5155
|
+
"type": "string",
|
|
5156
|
+
"description": "当前执行中的上下文ID"
|
|
5157
|
+
},
|
|
5158
|
+
{
|
|
5159
|
+
"name": "time",
|
|
5160
|
+
"type": "int",
|
|
5161
|
+
"description": "创建时间(毫秒时间戳)"
|
|
5162
|
+
},
|
|
5163
|
+
{
|
|
5164
|
+
"name": "updatedAt",
|
|
5165
|
+
"type": "int",
|
|
5166
|
+
"description": "更新时间(毫秒时间戳)"
|
|
5167
|
+
}
|
|
5168
|
+
]
|
|
5169
|
+
},
|
|
5170
|
+
{
|
|
5171
|
+
"name": "nextToken",
|
|
5172
|
+
"type": "string",
|
|
5173
|
+
"description": "下一页token"
|
|
5174
|
+
},
|
|
5175
|
+
{
|
|
5176
|
+
"name": "previousToken",
|
|
5177
|
+
"type": "string",
|
|
5178
|
+
"description": "上一页token"
|
|
5179
|
+
}
|
|
5180
|
+
]
|
|
5181
|
+
},
|
|
5182
|
+
"examples": [
|
|
5183
|
+
{
|
|
5184
|
+
"description": {
|
|
5185
|
+
"zh": "获取elevo会话列表"
|
|
5186
|
+
},
|
|
5187
|
+
"request": {
|
|
5188
|
+
"method": "GET",
|
|
5189
|
+
"uri": "http://ip:port/api/v1/elevo/conversations?projectId=project_123&token=next_page_token&limit=20&onlyOwner=true",
|
|
5190
|
+
"headers": {
|
|
5191
|
+
"Content-Type": "application/json",
|
|
5192
|
+
"user": "linus",
|
|
5193
|
+
"org": 1234
|
|
5194
|
+
},
|
|
5195
|
+
"body": "{\n \"projectId\": \"project_123\",\n \"token\": \"next_token_123\",\n \"limit\": 20,\n \"title\": \"数据分析\",\n \"only_owner\": true\n}"
|
|
5196
|
+
},
|
|
5197
|
+
"response": {
|
|
5198
|
+
"headers": {
|
|
5199
|
+
"Content-Type": "application/json; charset=utf-8"
|
|
5200
|
+
},
|
|
5201
|
+
"status_code": 200,
|
|
5202
|
+
"body": "{\n \"code\": 0,\n \"message\": \"success\",\n \"data\": {\n \"conversations\": [\n {\n \"conversationId\": \"conv_123\",\n \"projectId\": \"project_123\",\n \"title\": \"数据分析任务\",\n \"state\": \"working\",\n \"leadAiEmployeeId\": \"emp_123\",\n \"lastLeadAiEmployeeId\": \"emp_122\",\n \"username\": \"user123\",\n \"rootContextId\": \"ctx_root_123\",\n \"executingContextId\": \"ctx_exec_456\",\n \"time\": 1640995200000,\n \"updatedAt\": 1640995260000\n }\n ],\n \"nextToken\": \"next_page_token_here\",\n \"previousToken\": \"previous_page_token_here\"\n }\n}"
|
|
5203
|
+
}
|
|
5204
|
+
}
|
|
5205
|
+
]
|
|
5206
|
+
},
|
|
5207
|
+
{
|
|
5208
|
+
"contract": "llm.elevo.ListUsersByProject",
|
|
5209
|
+
"name": "ListUsersByProject",
|
|
5210
|
+
"version": "1.0.0",
|
|
5211
|
+
"description": "获取指定项目的用户列表",
|
|
5212
|
+
"endpoint": {
|
|
5213
|
+
"method": "GET",
|
|
5214
|
+
"uri": "/api/v1/elevo/project-users/:projectInstanceId/list-users"
|
|
5215
|
+
},
|
|
5216
|
+
"request": {
|
|
5217
|
+
"type": "object",
|
|
5218
|
+
"fields": [
|
|
5219
|
+
{
|
|
5220
|
+
"name": "projectInstanceId",
|
|
5221
|
+
"type": "string",
|
|
5222
|
+
"description": "项目ID"
|
|
5223
|
+
},
|
|
5224
|
+
{
|
|
5225
|
+
"name": "page",
|
|
5226
|
+
"type": "int",
|
|
5227
|
+
"description": "页码"
|
|
5228
|
+
},
|
|
5229
|
+
{
|
|
5230
|
+
"name": "page_size",
|
|
5231
|
+
"type": "int",
|
|
5232
|
+
"description": "每页数量"
|
|
5233
|
+
}
|
|
5234
|
+
],
|
|
5235
|
+
"required": [
|
|
5236
|
+
"projectInstanceId"
|
|
5237
|
+
]
|
|
5238
|
+
},
|
|
5239
|
+
"response": {
|
|
5240
|
+
"type": "object",
|
|
5241
|
+
"fields": [
|
|
5242
|
+
{
|
|
5243
|
+
"name": "users",
|
|
5244
|
+
"type": "object[]",
|
|
5245
|
+
"description": "项目内的成员",
|
|
5246
|
+
"fields": [
|
|
5247
|
+
{
|
|
5248
|
+
"name": "instanceId",
|
|
5249
|
+
"type": "string",
|
|
5250
|
+
"description": "用户的instanceId"
|
|
5251
|
+
},
|
|
5252
|
+
{
|
|
5253
|
+
"name": "name",
|
|
5254
|
+
"type": "string",
|
|
5255
|
+
"description": "用户的名称"
|
|
5256
|
+
}
|
|
5257
|
+
]
|
|
5258
|
+
},
|
|
5259
|
+
{
|
|
5260
|
+
"name": "page",
|
|
5261
|
+
"type": "int",
|
|
5262
|
+
"description": "页码"
|
|
5263
|
+
},
|
|
5264
|
+
{
|
|
5265
|
+
"name": "page_size",
|
|
5266
|
+
"type": "int",
|
|
5267
|
+
"description": "每页数量"
|
|
5268
|
+
},
|
|
5269
|
+
{
|
|
5270
|
+
"name": "total",
|
|
5271
|
+
"type": "int",
|
|
5272
|
+
"description": "总数"
|
|
5273
|
+
}
|
|
5274
|
+
]
|
|
5275
|
+
},
|
|
5276
|
+
"examples": [
|
|
5277
|
+
{
|
|
5278
|
+
"description": {
|
|
5279
|
+
"zh": "获取指定项目的用户列表"
|
|
5280
|
+
},
|
|
5281
|
+
"request": {
|
|
5282
|
+
"method": "GET",
|
|
5283
|
+
"uri": "http://ip:port/api/v1/elevo/projects/project_123/list-users",
|
|
5284
|
+
"headers": {
|
|
5285
|
+
"Content-Type": "application/json",
|
|
5286
|
+
"user": "linus",
|
|
5287
|
+
"org": 1234
|
|
5288
|
+
}
|
|
5289
|
+
},
|
|
5290
|
+
"response": {
|
|
5291
|
+
"headers": {
|
|
5292
|
+
"Content-Type": "application/json; charset=utf-8"
|
|
5293
|
+
},
|
|
5294
|
+
"status_code": 200,
|
|
5295
|
+
"body": "{\n \"users\": [\n {\n \"instanceId\": \"fjdkalsfa43\",\n \"name\": \"linus\"\n }\n ]\n}"
|
|
5296
|
+
}
|
|
5297
|
+
}
|
|
5298
|
+
]
|
|
5299
|
+
},
|
|
5300
|
+
{
|
|
5301
|
+
"contract": "llm.elevo.SendElevoMessage",
|
|
5302
|
+
"name": "SendElevoMessage",
|
|
5303
|
+
"version": "1.0.0",
|
|
5304
|
+
"description": "发送elevo会话消息",
|
|
5305
|
+
"endpoint": {
|
|
5306
|
+
"method": "POST",
|
|
5307
|
+
"uri": "/api/v1/elevo/conversations/:conversationId/messages"
|
|
5308
|
+
},
|
|
5309
|
+
"import": [
|
|
5310
|
+
"easyops/model/llm/elevo_conversion_response"
|
|
5311
|
+
],
|
|
5312
|
+
"request": {
|
|
5313
|
+
"type": "object",
|
|
5314
|
+
"fields": [
|
|
5315
|
+
{
|
|
5316
|
+
"name": "conversationId",
|
|
5317
|
+
"type": "string",
|
|
5318
|
+
"description": "会话ID"
|
|
5319
|
+
},
|
|
5320
|
+
{
|
|
5321
|
+
"name": "content",
|
|
5322
|
+
"type": "string",
|
|
5323
|
+
"description": "用户输入内容"
|
|
5324
|
+
}
|
|
5325
|
+
],
|
|
5326
|
+
"required": [
|
|
5327
|
+
"conversationId"
|
|
5328
|
+
]
|
|
5329
|
+
},
|
|
5330
|
+
"response": {
|
|
5331
|
+
"type": "object",
|
|
5332
|
+
"description": "SSE流式数据",
|
|
5333
|
+
"fields": [
|
|
5334
|
+
{
|
|
5335
|
+
"ref": "ElevoConversionResponse.*"
|
|
5336
|
+
},
|
|
5337
|
+
{
|
|
5338
|
+
"name": "sseDataList",
|
|
5339
|
+
"type": "value[]",
|
|
5340
|
+
"description": "流式数据列表"
|
|
5341
|
+
}
|
|
5342
|
+
]
|
|
5343
|
+
},
|
|
5344
|
+
"examples": [
|
|
5345
|
+
{
|
|
5346
|
+
"description": {
|
|
5347
|
+
"zh": "发送elevo会话消息"
|
|
5348
|
+
},
|
|
5349
|
+
"request": {
|
|
5350
|
+
"method": "POST",
|
|
5351
|
+
"uri": "http://ip:port/api/v1/elevo/conversations/conv_123/messages",
|
|
5352
|
+
"headers": {
|
|
5353
|
+
"Content-Type": "application/json",
|
|
5354
|
+
"user": "linus",
|
|
5355
|
+
"org": 1234
|
|
5356
|
+
},
|
|
5357
|
+
"body": "{\n \"content\": \"请帮我分析销售数据\",\n \"message_type\": \"text\"\n}"
|
|
5358
|
+
},
|
|
5359
|
+
"response": {
|
|
5360
|
+
"headers": {
|
|
5361
|
+
"Content-Type": "text/event-stream; charset=utf-8"
|
|
5362
|
+
},
|
|
5363
|
+
"status_code": 200,
|
|
5364
|
+
"body": "data: {\"id\":\"conv_123\",\"tasks\":[{\"id\":\"task_1\", \"state\":\"working\",\"plan\":[{\"id\":\"job_1\",\"instruction\":\"查询城市码\"},{\"id\":\"job_2\",\"instruction\":\"通过城市码查询城市天气\"}]}]}\\n\\n data: {\"id\":\"conv_123\",\"tasks\":[{\"id\":\"task_1\",\"jobs\":[{\"id\":\"job_1\",\"instruction\":\"查询城市码\",\"state\":\"working\",\"toolCall\":{\"name\":\"search_city_code\",\"arguments\":{\"city\":\"深圳\"}}}]}]}\\n\\n data: {\"id\":\"conv_123\",\"tasks\":[{\"id\":\"task_1\",\"jobs\":[{\"id\":\"job_1\",\"state\":\"completed\",\"messages\":[{\"role\":\"assistant\",\"parts\":[{\"type\":\"text\",\"text\":\"SZX\"}]}]}]}]}\\n\\n data: {\"id\":\"conv_123\",\"tasks\":[{\"id\":\"task_1\",\"jobs\":[{\"id\":\"job_2\",\"instruction\":\"通过城市码查询城市天气\",\"state\":\"working\",\"toolCall\":{\"name\":\"search_weather\",\"arguments\":{\"city\":\"SZX\"}}}]}]}\\n\\n\ndata: [DONE]"
|
|
5365
|
+
}
|
|
5366
|
+
}
|
|
5367
|
+
]
|
|
5368
|
+
},
|
|
5369
|
+
{
|
|
5370
|
+
"contract": "llm.elevo.TerminateElevoConversation",
|
|
5371
|
+
"name": "TerminateElevoConversation",
|
|
5372
|
+
"version": "1.0.0",
|
|
5373
|
+
"description": "终止elevo会话",
|
|
5374
|
+
"endpoint": {
|
|
5375
|
+
"method": "PUT",
|
|
5376
|
+
"uri": "/api/v1/elevo/conversations/:conversationId/terminate"
|
|
5377
|
+
},
|
|
5378
|
+
"request": {
|
|
5379
|
+
"type": "object",
|
|
5380
|
+
"fields": [
|
|
5381
|
+
{
|
|
5382
|
+
"name": "conversationId",
|
|
5383
|
+
"type": "string",
|
|
5384
|
+
"description": "会话ID"
|
|
5385
|
+
},
|
|
5386
|
+
{
|
|
5387
|
+
"name": "reason",
|
|
5388
|
+
"type": "string",
|
|
5389
|
+
"description": "终止原因"
|
|
5390
|
+
}
|
|
5391
|
+
],
|
|
5392
|
+
"required": [
|
|
5393
|
+
"conversationId"
|
|
5394
|
+
]
|
|
5395
|
+
},
|
|
5396
|
+
"response": {
|
|
5397
|
+
"type": "object",
|
|
5398
|
+
"fields": [
|
|
5399
|
+
{
|
|
5400
|
+
"name": "conversation_id",
|
|
5401
|
+
"type": "string",
|
|
5402
|
+
"description": "会话ID"
|
|
5403
|
+
}
|
|
5404
|
+
]
|
|
5405
|
+
},
|
|
5406
|
+
"examples": [
|
|
5407
|
+
{
|
|
5408
|
+
"description": {
|
|
5409
|
+
"zh": "终止elevo会话"
|
|
5410
|
+
},
|
|
5411
|
+
"request": {
|
|
5412
|
+
"method": "PUT",
|
|
5413
|
+
"uri": "http://ip:port/api/v1/elevo/conversations/conv_123/terminate",
|
|
5414
|
+
"headers": {
|
|
5415
|
+
"Content-Type": "application/json",
|
|
5416
|
+
"user": "linus",
|
|
5417
|
+
"org": 1234
|
|
5418
|
+
},
|
|
5419
|
+
"body": "{\n \"reason\": \"用户主动终止\"\n}"
|
|
5420
|
+
},
|
|
5421
|
+
"response": {
|
|
5422
|
+
"headers": {
|
|
5423
|
+
"Content-Type": "application/json; charset=utf-8"
|
|
5424
|
+
},
|
|
5425
|
+
"status_code": 200,
|
|
5426
|
+
"body": "{\n \"code\": 0,\n \"message\": \"success\",\n \"data\": {\n \"conversation_id\": \"conv_123\"\n }\n}"
|
|
5427
|
+
}
|
|
5428
|
+
}
|
|
5429
|
+
]
|
|
5430
|
+
},
|
|
5431
|
+
{
|
|
5432
|
+
"contract": "llm.elevo.UnbindProjectAiEmployees",
|
|
5433
|
+
"name": "UnbindProjectAiEmployees",
|
|
5434
|
+
"version": "1.0.0",
|
|
5435
|
+
"description": "解绑项目与数字人关系",
|
|
5436
|
+
"endpoint": {
|
|
5437
|
+
"method": "POST",
|
|
5438
|
+
"uri": "/api/v1/elevo/projects/:projectInstanceId/unbind-ai-employees"
|
|
5439
|
+
},
|
|
5440
|
+
"request": {
|
|
5441
|
+
"type": "object",
|
|
5442
|
+
"fields": [
|
|
5443
|
+
{
|
|
5444
|
+
"name": "projectInstanceId",
|
|
5445
|
+
"type": "string",
|
|
5446
|
+
"description": "项目实例ID"
|
|
5447
|
+
},
|
|
5448
|
+
{
|
|
5449
|
+
"name": "aiEmployeeInstanceIds",
|
|
5450
|
+
"type": "string[]",
|
|
5451
|
+
"description": "数字人实例ID列表"
|
|
5452
|
+
}
|
|
5453
|
+
],
|
|
5454
|
+
"required": [
|
|
5455
|
+
"projectInstanceId",
|
|
5456
|
+
"aiEmployeeInstanceIds"
|
|
5457
|
+
]
|
|
5458
|
+
},
|
|
5459
|
+
"response": null,
|
|
5460
|
+
"examples": [
|
|
5461
|
+
{
|
|
5462
|
+
"description": {
|
|
5463
|
+
"zh": "解绑项目与数字人关系"
|
|
5464
|
+
},
|
|
5465
|
+
"request": {
|
|
5466
|
+
"method": "POST",
|
|
5467
|
+
"uri": "http://ip:port/api/v1/elevo/projects/project_123/unbind-ai-employees",
|
|
5468
|
+
"headers": {
|
|
5469
|
+
"Content-Type": "application/json",
|
|
5470
|
+
"user": "linus",
|
|
5471
|
+
"org": 1234
|
|
5472
|
+
},
|
|
5473
|
+
"body": "{\n \"projectInstanceId\": \"project_123\",\n \"aiEmployeeInstanceIds\": [\"emp_001\", \"emp_002\", \"emp_003\"]\n}"
|
|
5474
|
+
},
|
|
5475
|
+
"response": {
|
|
5476
|
+
"headers": {
|
|
5477
|
+
"Content-Type": "application/json; charset=utf-8"
|
|
5478
|
+
},
|
|
5479
|
+
"status_code": 200,
|
|
5480
|
+
"body": "{\n \"code\": 0,\n \"message\": \"success\"\n }\n}"
|
|
5481
|
+
}
|
|
5482
|
+
}
|
|
5483
|
+
]
|
|
5484
|
+
},
|
|
5485
|
+
{
|
|
5486
|
+
"contract": "llm.elevo.UnbindProjectUsers",
|
|
5487
|
+
"name": "UnbindProjectUsers",
|
|
5488
|
+
"version": "1.0.0",
|
|
5489
|
+
"description": "解绑项目与用户关系",
|
|
5490
|
+
"endpoint": {
|
|
5491
|
+
"method": "POST",
|
|
5492
|
+
"uri": "/api/v1/elevo/project-users/:projectInstanceId/unbind-users"
|
|
5493
|
+
},
|
|
5494
|
+
"request": {
|
|
5495
|
+
"type": "object",
|
|
5496
|
+
"fields": [
|
|
5497
|
+
{
|
|
5498
|
+
"name": "projectInstanceId",
|
|
5499
|
+
"type": "string",
|
|
5500
|
+
"description": "项目实例ID"
|
|
5501
|
+
},
|
|
5502
|
+
{
|
|
5503
|
+
"name": "instanceIds",
|
|
5504
|
+
"type": "string[]",
|
|
5505
|
+
"description": "用户instanceId列表"
|
|
5506
|
+
}
|
|
5507
|
+
],
|
|
5508
|
+
"required": [
|
|
5509
|
+
"projectInstanceId",
|
|
5510
|
+
"instanceIds"
|
|
5511
|
+
]
|
|
5512
|
+
},
|
|
5513
|
+
"response": null,
|
|
5514
|
+
"examples": [
|
|
5515
|
+
{
|
|
5516
|
+
"description": {
|
|
5517
|
+
"zh": "解绑项目与数字人关系"
|
|
5518
|
+
},
|
|
5519
|
+
"request": {
|
|
5520
|
+
"method": "POST",
|
|
5521
|
+
"uri": "http://ip:port/api/v1/elevo/projects/project_123/unbind-users",
|
|
5522
|
+
"headers": {
|
|
5523
|
+
"Content-Type": "application/json",
|
|
5524
|
+
"user": "linus",
|
|
5525
|
+
"org": 1234
|
|
5526
|
+
},
|
|
5527
|
+
"body": "{\n \"projectInstanceId\": \"project_123\",\n \"instanceIds\": [\"fdslfa12\"]\n}"
|
|
5528
|
+
},
|
|
5529
|
+
"response": {
|
|
5530
|
+
"headers": {
|
|
5531
|
+
"Content-Type": "application/json; charset=utf-8"
|
|
5532
|
+
},
|
|
5533
|
+
"status_code": 200,
|
|
5534
|
+
"body": "{\n \"code\": 0,\n \"message\": \"success\"\n}"
|
|
5535
|
+
}
|
|
5536
|
+
}
|
|
5537
|
+
]
|
|
5538
|
+
},
|
|
5539
|
+
{
|
|
5540
|
+
"contract": "llm.elevo.UpdateElevoAgent",
|
|
5541
|
+
"name": "UpdateElevoAgent",
|
|
5542
|
+
"version": "1.0.0",
|
|
5543
|
+
"description": "更新elevo智能体",
|
|
5544
|
+
"endpoint": {
|
|
5545
|
+
"method": "PUT",
|
|
5546
|
+
"uri": "/api/v1/elevo/agents/:instanceId"
|
|
5547
|
+
},
|
|
5548
|
+
"import": [
|
|
5549
|
+
"easyops/model/llm/elevo_agent"
|
|
5550
|
+
],
|
|
5551
|
+
"request": {
|
|
5552
|
+
"type": "ElevoAgent"
|
|
5553
|
+
},
|
|
5554
|
+
"response": {
|
|
5555
|
+
"type": "ElevoAgent"
|
|
5556
|
+
},
|
|
5557
|
+
"examples": [
|
|
5558
|
+
{
|
|
5559
|
+
"description": {
|
|
5560
|
+
"zh": "更新elevo智能体"
|
|
5561
|
+
},
|
|
5562
|
+
"request": {
|
|
5563
|
+
"method": "PUT",
|
|
5564
|
+
"uri": "http://ip:port/api/v1/elevo/agents/cmdb_instance_789",
|
|
5565
|
+
"headers": {
|
|
5566
|
+
"Content-Type": "application/json",
|
|
5567
|
+
"user": "linus",
|
|
5568
|
+
"org": 1234
|
|
5569
|
+
},
|
|
5570
|
+
"body": "{\n \"name\": \"更新后的智能体名称\",\n \"description\": \"更新后的描述\",\n \"state\": \"active\",\n \"capabilities\": [\"对话\", \"分析\", \"推理\"],\n \"mcpServers\": [\"mcp_server_2\", \"mcp_server_3\"],\n \"planTool\": \"new_plan_tool_id\",\n \"modelConfig\": {\n \"defaultModel\": \"gpt-4-turbo\",\n \"temperature\": 0.5,\n \"maxTokens\": 8000,\n \"baseSystemPrompt\": \"你是一个专业的智能助手Agent\"\n }\n}"
|
|
5571
|
+
},
|
|
5572
|
+
"response": {
|
|
5573
|
+
"headers": {
|
|
5574
|
+
"Content-Type": "application/json; charset=utf-8"
|
|
5575
|
+
},
|
|
5576
|
+
"status_code": 200,
|
|
5577
|
+
"body": "{\n \"code\": 0,\n \"message\": \"success\",\n \"data\": {\n \"instanceId\": \"cmdb_instance_789\",\n \"agentId\": \"agent_123\",\n \"name\": \"更新后的智能体名称\",\n \"description\": \"更新后的描述\",\n \"state\": \"active\",\n \"capabilities\": [\"对话\", \"分析\", \"推理\"],\n \"mcpServers\": [\"mcp_server_2\", \"mcp_server_3\"],\n \"planTool\": \"new_plan_tool_id\",\n \"modelConfig\": {\n \"defaultModel\": \"gpt-4-turbo\",\n \"temperature\": 0.5,\n \"maxTokens\": 8000,\n \"baseSystemPrompt\": \"你是一个专业的智能助手Agent\"\n },\n \"creator\": \"user123\",\n \"ctime\": \"2024-01-01T00:00:00Z\",\n \"mtime\": \"2024-01-02T00:00:00Z\",\n \"modifier\": \"user456\"\n }\n}"
|
|
5578
|
+
}
|
|
5579
|
+
}
|
|
5580
|
+
]
|
|
5581
|
+
},
|
|
5582
|
+
{
|
|
5583
|
+
"contract": "llm.elevo.UpdateElevoAiEmployee",
|
|
5584
|
+
"name": "UpdateElevoAiEmployee",
|
|
5585
|
+
"version": "1.0.0",
|
|
5586
|
+
"description": "更新elevo数字人",
|
|
5587
|
+
"endpoint": {
|
|
5588
|
+
"method": "PUT",
|
|
5589
|
+
"uri": "/api/v1/elevo/ai-employees/:instanceId"
|
|
5590
|
+
},
|
|
5591
|
+
"import": [
|
|
5592
|
+
"easyops/model/llm/elevo_ai_employee"
|
|
5593
|
+
],
|
|
5594
|
+
"request": {
|
|
5595
|
+
"type": "ElevoAiEmployee"
|
|
5596
|
+
},
|
|
5597
|
+
"response": {
|
|
5598
|
+
"type": "ElevoAiEmployee"
|
|
5599
|
+
},
|
|
5600
|
+
"examples": [
|
|
5601
|
+
{
|
|
5602
|
+
"description": {
|
|
5603
|
+
"zh": "更新elevo数字人"
|
|
5604
|
+
},
|
|
5605
|
+
"request": {
|
|
5606
|
+
"method": "PUT",
|
|
5607
|
+
"uri": "http://ip:port/api/v1/elevo/ai-employees/cmdb_instance_456",
|
|
5608
|
+
"headers": {
|
|
5609
|
+
"Content-Type": "application/json",
|
|
5610
|
+
"user": "linus",
|
|
5611
|
+
"org": 1234
|
|
5612
|
+
},
|
|
5613
|
+
"body": "{\n \"name\": \"更新后的数字人名称\",\n \"description\": \"更新后的描述\",\n \"industry\": \"金融\",\n \"role\": \"顾问\",\n \"capabilities\": [\"数据分析\", \"报告生成\"],\n \"excludeTools\": [\"tool2\"],\n \"state\": \"active\",\n \"planTool\": \"new_plan_tool_id\",\n \"agent\": {\n \"instanceId\": \"cmdb_instance_agent_456\"\n },\n \"modelConfig\": {\n \"defaultModel\": \"gpt-4-turbo\",\n \"temperature\": 0.5,\n \"maxTokens\": 8000,\n \"baseSystemPrompt\": \"你是一个专业的金融顾问\"\n }\n}"
|
|
5614
|
+
},
|
|
5615
|
+
"response": {
|
|
5616
|
+
"headers": {
|
|
5617
|
+
"Content-Type": "application/json; charset=utf-8"
|
|
5618
|
+
},
|
|
5619
|
+
"status_code": 200,
|
|
5620
|
+
"body": "{\n \"code\": 0,\n \"message\": \"success\",\n \"data\": {\n \"instanceId\": \"cmdb_instance_456\",\n \"employeeId\": \"emp_123\",\n \"name\": \"更新后的数字人名称\",\n \"description\": \"更新后的描述\",\n \"industry\": \"金融\",\n \"role\": \"顾问\",\n \"capabilities\": [\"数据分析\", \"报告生成\"],\n \"excludeTools\": [\"tool2\"],\n \"state\": \"active\",\n \"planTool\": \"new_plan_tool_id\",\n \"creator\": \"user123\",\n \"ctime\": \"2024-01-01T00:00:00Z\",\n \"mtime\": \"2024-01-02T00:00:00Z\",\n \"modifier\": \"user456\"\n }\n}"
|
|
5621
|
+
}
|
|
5622
|
+
}
|
|
5623
|
+
]
|
|
5624
|
+
},
|
|
5625
|
+
{
|
|
5626
|
+
"contract": "llm.elevo.UpdateElevoProject",
|
|
5627
|
+
"name": "UpdateElevoProject",
|
|
5628
|
+
"version": "1.0.0",
|
|
5629
|
+
"description": "更新elevo项目",
|
|
5630
|
+
"endpoint": {
|
|
5631
|
+
"method": "PUT",
|
|
5632
|
+
"uri": "/api/v1/elevo/projects/:instanceId"
|
|
5633
|
+
},
|
|
5634
|
+
"import": [
|
|
5635
|
+
"easyops/model/llm/elevo_project"
|
|
5636
|
+
],
|
|
5637
|
+
"request": {
|
|
5638
|
+
"type": "object",
|
|
5639
|
+
"fields": [
|
|
5640
|
+
{
|
|
5641
|
+
"name": "instanceId",
|
|
5642
|
+
"type": "string",
|
|
5643
|
+
"description": "项目实例ID"
|
|
5644
|
+
},
|
|
5645
|
+
{
|
|
5646
|
+
"name": "name",
|
|
5647
|
+
"type": "string",
|
|
5648
|
+
"description": "更新后的项目名称"
|
|
5649
|
+
},
|
|
5650
|
+
{
|
|
5651
|
+
"name": "description",
|
|
5652
|
+
"type": "string",
|
|
5653
|
+
"description": "更新后的描述"
|
|
5654
|
+
},
|
|
5655
|
+
{
|
|
5656
|
+
"name": "state",
|
|
5657
|
+
"type": "string",
|
|
5658
|
+
"description": "状态:active, inactive"
|
|
5659
|
+
},
|
|
5660
|
+
{
|
|
5661
|
+
"name": "defaultAiEmployeeId",
|
|
5662
|
+
"type": "string",
|
|
5663
|
+
"description": "新的默认数字人ID"
|
|
5664
|
+
}
|
|
5665
|
+
],
|
|
5666
|
+
"required": [
|
|
5667
|
+
"instanceId"
|
|
5668
|
+
]
|
|
5669
|
+
},
|
|
5670
|
+
"response": {
|
|
5671
|
+
"type": "ElevoProject"
|
|
5672
|
+
},
|
|
5673
|
+
"examples": [
|
|
5674
|
+
{
|
|
5675
|
+
"description": {
|
|
5676
|
+
"zh": "更新elevo项目"
|
|
5677
|
+
},
|
|
5678
|
+
"request": {
|
|
5679
|
+
"method": "PUT",
|
|
5680
|
+
"uri": "http://ip:port/api/v1/elevo/projects/cmdb_instance_123",
|
|
5681
|
+
"headers": {
|
|
5682
|
+
"Content-Type": "application/json",
|
|
5683
|
+
"user": "linus",
|
|
5684
|
+
"org": 1234
|
|
5685
|
+
},
|
|
5686
|
+
"body": "{\n \"name\": \"更新后的项目名称\",\n \"description\": \"更新后的描述\",\n \"state\": \"active\",\n \"defaultAiEmployeeId\": \"new_ai_employee_id\"\n}"
|
|
5687
|
+
},
|
|
5688
|
+
"response": {
|
|
5689
|
+
"headers": {
|
|
5690
|
+
"Content-Type": "application/json; charset=utf-8"
|
|
5691
|
+
},
|
|
5692
|
+
"status_code": 200,
|
|
5693
|
+
"body": "{\n \"code\": 0,\n \"message\": \"success\"\n}"
|
|
5694
|
+
}
|
|
5695
|
+
}
|
|
5696
|
+
]
|
|
5697
|
+
},
|
|
5698
|
+
{
|
|
5699
|
+
"contract": "llm.virtual_builder.GenerateStoryboard",
|
|
5700
|
+
"name": "GenerateStoryboard",
|
|
5701
|
+
"version": "1.0.0",
|
|
5702
|
+
"description": "自动生成brick",
|
|
5703
|
+
"endpoint": {
|
|
5704
|
+
"method": "POST",
|
|
5705
|
+
"uri": "/api/v1/llm/virtual_builder/generate_storyboard"
|
|
5706
|
+
},
|
|
5707
|
+
"request": {
|
|
5708
|
+
"type": "object",
|
|
5709
|
+
"fields": [
|
|
5710
|
+
{
|
|
5711
|
+
"name": "userInput",
|
|
5712
|
+
"type": "string",
|
|
5713
|
+
"description": "用户输入"
|
|
5714
|
+
},
|
|
5715
|
+
{
|
|
5716
|
+
"name": "sessionId",
|
|
5717
|
+
"type": "string",
|
|
5718
|
+
"description": "会话id"
|
|
5719
|
+
}
|
|
5720
|
+
],
|
|
5721
|
+
"required": [
|
|
5722
|
+
"userInput"
|
|
5723
|
+
]
|
|
5724
|
+
},
|
|
5725
|
+
"response": {
|
|
5726
|
+
"type": "object",
|
|
5727
|
+
"fields": [
|
|
5728
|
+
{
|
|
5729
|
+
"name": "outputs",
|
|
5730
|
+
"type": "object[]",
|
|
5731
|
+
"description": "llm的输出",
|
|
5732
|
+
"fields": [
|
|
5733
|
+
{
|
|
5734
|
+
"name": "type",
|
|
5735
|
+
"type": "string",
|
|
5736
|
+
"enum": [
|
|
5737
|
+
"markdown",
|
|
5738
|
+
"storyboard"
|
|
5739
|
+
],
|
|
5740
|
+
"description": "输出内容的类型,markdown或者storyboard"
|
|
5741
|
+
},
|
|
5742
|
+
{
|
|
5743
|
+
"name": "content",
|
|
5744
|
+
"type": "string",
|
|
5745
|
+
"description": "输出内容"
|
|
5746
|
+
}
|
|
5747
|
+
]
|
|
5748
|
+
},
|
|
5749
|
+
{
|
|
5750
|
+
"name": "sessionId",
|
|
5751
|
+
"type": "string",
|
|
5752
|
+
"description": "会话id"
|
|
5753
|
+
}
|
|
5754
|
+
]
|
|
5755
|
+
},
|
|
5756
|
+
"examples": [
|
|
5757
|
+
{
|
|
5758
|
+
"description": {
|
|
5759
|
+
"zh": "自动生成storyboard"
|
|
3788
5760
|
},
|
|
3789
5761
|
"request": {
|
|
3790
5762
|
"method": "POST",
|
|
@@ -3884,6 +5856,105 @@
|
|
|
3884
5856
|
}
|
|
3885
5857
|
}
|
|
3886
5858
|
]
|
|
5859
|
+
},
|
|
5860
|
+
{
|
|
5861
|
+
"contract": "llm.webhook.AlertWebhook",
|
|
5862
|
+
"name": "AlertWebhook",
|
|
5863
|
+
"version": "1.0.0",
|
|
5864
|
+
"description": "告警webhook",
|
|
5865
|
+
"endpoint": {
|
|
5866
|
+
"method": "POST",
|
|
5867
|
+
"uri": "/api/v1/llm/webhook/alert_webhook"
|
|
5868
|
+
},
|
|
5869
|
+
"request": {
|
|
5870
|
+
"type": "object",
|
|
5871
|
+
"fields": [
|
|
5872
|
+
{
|
|
5873
|
+
"name": "alertCount",
|
|
5874
|
+
"type": "int",
|
|
5875
|
+
"description": "告警次数"
|
|
5876
|
+
},
|
|
5877
|
+
{
|
|
5878
|
+
"name": "alertId",
|
|
5879
|
+
"type": "string",
|
|
5880
|
+
"description": "告警id"
|
|
5881
|
+
},
|
|
5882
|
+
{
|
|
5883
|
+
"name": "originContent",
|
|
5884
|
+
"type": "string",
|
|
5885
|
+
"description": "告警内容"
|
|
5886
|
+
},
|
|
5887
|
+
{
|
|
5888
|
+
"name": "target",
|
|
5889
|
+
"type": "string",
|
|
5890
|
+
"description": "告警目标"
|
|
5891
|
+
},
|
|
5892
|
+
{
|
|
5893
|
+
"name": "time",
|
|
5894
|
+
"type": "int64",
|
|
5895
|
+
"description": "告警时间"
|
|
5896
|
+
},
|
|
5897
|
+
{
|
|
5898
|
+
"name": "startTime",
|
|
5899
|
+
"type": "int64",
|
|
5900
|
+
"description": "最早告警时间"
|
|
5901
|
+
},
|
|
5902
|
+
{
|
|
5903
|
+
"name": "level",
|
|
5904
|
+
"type": "string",
|
|
5905
|
+
"description": "告警等级"
|
|
5906
|
+
},
|
|
5907
|
+
{
|
|
5908
|
+
"name": "objectId",
|
|
5909
|
+
"type": "string",
|
|
5910
|
+
"description": "告警的objectId"
|
|
5911
|
+
},
|
|
5912
|
+
{
|
|
5913
|
+
"name": "instanceId",
|
|
5914
|
+
"type": "string",
|
|
5915
|
+
"description": "告警的实例Id"
|
|
5916
|
+
},
|
|
5917
|
+
{
|
|
5918
|
+
"name": "isRecover",
|
|
5919
|
+
"type": "bool",
|
|
5920
|
+
"description": "是否已经恢复"
|
|
5921
|
+
}
|
|
5922
|
+
]
|
|
5923
|
+
},
|
|
5924
|
+
"response": {
|
|
5925
|
+
"type": "object",
|
|
5926
|
+
"fields": [
|
|
5927
|
+
{
|
|
5928
|
+
"name": "success",
|
|
5929
|
+
"type": "bool",
|
|
5930
|
+
"description": "是否成功接收"
|
|
5931
|
+
}
|
|
5932
|
+
]
|
|
5933
|
+
},
|
|
5934
|
+
"examples": [
|
|
5935
|
+
{
|
|
5936
|
+
"description": {
|
|
5937
|
+
"zh": "接收告警"
|
|
5938
|
+
},
|
|
5939
|
+
"request": {
|
|
5940
|
+
"method": "POST",
|
|
5941
|
+
"uri": "http://localhost:8095/api/v1/llm/webhook/alert_webhook",
|
|
5942
|
+
"headers": {
|
|
5943
|
+
"Content-Type": "application/json",
|
|
5944
|
+
"user": "easyops",
|
|
5945
|
+
"org": 8888
|
|
5946
|
+
},
|
|
5947
|
+
"body": "{\n \"alertCount\": 1,\n \"alertDims\": {\n \"111\": [\n \"172.16.244.2(\\u8d85\\u4f19-\\u6d4b\\u8bd5-Redis)\"\n ],\n \"12222\": [\n \"172.16.244.2(\\u8d85\\u4f19-\\u6d4b\\u8bd5-Redis)\"\n ],\n \"_job\": \"623f2b5f12a95\",\n \"appSystemNames\": [],\n \"businessIds\": [],\n \"cInstanceShowKey\": [\n \"172.16.244.2(\\u8d85\\u4f19-\\u6d4b\\u8bd5-Redis)\"\n ],\n \"cObjectId\": \"REDIS@ONEMODEL\",\n \"cPluginName\": [\n \"Redis\\u4fe1\\u606f\\u91c7\\u96c6\"\n ],\n \"collectorId\": \"6371a83ba897d\",\n \"instanceId\": \"623f2b5f12a95\",\n \"objectId\": \"_COLLECTOR_JOB\"\n },\n \"alertId\": \"3e18164af7d3c357f07429fc5314fe64\",\n \"alertReceivers\": [],\n \"alertRuleId\": \"63af9d6205381\",\n \"alertRuleVersion\": 3,\n \"content\": \"\",\n \"eventId\": \"689102d3ff66ceb56cfcd8bc\",\n \"handlers\": [\n ],\n \"instance\": {\n \"#showKey\": [\n \"redis info\"\n ],\n \"_object_id\": \"_COLLECTOR_JOB\",\n \"instanceId\": \"623f2b5f12a95\",\n \"plugins\": [\n {\n \"_object_id\": \"_COLLECTOR_EASYOPS_PLUGIN\",\n \"instanceId\": \"61825bf393cdd\",\n \"name\": \"Redis\\u4fe1\\u606f\\u91c7\\u96c6\"\n }\n ],\n \"resDiscoveryConfigs\": []\n },\n \"instanceId\": \"623f2b5f12a95\",\n \"isRecover\": false,\n \"level\": \"info\",\n \"metricName\": \"metric_status\",\n \"metricThreshold\": \"2\",\n \"metricThresholdComparator\": \"equal\",\n \"metricThresholdValue\": 2,\n \"metricUnit\": \"\",\n \"metricValue\": 2,\n \"objectId\": \"_COLLECTOR_JOB\",\n \"org\": 5910,\n \"originContent\": \"metric_status: 2\\u7b49\\u4e8e2\",\n \"recoverType\": \"auto\",\n \"resource\": \"\",\n \"source\": \"system\",\n \"startTime\": 1754333907,\n \"status\": \"group\",\n \"subject\": \"\",\n \"target\": \"redis info\",\n \"time\": 1754333907,\n \"triggeredCondition\": {\n \"alertCount\": 3,\n \"alertDims\": [],\n \"comparators\": [\n {\n \"desc\": \"info\",\n \"level\": 0,\n \"params\": [],\n \"threshold\": 2,\n \"tolerance\": 0,\n \"type\": \"equal\"\n },\n {\n \"desc\": \"warning\",\n \"level\": 1,\n \"params\": [],\n \"threshold\": null,\n \"tolerance\": 0,\n \"type\": \"equal\"\n },\n {\n \"desc\": \"critical\",\n \"level\": 2,\n \"params\": [],\n \"threshold\": null,\n \"tolerance\": 0,\n \"type\": \"equal\"\n }\n ],\n \"detectWindow\": 3,\n \"metricName\": \"metric_status\",\n \"mode\": \"static\",\n \"recoverCount\": 5,\n \"type\": \"equal\"\n }\n}"
|
|
5948
|
+
},
|
|
5949
|
+
"response": {
|
|
5950
|
+
"headers": {
|
|
5951
|
+
"Content-Type": "application/json; charset=utf-8"
|
|
5952
|
+
},
|
|
5953
|
+
"status_code": 200,
|
|
5954
|
+
"body": "{\n \"success\": true\n}"
|
|
5955
|
+
}
|
|
5956
|
+
}
|
|
5957
|
+
]
|
|
3887
5958
|
}
|
|
3888
5959
|
]
|
|
3889
5960
|
}
|