@alicloud/agentloop20260520 2.3.7 → 2.3.9

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.
Files changed (83) hide show
  1. package/dist/client.d.ts +14 -14
  2. package/dist/client.js +31 -14
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateContextStoreRequest.d.ts +364 -2
  5. package/dist/models/CreateContextStoreRequest.js +365 -1
  6. package/dist/models/CreateContextStoreRequest.js.map +1 -1
  7. package/dist/models/CreateContextStoreResponseBody.d.ts +5 -0
  8. package/dist/models/CreateContextStoreResponseBody.js +2 -0
  9. package/dist/models/CreateContextStoreResponseBody.js.map +1 -1
  10. package/dist/models/CreatePipelineRequest.d.ts +148 -39
  11. package/dist/models/CreatePipelineRequest.js +76 -1
  12. package/dist/models/CreatePipelineRequest.js.map +1 -1
  13. package/dist/models/CreatePipelineResponseBody.d.ts +1 -1
  14. package/dist/models/DeleteContextStoreRequest.d.ts +8 -0
  15. package/dist/models/DeleteContextStoreRequest.js +6 -2
  16. package/dist/models/DeleteContextStoreRequest.js.map +1 -1
  17. package/dist/models/DeleteContextStoreResponseBody.d.ts +1 -1
  18. package/dist/models/GetContextStoreResponseBody.d.ts +489 -0
  19. package/dist/models/GetContextStoreResponseBody.js +486 -1
  20. package/dist/models/GetContextStoreResponseBody.js.map +1 -1
  21. package/dist/models/GetPipelineResponseBody.d.ts +157 -42
  22. package/dist/models/GetPipelineResponseBody.js +78 -1
  23. package/dist/models/GetPipelineResponseBody.js.map +1 -1
  24. package/dist/models/ListContextStoresRequest.d.ts +5 -0
  25. package/dist/models/ListContextStoresRequest.js +2 -0
  26. package/dist/models/ListContextStoresRequest.js.map +1 -1
  27. package/dist/models/ListContextStoresResponseBody.d.ts +10 -0
  28. package/dist/models/ListContextStoresResponseBody.js +4 -0
  29. package/dist/models/ListContextStoresResponseBody.js.map +1 -1
  30. package/dist/models/ListPipelinesResponseBody.d.ts +111 -0
  31. package/dist/models/ListPipelinesResponseBody.js +102 -1
  32. package/dist/models/ListPipelinesResponseBody.js.map +1 -1
  33. package/dist/models/MetaSchemaValue.d.ts +21 -0
  34. package/dist/models/MetaSchemaValue.js +58 -0
  35. package/dist/models/MetaSchemaValue.js.map +1 -0
  36. package/dist/models/PreviewPipelineRequest.d.ts +91 -17
  37. package/dist/models/PreviewPipelineRequest.js +52 -1
  38. package/dist/models/PreviewPipelineRequest.js.map +1 -1
  39. package/dist/models/PreviewPipelineResponseBody.d.ts +45 -16
  40. package/dist/models/PreviewPipelineResponseBody.js +6 -0
  41. package/dist/models/PreviewPipelineResponseBody.js.map +1 -1
  42. package/dist/models/SearchContextRequest.d.ts +38 -0
  43. package/dist/models/SearchContextRequest.js +33 -1
  44. package/dist/models/SearchContextRequest.js.map +1 -1
  45. package/dist/models/SearchContextResponseBody.d.ts +10 -0
  46. package/dist/models/SearchContextResponseBody.js +4 -0
  47. package/dist/models/SearchContextResponseBody.js.map +1 -1
  48. package/dist/models/UpdateContextStoreRequest.d.ts +479 -9
  49. package/dist/models/UpdateContextStoreRequest.js +331 -1
  50. package/dist/models/UpdateContextStoreRequest.js.map +1 -1
  51. package/dist/models/UpdateContextStoreResponseBody.d.ts +8 -0
  52. package/dist/models/UpdateContextStoreResponseBody.js +2 -0
  53. package/dist/models/UpdateContextStoreResponseBody.js.map +1 -1
  54. package/dist/models/UpdatePipelineRequest.d.ts +140 -32
  55. package/dist/models/UpdatePipelineRequest.js +76 -1
  56. package/dist/models/UpdatePipelineRequest.js.map +1 -1
  57. package/dist/models/UpdatePipelineResponseBody.d.ts +1 -1
  58. package/dist/models/model.d.ts +56 -0
  59. package/dist/models/model.js +211 -98
  60. package/dist/models/model.js.map +1 -1
  61. package/package.json +1 -1
  62. package/src/client.ts +36 -14
  63. package/src/models/CreateContextStoreRequest.ts +620 -2
  64. package/src/models/CreateContextStoreResponseBody.ts +7 -0
  65. package/src/models/CreatePipelineRequest.ts +196 -39
  66. package/src/models/CreatePipelineResponseBody.ts +1 -1
  67. package/src/models/DeleteContextStoreRequest.ts +10 -0
  68. package/src/models/DeleteContextStoreResponseBody.ts +1 -1
  69. package/src/models/GetContextStoreResponseBody.ts +828 -0
  70. package/src/models/GetPipelineResponseBody.ts +207 -42
  71. package/src/models/ListContextStoresRequest.ts +7 -0
  72. package/src/models/ListContextStoresResponseBody.ts +14 -0
  73. package/src/models/ListPipelinesResponseBody.ts +176 -0
  74. package/src/models/MetaSchemaValue.ts +34 -0
  75. package/src/models/PreviewPipelineRequest.ts +124 -17
  76. package/src/models/PreviewPipelineResponseBody.ts +48 -16
  77. package/src/models/SearchContextRequest.ts +61 -0
  78. package/src/models/SearchContextResponseBody.ts +14 -0
  79. package/src/models/UpdateContextStoreRequest.ts +710 -9
  80. package/src/models/UpdateContextStoreResponseBody.ts +10 -0
  81. package/src/models/UpdatePipelineRequest.ts +188 -32
  82. package/src/models/UpdatePipelineResponseBody.ts +1 -1
  83. package/src/models/model.ts +56 -0
@@ -1,6 +1,312 @@
1
1
  import * as $dara from '@darabonba/typescript';
2
2
  /**
3
3
  */
4
+ export declare class CreateContextStoreRequestConfigAudit extends $dara.Model {
5
+ /**
6
+ * @example
7
+ * false
8
+ */
9
+ droppedCandidates?: boolean;
10
+ /**
11
+ * @example
12
+ * raw
13
+ */
14
+ queryMode?: string;
15
+ /**
16
+ * @example
17
+ * 30
18
+ */
19
+ retentionDays?: number;
20
+ static names(): {
21
+ [key: string]: string;
22
+ };
23
+ static types(): {
24
+ [key: string]: any;
25
+ };
26
+ validate(): void;
27
+ constructor(map?: {
28
+ [key: string]: any;
29
+ });
30
+ }
31
+ export declare class CreateContextStoreRequestConfigExtractionPolicyModel extends $dara.Model {
32
+ /**
33
+ * @example
34
+ * qwen3.8-flash
35
+ */
36
+ name?: string;
37
+ static names(): {
38
+ [key: string]: string;
39
+ };
40
+ static types(): {
41
+ [key: string]: any;
42
+ };
43
+ validate(): void;
44
+ constructor(map?: {
45
+ [key: string]: any;
46
+ });
47
+ }
48
+ export declare class CreateContextStoreRequestConfigExtractionPolicy extends $dara.Model {
49
+ /**
50
+ * @example
51
+ * ["preference","profile"]
52
+ */
53
+ categories?: string[];
54
+ /**
55
+ * @example
56
+ * 只抽取用户的产品偏好
57
+ */
58
+ customInstructions?: string;
59
+ /**
60
+ * @example
61
+ * ["密码","证件号"]
62
+ */
63
+ excludeRules?: string[];
64
+ model?: CreateContextStoreRequestConfigExtractionPolicyModel;
65
+ /**
66
+ * @example
67
+ * fact
68
+ */
69
+ preset?: string;
70
+ static names(): {
71
+ [key: string]: string;
72
+ };
73
+ static types(): {
74
+ [key: string]: any;
75
+ };
76
+ validate(): void;
77
+ constructor(map?: {
78
+ [key: string]: any;
79
+ });
80
+ }
81
+ export declare class CreateContextStoreRequestConfigScopePolicy extends $dara.Model {
82
+ /**
83
+ * @example
84
+ * ["userId"]
85
+ */
86
+ requiredAnyOf?: string[];
87
+ static names(): {
88
+ [key: string]: string;
89
+ };
90
+ static types(): {
91
+ [key: string]: any;
92
+ };
93
+ validate(): void;
94
+ constructor(map?: {
95
+ [key: string]: any;
96
+ });
97
+ }
98
+ export declare class CreateContextStoreRequestConfigSourceDatasetCustomFields extends $dara.Model {
99
+ /**
100
+ * @example
101
+ * 客户等级
102
+ */
103
+ description?: string;
104
+ /**
105
+ * @example
106
+ * false
107
+ */
108
+ sensitive?: boolean;
109
+ /**
110
+ * @example
111
+ * customerTier
112
+ */
113
+ sourceField?: string;
114
+ /**
115
+ * @example
116
+ * metadata.customerTier
117
+ */
118
+ target?: string;
119
+ /**
120
+ * @example
121
+ * extraction-input
122
+ */
123
+ usage?: string;
124
+ static names(): {
125
+ [key: string]: string;
126
+ };
127
+ static types(): {
128
+ [key: string]: any;
129
+ };
130
+ validate(): void;
131
+ constructor(map?: {
132
+ [key: string]: any;
133
+ });
134
+ }
135
+ export declare class CreateContextStoreRequestConfigSourceDatasetFilter extends $dara.Model {
136
+ /**
137
+ * @example
138
+ * appId = \\"crm-service\\"
139
+ */
140
+ where?: string;
141
+ static names(): {
142
+ [key: string]: string;
143
+ };
144
+ static types(): {
145
+ [key: string]: any;
146
+ };
147
+ validate(): void;
148
+ constructor(map?: {
149
+ [key: string]: any;
150
+ });
151
+ }
152
+ export declare class CreateContextStoreRequestConfigSourceDatasetVersionPolicy extends $dara.Model {
153
+ /**
154
+ * @example
155
+ * follow
156
+ */
157
+ mode?: string;
158
+ /**
159
+ * @example
160
+ * 0
161
+ */
162
+ startSeq?: number;
163
+ /**
164
+ * @example
165
+ * v3
166
+ */
167
+ version?: string;
168
+ static names(): {
169
+ [key: string]: string;
170
+ };
171
+ static types(): {
172
+ [key: string]: any;
173
+ };
174
+ validate(): void;
175
+ constructor(map?: {
176
+ [key: string]: any;
177
+ });
178
+ }
179
+ export declare class CreateContextStoreRequestConfigSourceDataset extends $dara.Model {
180
+ customFields?: CreateContextStoreRequestConfigSourceDatasetCustomFields[];
181
+ /**
182
+ * @example
183
+ * trajectory-with-crm-profile
184
+ */
185
+ datasetName?: string;
186
+ filter?: CreateContextStoreRequestConfigSourceDatasetFilter;
187
+ /**
188
+ * @example
189
+ * 300
190
+ */
191
+ pollIntervalSeconds?: number;
192
+ /**
193
+ * @example
194
+ * MemorySourceV1
195
+ */
196
+ schemaContract?: string;
197
+ versionPolicy?: CreateContextStoreRequestConfigSourceDatasetVersionPolicy;
198
+ static names(): {
199
+ [key: string]: string;
200
+ };
201
+ static types(): {
202
+ [key: string]: any;
203
+ };
204
+ validate(): void;
205
+ constructor(map?: {
206
+ [key: string]: any;
207
+ });
208
+ }
209
+ export declare class CreateContextStoreRequestConfigSourceTrajectoryFilter extends $dara.Model {
210
+ /**
211
+ * @example
212
+ * ["sales-copilot"]
213
+ */
214
+ agentNames?: string[];
215
+ /**
216
+ * @example
217
+ * false
218
+ */
219
+ excludeDegraded?: boolean;
220
+ /**
221
+ * @example
222
+ * 2
223
+ */
224
+ minStepCount?: number;
225
+ /**
226
+ * @example
227
+ * tool_names:"search_order"
228
+ */
229
+ query?: string;
230
+ /**
231
+ * @example
232
+ * ["crm-service","app-*"]
233
+ */
234
+ serviceNames?: string[];
235
+ static names(): {
236
+ [key: string]: string;
237
+ };
238
+ static types(): {
239
+ [key: string]: any;
240
+ };
241
+ validate(): void;
242
+ constructor(map?: {
243
+ [key: string]: any;
244
+ });
245
+ }
246
+ export declare class CreateContextStoreRequestConfigSourceTrajectoryScopeMapping extends $dara.Model {
247
+ /**
248
+ * @example
249
+ * $.agent_name
250
+ */
251
+ agentId?: string;
252
+ /**
253
+ * @example
254
+ * $.service_names[0]
255
+ */
256
+ appId?: string;
257
+ /**
258
+ * @example
259
+ * $.trajectory_id
260
+ */
261
+ runId?: string;
262
+ /**
263
+ * @example
264
+ * $.trajectory_extensions.user_id
265
+ */
266
+ userId?: string;
267
+ static names(): {
268
+ [key: string]: string;
269
+ };
270
+ static types(): {
271
+ [key: string]: any;
272
+ };
273
+ validate(): void;
274
+ constructor(map?: {
275
+ [key: string]: any;
276
+ });
277
+ }
278
+ export declare class CreateContextStoreRequestConfigSourceTrajectory extends $dara.Model {
279
+ filter?: CreateContextStoreRequestConfigSourceTrajectoryFilter;
280
+ /**
281
+ * @example
282
+ * agent-trajectory
283
+ */
284
+ logstore?: string;
285
+ /**
286
+ * @example
287
+ * 300
288
+ */
289
+ pollIntervalSeconds?: number;
290
+ scopeMapping?: CreateContextStoreRequestConfigSourceTrajectoryScopeMapping;
291
+ /**
292
+ * @remarks
293
+ * Use the UTC time format: yyyy-MM-ddTHH:mm:ssZ
294
+ *
295
+ * @example
296
+ * 2026-10-01T00:00:00Z
297
+ */
298
+ startTime?: string;
299
+ static names(): {
300
+ [key: string]: string;
301
+ };
302
+ static types(): {
303
+ [key: string]: any;
304
+ };
305
+ validate(): void;
306
+ constructor(map?: {
307
+ [key: string]: any;
308
+ });
309
+ }
4
310
  export declare class CreateContextStoreRequestConfigSource extends $dara.Model {
5
311
  /**
6
312
  * @remarks
@@ -10,6 +316,7 @@ export declare class CreateContextStoreRequestConfigSource extends $dara.Model {
10
316
  * my-agent-space
11
317
  */
12
318
  agentSpace?: string;
319
+ dataset?: CreateContextStoreRequestConfigSourceDataset;
13
320
  /**
14
321
  * @remarks
15
322
  * The start time for data backfill, in ISO 8601 UTC format. If not specified, the current time is used.
@@ -20,6 +327,59 @@ export declare class CreateContextStoreRequestConfigSource extends $dara.Model {
20
327
  * 2026-01-01T00:00:00Z
21
328
  */
22
329
  startTime?: string;
330
+ trajectory?: CreateContextStoreRequestConfigSourceTrajectory;
331
+ /**
332
+ * @example
333
+ * trajectory
334
+ */
335
+ type?: string;
336
+ static names(): {
337
+ [key: string]: string;
338
+ };
339
+ static types(): {
340
+ [key: string]: any;
341
+ };
342
+ validate(): void;
343
+ constructor(map?: {
344
+ [key: string]: any;
345
+ });
346
+ }
347
+ export declare class CreateContextStoreRequestConfigStoragePolicy extends $dara.Model {
348
+ /**
349
+ * @example
350
+ * ["ADD","UPDATE","MERGE","DELETE"]
351
+ */
352
+ allowedActions?: string[];
353
+ /**
354
+ * @example
355
+ * true
356
+ */
357
+ dedupe?: boolean;
358
+ /**
359
+ * @example
360
+ * true
361
+ */
362
+ humanEditProtection?: boolean;
363
+ /**
364
+ * @example
365
+ * semantic
366
+ */
367
+ mergeKey?: string;
368
+ /**
369
+ * @example
370
+ * upsert
371
+ */
372
+ mode?: string;
373
+ /**
374
+ * @example
375
+ * 0.4
376
+ */
377
+ similarityThreshold?: number;
378
+ /**
379
+ * @example
380
+ * 0
381
+ */
382
+ ttlDays?: number;
23
383
  static names(): {
24
384
  [key: string]: string;
25
385
  };
@@ -32,6 +392,8 @@ export declare class CreateContextStoreRequestConfigSource extends $dara.Model {
32
392
  });
33
393
  }
34
394
  export declare class CreateContextStoreRequestConfig extends $dara.Model {
395
+ audit?: CreateContextStoreRequestConfigAudit;
396
+ extractionPolicy?: CreateContextStoreRequestConfigExtractionPolicy;
35
397
  /**
36
398
  * @remarks
37
399
  * The metadata field mapping. The key is the business field and the value is the storage field.
@@ -50,12 +412,11 @@ export declare class CreateContextStoreRequestConfig extends $dara.Model {
50
412
  * 1d
51
413
  */
52
414
  miningInterval?: string;
415
+ scopePolicy?: CreateContextStoreRequestConfigScopePolicy;
53
416
  /**
54
417
  * @remarks
55
418
  * The list of service names. This parameter is required and cannot be empty. It works with source.agentSpace to locate the trace data source. The trajectory extraction service uses the AgentSpace to look up the bound CMS workspace and project/logstore, and then filters by service name. This value cannot be changed after creation. No modification entry is available in the current version.
56
419
  *
57
- * This parameter is required.
58
- *
59
420
  * @example
60
421
  * ["order-service","payment-service"]
61
422
  */
@@ -65,6 +426,7 @@ export declare class CreateContextStoreRequestConfig extends $dara.Model {
65
426
  * The datasource config, which serves only as the root identifier for the data source. This is an optional block.
66
427
  */
67
428
  source?: CreateContextStoreRequestConfigSource;
429
+ storagePolicy?: CreateContextStoreRequestConfigStoragePolicy;
68
430
  static names(): {
69
431
  [key: string]: string;
70
432
  };