@next-api-sdk/llm-sdk 1.1.3 → 1.3.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 +2 -1
- package/contracts.json +248 -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 +39 -0
- package/dist/cjs/api/llm/agent_flow/index.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/index.js +19 -7
- package/dist/cjs/index.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 +4 -0
- package/dist/esm/api/llm/agent_flow/index.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/index.js +1 -0
- package/dist/esm/index.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 +16 -0
- package/dist/types/api/llm/agent_flow/getTaskDetailForAgentFlow.d.ts +13 -0
- package/dist/types/api/llm/agent_flow/index.d.ts +3 -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/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
@@ -1,7 +1,7 @@
|
|
1
1
|
# @next-api-sdk/llm-sdk
|
2
2
|
|
3
3
|
**DO NOT MODIFY THIS PACKAGE MANUALLY.**
|
4
|
-
**IT IS AUTO GENERATED BY [@next-core/create-api-sdk] v1.0.
|
4
|
+
**IT IS AUTO GENERATED BY [@next-core/create-api-sdk] v1.0.33**
|
5
5
|
|
6
6
|
Llm SDK.
|
7
7
|
|
@@ -16,3 +16,4 @@ import * as LlmSdk from "@next-api-sdk/llm-sdk";
|
|
16
16
|
```
|
17
17
|
|
18
18
|
[@next-core/create-api-sdk]: https://github.com/easyops-cn/next-core/tree/master/packages/create-api-sdk
|
19
|
+
|
package/contracts.json
CHANGED
@@ -133,6 +133,181 @@
|
|
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
|
+
},
|
215
|
+
"response": {
|
216
|
+
"type": "object",
|
217
|
+
"fields": [
|
218
|
+
{
|
219
|
+
"name": "taskId",
|
220
|
+
"type": "string",
|
221
|
+
"description": "任务id"
|
222
|
+
}
|
223
|
+
]
|
224
|
+
},
|
225
|
+
"examples": [
|
226
|
+
{
|
227
|
+
"description": {
|
228
|
+
"zh": "创建agent flow的任务"
|
229
|
+
},
|
230
|
+
"request": {
|
231
|
+
"method": "POST",
|
232
|
+
"uri": "http://ip:port/api/v1/llm/agent/flow/create",
|
233
|
+
"headers": {
|
234
|
+
"Content-Type": "application/json",
|
235
|
+
"user": "linus",
|
236
|
+
"org": 1234
|
237
|
+
},
|
238
|
+
"body": "{\n \"input\": \"今天深圳天气\",\n \"agentId\": \"general-helper\"\n}"
|
239
|
+
},
|
240
|
+
"response": {
|
241
|
+
"headers": {
|
242
|
+
"Content-Type": "application/json; charset=utf-8"
|
243
|
+
},
|
244
|
+
"status_code": 200,
|
245
|
+
"body": "{\n \"taskId\": \"8239375684858666781\"\n}"
|
246
|
+
}
|
247
|
+
}
|
248
|
+
]
|
249
|
+
},
|
250
|
+
{
|
251
|
+
"contract": "llm.agent_flow.GetTaskDetailForAgentFlow",
|
252
|
+
"name": "GetTaskDetailForAgentFlow",
|
253
|
+
"version": "1.0.0",
|
254
|
+
"description": "获取agent flow任务详情,流式返回",
|
255
|
+
"endpoint": {
|
256
|
+
"method": "GET",
|
257
|
+
"uri": "/api/v1/llm/agent/flow/:taskId"
|
258
|
+
},
|
259
|
+
"import": [
|
260
|
+
"easyops/model/llm/flow_agent_task_response"
|
261
|
+
],
|
262
|
+
"request": {
|
263
|
+
"type": "object",
|
264
|
+
"fields": [
|
265
|
+
{
|
266
|
+
"name": "taskId",
|
267
|
+
"type": "string",
|
268
|
+
"description": "任务id"
|
269
|
+
}
|
270
|
+
]
|
271
|
+
},
|
272
|
+
"response": {
|
273
|
+
"type": "object",
|
274
|
+
"description": "流式返回的数据",
|
275
|
+
"fields": [
|
276
|
+
{
|
277
|
+
"ref": "FlowAgentTaskResponse.*"
|
278
|
+
},
|
279
|
+
{
|
280
|
+
"name": "sseDataList",
|
281
|
+
"type": "value[]",
|
282
|
+
"description": "流式数据列表"
|
283
|
+
}
|
284
|
+
]
|
285
|
+
},
|
286
|
+
"examples": [
|
287
|
+
{
|
288
|
+
"description": {
|
289
|
+
"zh": "获取agent flow的详情"
|
290
|
+
},
|
291
|
+
"request": {
|
292
|
+
"method": "GET",
|
293
|
+
"uri": "http://ip:port/api/v1/llm/agent/flow/a8239375684858666781",
|
294
|
+
"headers": {
|
295
|
+
"Content-Type": "application/json",
|
296
|
+
"user": "linus",
|
297
|
+
"org": 1234
|
298
|
+
},
|
299
|
+
"body": "{ }"
|
300
|
+
},
|
301
|
+
"response": {
|
302
|
+
"headers": {
|
303
|
+
"Content-Type": "application/json; charset=utf-8"
|
304
|
+
},
|
305
|
+
"status_code": 200,
|
306
|
+
"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]"
|
307
|
+
}
|
308
|
+
}
|
309
|
+
]
|
310
|
+
},
|
136
311
|
{
|
137
312
|
"contract": "llm.aiops_base.DeleteEmbedding",
|
138
313
|
"name": "DeleteEmbedding",
|
@@ -3089,6 +3264,79 @@
|
|
3089
3264
|
}
|
3090
3265
|
]
|
3091
3266
|
},
|
3267
|
+
{
|
3268
|
+
"contract": "llm.aiops_tools.ExecLlmTools",
|
3269
|
+
"name": "ExecLlmTools",
|
3270
|
+
"version": "1.0.0",
|
3271
|
+
"description": "执行大模型工具,非MCP协议的一部分",
|
3272
|
+
"endpoint": {
|
3273
|
+
"method": "POST",
|
3274
|
+
"uri": "/api/v1/llm/tools/exec"
|
3275
|
+
},
|
3276
|
+
"request": {
|
3277
|
+
"fields": [
|
3278
|
+
{
|
3279
|
+
"description": "要执行的工具名称,也是id",
|
3280
|
+
"name": "name",
|
3281
|
+
"type": "string"
|
3282
|
+
},
|
3283
|
+
{
|
3284
|
+
"description": "执行工具的参数",
|
3285
|
+
"name": "arguments",
|
3286
|
+
"type": "map"
|
3287
|
+
},
|
3288
|
+
{
|
3289
|
+
"description": "执行工具的配置,例如agentId,\"agentId\":\"cmdb_search_agent\"",
|
3290
|
+
"name": "config",
|
3291
|
+
"type": "map"
|
3292
|
+
}
|
3293
|
+
],
|
3294
|
+
"required": [
|
3295
|
+
"name"
|
3296
|
+
],
|
3297
|
+
"type": "object"
|
3298
|
+
},
|
3299
|
+
"response": {
|
3300
|
+
"default": {},
|
3301
|
+
"fields": [
|
3302
|
+
{
|
3303
|
+
"description": "执行结果,返回类型,目前只支持text",
|
3304
|
+
"name": "type",
|
3305
|
+
"type": "string"
|
3306
|
+
},
|
3307
|
+
{
|
3308
|
+
"description": "执行工具的结果",
|
3309
|
+
"name": "result",
|
3310
|
+
"type": "value"
|
3311
|
+
}
|
3312
|
+
],
|
3313
|
+
"type": "object"
|
3314
|
+
},
|
3315
|
+
"examples": [
|
3316
|
+
{
|
3317
|
+
"description": {
|
3318
|
+
"zh": "执行大模型工具"
|
3319
|
+
},
|
3320
|
+
"request": {
|
3321
|
+
"method": "POST",
|
3322
|
+
"uri": "http://localhost:8320/api/v1/llm/tools/exec",
|
3323
|
+
"headers": {
|
3324
|
+
"Content-Type": "application/json",
|
3325
|
+
"user": "linus",
|
3326
|
+
"org": 1234
|
3327
|
+
},
|
3328
|
+
"body": "{\n \"name\": \"web_search\",\n \"arguments\": {\n \"query\": \"什么是MCP\"\n },\n \"config\":{\n \"agentId\": \"cmdb_search_agent\",\n \"conversationId\": \"xxxxxxx\",\n }\n}"
|
3329
|
+
},
|
3330
|
+
"response": {
|
3331
|
+
"headers": {
|
3332
|
+
"Content-Type": "application/json; charset=utf-8"
|
3333
|
+
},
|
3334
|
+
"status_code": 200,
|
3335
|
+
"body": "{\n \"code\": 0,\n \"error\": \"\",\n \"data\": {\n \"type\": \"text\",\n \"result\": \"MCP 是一种开放协议\", \"content\":\"什么是MCP? MCP 是一种开放协议,通过标准化的服务器实现,使AI 模型能够安全地与本地和远程资源进行交互。 此列表重点关注可用于生产和实验性的MCP 服务器,这些服务器通过文件访问、数据库连接、API 集成和其他上下文服务来扩展AI 功能。\"\n }\n}"
|
3336
|
+
}
|
3337
|
+
}
|
3338
|
+
]
|
3339
|
+
},
|
3092
3340
|
{
|
3093
3341
|
"contract": "llm.aiops_tools.SummaryQuestionV2",
|
3094
3342
|
"name": "SummaryQuestionV2",
|
@@ -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\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;AAgBA;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,39 @@
|
|
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
|
+
//# 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"],"sources":["../../../../../src/api/llm/agent_flow/index.ts"],"sourcesContent":["export * from \"./addJobMessageForAgentFlow.js\";\nexport * from \"./createTaskForAgentFlow.js\";\nexport * from \"./getTaskDetailForAgentFlow.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","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;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","names":["
|
1
|
+
{"version":3,"file":"index.js","names":["_execLlmTools","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_summaryQuestionV","_templateLlmChatV"],"sources":["../../../../../src/api/llm/aiops_tools/index.ts"],"sourcesContent":["export * from \"./execLlmTools.js\";\nexport * from \"./summaryQuest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|
}
|
22
22
|
});
|
23
23
|
});
|
24
|
-
var _index2 = require("./api/llm/
|
24
|
+
var _index2 = require("./api/llm/agent_flow/index.js");
|
25
25
|
Object.keys(_index2).forEach(function (key) {
|
26
26
|
if (key === "default" || key === "__esModule") return;
|
27
27
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
@@ -33,7 +33,7 @@ Object.keys(_index2).forEach(function (key) {
|
|
33
33
|
}
|
34
34
|
});
|
35
35
|
});
|
36
|
-
var _index3 = require("./api/llm/
|
36
|
+
var _index3 = require("./api/llm/aiops_base/index.js");
|
37
37
|
Object.keys(_index3).forEach(function (key) {
|
38
38
|
if (key === "default" || key === "__esModule") return;
|
39
39
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
@@ -45,7 +45,7 @@ Object.keys(_index3).forEach(function (key) {
|
|
45
45
|
}
|
46
46
|
});
|
47
47
|
});
|
48
|
-
var _index4 = require("./api/llm/
|
48
|
+
var _index4 = require("./api/llm/aiops_memory/index.js");
|
49
49
|
Object.keys(_index4).forEach(function (key) {
|
50
50
|
if (key === "default" || key === "__esModule") return;
|
51
51
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
@@ -57,7 +57,7 @@ Object.keys(_index4).forEach(function (key) {
|
|
57
57
|
}
|
58
58
|
});
|
59
59
|
});
|
60
|
-
var _index5 = require("./api/llm/
|
60
|
+
var _index5 = require("./api/llm/aiops_prompt/index.js");
|
61
61
|
Object.keys(_index5).forEach(function (key) {
|
62
62
|
if (key === "default" || key === "__esModule") return;
|
63
63
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
@@ -69,7 +69,7 @@ Object.keys(_index5).forEach(function (key) {
|
|
69
69
|
}
|
70
70
|
});
|
71
71
|
});
|
72
|
-
var _index6 = require("./api/llm/
|
72
|
+
var _index6 = require("./api/llm/aiops_rag/index.js");
|
73
73
|
Object.keys(_index6).forEach(function (key) {
|
74
74
|
if (key === "default" || key === "__esModule") return;
|
75
75
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
@@ -81,7 +81,7 @@ Object.keys(_index6).forEach(function (key) {
|
|
81
81
|
}
|
82
82
|
});
|
83
83
|
});
|
84
|
-
var _index7 = require("./api/llm/
|
84
|
+
var _index7 = require("./api/llm/aiops_service/index.js");
|
85
85
|
Object.keys(_index7).forEach(function (key) {
|
86
86
|
if (key === "default" || key === "__esModule") return;
|
87
87
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
@@ -93,7 +93,7 @@ Object.keys(_index7).forEach(function (key) {
|
|
93
93
|
}
|
94
94
|
});
|
95
95
|
});
|
96
|
-
var _index8 = require("./api/llm/
|
96
|
+
var _index8 = require("./api/llm/aiops_tools/index.js");
|
97
97
|
Object.keys(_index8).forEach(function (key) {
|
98
98
|
if (key === "default" || key === "__esModule") return;
|
99
99
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
@@ -105,6 +105,18 @@ Object.keys(_index8).forEach(function (key) {
|
|
105
105
|
}
|
106
106
|
});
|
107
107
|
});
|
108
|
+
var _index9 = require("./api/llm/virtual_builder/index.js");
|
109
|
+
Object.keys(_index9).forEach(function (key) {
|
110
|
+
if (key === "default" || key === "__esModule") return;
|
111
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
112
|
+
if (key in exports && exports[key] === _index9[key]) return;
|
113
|
+
Object.defineProperty(exports, key, {
|
114
|
+
enumerable: true,
|
115
|
+
get: function () {
|
116
|
+
return _index9[key];
|
117
|
+
}
|
118
|
+
});
|
119
|
+
});
|
108
120
|
var _AiopsServiceModels = _interopRequireWildcard(require("./model/aiops_service/index.js"));
|
109
121
|
exports.AiopsServiceModels = _AiopsServiceModels;
|
110
122
|
var _LlmModels = _interopRequireWildcard(require("./model/llm/index.js"));
|
package/dist/cjs/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","names":["_index","require","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_index2","_index3","_index4","_index5","_index6","_index7","_index8","_AiopsServiceModels","_interopRequireWildcard","AiopsServiceModels","_LlmModels","LlmModels"],"sources":["../../src/index.ts"],"sourcesContent":["export * from \"./api/llm/agent/index.js\";\nexport * from \"./api/llm/aiops_base/index.js\";\nexport * from \"./api/llm/aiops_memory/index.js\";\nexport * from \"./api/llm/aiops_prompt/index.js\";\nexport * from \"./api/llm/aiops_rag/index.js\";\nexport * from \"./api/llm/aiops_service/index.js\";\nexport * from \"./api/llm/aiops_tools/index.js\";\nexport * from \"./api/llm/virtual_builder/index.js\";\nexport * as AiopsServiceModels from \"./model/aiops_service/index.js\";\nexport * as LlmModels from \"./model/llm/index.js\";\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAL,MAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAb,MAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAS,OAAA,GAAAb,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAW,OAAA,EAAAV,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAS,OAAA,CAAAT,GAAA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B,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAe,OAAA,CAAAf,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAO,OAAA,CAAAf,GAAA;IAAA;EAAA;AAAA;
|
1
|
+
{"version":3,"file":"index.js","names":["_index","require","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_index2","_index3","_index4","_index5","_index6","_index7","_index8","_index9","_AiopsServiceModels","_interopRequireWildcard","AiopsServiceModels","_LlmModels","LlmModels"],"sources":["../../src/index.ts"],"sourcesContent":["export * from \"./api/llm/agent/index.js\";\nexport * from \"./api/llm/agent_flow/index.js\";\nexport * from \"./api/llm/aiops_base/index.js\";\nexport * from \"./api/llm/aiops_memory/index.js\";\nexport * from \"./api/llm/aiops_prompt/index.js\";\nexport * from \"./api/llm/aiops_rag/index.js\";\nexport * from \"./api/llm/aiops_service/index.js\";\nexport * from \"./api/llm/aiops_tools/index.js\";\nexport * from \"./api/llm/virtual_builder/index.js\";\nexport * as AiopsServiceModels from \"./model/aiops_service/index.js\";\nexport * as LlmModels from \"./model/llm/index.js\";\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,M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AAA,CAAA;MAAA,OAAAQ,OAAA,CAAAhB,GAAA;IAAA;EAAA;AAAA;AAAmD,IAAAiB,mBAAA,GAAAC,uBAAA,CAAAtB,OAAA;AAAAS,OAAA,CAAAc,kBAAA,GAAAF,mBAAA;AAAA,IAAAG,UAAA,GAAAF,uBAAA,CAAAtB,OAAA;AAAAS,OAAA,CAAAgB,SAAA,GAAAD,UAAA","ignoreList":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ModelFlowAgentTaskMessage.js","names":[],"sources":["../../../../src/model/llm/ModelFlowAgentTaskMessage.ts"],"sourcesContent":["/** flow agent的消息 */\nexport interface ModelFlowAgentTaskMessage {\n /** 角色 */\n role: string;\n\n /** 消息 */\n parts: ModelFlowAgentTaskMessage_parts_item[];\n}\n\nexport interface ModelFlowAgentTaskMessage_parts_item {\n /** 消息类型,可选:text, file, data */\n type?: string;\n\n /** 类型为text时的内容 */\n text?: string;\n\n /** 类型为file时的内容 */\n file?: ModelFlowAgentTaskMessage_parts_item_file;\n\n /** 类型为data时的内容 */\n data?: Record<string, any>;\n}\n\nexport interface ModelFlowAgentTaskMessage_parts_item_file {\n /** 文件名 */\n name?: string;\n\n /** 类型 */\n mimeType?: string;\n\n /** base64编码后的内容 */\n bytes?: string;\n\n /** 链接 */\n uri?: string;\n}\n"],"mappings":"","ignoreList":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ModelFlowAgentTaskResponse.js","names":[],"sources":["../../../../src/model/llm/ModelFlowAgentTaskResponse.ts"],"sourcesContent":["import { ModelFlowAgentTaskMessage } from \"./index.js\";\n\n/** flow agent的请求返回值 */\nexport interface ModelFlowAgentTaskResponse {\n /** 任务id */\n id: string;\n\n /** 任务状态,可选值:| \"submitted\", \"working\", \"input-required\",\"completed\",\"canceled\",\"failed\", \"unknown\";\n */\n state: string;\n\n /** 用户要求 */\n requirement: string;\n\n /** 任务计划步骤 */\n plan: ModelFlowAgentTaskResponse_plan_item[];\n\n /** 任务详情 */\n jobs: ModelFlowAgentTaskResponse_jobs_item[];\n}\n\nexport interface ModelFlowAgentTaskResponse_plan_item {\n /** Pre-generated Job ID for this step */\n id?: string;\n\n /** 任务说明 */\n instruction?: string;\n}\n\nexport interface ModelFlowAgentTaskResponse_jobs_item {\n /** job id */\n id?: string;\n\n /** 父任务id */\n parent?: string[];\n\n /** 任务说明 */\n instruction?: string;\n\n /** 任务状态,可选值:| \"submitted\", \"working\", \"input-required\",\"completed\",\"canceled\",\"failed\", \"unknown\";\n */\n state?: string;\n\n /** 工具执行结果 */\n toolCall?: ModelFlowAgentTaskResponse_jobs_item_toolCall;\n\n /** 执行结果消息 */\n messages?: Partial<ModelFlowAgentTaskMessage>[];\n}\n\nexport interface ModelFlowAgentTaskResponse_jobs_item_toolCall {\n /** 工具唯一名称 */\n name?: string;\n\n /** 工具执行参数 */\n arguments?: Record<string, any>;\n}\n"],"mappings":"","ignoreList":[]}
|
@@ -3,6 +3,28 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
+
var _ModelFlowAgentTaskMessage = require("./ModelFlowAgentTaskMessage.js");
|
7
|
+
Object.keys(_ModelFlowAgentTaskMessage).forEach(function (key) {
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
9
|
+
if (key in exports && exports[key] === _ModelFlowAgentTaskMessage[key]) return;
|
10
|
+
Object.defineProperty(exports, key, {
|
11
|
+
enumerable: true,
|
12
|
+
get: function () {
|
13
|
+
return _ModelFlowAgentTaskMessage[key];
|
14
|
+
}
|
15
|
+
});
|
16
|
+
});
|
17
|
+
var _ModelFlowAgentTaskResponse = require("./ModelFlowAgentTaskResponse.js");
|
18
|
+
Object.keys(_ModelFlowAgentTaskResponse).forEach(function (key) {
|
19
|
+
if (key === "default" || key === "__esModule") return;
|
20
|
+
if (key in exports && exports[key] === _ModelFlowAgentTaskResponse[key]) return;
|
21
|
+
Object.defineProperty(exports, key, {
|
22
|
+
enumerable: true,
|
23
|
+
get: function () {
|
24
|
+
return _ModelFlowAgentTaskResponse[key];
|
25
|
+
}
|
26
|
+
});
|
27
|
+
});
|
6
28
|
var _ModelLlmDocument = require("./ModelLlmDocument.js");
|
7
29
|
Object.keys(_ModelLlmDocument).forEach(function (key) {
|
8
30
|
if (key === "default" || key === "__esModule") return;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","names":["
|
1
|
+
{"version":3,"file":"index.js","names":["_ModelFlowAgentTaskMessage","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_ModelFlowAgentTaskResponse","_ModelLlmDocument","_ModelLlmMemoryEnv","_ModelLlmMemory"],"sources":["../../../../src/model/llm/index.ts"],"sourcesContent":["export * from \"./ModelFlowAgentTaskMessage.js\";\nexport * from \"./ModelFlowAgentTaskResponse.js\";\nexport * from \"./ModelLlmDocument.js\";\nexport * from \"./ModelLlmMemoryEnv.js\";\nexport * from \"./ModelLlmMemory.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,2BAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,2BAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,2BAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CA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 +1,7 @@
|
|
1
|
+
import { http } from "@next-core/http";
|
2
|
+
/**
|
3
|
+
* @description flow agent补充消息
|
4
|
+
* @endpoint POST /api/v1/llm/agent/flow/:taskId/job/:jobId
|
5
|
+
*/
|
6
|
+
export const AgentFlowApi_addJobMessageForAgentFlow = (taskId, jobId, data, options) => /**! @contract easyops.api.llm.agent_flow.AddJobMessageForAgentFlow@1.0.0 */http.post(`api/gateway/logic.llm.aiops_service/api/v1/llm/agent/flow/${taskId}/job/${jobId}`, data, options);
|
7
|
+
//# sourceMappingURL=addJobMessageForAgentFlow.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"addJobMessageForAgentFlow.js","names":["http","AgentFlowApi_addJobMessageForAgentFlow","taskId","jobId","data","options","post"],"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,SAASA,IAAI,QAAqB,iBAAiB;AAOnD;AACA;AACA;AACA;AACA,OAAO,MAAMC,sCAAsC,GAAGA,CACpDC,MAAuB,EACvBC,KAAsB,EACtBC,IAAuD,EACvDC,OAAqB,KAErB,4EAA6EL,IAAI,CAACM,IAAI,CACpF,6DAA6DJ,MAAM,QAAQC,KAAK,EAAE,EAClFC,IAAI,EACJC,OACF,CAAC","ignoreList":[]}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { http } from "@next-core/http";
|
2
|
+
/**
|
3
|
+
* @description 创建agent flow的任务
|
4
|
+
* @endpoint POST /api/v1/llm/agent/flow/create
|
5
|
+
*/
|
6
|
+
export const AgentFlowApi_createTaskForAgentFlow = async (data, options) => /**! @contract easyops.api.llm.agent_flow.CreateTaskForAgentFlow@1.0.0 */(await http.post("api/gateway/logic.llm.aiops_service/api/v1/llm/agent/flow/create", data, options)).data;
|
7
|
+
//# sourceMappingURL=createTaskForAgentFlow.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"createTaskForAgentFlow.js","names":["http","AgentFlowApi_createTaskForAgentFlow","data","options","post"],"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\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,SAASA,IAAI,QAAqB,iBAAiB;AAgBnD;AACA;AACA;AACA;AACA,OAAO,MAAMC,mCAAmC,GAAG,MAAAA,CACjDC,IAAoD,EACpDC,OAAqB,KAErB,yEAA0E,CACxE,MAAMH,IAAI,CAACI,IAAI,CAGb,kEAAkE,EAClEF,IAAI,EACJC,OACF,CAAC,EACDD,IAAI","ignoreList":[]}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { http } from "@next-core/http";
|
2
|
+
|
3
|
+
/** 流式返回的数据 */
|
4
|
+
|
5
|
+
/**
|
6
|
+
* @description 获取agent flow任务详情,流式返回
|
7
|
+
* @endpoint GET /api/v1/llm/agent/flow/:taskId
|
8
|
+
*/
|
9
|
+
export const AgentFlowApi_getTaskDetailForAgentFlow = async (taskId, options) => /**! @contract easyops.api.llm.agent_flow.GetTaskDetailForAgentFlow@1.0.0 */(await http.get(`api/gateway/logic.llm.aiops_service/api/v1/llm/agent/flow/${taskId}`, options)).data;
|
10
|
+
//# sourceMappingURL=getTaskDetailForAgentFlow.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"getTaskDetailForAgentFlow.js","names":["http","AgentFlowApi_getTaskDetailForAgentFlow","taskId","options","get","data"],"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,SAASA,IAAI,QAAqB,iBAAiB;;AAInD;;AAKA;AACA;AACA;AACA;AACA,OAAO,MAAMC,sCAAsC,GAAG,MAAAA,CACpDC,MAAuB,EACvBC,OAAqB,KAErB,4EAA6E,CAC3E,MAAMH,IAAI,CAACI,GAAG,CAGZ,6DAA6DF,MAAM,EAAE,EACrEC,OACF,CAAC,EACDE,IAAI","ignoreList":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../../src/api/llm/agent_flow/index.ts"],"sourcesContent":["export * from \"./addJobMessageForAgentFlow.js\";\nexport * from \"./createTaskForAgentFlow.js\";\nexport * from \"./getTaskDetailForAgentFlow.js\";\n"],"mappings":"AAAA,cAAc,gCAAgC;AAC9C,cAAc,6BAA6B;AAC3C,cAAc,gCAAgC","ignoreList":[]}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { http } from "@next-core/http";
|
2
|
+
/**
|
3
|
+
* @description 执行大模型工具,非MCP协议的一部分
|
4
|
+
* @endpoint POST /api/v1/llm/tools/exec
|
5
|
+
*/
|
6
|
+
export const AiopsToolsApi_execLlmTools = async (data, options) => /**! @contract easyops.api.llm.aiops_tools.ExecLlmTools@1.0.0 */(await http.post("api/gateway/logic.llm.aiops_service/api/v1/llm/tools/exec", data, options)).data;
|
7
|
+
//# sourceMappingURL=execLlmTools.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"execLlmTools.js","names":["http","AiopsToolsApi_execLlmTools","data","options","post"],"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,SAASA,IAAI,QAAqB,iBAAiB;AAsBnD;AACA;AACA;AACA;AACA,OAAO,MAAMC,0BAA0B,GAAG,MAAAA,CACxCC,IAA2C,EAC3CC,OAAqB,KAErB,gEAAiE,CAC/D,MAAMH,IAAI,CAACI,IAAI,CAGb,2DAA2D,EAC3DF,IAAI,EACJC,OACF,CAAC,EACDD,IAAI","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../../src/api/llm/aiops_tools/index.ts"],"sourcesContent":["export * from \"./summaryQuestionV2.js\";\nexport * from \"./templateLlmChatV2.js\";\n"],"mappings":"AAAA,cAAc,wBAAwB;AACtC,cAAc,wBAAwB","ignoreList":[]}
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../../src/api/llm/aiops_tools/index.ts"],"sourcesContent":["export * from \"./execLlmTools.js\";\nexport * from \"./summaryQuestionV2.js\";\nexport * from \"./templateLlmChatV2.js\";\n"],"mappings":"AAAA,cAAc,mBAAmB;AACjC,cAAc,wBAAwB;AACtC,cAAc,wBAAwB","ignoreList":[]}
|
package/dist/esm/index.js
CHANGED
package/dist/esm/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","names":["_AiopsServiceModels","AiopsServiceModels","_LlmModels","LlmModels"],"sources":["../../src/index.ts"],"sourcesContent":["export * from \"./api/llm/agent/index.js\";\nexport * from \"./api/llm/aiops_base/index.js\";\nexport * from \"./api/llm/aiops_memory/index.js\";\nexport * from \"./api/llm/aiops_prompt/index.js\";\nexport * from \"./api/llm/aiops_rag/index.js\";\nexport * from \"./api/llm/aiops_service/index.js\";\nexport * from \"./api/llm/aiops_tools/index.js\";\nexport * from \"./api/llm/virtual_builder/index.js\";\nexport * as AiopsServiceModels from \"./model/aiops_service/index.js\";\nexport * as LlmModels from \"./model/llm/index.js\";\n"],"mappings":"AAAA,cAAc,0BAA0B;AACxC,cAAc,+BAA+B;AAC7C,cAAc,iCAAiC;AAC/C,cAAc,iCAAiC;AAC/C,cAAc,8BAA8B;AAC5C,cAAc,kCAAkC;AAChD,cAAc,gCAAgC;AAC9C,cAAc,oCAAoC;AAAC,YAAAA,mBAAA,MACf,gCAAgC;AAAA,SAAAA,mBAAA,IAAxDC,kBAAkB;AAAA,YAAAC,UAAA,MACH,sBAAsB;AAAA,SAAAA,UAAA,IAArCC,SAAS","ignoreList":[]}
|
1
|
+
{"version":3,"file":"index.js","names":["_AiopsServiceModels","AiopsServiceModels","_LlmModels","LlmModels"],"sources":["../../src/index.ts"],"sourcesContent":["export * from \"./api/llm/agent/index.js\";\nexport * from \"./api/llm/agent_flow/index.js\";\nexport * from \"./api/llm/aiops_base/index.js\";\nexport * from \"./api/llm/aiops_memory/index.js\";\nexport * from \"./api/llm/aiops_prompt/index.js\";\nexport * from \"./api/llm/aiops_rag/index.js\";\nexport * from \"./api/llm/aiops_service/index.js\";\nexport * from \"./api/llm/aiops_tools/index.js\";\nexport * from \"./api/llm/virtual_builder/index.js\";\nexport * as AiopsServiceModels from \"./model/aiops_service/index.js\";\nexport * as LlmModels from \"./model/llm/index.js\";\n"],"mappings":"AAAA,cAAc,0BAA0B;AACxC,cAAc,+BAA+B;AAC7C,cAAc,+BAA+B;AAC7C,cAAc,iCAAiC;AAC/C,cAAc,iCAAiC;AAC/C,cAAc,8BAA8B;AAC5C,cAAc,kCAAkC;AAChD,cAAc,gCAAgC;AAC9C,cAAc,oCAAoC;AAAC,YAAAA,mBAAA,MACf,gCAAgC;AAAA,SAAAA,mBAAA,IAAxDC,kBAAkB;AAAA,YAAAC,UAAA,MACH,sBAAsB;AAAA,SAAAA,UAAA,IAArCC,SAAS","ignoreList":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ModelFlowAgentTaskMessage.js","names":[],"sources":["../../../../src/model/llm/ModelFlowAgentTaskMessage.ts"],"sourcesContent":["/** flow agent的消息 */\nexport interface ModelFlowAgentTaskMessage {\n /** 角色 */\n role: string;\n\n /** 消息 */\n parts: ModelFlowAgentTaskMessage_parts_item[];\n}\n\nexport interface ModelFlowAgentTaskMessage_parts_item {\n /** 消息类型,可选:text, file, data */\n type?: string;\n\n /** 类型为text时的内容 */\n text?: string;\n\n /** 类型为file时的内容 */\n file?: ModelFlowAgentTaskMessage_parts_item_file;\n\n /** 类型为data时的内容 */\n data?: Record<string, any>;\n}\n\nexport interface ModelFlowAgentTaskMessage_parts_item_file {\n /** 文件名 */\n name?: string;\n\n /** 类型 */\n mimeType?: string;\n\n /** base64编码后的内容 */\n bytes?: string;\n\n /** 链接 */\n uri?: string;\n}\n"],"mappings":"","ignoreList":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ModelFlowAgentTaskResponse.js","names":[],"sources":["../../../../src/model/llm/ModelFlowAgentTaskResponse.ts"],"sourcesContent":["import { ModelFlowAgentTaskMessage } from \"./index.js\";\n\n/** flow agent的请求返回值 */\nexport interface ModelFlowAgentTaskResponse {\n /** 任务id */\n id: string;\n\n /** 任务状态,可选值:| \"submitted\", \"working\", \"input-required\",\"completed\",\"canceled\",\"failed\", \"unknown\";\n */\n state: string;\n\n /** 用户要求 */\n requirement: string;\n\n /** 任务计划步骤 */\n plan: ModelFlowAgentTaskResponse_plan_item[];\n\n /** 任务详情 */\n jobs: ModelFlowAgentTaskResponse_jobs_item[];\n}\n\nexport interface ModelFlowAgentTaskResponse_plan_item {\n /** Pre-generated Job ID for this step */\n id?: string;\n\n /** 任务说明 */\n instruction?: string;\n}\n\nexport interface ModelFlowAgentTaskResponse_jobs_item {\n /** job id */\n id?: string;\n\n /** 父任务id */\n parent?: string[];\n\n /** 任务说明 */\n instruction?: string;\n\n /** 任务状态,可选值:| \"submitted\", \"working\", \"input-required\",\"completed\",\"canceled\",\"failed\", \"unknown\";\n */\n state?: string;\n\n /** 工具执行结果 */\n toolCall?: ModelFlowAgentTaskResponse_jobs_item_toolCall;\n\n /** 执行结果消息 */\n messages?: Partial<ModelFlowAgentTaskMessage>[];\n}\n\nexport interface ModelFlowAgentTaskResponse_jobs_item_toolCall {\n /** 工具唯一名称 */\n name?: string;\n\n /** 工具执行参数 */\n arguments?: Record<string, any>;\n}\n"],"mappings":"","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/model/llm/index.ts"],"sourcesContent":["export * from \"./ModelLlmDocument.js\";\nexport * from \"./ModelLlmMemoryEnv.js\";\nexport * from \"./ModelLlmMemory.js\";\n"],"mappings":"AAAA,cAAc,uBAAuB;AACrC,cAAc,wBAAwB;AACtC,cAAc,qBAAqB","ignoreList":[]}
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/model/llm/index.ts"],"sourcesContent":["export * from \"./ModelFlowAgentTaskMessage.js\";\nexport * from \"./ModelFlowAgentTaskResponse.js\";\nexport * from \"./ModelLlmDocument.js\";\nexport * from \"./ModelLlmMemoryEnv.js\";\nexport * from \"./ModelLlmMemory.js\";\n"],"mappings":"AAAA,cAAc,gCAAgC;AAC9C,cAAc,iCAAiC;AAC/C,cAAc,uBAAuB;AACrC,cAAc,wBAAwB;AACtC,cAAc,qBAAqB","ignoreList":[]}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { HttpOptions } from "@next-core/http";
|
2
|
+
export interface AgentFlowApi_AddJobMessageForAgentFlowRequestBody {
|
3
|
+
/** 补充输入 */
|
4
|
+
input?: string;
|
5
|
+
}
|
6
|
+
/**
|
7
|
+
* @description flow agent补充消息
|
8
|
+
* @endpoint POST /api/v1/llm/agent/flow/:taskId/job/:jobId
|
9
|
+
*/
|
10
|
+
export declare const AgentFlowApi_addJobMessageForAgentFlow: (taskId: string | number, jobId: string | number, data: AgentFlowApi_AddJobMessageForAgentFlowRequestBody, options?: HttpOptions) => Promise<void>;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { HttpOptions } from "@next-core/http";
|
2
|
+
export interface AgentFlowApi_CreateTaskForAgentFlowRequestBody {
|
3
|
+
/** 用户输入 */
|
4
|
+
input?: string;
|
5
|
+
/** 指定处理任务的agent */
|
6
|
+
agentId?: string;
|
7
|
+
}
|
8
|
+
export interface AgentFlowApi_CreateTaskForAgentFlowResponseBody {
|
9
|
+
/** 任务id */
|
10
|
+
taskId?: string;
|
11
|
+
}
|
12
|
+
/**
|
13
|
+
* @description 创建agent flow的任务
|
14
|
+
* @endpoint POST /api/v1/llm/agent/flow/create
|
15
|
+
*/
|
16
|
+
export declare const AgentFlowApi_createTaskForAgentFlow: (data: AgentFlowApi_CreateTaskForAgentFlowRequestBody, options?: HttpOptions) => Promise<AgentFlowApi_CreateTaskForAgentFlowResponseBody>;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { HttpOptions } from "@next-core/http";
|
2
|
+
import { ModelFlowAgentTaskResponse } from "../../../model/llm/index.js";
|
3
|
+
/** 流式返回的数据 */
|
4
|
+
export type AgentFlowApi_GetTaskDetailForAgentFlowResponseBody = Partial<ModelFlowAgentTaskResponse> & AgentFlowApi_GetTaskDetailForAgentFlowResponseBody_2;
|
5
|
+
/**
|
6
|
+
* @description 获取agent flow任务详情,流式返回
|
7
|
+
* @endpoint GET /api/v1/llm/agent/flow/:taskId
|
8
|
+
*/
|
9
|
+
export declare const AgentFlowApi_getTaskDetailForAgentFlow: (taskId: string | number, options?: HttpOptions) => Promise<AgentFlowApi_GetTaskDetailForAgentFlowResponseBody>;
|
10
|
+
export interface AgentFlowApi_GetTaskDetailForAgentFlowResponseBody_2 {
|
11
|
+
/** 流式数据列表 */
|
12
|
+
sseDataList?: any[];
|
13
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { HttpOptions } from "@next-core/http";
|
2
|
+
export interface AiopsToolsApi_ExecLlmToolsRequestBody {
|
3
|
+
/** 要执行的工具名称,也是id */
|
4
|
+
name: string;
|
5
|
+
/** 执行工具的参数 */
|
6
|
+
arguments?: Record<string, any>;
|
7
|
+
/** 执行工具的配置,例如agentId,"agentId":"cmdb_search_agent" */
|
8
|
+
config?: Record<string, any>;
|
9
|
+
}
|
10
|
+
export interface AiopsToolsApi_ExecLlmToolsResponseBody {
|
11
|
+
/** 执行结果,返回类型,目前只支持text */
|
12
|
+
type?: string;
|
13
|
+
/** 执行工具的结果 */
|
14
|
+
result?: any;
|
15
|
+
}
|
16
|
+
/**
|
17
|
+
* @description 执行大模型工具,非MCP协议的一部分
|
18
|
+
* @endpoint POST /api/v1/llm/tools/exec
|
19
|
+
*/
|
20
|
+
export declare const AiopsToolsApi_execLlmTools: (data: AiopsToolsApi_ExecLlmToolsRequestBody, options?: HttpOptions) => Promise<AiopsToolsApi_ExecLlmToolsResponseBody>;
|
package/dist/types/index.d.ts
CHANGED
@@ -0,0 +1,27 @@
|
|
1
|
+
/** flow agent的消息 */
|
2
|
+
export interface ModelFlowAgentTaskMessage {
|
3
|
+
/** 角色 */
|
4
|
+
role: string;
|
5
|
+
/** 消息 */
|
6
|
+
parts: ModelFlowAgentTaskMessage_parts_item[];
|
7
|
+
}
|
8
|
+
export interface ModelFlowAgentTaskMessage_parts_item {
|
9
|
+
/** 消息类型,可选:text, file, data */
|
10
|
+
type?: string;
|
11
|
+
/** 类型为text时的内容 */
|
12
|
+
text?: string;
|
13
|
+
/** 类型为file时的内容 */
|
14
|
+
file?: ModelFlowAgentTaskMessage_parts_item_file;
|
15
|
+
/** 类型为data时的内容 */
|
16
|
+
data?: Record<string, any>;
|
17
|
+
}
|
18
|
+
export interface ModelFlowAgentTaskMessage_parts_item_file {
|
19
|
+
/** 文件名 */
|
20
|
+
name?: string;
|
21
|
+
/** 类型 */
|
22
|
+
mimeType?: string;
|
23
|
+
/** base64编码后的内容 */
|
24
|
+
bytes?: string;
|
25
|
+
/** 链接 */
|
26
|
+
uri?: string;
|
27
|
+
}
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import { ModelFlowAgentTaskMessage } from "./index.js";
|
2
|
+
/** flow agent的请求返回值 */
|
3
|
+
export interface ModelFlowAgentTaskResponse {
|
4
|
+
/** 任务id */
|
5
|
+
id: string;
|
6
|
+
/** 任务状态,可选值:| "submitted", "working", "input-required","completed","canceled","failed", "unknown";
|
7
|
+
*/
|
8
|
+
state: string;
|
9
|
+
/** 用户要求 */
|
10
|
+
requirement: string;
|
11
|
+
/** 任务计划步骤 */
|
12
|
+
plan: ModelFlowAgentTaskResponse_plan_item[];
|
13
|
+
/** 任务详情 */
|
14
|
+
jobs: ModelFlowAgentTaskResponse_jobs_item[];
|
15
|
+
}
|
16
|
+
export interface ModelFlowAgentTaskResponse_plan_item {
|
17
|
+
/** Pre-generated Job ID for this step */
|
18
|
+
id?: string;
|
19
|
+
/** 任务说明 */
|
20
|
+
instruction?: string;
|
21
|
+
}
|
22
|
+
export interface ModelFlowAgentTaskResponse_jobs_item {
|
23
|
+
/** job id */
|
24
|
+
id?: string;
|
25
|
+
/** 父任务id */
|
26
|
+
parent?: string[];
|
27
|
+
/** 任务说明 */
|
28
|
+
instruction?: string;
|
29
|
+
/** 任务状态,可选值:| "submitted", "working", "input-required","completed","canceled","failed", "unknown";
|
30
|
+
*/
|
31
|
+
state?: string;
|
32
|
+
/** 工具执行结果 */
|
33
|
+
toolCall?: ModelFlowAgentTaskResponse_jobs_item_toolCall;
|
34
|
+
/** 执行结果消息 */
|
35
|
+
messages?: Partial<ModelFlowAgentTaskMessage>[];
|
36
|
+
}
|
37
|
+
export interface ModelFlowAgentTaskResponse_jobs_item_toolCall {
|
38
|
+
/** 工具唯一名称 */
|
39
|
+
name?: string;
|
40
|
+
/** 工具执行参数 */
|
41
|
+
arguments?: Record<string, any>;
|
42
|
+
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@next-api-sdk/llm-sdk",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.3.0",
|
4
4
|
"description": "API SDK for Llm",
|
5
5
|
"homepage": "https://github.com/easyops-cn/next-api-sdk/tree/master/sdk/llm-sdk",
|
6
6
|
"repository": {
|
@@ -38,10 +38,10 @@
|
|
38
38
|
},
|
39
39
|
"sideEffects": false,
|
40
40
|
"dependencies": {
|
41
|
-
"@next-core/http": "^1.
|
41
|
+
"@next-core/http": "^1.0.0"
|
42
42
|
},
|
43
43
|
"devDependencies": {
|
44
|
-
"@next-core/build-next-libs": "^1.0.
|
44
|
+
"@next-core/build-next-libs": "^1.0.0"
|
45
45
|
},
|
46
|
-
"gitHead": "
|
46
|
+
"gitHead": "e1bd40327515f49ba143480a71d4f55e4e54334d"
|
47
47
|
}
|