@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,4 +1,391 @@
1
1
  import * as $dara from '@darabonba/typescript';
2
+ export declare class GetContextStoreResponseBodyConfigAudit extends $dara.Model {
3
+ /**
4
+ * @example
5
+ * false
6
+ */
7
+ droppedCandidates?: boolean;
8
+ /**
9
+ * @example
10
+ * raw
11
+ */
12
+ queryMode?: string;
13
+ /**
14
+ * @example
15
+ * 30
16
+ */
17
+ retentionDays?: number;
18
+ static names(): {
19
+ [key: string]: string;
20
+ };
21
+ static types(): {
22
+ [key: string]: any;
23
+ };
24
+ validate(): void;
25
+ constructor(map?: {
26
+ [key: string]: any;
27
+ });
28
+ }
29
+ export declare class GetContextStoreResponseBodyConfigExtractionPolicyModel extends $dara.Model {
30
+ /**
31
+ * @example
32
+ * qwen3.8-flash
33
+ */
34
+ name?: string;
35
+ static names(): {
36
+ [key: string]: string;
37
+ };
38
+ static types(): {
39
+ [key: string]: any;
40
+ };
41
+ validate(): void;
42
+ constructor(map?: {
43
+ [key: string]: any;
44
+ });
45
+ }
46
+ export declare class GetContextStoreResponseBodyConfigExtractionPolicy extends $dara.Model {
47
+ /**
48
+ * @example
49
+ * ["preference","profile"]
50
+ */
51
+ categories?: string[];
52
+ /**
53
+ * @example
54
+ * 只抽取用户的产品偏好
55
+ */
56
+ customInstructions?: string;
57
+ /**
58
+ * @example
59
+ * ["密码","证件号"]
60
+ */
61
+ excludeRules?: string[];
62
+ model?: GetContextStoreResponseBodyConfigExtractionPolicyModel;
63
+ /**
64
+ * @example
65
+ * fact
66
+ */
67
+ preset?: string;
68
+ static names(): {
69
+ [key: string]: string;
70
+ };
71
+ static types(): {
72
+ [key: string]: any;
73
+ };
74
+ validate(): void;
75
+ constructor(map?: {
76
+ [key: string]: any;
77
+ });
78
+ }
79
+ export declare class GetContextStoreResponseBodyConfigInnerSource extends $dara.Model {
80
+ /**
81
+ * @example
82
+ * memory_events_0a1b2c3d
83
+ */
84
+ logstore?: string;
85
+ /**
86
+ * @example
87
+ * agentloop-xxx
88
+ */
89
+ project?: string;
90
+ static names(): {
91
+ [key: string]: string;
92
+ };
93
+ static types(): {
94
+ [key: string]: any;
95
+ };
96
+ validate(): void;
97
+ constructor(map?: {
98
+ [key: string]: any;
99
+ });
100
+ }
101
+ export declare class GetContextStoreResponseBodyConfigObservability extends $dara.Model {
102
+ /**
103
+ * @example
104
+ * memory-audit
105
+ */
106
+ auditLogstore?: string;
107
+ /**
108
+ * @example
109
+ * memory_events_0a1b2c3d
110
+ */
111
+ eventsLogstore?: string;
112
+ /**
113
+ * @example
114
+ * agentloop-xxx
115
+ */
116
+ project?: string;
117
+ static names(): {
118
+ [key: string]: string;
119
+ };
120
+ static types(): {
121
+ [key: string]: any;
122
+ };
123
+ validate(): void;
124
+ constructor(map?: {
125
+ [key: string]: any;
126
+ });
127
+ }
128
+ export declare class GetContextStoreResponseBodyConfigOutputDataset extends $dara.Model {
129
+ /**
130
+ * @example
131
+ * my-agent-space
132
+ */
133
+ agentSpace?: string;
134
+ /**
135
+ * @example
136
+ * memory-my-context-store
137
+ */
138
+ datasetName?: string;
139
+ /**
140
+ * @example
141
+ * MemoryRecordV1
142
+ */
143
+ schemaContract?: string;
144
+ /**
145
+ * @example
146
+ * 1
147
+ */
148
+ schemaVersion?: number;
149
+ static names(): {
150
+ [key: string]: string;
151
+ };
152
+ static types(): {
153
+ [key: string]: any;
154
+ };
155
+ validate(): void;
156
+ constructor(map?: {
157
+ [key: string]: any;
158
+ });
159
+ }
160
+ export declare class GetContextStoreResponseBodyConfigScopePolicy extends $dara.Model {
161
+ /**
162
+ * @example
163
+ * ["userId"]
164
+ */
165
+ requiredAnyOf?: string[];
166
+ static names(): {
167
+ [key: string]: string;
168
+ };
169
+ static types(): {
170
+ [key: string]: any;
171
+ };
172
+ validate(): void;
173
+ constructor(map?: {
174
+ [key: string]: any;
175
+ });
176
+ }
177
+ export declare class GetContextStoreResponseBodyConfigSourceDatasetCustomFields extends $dara.Model {
178
+ /**
179
+ * @example
180
+ * 客户等级
181
+ */
182
+ description?: string;
183
+ /**
184
+ * @example
185
+ * false
186
+ */
187
+ sensitive?: boolean;
188
+ /**
189
+ * @example
190
+ * customerTier
191
+ */
192
+ sourceField?: string;
193
+ /**
194
+ * @example
195
+ * metadata.customerTier
196
+ */
197
+ target?: string;
198
+ /**
199
+ * @example
200
+ * extraction-input
201
+ */
202
+ usage?: string;
203
+ static names(): {
204
+ [key: string]: string;
205
+ };
206
+ static types(): {
207
+ [key: string]: any;
208
+ };
209
+ validate(): void;
210
+ constructor(map?: {
211
+ [key: string]: any;
212
+ });
213
+ }
214
+ export declare class GetContextStoreResponseBodyConfigSourceDatasetFilter extends $dara.Model {
215
+ /**
216
+ * @example
217
+ * appId = \\"crm-service\\"
218
+ */
219
+ where?: string;
220
+ static names(): {
221
+ [key: string]: string;
222
+ };
223
+ static types(): {
224
+ [key: string]: any;
225
+ };
226
+ validate(): void;
227
+ constructor(map?: {
228
+ [key: string]: any;
229
+ });
230
+ }
231
+ export declare class GetContextStoreResponseBodyConfigSourceDatasetVersionPolicy extends $dara.Model {
232
+ /**
233
+ * @example
234
+ * follow
235
+ */
236
+ mode?: string;
237
+ /**
238
+ * @example
239
+ * 0
240
+ */
241
+ startSeq?: number;
242
+ /**
243
+ * @example
244
+ * v3
245
+ */
246
+ version?: string;
247
+ static names(): {
248
+ [key: string]: string;
249
+ };
250
+ static types(): {
251
+ [key: string]: any;
252
+ };
253
+ validate(): void;
254
+ constructor(map?: {
255
+ [key: string]: any;
256
+ });
257
+ }
258
+ export declare class GetContextStoreResponseBodyConfigSourceDataset extends $dara.Model {
259
+ customFields?: GetContextStoreResponseBodyConfigSourceDatasetCustomFields[];
260
+ /**
261
+ * @example
262
+ * trajectory-with-crm-profile
263
+ */
264
+ datasetName?: string;
265
+ filter?: GetContextStoreResponseBodyConfigSourceDatasetFilter;
266
+ /**
267
+ * @example
268
+ * 300
269
+ */
270
+ pollIntervalSeconds?: number;
271
+ /**
272
+ * @example
273
+ * MemorySourceV1
274
+ */
275
+ schemaContract?: string;
276
+ versionPolicy?: GetContextStoreResponseBodyConfigSourceDatasetVersionPolicy;
277
+ static names(): {
278
+ [key: string]: string;
279
+ };
280
+ static types(): {
281
+ [key: string]: any;
282
+ };
283
+ validate(): void;
284
+ constructor(map?: {
285
+ [key: string]: any;
286
+ });
287
+ }
288
+ export declare class GetContextStoreResponseBodyConfigSourceTrajectoryFilter extends $dara.Model {
289
+ /**
290
+ * @example
291
+ * ["sales-copilot"]
292
+ */
293
+ agentNames?: string[];
294
+ /**
295
+ * @example
296
+ * false
297
+ */
298
+ excludeDegraded?: boolean;
299
+ /**
300
+ * @example
301
+ * 2
302
+ */
303
+ minStepCount?: number;
304
+ /**
305
+ * @example
306
+ * tool_names:"search_order"
307
+ */
308
+ query?: string;
309
+ /**
310
+ * @example
311
+ * ["crm-service","app-*"]
312
+ */
313
+ serviceNames?: string[];
314
+ static names(): {
315
+ [key: string]: string;
316
+ };
317
+ static types(): {
318
+ [key: string]: any;
319
+ };
320
+ validate(): void;
321
+ constructor(map?: {
322
+ [key: string]: any;
323
+ });
324
+ }
325
+ export declare class GetContextStoreResponseBodyConfigSourceTrajectoryScopeMapping extends $dara.Model {
326
+ /**
327
+ * @example
328
+ * $.agent_name
329
+ */
330
+ agentId?: string;
331
+ /**
332
+ * @example
333
+ * $.service_names[0]
334
+ */
335
+ appId?: string;
336
+ /**
337
+ * @example
338
+ * $.trajectory_id
339
+ */
340
+ runId?: string;
341
+ /**
342
+ * @example
343
+ * $.trajectory_extensions.user_id
344
+ */
345
+ userId?: string;
346
+ static names(): {
347
+ [key: string]: string;
348
+ };
349
+ static types(): {
350
+ [key: string]: any;
351
+ };
352
+ validate(): void;
353
+ constructor(map?: {
354
+ [key: string]: any;
355
+ });
356
+ }
357
+ export declare class GetContextStoreResponseBodyConfigSourceTrajectory extends $dara.Model {
358
+ filter?: GetContextStoreResponseBodyConfigSourceTrajectoryFilter;
359
+ /**
360
+ * @example
361
+ * agent-trajectory
362
+ */
363
+ logstore?: string;
364
+ /**
365
+ * @example
366
+ * 300
367
+ */
368
+ pollIntervalSeconds?: number;
369
+ scopeMapping?: GetContextStoreResponseBodyConfigSourceTrajectoryScopeMapping;
370
+ /**
371
+ * @remarks
372
+ * Use the UTC time format: yyyy-MM-ddTHH:mm:ssZ
373
+ *
374
+ * @example
375
+ * 2026-10-01T00:00:00Z
376
+ */
377
+ startTime?: string;
378
+ static names(): {
379
+ [key: string]: string;
380
+ };
381
+ static types(): {
382
+ [key: string]: any;
383
+ };
384
+ validate(): void;
385
+ constructor(map?: {
386
+ [key: string]: any;
387
+ });
388
+ }
2
389
  export declare class GetContextStoreResponseBodyConfigSource extends $dara.Model {
3
390
  /**
4
391
  * @remarks
@@ -8,6 +395,7 @@ export declare class GetContextStoreResponseBodyConfigSource extends $dara.Model
8
395
  * my-agent-space
9
396
  */
10
397
  agentSpace?: string;
398
+ dataset?: GetContextStoreResponseBodyConfigSourceDataset;
11
399
  /**
12
400
  * @remarks
13
401
  * The start time for data backfill, in ISO 8601 UTC format.
@@ -18,6 +406,94 @@ export declare class GetContextStoreResponseBodyConfigSource extends $dara.Model
18
406
  * 2026-01-01T00:00:00Z
19
407
  */
20
408
  startTime?: string;
409
+ trajectory?: GetContextStoreResponseBodyConfigSourceTrajectory;
410
+ /**
411
+ * @example
412
+ * trajectory
413
+ */
414
+ type?: string;
415
+ static names(): {
416
+ [key: string]: string;
417
+ };
418
+ static types(): {
419
+ [key: string]: any;
420
+ };
421
+ validate(): void;
422
+ constructor(map?: {
423
+ [key: string]: any;
424
+ });
425
+ }
426
+ export declare class GetContextStoreResponseBodyConfigSourceStatus extends $dara.Model {
427
+ checkpoint?: {
428
+ [key: string]: any;
429
+ };
430
+ /**
431
+ * @example
432
+ * 读取数据源超时
433
+ */
434
+ lastError?: string;
435
+ /**
436
+ * @example
437
+ * 2026-10-01T08:00:00Z
438
+ */
439
+ lastWindowAt?: string;
440
+ /**
441
+ * @example
442
+ * 0
443
+ */
444
+ retryCount?: number;
445
+ /**
446
+ * @example
447
+ * Running
448
+ */
449
+ state?: string;
450
+ static names(): {
451
+ [key: string]: string;
452
+ };
453
+ static types(): {
454
+ [key: string]: any;
455
+ };
456
+ validate(): void;
457
+ constructor(map?: {
458
+ [key: string]: any;
459
+ });
460
+ }
461
+ export declare class GetContextStoreResponseBodyConfigStoragePolicy extends $dara.Model {
462
+ /**
463
+ * @example
464
+ * ["ADD","UPDATE","MERGE","DELETE"]
465
+ */
466
+ allowedActions?: string[];
467
+ /**
468
+ * @example
469
+ * true
470
+ */
471
+ dedupe?: boolean;
472
+ /**
473
+ * @example
474
+ * true
475
+ */
476
+ humanEditProtection?: boolean;
477
+ /**
478
+ * @example
479
+ * semantic
480
+ */
481
+ mergeKey?: string;
482
+ /**
483
+ * @example
484
+ * upsert
485
+ */
486
+ mode?: string;
487
+ /**
488
+ * @example
489
+ * 0.4
490
+ */
491
+ similarityThreshold?: number;
492
+ /**
493
+ * @example
494
+ * 0
495
+ */
496
+ ttlDays?: number;
21
497
  static names(): {
22
498
  [key: string]: string;
23
499
  };
@@ -30,6 +506,9 @@ export declare class GetContextStoreResponseBodyConfigSource extends $dara.Model
30
506
  });
31
507
  }
32
508
  export declare class GetContextStoreResponseBodyConfig extends $dara.Model {
509
+ audit?: GetContextStoreResponseBodyConfigAudit;
510
+ extractionPolicy?: GetContextStoreResponseBodyConfigExtractionPolicy;
511
+ innerSource?: GetContextStoreResponseBodyConfigInnerSource;
33
512
  /**
34
513
  * @remarks
35
514
  * The metadata field mapping. The key is the business field and the value is the storage field.
@@ -48,6 +527,9 @@ export declare class GetContextStoreResponseBodyConfig extends $dara.Model {
48
527
  * 1d
49
528
  */
50
529
  miningInterval?: string;
530
+ observability?: GetContextStoreResponseBodyConfigObservability;
531
+ outputDataset?: GetContextStoreResponseBodyConfigOutputDataset;
532
+ scopePolicy?: GetContextStoreResponseBodyConfigScopePolicy;
51
533
  /**
52
534
  * @remarks
53
535
  * The list of service names. This works together with source.agentSpace to locate the trace data source. This value cannot be changed in the current version.
@@ -61,6 +543,13 @@ export declare class GetContextStoreResponseBodyConfig extends $dara.Model {
61
543
  * The datasource config passed in by the user. This serves only as the root identifier of the data source.
62
544
  */
63
545
  source?: GetContextStoreResponseBodyConfigSource;
546
+ sourceStatus?: GetContextStoreResponseBodyConfigSourceStatus;
547
+ storagePolicy?: GetContextStoreResponseBodyConfigStoragePolicy;
548
+ /**
549
+ * @example
550
+ * 1
551
+ */
552
+ strategyVersion?: number;
64
553
  static names(): {
65
554
  [key: string]: string;
66
555
  };