@next-api-sdk/llm-sdk 1.1.3 → 1.4.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/README.md +1 -1
- package/contracts.json +403 -0
- package/dist/cjs/api/llm/agent_flow/addJobMessageForAgentFlow.js +14 -0
- package/dist/cjs/api/llm/agent_flow/addJobMessageForAgentFlow.js.map +1 -0
- package/dist/cjs/api/llm/agent_flow/createTaskForAgentFlow.js +14 -0
- package/dist/cjs/api/llm/agent_flow/createTaskForAgentFlow.js.map +1 -0
- package/dist/cjs/api/llm/agent_flow/getTaskDetailForAgentFlow.js +16 -0
- package/dist/cjs/api/llm/agent_flow/getTaskDetailForAgentFlow.js.map +1 -0
- package/dist/cjs/api/llm/agent_flow/index.js +61 -0
- package/dist/cjs/api/llm/agent_flow/index.js.map +1 -0
- package/dist/cjs/api/llm/agent_flow/searchTaskForAgentFlow.js +14 -0
- package/dist/cjs/api/llm/agent_flow/searchTaskForAgentFlow.js.map +1 -0
- package/dist/cjs/api/llm/agent_flow/updateStateForAgentFlow.js +14 -0
- package/dist/cjs/api/llm/agent_flow/updateStateForAgentFlow.js.map +1 -0
- package/dist/cjs/api/llm/aiops_tools/execLlmTools.js +14 -0
- package/dist/cjs/api/llm/aiops_tools/execLlmTools.js.map +1 -0
- package/dist/cjs/api/llm/aiops_tools/index.js +11 -0
- package/dist/cjs/api/llm/aiops_tools/index.js.map +1 -1
- package/dist/cjs/api/llm/aiops_tools/templateLlmChatV2.js +1 -1
- package/dist/cjs/api/llm/aiops_tools/templateLlmChatV2.js.map +1 -1
- package/dist/cjs/index.js +19 -7
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/model/aiops_service/ModelLlmChatAgentTaskRequest.js.map +1 -1
- package/dist/cjs/model/llm/ModelFlowAgentTaskMessage.js +6 -0
- package/dist/cjs/model/llm/ModelFlowAgentTaskMessage.js.map +1 -0
- package/dist/cjs/model/llm/ModelFlowAgentTaskResponse.js +6 -0
- package/dist/cjs/model/llm/ModelFlowAgentTaskResponse.js.map +1 -0
- package/dist/cjs/model/llm/index.js +22 -0
- package/dist/cjs/model/llm/index.js.map +1 -1
- package/dist/esm/api/llm/agent_flow/addJobMessageForAgentFlow.js +7 -0
- package/dist/esm/api/llm/agent_flow/addJobMessageForAgentFlow.js.map +1 -0
- package/dist/esm/api/llm/agent_flow/createTaskForAgentFlow.js +7 -0
- package/dist/esm/api/llm/agent_flow/createTaskForAgentFlow.js.map +1 -0
- package/dist/esm/api/llm/agent_flow/getTaskDetailForAgentFlow.js +10 -0
- package/dist/esm/api/llm/agent_flow/getTaskDetailForAgentFlow.js.map +1 -0
- package/dist/esm/api/llm/agent_flow/index.js +6 -0
- package/dist/esm/api/llm/agent_flow/index.js.map +1 -0
- package/dist/esm/api/llm/agent_flow/searchTaskForAgentFlow.js +7 -0
- package/dist/esm/api/llm/agent_flow/searchTaskForAgentFlow.js.map +1 -0
- package/dist/esm/api/llm/agent_flow/updateStateForAgentFlow.js +7 -0
- package/dist/esm/api/llm/agent_flow/updateStateForAgentFlow.js.map +1 -0
- package/dist/esm/api/llm/aiops_tools/execLlmTools.js +7 -0
- package/dist/esm/api/llm/aiops_tools/execLlmTools.js.map +1 -0
- package/dist/esm/api/llm/aiops_tools/index.js +1 -0
- package/dist/esm/api/llm/aiops_tools/index.js.map +1 -1
- package/dist/esm/api/llm/aiops_tools/templateLlmChatV2.js +1 -1
- package/dist/esm/api/llm/aiops_tools/templateLlmChatV2.js.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/model/aiops_service/ModelLlmChatAgentTaskRequest.js.map +1 -1
- package/dist/esm/model/llm/ModelFlowAgentTaskMessage.js +2 -0
- package/dist/esm/model/llm/ModelFlowAgentTaskMessage.js.map +1 -0
- package/dist/esm/model/llm/ModelFlowAgentTaskResponse.js +2 -0
- package/dist/esm/model/llm/ModelFlowAgentTaskResponse.js.map +1 -0
- package/dist/esm/model/llm/index.js +2 -0
- package/dist/esm/model/llm/index.js.map +1 -1
- package/dist/types/api/llm/agent_flow/addJobMessageForAgentFlow.d.ts +10 -0
- package/dist/types/api/llm/agent_flow/createTaskForAgentFlow.d.ts +18 -0
- package/dist/types/api/llm/agent_flow/getTaskDetailForAgentFlow.d.ts +13 -0
- package/dist/types/api/llm/agent_flow/index.d.ts +5 -0
- package/dist/types/api/llm/agent_flow/searchTaskForAgentFlow.d.ts +34 -0
- package/dist/types/api/llm/agent_flow/updateStateForAgentFlow.d.ts +10 -0
- package/dist/types/api/llm/aiops_tools/execLlmTools.d.ts +20 -0
- package/dist/types/api/llm/aiops_tools/index.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/model/aiops_service/ModelLlmChatAgentTaskRequest.d.ts +2 -0
- package/dist/types/model/llm/ModelFlowAgentTaskMessage.d.ts +27 -0
- package/dist/types/model/llm/ModelFlowAgentTaskResponse.d.ts +42 -0
- package/dist/types/model/llm/index.d.ts +2 -0
- package/package.json +4 -4
package/README.md
CHANGED
package/contracts.json
CHANGED
|
@@ -133,6 +133,335 @@
|
|
|
133
133
|
}
|
|
134
134
|
]
|
|
135
135
|
},
|
|
136
|
+
{
|
|
137
|
+
"contract": "llm.agent_flow.AddJobMessageForAgentFlow",
|
|
138
|
+
"name": "AddJobMessageForAgentFlow",
|
|
139
|
+
"version": "1.0.0",
|
|
140
|
+
"description": "flow agent补充消息",
|
|
141
|
+
"endpoint": {
|
|
142
|
+
"method": "POST",
|
|
143
|
+
"uri": "/api/v1/llm/agent/flow/:taskId/job/:jobId"
|
|
144
|
+
},
|
|
145
|
+
"request": {
|
|
146
|
+
"type": "object",
|
|
147
|
+
"fields": [
|
|
148
|
+
{
|
|
149
|
+
"name": "taskId",
|
|
150
|
+
"type": "string",
|
|
151
|
+
"description": "总任务id"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"name": "jobId",
|
|
155
|
+
"type": "string",
|
|
156
|
+
"description": "job id,子任务id"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"name": "input",
|
|
160
|
+
"type": "string",
|
|
161
|
+
"description": "补充输入"
|
|
162
|
+
}
|
|
163
|
+
]
|
|
164
|
+
},
|
|
165
|
+
"response": null,
|
|
166
|
+
"examples": [
|
|
167
|
+
{
|
|
168
|
+
"description": {
|
|
169
|
+
"zh": "flow agent补充消息"
|
|
170
|
+
},
|
|
171
|
+
"request": {
|
|
172
|
+
"method": "POST",
|
|
173
|
+
"uri": "http://ip:port/api/v1/llm/agent/8239375684858666781/job/job_1546111",
|
|
174
|
+
"headers": {
|
|
175
|
+
"Content-Type": "application/json",
|
|
176
|
+
"user": "linus",
|
|
177
|
+
"org": 1234
|
|
178
|
+
},
|
|
179
|
+
"body": "{\n \"input\": \"确认\"\n}"
|
|
180
|
+
},
|
|
181
|
+
"response": {
|
|
182
|
+
"headers": {
|
|
183
|
+
"Content-Type": "application/json; charset=utf-8"
|
|
184
|
+
},
|
|
185
|
+
"status_code": 200,
|
|
186
|
+
"body": "{ }"
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
]
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"contract": "llm.agent_flow.CreateTaskForAgentFlow",
|
|
193
|
+
"name": "CreateTaskForAgentFlow",
|
|
194
|
+
"version": "1.0.0",
|
|
195
|
+
"description": "创建agent flow的任务",
|
|
196
|
+
"endpoint": {
|
|
197
|
+
"method": "POST",
|
|
198
|
+
"uri": "/api/v1/llm/agent/flow/create"
|
|
199
|
+
},
|
|
200
|
+
"request": {
|
|
201
|
+
"type": "object",
|
|
202
|
+
"fields": [
|
|
203
|
+
{
|
|
204
|
+
"name": "input",
|
|
205
|
+
"type": "string",
|
|
206
|
+
"description": "用户输入"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"name": "agentId",
|
|
210
|
+
"type": "string",
|
|
211
|
+
"description": "指定处理任务的agent"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"name": "engineVersion",
|
|
215
|
+
"type": "string",
|
|
216
|
+
"description": "执行任务引擎的版本号"
|
|
217
|
+
}
|
|
218
|
+
]
|
|
219
|
+
},
|
|
220
|
+
"response": {
|
|
221
|
+
"type": "object",
|
|
222
|
+
"fields": [
|
|
223
|
+
{
|
|
224
|
+
"name": "taskId",
|
|
225
|
+
"type": "string",
|
|
226
|
+
"description": "任务id"
|
|
227
|
+
}
|
|
228
|
+
]
|
|
229
|
+
},
|
|
230
|
+
"examples": [
|
|
231
|
+
{
|
|
232
|
+
"description": {
|
|
233
|
+
"zh": "创建agent flow的任务"
|
|
234
|
+
},
|
|
235
|
+
"request": {
|
|
236
|
+
"method": "POST",
|
|
237
|
+
"uri": "http://ip:port/api/v1/llm/agent/flow/create",
|
|
238
|
+
"headers": {
|
|
239
|
+
"Content-Type": "application/json",
|
|
240
|
+
"user": "linus",
|
|
241
|
+
"org": 1234
|
|
242
|
+
},
|
|
243
|
+
"body": "{\n \"input\": \"今天深圳天气\",\n \"agentId\": \"general-helper\"\n}"
|
|
244
|
+
},
|
|
245
|
+
"response": {
|
|
246
|
+
"headers": {
|
|
247
|
+
"Content-Type": "application/json; charset=utf-8"
|
|
248
|
+
},
|
|
249
|
+
"status_code": 200,
|
|
250
|
+
"body": "{\n \"taskId\": \"8239375684858666781\"\n}"
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
]
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"contract": "llm.agent_flow.GetTaskDetailForAgentFlow",
|
|
257
|
+
"name": "GetTaskDetailForAgentFlow",
|
|
258
|
+
"version": "1.0.0",
|
|
259
|
+
"description": "获取agent flow任务详情,流式返回",
|
|
260
|
+
"endpoint": {
|
|
261
|
+
"method": "GET",
|
|
262
|
+
"uri": "/api/v1/llm/agent/flow/:taskId"
|
|
263
|
+
},
|
|
264
|
+
"import": [
|
|
265
|
+
"easyops/model/llm/flow_agent_task_response"
|
|
266
|
+
],
|
|
267
|
+
"request": {
|
|
268
|
+
"type": "object",
|
|
269
|
+
"fields": [
|
|
270
|
+
{
|
|
271
|
+
"name": "taskId",
|
|
272
|
+
"type": "string",
|
|
273
|
+
"description": "任务id"
|
|
274
|
+
}
|
|
275
|
+
]
|
|
276
|
+
},
|
|
277
|
+
"response": {
|
|
278
|
+
"type": "object",
|
|
279
|
+
"description": "流式返回的数据",
|
|
280
|
+
"fields": [
|
|
281
|
+
{
|
|
282
|
+
"ref": "FlowAgentTaskResponse.*"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"name": "sseDataList",
|
|
286
|
+
"type": "value[]",
|
|
287
|
+
"description": "流式数据列表"
|
|
288
|
+
}
|
|
289
|
+
]
|
|
290
|
+
},
|
|
291
|
+
"examples": [
|
|
292
|
+
{
|
|
293
|
+
"description": {
|
|
294
|
+
"zh": "获取agent flow的详情"
|
|
295
|
+
},
|
|
296
|
+
"request": {
|
|
297
|
+
"method": "GET",
|
|
298
|
+
"uri": "http://ip:port/api/v1/llm/agent/flow/a8239375684858666781",
|
|
299
|
+
"headers": {
|
|
300
|
+
"Content-Type": "application/json",
|
|
301
|
+
"user": "linus",
|
|
302
|
+
"org": 1234
|
|
303
|
+
},
|
|
304
|
+
"body": "{ }"
|
|
305
|
+
},
|
|
306
|
+
"response": {
|
|
307
|
+
"headers": {
|
|
308
|
+
"Content-Type": "application/json; charset=utf-8"
|
|
309
|
+
},
|
|
310
|
+
"status_code": 200,
|
|
311
|
+
"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]"
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
]
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"contract": "llm.agent_flow.SearchTaskForAgentFlow",
|
|
318
|
+
"name": "SearchTaskForAgentFlow",
|
|
319
|
+
"version": "1.0.0",
|
|
320
|
+
"description": "分页查询agent flow, 默认只查询最近三个页的数据",
|
|
321
|
+
"endpoint": {
|
|
322
|
+
"method": "POST",
|
|
323
|
+
"uri": "/api/v1/llm/agent/flow/search"
|
|
324
|
+
},
|
|
325
|
+
"request": {
|
|
326
|
+
"type": "object",
|
|
327
|
+
"fields": [
|
|
328
|
+
{
|
|
329
|
+
"name": "query",
|
|
330
|
+
"type": "string",
|
|
331
|
+
"description": "对标题进行关键字搜索"
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"name": "limit",
|
|
335
|
+
"type": "int",
|
|
336
|
+
"description": "数据数量大小限制, 默认30"
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"name": "next_token",
|
|
340
|
+
"type": "string",
|
|
341
|
+
"description": "分页token,字符串;向上翻页或向下翻页的token都在这个参数传入。"
|
|
342
|
+
}
|
|
343
|
+
]
|
|
344
|
+
},
|
|
345
|
+
"response": {
|
|
346
|
+
"type": "object",
|
|
347
|
+
"fields": [
|
|
348
|
+
{
|
|
349
|
+
"name": "next_token",
|
|
350
|
+
"type": "string",
|
|
351
|
+
"description": "下一页,查询的token,为空时,没有下一页"
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"name": "previous_token",
|
|
355
|
+
"type": "string",
|
|
356
|
+
"description": "上一页,查询的token,为空时,没有上一页"
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"name": "data",
|
|
360
|
+
"type": "object[]",
|
|
361
|
+
"description": "任务列表",
|
|
362
|
+
"fields": [
|
|
363
|
+
{
|
|
364
|
+
"name": "id",
|
|
365
|
+
"type": "string",
|
|
366
|
+
"description": "任务id"
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
"name": "startTime",
|
|
370
|
+
"type": "int",
|
|
371
|
+
"description": "创建时间戳,单位秒"
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"name": "endTime",
|
|
375
|
+
"type": "int",
|
|
376
|
+
"description": "结束时间戳,单位秒"
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"name": "state",
|
|
380
|
+
"type": "string",
|
|
381
|
+
"description": "任务状态,\"submitted\", \"working\", \"input-required\",\"completed\",\"canceled\",\"failed\", \"unknown\""
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
"name": "title",
|
|
385
|
+
"type": "string",
|
|
386
|
+
"description": "标题"
|
|
387
|
+
}
|
|
388
|
+
]
|
|
389
|
+
}
|
|
390
|
+
]
|
|
391
|
+
},
|
|
392
|
+
"examples": [
|
|
393
|
+
{
|
|
394
|
+
"description": {
|
|
395
|
+
"en": "search task of flow agent",
|
|
396
|
+
"zh": "分页查询agent flow任务数据"
|
|
397
|
+
},
|
|
398
|
+
"request": {
|
|
399
|
+
"method": "POST",
|
|
400
|
+
"uri": "/api/v1/llm/agent/flow/search",
|
|
401
|
+
"headers": {
|
|
402
|
+
"Content-Type": "application/json"
|
|
403
|
+
},
|
|
404
|
+
"body": "{\n\t\"query\": \"测试标题\",\n \"limit\": 1\n}"
|
|
405
|
+
},
|
|
406
|
+
"response": {
|
|
407
|
+
"headers": {
|
|
408
|
+
"Content-Type": "application/json; charset=utf-8"
|
|
409
|
+
},
|
|
410
|
+
"body": "{\n \"code\": 0,\n \"codeExplain\": \"\",\n \"error\": \"\",\n \"data\": {\n \"next_token\": \"xxxxxxx\",\n \"previous_token\": \"\",\n \"data\": [\n {\n \"title\": \"录入应用系统\",\n \"startTime\": 1747106187.0,\n \"_row_id\": \"00000196c7a4c973af2e063afadd7f7b\",\n \"status\": \"completed\",\n \"endTime\": 1747106535.0\n }\n ]\n }\n}"
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
]
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
"contract": "llm.agent_flow.UpdateStateForAgentFlow",
|
|
417
|
+
"name": "UpdateStateForAgentFlow",
|
|
418
|
+
"version": "1.0.0",
|
|
419
|
+
"description": "flow agent更新任务状态,支持暂停、停止和重启任务",
|
|
420
|
+
"endpoint": {
|
|
421
|
+
"method": "POST",
|
|
422
|
+
"uri": "/api/v1/llm/agent/flow/:taskId/updateState"
|
|
423
|
+
},
|
|
424
|
+
"request": {
|
|
425
|
+
"type": "object",
|
|
426
|
+
"fields": [
|
|
427
|
+
{
|
|
428
|
+
"name": "taskId",
|
|
429
|
+
"type": "string",
|
|
430
|
+
"description": "总任务id"
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
"name": "state",
|
|
434
|
+
"type": "string",
|
|
435
|
+
"description": "调整任务状态,可以设置为 stopped, paused, working(paused的任务状态时,可以继续)"
|
|
436
|
+
}
|
|
437
|
+
]
|
|
438
|
+
},
|
|
439
|
+
"response": null,
|
|
440
|
+
"examples": [
|
|
441
|
+
{
|
|
442
|
+
"description": {
|
|
443
|
+
"zh": "flow agent更新任务状态,支持暂停、停止和重启任务"
|
|
444
|
+
},
|
|
445
|
+
"request": {
|
|
446
|
+
"method": "POST",
|
|
447
|
+
"uri": "http://ip:port/api/v1/llm/agent/8239375684858666781/updateState",
|
|
448
|
+
"headers": {
|
|
449
|
+
"Content-Type": "application/json",
|
|
450
|
+
"user": "linus",
|
|
451
|
+
"org": 1234
|
|
452
|
+
},
|
|
453
|
+
"body": "{\n \"state\": \"stopped\"\n}"
|
|
454
|
+
},
|
|
455
|
+
"response": {
|
|
456
|
+
"headers": {
|
|
457
|
+
"Content-Type": "application/json; charset=utf-8"
|
|
458
|
+
},
|
|
459
|
+
"status_code": 200,
|
|
460
|
+
"body": "{\n \"code\": 0,\n \"codeExplain\": \"\",\n \"error\": \"\"\n}"
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
]
|
|
464
|
+
},
|
|
136
465
|
{
|
|
137
466
|
"contract": "llm.aiops_base.DeleteEmbedding",
|
|
138
467
|
"name": "DeleteEmbedding",
|
|
@@ -3089,6 +3418,79 @@
|
|
|
3089
3418
|
}
|
|
3090
3419
|
]
|
|
3091
3420
|
},
|
|
3421
|
+
{
|
|
3422
|
+
"contract": "llm.aiops_tools.ExecLlmTools",
|
|
3423
|
+
"name": "ExecLlmTools",
|
|
3424
|
+
"version": "1.0.0",
|
|
3425
|
+
"description": "执行大模型工具,非MCP协议的一部分",
|
|
3426
|
+
"endpoint": {
|
|
3427
|
+
"method": "POST",
|
|
3428
|
+
"uri": "/api/v1/llm/tools/exec"
|
|
3429
|
+
},
|
|
3430
|
+
"request": {
|
|
3431
|
+
"fields": [
|
|
3432
|
+
{
|
|
3433
|
+
"description": "要执行的工具名称,也是id",
|
|
3434
|
+
"name": "name",
|
|
3435
|
+
"type": "string"
|
|
3436
|
+
},
|
|
3437
|
+
{
|
|
3438
|
+
"description": "执行工具的参数",
|
|
3439
|
+
"name": "arguments",
|
|
3440
|
+
"type": "map"
|
|
3441
|
+
},
|
|
3442
|
+
{
|
|
3443
|
+
"description": "执行工具的配置,例如agentId,\"agentId\":\"cmdb_search_agent\"",
|
|
3444
|
+
"name": "config",
|
|
3445
|
+
"type": "map"
|
|
3446
|
+
}
|
|
3447
|
+
],
|
|
3448
|
+
"required": [
|
|
3449
|
+
"name"
|
|
3450
|
+
],
|
|
3451
|
+
"type": "object"
|
|
3452
|
+
},
|
|
3453
|
+
"response": {
|
|
3454
|
+
"default": {},
|
|
3455
|
+
"fields": [
|
|
3456
|
+
{
|
|
3457
|
+
"description": "执行结果,返回类型,目前只支持text",
|
|
3458
|
+
"name": "type",
|
|
3459
|
+
"type": "string"
|
|
3460
|
+
},
|
|
3461
|
+
{
|
|
3462
|
+
"description": "执行工具的结果",
|
|
3463
|
+
"name": "result",
|
|
3464
|
+
"type": "value"
|
|
3465
|
+
}
|
|
3466
|
+
],
|
|
3467
|
+
"type": "object"
|
|
3468
|
+
},
|
|
3469
|
+
"examples": [
|
|
3470
|
+
{
|
|
3471
|
+
"description": {
|
|
3472
|
+
"zh": "执行大模型工具"
|
|
3473
|
+
},
|
|
3474
|
+
"request": {
|
|
3475
|
+
"method": "POST",
|
|
3476
|
+
"uri": "http://localhost:8320/api/v1/llm/tools/exec",
|
|
3477
|
+
"headers": {
|
|
3478
|
+
"Content-Type": "application/json",
|
|
3479
|
+
"user": "linus",
|
|
3480
|
+
"org": 1234
|
|
3481
|
+
},
|
|
3482
|
+
"body": "{\n \"name\": \"web_search\",\n \"arguments\": {\n \"query\": \"什么是MCP\"\n },\n \"config\":{\n \"agentId\": \"cmdb_search_agent\",\n \"conversationId\": \"xxxxxxx\",\n }\n}"
|
|
3483
|
+
},
|
|
3484
|
+
"response": {
|
|
3485
|
+
"headers": {
|
|
3486
|
+
"Content-Type": "application/json; charset=utf-8"
|
|
3487
|
+
},
|
|
3488
|
+
"status_code": 200,
|
|
3489
|
+
"body": "{\n \"code\": 0,\n \"error\": \"\",\n \"data\": {\n \"type\": \"text\",\n \"result\": \"MCP 是一种开放协议\", \"content\":\"什么是MCP? MCP 是一种开放协议,通过标准化的服务器实现,使AI 模型能够安全地与本地和远程资源进行交互。 此列表重点关注可用于生产和实验性的MCP 服务器,这些服务器通过文件访问、数据库连接、API 集成和其他上下文服务来扩展AI 功能。\"\n }\n}"
|
|
3490
|
+
}
|
|
3491
|
+
}
|
|
3492
|
+
]
|
|
3493
|
+
},
|
|
3092
3494
|
{
|
|
3093
3495
|
"contract": "llm.aiops_tools.SummaryQuestionV2",
|
|
3094
3496
|
"name": "SummaryQuestionV2",
|
|
@@ -3273,6 +3675,7 @@
|
|
|
3273
3675
|
},
|
|
3274
3676
|
"response": {
|
|
3275
3677
|
"default": {},
|
|
3678
|
+
"wrapper": false,
|
|
3276
3679
|
"fields": [
|
|
3277
3680
|
{
|
|
3278
3681
|
"ref": "LlmChatAgentTaskResponse.*"
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.AgentFlowApi_addJobMessageForAgentFlow = void 0;
|
|
7
|
+
var _http = require("@next-core/http");
|
|
8
|
+
/**
|
|
9
|
+
* @description flow agent补充消息
|
|
10
|
+
* @endpoint POST /api/v1/llm/agent/flow/:taskId/job/:jobId
|
|
11
|
+
*/
|
|
12
|
+
const AgentFlowApi_addJobMessageForAgentFlow = (taskId, jobId, data, options) => /**! @contract easyops.api.llm.agent_flow.AddJobMessageForAgentFlow@1.0.0 */_http.http.post(`api/gateway/logic.llm.aiops_service/api/v1/llm/agent/flow/${taskId}/job/${jobId}`, data, options);
|
|
13
|
+
exports.AgentFlowApi_addJobMessageForAgentFlow = AgentFlowApi_addJobMessageForAgentFlow;
|
|
14
|
+
//# sourceMappingURL=addJobMessageForAgentFlow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addJobMessageForAgentFlow.js","names":["_http","require","AgentFlowApi_addJobMessageForAgentFlow","taskId","jobId","data","options","http","post","exports"],"sources":["../../../../../src/api/llm/agent_flow/addJobMessageForAgentFlow.ts"],"sourcesContent":["import { http, HttpOptions } from \"@next-core/http\";\n\nexport interface AgentFlowApi_AddJobMessageForAgentFlowRequestBody {\n /** 补充输入 */\n input?: string;\n}\n\n/**\n * @description flow agent补充消息\n * @endpoint POST /api/v1/llm/agent/flow/:taskId/job/:jobId\n */\nexport const AgentFlowApi_addJobMessageForAgentFlow = (\n taskId: string | number,\n jobId: string | number,\n data: AgentFlowApi_AddJobMessageForAgentFlowRequestBody,\n options?: HttpOptions\n): Promise<void> =>\n /**! @contract easyops.api.llm.agent_flow.AddJobMessageForAgentFlow@1.0.0 */ http.post<void>(\n `api/gateway/logic.llm.aiops_service/api/v1/llm/agent/flow/${taskId}/job/${jobId}`,\n data,\n options\n );\n"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAOA;AACA;AACA;AACA;AACO,MAAMC,sCAAsC,GAAGA,CACpDC,MAAuB,EACvBC,KAAsB,EACtBC,IAAuD,EACvDC,OAAqB,KAErB,4EAA6EC,UAAI,CAACC,IAAI,CACpF,6DAA6DL,MAAM,QAAQC,KAAK,EAAE,EAClFC,IAAI,EACJC,OACF,CAAC;AAACG,OAAA,CAAAP,sCAAA,GAAAA,sCAAA","ignoreList":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.AgentFlowApi_createTaskForAgentFlow = void 0;
|
|
7
|
+
var _http = require("@next-core/http");
|
|
8
|
+
/**
|
|
9
|
+
* @description 创建agent flow的任务
|
|
10
|
+
* @endpoint POST /api/v1/llm/agent/flow/create
|
|
11
|
+
*/
|
|
12
|
+
const AgentFlowApi_createTaskForAgentFlow = async (data, options) => /**! @contract easyops.api.llm.agent_flow.CreateTaskForAgentFlow@1.0.0 */(await _http.http.post("api/gateway/logic.llm.aiops_service/api/v1/llm/agent/flow/create", data, options)).data;
|
|
13
|
+
exports.AgentFlowApi_createTaskForAgentFlow = AgentFlowApi_createTaskForAgentFlow;
|
|
14
|
+
//# sourceMappingURL=createTaskForAgentFlow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createTaskForAgentFlow.js","names":["_http","require","AgentFlowApi_createTaskForAgentFlow","data","options","http","post","exports"],"sources":["../../../../../src/api/llm/agent_flow/createTaskForAgentFlow.ts"],"sourcesContent":["import { http, HttpOptions } from \"@next-core/http\";\nimport { ResponseBodyWrapper } from \"../../../wrapper.js\";\n\nexport interface AgentFlowApi_CreateTaskForAgentFlowRequestBody {\n /** 用户输入 */\n input?: string;\n\n /** 指定处理任务的agent */\n agentId?: string;\n\n /** 执行任务引擎的版本号 */\n engineVersion?: string;\n}\n\nexport interface AgentFlowApi_CreateTaskForAgentFlowResponseBody {\n /** 任务id */\n taskId?: string;\n}\n\n/**\n * @description 创建agent flow的任务\n * @endpoint POST /api/v1/llm/agent/flow/create\n */\nexport const AgentFlowApi_createTaskForAgentFlow = async (\n data: AgentFlowApi_CreateTaskForAgentFlowRequestBody,\n options?: HttpOptions\n): Promise<AgentFlowApi_CreateTaskForAgentFlowResponseBody> =>\n /**! @contract easyops.api.llm.agent_flow.CreateTaskForAgentFlow@1.0.0 */ (\n await http.post<\n ResponseBodyWrapper<AgentFlowApi_CreateTaskForAgentFlowResponseBody>\n >(\n \"api/gateway/logic.llm.aiops_service/api/v1/llm/agent/flow/create\",\n data,\n options\n )\n ).data;\n"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAmBA;AACA;AACA;AACA;AACO,MAAMC,mCAAmC,GAAG,MAAAA,CACjDC,IAAoD,EACpDC,OAAqB,KAErB,yEAA0E,CACxE,MAAMC,UAAI,CAACC,IAAI,CAGb,kEAAkE,EAClEH,IAAI,EACJC,OACF,CAAC,EACDD,IAAI;AAACI,OAAA,CAAAL,mCAAA,GAAAA,mCAAA","ignoreList":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.AgentFlowApi_getTaskDetailForAgentFlow = void 0;
|
|
7
|
+
var _http = require("@next-core/http");
|
|
8
|
+
/** 流式返回的数据 */
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @description 获取agent flow任务详情,流式返回
|
|
12
|
+
* @endpoint GET /api/v1/llm/agent/flow/:taskId
|
|
13
|
+
*/
|
|
14
|
+
const AgentFlowApi_getTaskDetailForAgentFlow = async (taskId, options) => /**! @contract easyops.api.llm.agent_flow.GetTaskDetailForAgentFlow@1.0.0 */(await _http.http.get(`api/gateway/logic.llm.aiops_service/api/v1/llm/agent/flow/${taskId}`, options)).data;
|
|
15
|
+
exports.AgentFlowApi_getTaskDetailForAgentFlow = AgentFlowApi_getTaskDetailForAgentFlow;
|
|
16
|
+
//# sourceMappingURL=getTaskDetailForAgentFlow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getTaskDetailForAgentFlow.js","names":["_http","require","AgentFlowApi_getTaskDetailForAgentFlow","taskId","options","http","get","data","exports"],"sources":["../../../../../src/api/llm/agent_flow/getTaskDetailForAgentFlow.ts"],"sourcesContent":["import { http, HttpOptions } from \"@next-core/http\";\nimport { ModelFlowAgentTaskResponse } from \"../../../model/llm/index.js\";\nimport { ResponseBodyWrapper } from \"../../../wrapper.js\";\n\n/** 流式返回的数据 */\nexport type AgentFlowApi_GetTaskDetailForAgentFlowResponseBody =\n Partial<ModelFlowAgentTaskResponse> &\n AgentFlowApi_GetTaskDetailForAgentFlowResponseBody_2;\n\n/**\n * @description 获取agent flow任务详情,流式返回\n * @endpoint GET /api/v1/llm/agent/flow/:taskId\n */\nexport const AgentFlowApi_getTaskDetailForAgentFlow = async (\n taskId: string | number,\n options?: HttpOptions\n): Promise<AgentFlowApi_GetTaskDetailForAgentFlowResponseBody> =>\n /**! @contract easyops.api.llm.agent_flow.GetTaskDetailForAgentFlow@1.0.0 */ (\n await http.get<\n ResponseBodyWrapper<AgentFlowApi_GetTaskDetailForAgentFlowResponseBody>\n >(\n `api/gateway/logic.llm.aiops_service/api/v1/llm/agent/flow/${taskId}`,\n options\n )\n ).data;\n\nexport interface AgentFlowApi_GetTaskDetailForAgentFlowResponseBody_2 {\n /** 流式数据列表 */\n sseDataList?: any[];\n}\n"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAIA;;AAKA;AACA;AACA;AACA;AACO,MAAMC,sCAAsC,GAAG,MAAAA,CACpDC,MAAuB,EACvBC,OAAqB,KAErB,4EAA6E,CAC3E,MAAMC,UAAI,CAACC,GAAG,CAGZ,6DAA6DH,MAAM,EAAE,EACrEC,OACF,CAAC,EACDG,IAAI;AAACC,OAAA,CAAAN,sCAAA,GAAAA,sCAAA","ignoreList":[]}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _addJobMessageForAgentFlow = require("./addJobMessageForAgentFlow.js");
|
|
7
|
+
Object.keys(_addJobMessageForAgentFlow).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _addJobMessageForAgentFlow[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _addJobMessageForAgentFlow[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
var _createTaskForAgentFlow = require("./createTaskForAgentFlow.js");
|
|
18
|
+
Object.keys(_createTaskForAgentFlow).forEach(function (key) {
|
|
19
|
+
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _createTaskForAgentFlow[key]) return;
|
|
21
|
+
Object.defineProperty(exports, key, {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () {
|
|
24
|
+
return _createTaskForAgentFlow[key];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
var _getTaskDetailForAgentFlow = require("./getTaskDetailForAgentFlow.js");
|
|
29
|
+
Object.keys(_getTaskDetailForAgentFlow).forEach(function (key) {
|
|
30
|
+
if (key === "default" || key === "__esModule") return;
|
|
31
|
+
if (key in exports && exports[key] === _getTaskDetailForAgentFlow[key]) return;
|
|
32
|
+
Object.defineProperty(exports, key, {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () {
|
|
35
|
+
return _getTaskDetailForAgentFlow[key];
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
var _searchTaskForAgentFlow = require("./searchTaskForAgentFlow.js");
|
|
40
|
+
Object.keys(_searchTaskForAgentFlow).forEach(function (key) {
|
|
41
|
+
if (key === "default" || key === "__esModule") return;
|
|
42
|
+
if (key in exports && exports[key] === _searchTaskForAgentFlow[key]) return;
|
|
43
|
+
Object.defineProperty(exports, key, {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () {
|
|
46
|
+
return _searchTaskForAgentFlow[key];
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
var _updateStateForAgentFlow = require("./updateStateForAgentFlow.js");
|
|
51
|
+
Object.keys(_updateStateForAgentFlow).forEach(function (key) {
|
|
52
|
+
if (key === "default" || key === "__esModule") return;
|
|
53
|
+
if (key in exports && exports[key] === _updateStateForAgentFlow[key]) return;
|
|
54
|
+
Object.defineProperty(exports, key, {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function () {
|
|
57
|
+
return _updateStateForAgentFlow[key];
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["_addJobMessageForAgentFlow","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_createTaskForAgentFlow","_getTaskDetailForAgentFlow","_searchTaskForAgentFlow","_updateStateForAgentFlow"],"sources":["../../../../../src/api/llm/agent_flow/index.ts"],"sourcesContent":["export * from \"./addJobMessageForAgentFlow.js\";\nexport * from \"./createTaskForAgentFlow.js\";\nexport * from \"./getTaskDetailForAgentFlow.js\";\nexport * from \"./searchTaskForAgentFlow.js\";\nexport * from \"./updateStateForAgentFlow.js\";\n"],"mappings":";;;;;AAAA,IAAAA,0BAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,0BAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,0BAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,0BAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,uBAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,uBAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,uBAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,uBAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,0BAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,0BAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,0BAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAE,0BAAA,CAAAN,GAAA;IAAA;EAAA;AAAA;AACA,IAAAO,uBAAA,GAAAX,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAS,uBAAA,EAAAR,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAO,uBAAA,CAAAP,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAG,uBAAA,CAAAP,GAAA;IAAA;EAAA;AAAA;AACA,IAAAQ,wBAAA,GAAAZ,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAU,wBAAA,EAAAT,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAQ,wBAAA,CAAAR,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAI,wBAAA,CAAAR,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.AgentFlowApi_searchTaskForAgentFlow = void 0;
|
|
7
|
+
var _http = require("@next-core/http");
|
|
8
|
+
/**
|
|
9
|
+
* @description 分页查询agent flow, 默认只查询最近三个页的数据
|
|
10
|
+
* @endpoint POST /api/v1/llm/agent/flow/search
|
|
11
|
+
*/
|
|
12
|
+
const AgentFlowApi_searchTaskForAgentFlow = async (data, options) => /**! @contract easyops.api.llm.agent_flow.SearchTaskForAgentFlow@1.0.0 */(await _http.http.post("api/gateway/logic.llm.aiops_service/api/v1/llm/agent/flow/search", data, options)).data;
|
|
13
|
+
exports.AgentFlowApi_searchTaskForAgentFlow = AgentFlowApi_searchTaskForAgentFlow;
|
|
14
|
+
//# sourceMappingURL=searchTaskForAgentFlow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"searchTaskForAgentFlow.js","names":["_http","require","AgentFlowApi_searchTaskForAgentFlow","data","options","http","post","exports"],"sources":["../../../../../src/api/llm/agent_flow/searchTaskForAgentFlow.ts"],"sourcesContent":["import { http, HttpOptions } from \"@next-core/http\";\nimport { ResponseBodyWrapper } from \"../../../wrapper.js\";\n\nexport interface AgentFlowApi_SearchTaskForAgentFlowRequestBody {\n /** 对标题进行关键字搜索 */\n query?: string;\n\n /** 数据数量大小限制, 默认30 */\n limit?: number;\n\n /** 分页token,字符串;向上翻页或向下翻页的token都在这个参数传入。 */\n next_token?: string;\n}\n\nexport interface AgentFlowApi_SearchTaskForAgentFlowResponseBody {\n /** 下一页,查询的token,为空时,没有下一页 */\n next_token?: string;\n\n /** 上一页,查询的token,为空时,没有上一页 */\n previous_token?: string;\n\n /** 任务列表 */\n data?: AgentFlowApi_SearchTaskForAgentFlowResponseBody_data_item[];\n}\n\n/**\n * @description 分页查询agent flow, 默认只查询最近三个页的数据\n * @endpoint POST /api/v1/llm/agent/flow/search\n */\nexport const AgentFlowApi_searchTaskForAgentFlow = async (\n data: AgentFlowApi_SearchTaskForAgentFlowRequestBody,\n options?: HttpOptions\n): Promise<AgentFlowApi_SearchTaskForAgentFlowResponseBody> =>\n /**! @contract easyops.api.llm.agent_flow.SearchTaskForAgentFlow@1.0.0 */ (\n await http.post<\n ResponseBodyWrapper<AgentFlowApi_SearchTaskForAgentFlowResponseBody>\n >(\n \"api/gateway/logic.llm.aiops_service/api/v1/llm/agent/flow/search\",\n data,\n options\n )\n ).data;\n\nexport interface AgentFlowApi_SearchTaskForAgentFlowResponseBody_data_item {\n /** 任务id */\n id?: string;\n\n /** 创建时间戳,单位秒 */\n startTime?: number;\n\n /** 结束时间戳,单位秒 */\n endTime?: number;\n\n /** 任务状态,\"submitted\", \"working\", \"input-required\",\"completed\",\"canceled\",\"failed\", \"unknown\" */\n state?: string;\n\n /** 标题 */\n title?: string;\n}\n"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAyBA;AACA;AACA;AACA;AACO,MAAMC,mCAAmC,GAAG,MAAAA,CACjDC,IAAoD,EACpDC,OAAqB,KAErB,yEAA0E,CACxE,MAAMC,UAAI,CAACC,IAAI,CAGb,kEAAkE,EAClEH,IAAI,EACJC,OACF,CAAC,EACDD,IAAI;AAACI,OAAA,CAAAL,mCAAA,GAAAA,mCAAA","ignoreList":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.AgentFlowApi_updateStateForAgentFlow = void 0;
|
|
7
|
+
var _http = require("@next-core/http");
|
|
8
|
+
/**
|
|
9
|
+
* @description flow agent更新任务状态,支持暂停、停止和重启任务
|
|
10
|
+
* @endpoint POST /api/v1/llm/agent/flow/:taskId/updateState
|
|
11
|
+
*/
|
|
12
|
+
const AgentFlowApi_updateStateForAgentFlow = (taskId, data, options) => /**! @contract easyops.api.llm.agent_flow.UpdateStateForAgentFlow@1.0.0 */_http.http.post(`api/gateway/logic.llm.aiops_service/api/v1/llm/agent/flow/${taskId}/updateState`, data, options);
|
|
13
|
+
exports.AgentFlowApi_updateStateForAgentFlow = AgentFlowApi_updateStateForAgentFlow;
|
|
14
|
+
//# sourceMappingURL=updateStateForAgentFlow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateStateForAgentFlow.js","names":["_http","require","AgentFlowApi_updateStateForAgentFlow","taskId","data","options","http","post","exports"],"sources":["../../../../../src/api/llm/agent_flow/updateStateForAgentFlow.ts"],"sourcesContent":["import { http, HttpOptions } from \"@next-core/http\";\n\nexport interface AgentFlowApi_UpdateStateForAgentFlowRequestBody {\n /** 调整任务状态,可以设置为 stopped, paused, working(paused的任务状态时,可以继续) */\n state?: string;\n}\n\n/**\n * @description flow agent更新任务状态,支持暂停、停止和重启任务\n * @endpoint POST /api/v1/llm/agent/flow/:taskId/updateState\n */\nexport const AgentFlowApi_updateStateForAgentFlow = (\n taskId: string | number,\n data: AgentFlowApi_UpdateStateForAgentFlowRequestBody,\n options?: HttpOptions\n): Promise<void> =>\n /**! @contract easyops.api.llm.agent_flow.UpdateStateForAgentFlow@1.0.0 */ http.post<void>(\n `api/gateway/logic.llm.aiops_service/api/v1/llm/agent/flow/${taskId}/updateState`,\n data,\n options\n );\n"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAOA;AACA;AACA;AACA;AACO,MAAMC,oCAAoC,GAAGA,CAClDC,MAAuB,EACvBC,IAAqD,EACrDC,OAAqB,KAErB,0EAA2EC,UAAI,CAACC,IAAI,CAClF,6DAA6DJ,MAAM,cAAc,EACjFC,IAAI,EACJC,OACF,CAAC;AAACG,OAAA,CAAAN,oCAAA,GAAAA,oCAAA","ignoreList":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.AiopsToolsApi_execLlmTools = void 0;
|
|
7
|
+
var _http = require("@next-core/http");
|
|
8
|
+
/**
|
|
9
|
+
* @description 执行大模型工具,非MCP协议的一部分
|
|
10
|
+
* @endpoint POST /api/v1/llm/tools/exec
|
|
11
|
+
*/
|
|
12
|
+
const AiopsToolsApi_execLlmTools = async (data, options) => /**! @contract easyops.api.llm.aiops_tools.ExecLlmTools@1.0.0 */(await _http.http.post("api/gateway/logic.llm.aiops_service/api/v1/llm/tools/exec", data, options)).data;
|
|
13
|
+
exports.AiopsToolsApi_execLlmTools = AiopsToolsApi_execLlmTools;
|
|
14
|
+
//# sourceMappingURL=execLlmTools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execLlmTools.js","names":["_http","require","AiopsToolsApi_execLlmTools","data","options","http","post","exports"],"sources":["../../../../../src/api/llm/aiops_tools/execLlmTools.ts"],"sourcesContent":["import { http, HttpOptions } from \"@next-core/http\";\nimport { ResponseBodyWrapper } from \"../../../wrapper.js\";\n\nexport interface AiopsToolsApi_ExecLlmToolsRequestBody {\n /** 要执行的工具名称,也是id */\n name: string;\n\n /** 执行工具的参数 */\n arguments?: Record<string, any>;\n\n /** 执行工具的配置,例如agentId,\"agentId\":\"cmdb_search_agent\" */\n config?: Record<string, any>;\n}\n\nexport interface AiopsToolsApi_ExecLlmToolsResponseBody {\n /** 执行结果,返回类型,目前只支持text */\n type?: string;\n\n /** 执行工具的结果 */\n result?: any;\n}\n\n/**\n * @description 执行大模型工具,非MCP协议的一部分\n * @endpoint POST /api/v1/llm/tools/exec\n */\nexport const AiopsToolsApi_execLlmTools = async (\n data: AiopsToolsApi_ExecLlmToolsRequestBody,\n options?: HttpOptions\n): Promise<AiopsToolsApi_ExecLlmToolsResponseBody> =>\n /**! @contract easyops.api.llm.aiops_tools.ExecLlmTools@1.0.0 */ (\n await http.post<\n ResponseBodyWrapper<AiopsToolsApi_ExecLlmToolsResponseBody>\n >(\n \"api/gateway/logic.llm.aiops_service/api/v1/llm/tools/exec\",\n data,\n options\n )\n ).data;\n"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAsBA;AACA;AACA;AACA;AACO,MAAMC,0BAA0B,GAAG,MAAAA,CACxCC,IAA2C,EAC3CC,OAAqB,KAErB,gEAAiE,CAC/D,MAAMC,UAAI,CAACC,IAAI,CAGb,2DAA2D,EAC3DH,IAAI,EACJC,OACF,CAAC,EACDD,IAAI;AAACI,OAAA,CAAAL,0BAAA,GAAAA,0BAAA","ignoreList":[]}
|
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
var _execLlmTools = require("./execLlmTools.js");
|
|
7
|
+
Object.keys(_execLlmTools).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _execLlmTools[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _execLlmTools[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
6
17
|
var _summaryQuestionV = require("./summaryQuestionV2.js");
|
|
7
18
|
Object.keys(_summaryQuestionV).forEach(function (key) {
|
|
8
19
|
if (key === "default" || key === "__esModule") return;
|