@alicloud/agentloop20260520 2.3.8 → 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.
- package/dist/client.d.ts +2 -2
- package/dist/client.js +19 -2
- package/dist/client.js.map +1 -1
- package/dist/models/CreateContextStoreRequest.d.ts +364 -2
- package/dist/models/CreateContextStoreRequest.js +365 -1
- package/dist/models/CreateContextStoreRequest.js.map +1 -1
- package/dist/models/CreateContextStoreResponseBody.d.ts +5 -0
- package/dist/models/CreateContextStoreResponseBody.js +2 -0
- package/dist/models/CreateContextStoreResponseBody.js.map +1 -1
- package/dist/models/DeleteContextStoreRequest.d.ts +8 -0
- package/dist/models/DeleteContextStoreRequest.js +6 -2
- package/dist/models/DeleteContextStoreRequest.js.map +1 -1
- package/dist/models/DeleteContextStoreResponseBody.d.ts +1 -1
- package/dist/models/GetContextStoreResponseBody.d.ts +489 -0
- package/dist/models/GetContextStoreResponseBody.js +486 -1
- package/dist/models/GetContextStoreResponseBody.js.map +1 -1
- package/dist/models/ListContextStoresRequest.d.ts +5 -0
- package/dist/models/ListContextStoresRequest.js +2 -0
- package/dist/models/ListContextStoresRequest.js.map +1 -1
- package/dist/models/ListContextStoresResponseBody.d.ts +10 -0
- package/dist/models/ListContextStoresResponseBody.js +4 -0
- package/dist/models/ListContextStoresResponseBody.js.map +1 -1
- package/dist/models/SearchContextRequest.d.ts +38 -0
- package/dist/models/SearchContextRequest.js +33 -1
- package/dist/models/SearchContextRequest.js.map +1 -1
- package/dist/models/SearchContextResponseBody.d.ts +10 -0
- package/dist/models/SearchContextResponseBody.js +4 -0
- package/dist/models/SearchContextResponseBody.js.map +1 -1
- package/dist/models/UpdateContextStoreRequest.d.ts +479 -9
- package/dist/models/UpdateContextStoreRequest.js +331 -1
- package/dist/models/UpdateContextStoreRequest.js.map +1 -1
- package/dist/models/UpdateContextStoreResponseBody.d.ts +8 -0
- package/dist/models/UpdateContextStoreResponseBody.js +2 -0
- package/dist/models/UpdateContextStoreResponseBody.js.map +1 -1
- package/dist/models/model.d.ts +40 -0
- package/dist/models/model.js +102 -21
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +24 -2
- package/src/models/CreateContextStoreRequest.ts +620 -2
- package/src/models/CreateContextStoreResponseBody.ts +7 -0
- package/src/models/DeleteContextStoreRequest.ts +10 -0
- package/src/models/DeleteContextStoreResponseBody.ts +1 -1
- package/src/models/GetContextStoreResponseBody.ts +828 -0
- package/src/models/ListContextStoresRequest.ts +7 -0
- package/src/models/ListContextStoresResponseBody.ts +14 -0
- package/src/models/SearchContextRequest.ts +61 -0
- package/src/models/SearchContextResponseBody.ts +14 -0
- package/src/models/UpdateContextStoreRequest.ts +710 -9
- package/src/models/UpdateContextStoreResponseBody.ts +10 -0
- package/src/models/model.ts +40 -0
|
@@ -4,6 +4,511 @@ import * as $dara from '@darabonba/typescript';
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
*/
|
|
7
|
+
export class CreateContextStoreRequestConfigAudit extends $dara.Model {
|
|
8
|
+
/**
|
|
9
|
+
* @example
|
|
10
|
+
* false
|
|
11
|
+
*/
|
|
12
|
+
droppedCandidates?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* @example
|
|
15
|
+
* raw
|
|
16
|
+
*/
|
|
17
|
+
queryMode?: string;
|
|
18
|
+
/**
|
|
19
|
+
* @example
|
|
20
|
+
* 30
|
|
21
|
+
*/
|
|
22
|
+
retentionDays?: number;
|
|
23
|
+
static names(): { [key: string]: string } {
|
|
24
|
+
return {
|
|
25
|
+
droppedCandidates: 'droppedCandidates',
|
|
26
|
+
queryMode: 'queryMode',
|
|
27
|
+
retentionDays: 'retentionDays',
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
static types(): { [key: string]: any } {
|
|
32
|
+
return {
|
|
33
|
+
droppedCandidates: 'boolean',
|
|
34
|
+
queryMode: 'string',
|
|
35
|
+
retentionDays: 'number',
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
validate() {
|
|
40
|
+
super.validate();
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
constructor(map?: { [key: string]: any }) {
|
|
44
|
+
super(map);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export class CreateContextStoreRequestConfigExtractionPolicyModel extends $dara.Model {
|
|
49
|
+
/**
|
|
50
|
+
* @example
|
|
51
|
+
* qwen3.8-flash
|
|
52
|
+
*/
|
|
53
|
+
name?: string;
|
|
54
|
+
static names(): { [key: string]: string } {
|
|
55
|
+
return {
|
|
56
|
+
name: 'name',
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
static types(): { [key: string]: any } {
|
|
61
|
+
return {
|
|
62
|
+
name: 'string',
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
validate() {
|
|
67
|
+
super.validate();
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
constructor(map?: { [key: string]: any }) {
|
|
71
|
+
super(map);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export class CreateContextStoreRequestConfigExtractionPolicy extends $dara.Model {
|
|
76
|
+
/**
|
|
77
|
+
* @example
|
|
78
|
+
* ["preference","profile"]
|
|
79
|
+
*/
|
|
80
|
+
categories?: string[];
|
|
81
|
+
/**
|
|
82
|
+
* @example
|
|
83
|
+
* 只抽取用户的产品偏好
|
|
84
|
+
*/
|
|
85
|
+
customInstructions?: string;
|
|
86
|
+
/**
|
|
87
|
+
* @example
|
|
88
|
+
* ["密码","证件号"]
|
|
89
|
+
*/
|
|
90
|
+
excludeRules?: string[];
|
|
91
|
+
model?: CreateContextStoreRequestConfigExtractionPolicyModel;
|
|
92
|
+
/**
|
|
93
|
+
* @example
|
|
94
|
+
* fact
|
|
95
|
+
*/
|
|
96
|
+
preset?: string;
|
|
97
|
+
static names(): { [key: string]: string } {
|
|
98
|
+
return {
|
|
99
|
+
categories: 'categories',
|
|
100
|
+
customInstructions: 'customInstructions',
|
|
101
|
+
excludeRules: 'excludeRules',
|
|
102
|
+
model: 'model',
|
|
103
|
+
preset: 'preset',
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
static types(): { [key: string]: any } {
|
|
108
|
+
return {
|
|
109
|
+
categories: { 'type': 'array', 'itemType': 'string' },
|
|
110
|
+
customInstructions: 'string',
|
|
111
|
+
excludeRules: { 'type': 'array', 'itemType': 'string' },
|
|
112
|
+
model: CreateContextStoreRequestConfigExtractionPolicyModel,
|
|
113
|
+
preset: 'string',
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
validate() {
|
|
118
|
+
if(Array.isArray(this.categories)) {
|
|
119
|
+
$dara.Model.validateArray(this.categories);
|
|
120
|
+
}
|
|
121
|
+
if(Array.isArray(this.excludeRules)) {
|
|
122
|
+
$dara.Model.validateArray(this.excludeRules);
|
|
123
|
+
}
|
|
124
|
+
if(this.model && typeof (this.model as any).validate === 'function') {
|
|
125
|
+
(this.model as any).validate();
|
|
126
|
+
}
|
|
127
|
+
super.validate();
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
constructor(map?: { [key: string]: any }) {
|
|
131
|
+
super(map);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export class CreateContextStoreRequestConfigScopePolicy extends $dara.Model {
|
|
136
|
+
/**
|
|
137
|
+
* @example
|
|
138
|
+
* ["userId"]
|
|
139
|
+
*/
|
|
140
|
+
requiredAnyOf?: string[];
|
|
141
|
+
static names(): { [key: string]: string } {
|
|
142
|
+
return {
|
|
143
|
+
requiredAnyOf: 'requiredAnyOf',
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
static types(): { [key: string]: any } {
|
|
148
|
+
return {
|
|
149
|
+
requiredAnyOf: { 'type': 'array', 'itemType': 'string' },
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
validate() {
|
|
154
|
+
if(Array.isArray(this.requiredAnyOf)) {
|
|
155
|
+
$dara.Model.validateArray(this.requiredAnyOf);
|
|
156
|
+
}
|
|
157
|
+
super.validate();
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
constructor(map?: { [key: string]: any }) {
|
|
161
|
+
super(map);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export class CreateContextStoreRequestConfigSourceDatasetCustomFields extends $dara.Model {
|
|
166
|
+
/**
|
|
167
|
+
* @example
|
|
168
|
+
* 客户等级
|
|
169
|
+
*/
|
|
170
|
+
description?: string;
|
|
171
|
+
/**
|
|
172
|
+
* @example
|
|
173
|
+
* false
|
|
174
|
+
*/
|
|
175
|
+
sensitive?: boolean;
|
|
176
|
+
/**
|
|
177
|
+
* @example
|
|
178
|
+
* customerTier
|
|
179
|
+
*/
|
|
180
|
+
sourceField?: string;
|
|
181
|
+
/**
|
|
182
|
+
* @example
|
|
183
|
+
* metadata.customerTier
|
|
184
|
+
*/
|
|
185
|
+
target?: string;
|
|
186
|
+
/**
|
|
187
|
+
* @example
|
|
188
|
+
* extraction-input
|
|
189
|
+
*/
|
|
190
|
+
usage?: string;
|
|
191
|
+
static names(): { [key: string]: string } {
|
|
192
|
+
return {
|
|
193
|
+
description: 'description',
|
|
194
|
+
sensitive: 'sensitive',
|
|
195
|
+
sourceField: 'sourceField',
|
|
196
|
+
target: 'target',
|
|
197
|
+
usage: 'usage',
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
static types(): { [key: string]: any } {
|
|
202
|
+
return {
|
|
203
|
+
description: 'string',
|
|
204
|
+
sensitive: 'boolean',
|
|
205
|
+
sourceField: 'string',
|
|
206
|
+
target: 'string',
|
|
207
|
+
usage: 'string',
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
validate() {
|
|
212
|
+
super.validate();
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
constructor(map?: { [key: string]: any }) {
|
|
216
|
+
super(map);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export class CreateContextStoreRequestConfigSourceDatasetFilter extends $dara.Model {
|
|
221
|
+
/**
|
|
222
|
+
* @example
|
|
223
|
+
* appId = \\"crm-service\\"
|
|
224
|
+
*/
|
|
225
|
+
where?: string;
|
|
226
|
+
static names(): { [key: string]: string } {
|
|
227
|
+
return {
|
|
228
|
+
where: 'where',
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
static types(): { [key: string]: any } {
|
|
233
|
+
return {
|
|
234
|
+
where: 'string',
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
validate() {
|
|
239
|
+
super.validate();
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
constructor(map?: { [key: string]: any }) {
|
|
243
|
+
super(map);
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
export class CreateContextStoreRequestConfigSourceDatasetVersionPolicy extends $dara.Model {
|
|
248
|
+
/**
|
|
249
|
+
* @example
|
|
250
|
+
* follow
|
|
251
|
+
*/
|
|
252
|
+
mode?: string;
|
|
253
|
+
/**
|
|
254
|
+
* @example
|
|
255
|
+
* 0
|
|
256
|
+
*/
|
|
257
|
+
startSeq?: number;
|
|
258
|
+
/**
|
|
259
|
+
* @example
|
|
260
|
+
* v3
|
|
261
|
+
*/
|
|
262
|
+
version?: string;
|
|
263
|
+
static names(): { [key: string]: string } {
|
|
264
|
+
return {
|
|
265
|
+
mode: 'mode',
|
|
266
|
+
startSeq: 'startSeq',
|
|
267
|
+
version: 'version',
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
static types(): { [key: string]: any } {
|
|
272
|
+
return {
|
|
273
|
+
mode: 'string',
|
|
274
|
+
startSeq: 'number',
|
|
275
|
+
version: 'string',
|
|
276
|
+
};
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
validate() {
|
|
280
|
+
super.validate();
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
constructor(map?: { [key: string]: any }) {
|
|
284
|
+
super(map);
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
export class CreateContextStoreRequestConfigSourceDataset extends $dara.Model {
|
|
289
|
+
customFields?: CreateContextStoreRequestConfigSourceDatasetCustomFields[];
|
|
290
|
+
/**
|
|
291
|
+
* @example
|
|
292
|
+
* trajectory-with-crm-profile
|
|
293
|
+
*/
|
|
294
|
+
datasetName?: string;
|
|
295
|
+
filter?: CreateContextStoreRequestConfigSourceDatasetFilter;
|
|
296
|
+
/**
|
|
297
|
+
* @example
|
|
298
|
+
* 300
|
|
299
|
+
*/
|
|
300
|
+
pollIntervalSeconds?: number;
|
|
301
|
+
/**
|
|
302
|
+
* @example
|
|
303
|
+
* MemorySourceV1
|
|
304
|
+
*/
|
|
305
|
+
schemaContract?: string;
|
|
306
|
+
versionPolicy?: CreateContextStoreRequestConfigSourceDatasetVersionPolicy;
|
|
307
|
+
static names(): { [key: string]: string } {
|
|
308
|
+
return {
|
|
309
|
+
customFields: 'customFields',
|
|
310
|
+
datasetName: 'datasetName',
|
|
311
|
+
filter: 'filter',
|
|
312
|
+
pollIntervalSeconds: 'pollIntervalSeconds',
|
|
313
|
+
schemaContract: 'schemaContract',
|
|
314
|
+
versionPolicy: 'versionPolicy',
|
|
315
|
+
};
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
static types(): { [key: string]: any } {
|
|
319
|
+
return {
|
|
320
|
+
customFields: { 'type': 'array', 'itemType': CreateContextStoreRequestConfigSourceDatasetCustomFields },
|
|
321
|
+
datasetName: 'string',
|
|
322
|
+
filter: CreateContextStoreRequestConfigSourceDatasetFilter,
|
|
323
|
+
pollIntervalSeconds: 'number',
|
|
324
|
+
schemaContract: 'string',
|
|
325
|
+
versionPolicy: CreateContextStoreRequestConfigSourceDatasetVersionPolicy,
|
|
326
|
+
};
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
validate() {
|
|
330
|
+
if(Array.isArray(this.customFields)) {
|
|
331
|
+
$dara.Model.validateArray(this.customFields);
|
|
332
|
+
}
|
|
333
|
+
if(this.filter && typeof (this.filter as any).validate === 'function') {
|
|
334
|
+
(this.filter as any).validate();
|
|
335
|
+
}
|
|
336
|
+
if(this.versionPolicy && typeof (this.versionPolicy as any).validate === 'function') {
|
|
337
|
+
(this.versionPolicy as any).validate();
|
|
338
|
+
}
|
|
339
|
+
super.validate();
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
constructor(map?: { [key: string]: any }) {
|
|
343
|
+
super(map);
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
export class CreateContextStoreRequestConfigSourceTrajectoryFilter extends $dara.Model {
|
|
348
|
+
/**
|
|
349
|
+
* @example
|
|
350
|
+
* ["sales-copilot"]
|
|
351
|
+
*/
|
|
352
|
+
agentNames?: string[];
|
|
353
|
+
/**
|
|
354
|
+
* @example
|
|
355
|
+
* false
|
|
356
|
+
*/
|
|
357
|
+
excludeDegraded?: boolean;
|
|
358
|
+
/**
|
|
359
|
+
* @example
|
|
360
|
+
* 2
|
|
361
|
+
*/
|
|
362
|
+
minStepCount?: number;
|
|
363
|
+
/**
|
|
364
|
+
* @example
|
|
365
|
+
* tool_names:"search_order"
|
|
366
|
+
*/
|
|
367
|
+
query?: string;
|
|
368
|
+
/**
|
|
369
|
+
* @example
|
|
370
|
+
* ["crm-service","app-*"]
|
|
371
|
+
*/
|
|
372
|
+
serviceNames?: string[];
|
|
373
|
+
static names(): { [key: string]: string } {
|
|
374
|
+
return {
|
|
375
|
+
agentNames: 'agentNames',
|
|
376
|
+
excludeDegraded: 'excludeDegraded',
|
|
377
|
+
minStepCount: 'minStepCount',
|
|
378
|
+
query: 'query',
|
|
379
|
+
serviceNames: 'serviceNames',
|
|
380
|
+
};
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
static types(): { [key: string]: any } {
|
|
384
|
+
return {
|
|
385
|
+
agentNames: { 'type': 'array', 'itemType': 'string' },
|
|
386
|
+
excludeDegraded: 'boolean',
|
|
387
|
+
minStepCount: 'number',
|
|
388
|
+
query: 'string',
|
|
389
|
+
serviceNames: { 'type': 'array', 'itemType': 'string' },
|
|
390
|
+
};
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
validate() {
|
|
394
|
+
if(Array.isArray(this.agentNames)) {
|
|
395
|
+
$dara.Model.validateArray(this.agentNames);
|
|
396
|
+
}
|
|
397
|
+
if(Array.isArray(this.serviceNames)) {
|
|
398
|
+
$dara.Model.validateArray(this.serviceNames);
|
|
399
|
+
}
|
|
400
|
+
super.validate();
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
constructor(map?: { [key: string]: any }) {
|
|
404
|
+
super(map);
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
export class CreateContextStoreRequestConfigSourceTrajectoryScopeMapping extends $dara.Model {
|
|
409
|
+
/**
|
|
410
|
+
* @example
|
|
411
|
+
* $.agent_name
|
|
412
|
+
*/
|
|
413
|
+
agentId?: string;
|
|
414
|
+
/**
|
|
415
|
+
* @example
|
|
416
|
+
* $.service_names[0]
|
|
417
|
+
*/
|
|
418
|
+
appId?: string;
|
|
419
|
+
/**
|
|
420
|
+
* @example
|
|
421
|
+
* $.trajectory_id
|
|
422
|
+
*/
|
|
423
|
+
runId?: string;
|
|
424
|
+
/**
|
|
425
|
+
* @example
|
|
426
|
+
* $.trajectory_extensions.user_id
|
|
427
|
+
*/
|
|
428
|
+
userId?: string;
|
|
429
|
+
static names(): { [key: string]: string } {
|
|
430
|
+
return {
|
|
431
|
+
agentId: 'agentId',
|
|
432
|
+
appId: 'appId',
|
|
433
|
+
runId: 'runId',
|
|
434
|
+
userId: 'userId',
|
|
435
|
+
};
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
static types(): { [key: string]: any } {
|
|
439
|
+
return {
|
|
440
|
+
agentId: 'string',
|
|
441
|
+
appId: 'string',
|
|
442
|
+
runId: 'string',
|
|
443
|
+
userId: 'string',
|
|
444
|
+
};
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
validate() {
|
|
448
|
+
super.validate();
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
constructor(map?: { [key: string]: any }) {
|
|
452
|
+
super(map);
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
export class CreateContextStoreRequestConfigSourceTrajectory extends $dara.Model {
|
|
457
|
+
filter?: CreateContextStoreRequestConfigSourceTrajectoryFilter;
|
|
458
|
+
/**
|
|
459
|
+
* @example
|
|
460
|
+
* agent-trajectory
|
|
461
|
+
*/
|
|
462
|
+
logstore?: string;
|
|
463
|
+
/**
|
|
464
|
+
* @example
|
|
465
|
+
* 300
|
|
466
|
+
*/
|
|
467
|
+
pollIntervalSeconds?: number;
|
|
468
|
+
scopeMapping?: CreateContextStoreRequestConfigSourceTrajectoryScopeMapping;
|
|
469
|
+
/**
|
|
470
|
+
* @remarks
|
|
471
|
+
* Use the UTC time format: yyyy-MM-ddTHH:mm:ssZ
|
|
472
|
+
*
|
|
473
|
+
* @example
|
|
474
|
+
* 2026-10-01T00:00:00Z
|
|
475
|
+
*/
|
|
476
|
+
startTime?: string;
|
|
477
|
+
static names(): { [key: string]: string } {
|
|
478
|
+
return {
|
|
479
|
+
filter: 'filter',
|
|
480
|
+
logstore: 'logstore',
|
|
481
|
+
pollIntervalSeconds: 'pollIntervalSeconds',
|
|
482
|
+
scopeMapping: 'scopeMapping',
|
|
483
|
+
startTime: 'startTime',
|
|
484
|
+
};
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
static types(): { [key: string]: any } {
|
|
488
|
+
return {
|
|
489
|
+
filter: CreateContextStoreRequestConfigSourceTrajectoryFilter,
|
|
490
|
+
logstore: 'string',
|
|
491
|
+
pollIntervalSeconds: 'number',
|
|
492
|
+
scopeMapping: CreateContextStoreRequestConfigSourceTrajectoryScopeMapping,
|
|
493
|
+
startTime: 'string',
|
|
494
|
+
};
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
validate() {
|
|
498
|
+
if(this.filter && typeof (this.filter as any).validate === 'function') {
|
|
499
|
+
(this.filter as any).validate();
|
|
500
|
+
}
|
|
501
|
+
if(this.scopeMapping && typeof (this.scopeMapping as any).validate === 'function') {
|
|
502
|
+
(this.scopeMapping as any).validate();
|
|
503
|
+
}
|
|
504
|
+
super.validate();
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
constructor(map?: { [key: string]: any }) {
|
|
508
|
+
super(map);
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
|
|
7
512
|
export class CreateContextStoreRequestConfigSource extends $dara.Model {
|
|
8
513
|
/**
|
|
9
514
|
* @remarks
|
|
@@ -13,6 +518,7 @@ export class CreateContextStoreRequestConfigSource extends $dara.Model {
|
|
|
13
518
|
* my-agent-space
|
|
14
519
|
*/
|
|
15
520
|
agentSpace?: string;
|
|
521
|
+
dataset?: CreateContextStoreRequestConfigSourceDataset;
|
|
16
522
|
/**
|
|
17
523
|
* @remarks
|
|
18
524
|
* The start time for data backfill, in ISO 8601 UTC format. If not specified, the current time is used.
|
|
@@ -23,21 +529,111 @@ export class CreateContextStoreRequestConfigSource extends $dara.Model {
|
|
|
23
529
|
* 2026-01-01T00:00:00Z
|
|
24
530
|
*/
|
|
25
531
|
startTime?: string;
|
|
532
|
+
trajectory?: CreateContextStoreRequestConfigSourceTrajectory;
|
|
533
|
+
/**
|
|
534
|
+
* @example
|
|
535
|
+
* trajectory
|
|
536
|
+
*/
|
|
537
|
+
type?: string;
|
|
26
538
|
static names(): { [key: string]: string } {
|
|
27
539
|
return {
|
|
28
540
|
agentSpace: 'agentSpace',
|
|
541
|
+
dataset: 'dataset',
|
|
29
542
|
startTime: 'startTime',
|
|
543
|
+
trajectory: 'trajectory',
|
|
544
|
+
type: 'type',
|
|
30
545
|
};
|
|
31
546
|
}
|
|
32
547
|
|
|
33
548
|
static types(): { [key: string]: any } {
|
|
34
549
|
return {
|
|
35
550
|
agentSpace: 'string',
|
|
551
|
+
dataset: CreateContextStoreRequestConfigSourceDataset,
|
|
36
552
|
startTime: 'string',
|
|
553
|
+
trajectory: CreateContextStoreRequestConfigSourceTrajectory,
|
|
554
|
+
type: 'string',
|
|
555
|
+
};
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
validate() {
|
|
559
|
+
if(this.dataset && typeof (this.dataset as any).validate === 'function') {
|
|
560
|
+
(this.dataset as any).validate();
|
|
561
|
+
}
|
|
562
|
+
if(this.trajectory && typeof (this.trajectory as any).validate === 'function') {
|
|
563
|
+
(this.trajectory as any).validate();
|
|
564
|
+
}
|
|
565
|
+
super.validate();
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
constructor(map?: { [key: string]: any }) {
|
|
569
|
+
super(map);
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
export class CreateContextStoreRequestConfigStoragePolicy extends $dara.Model {
|
|
574
|
+
/**
|
|
575
|
+
* @example
|
|
576
|
+
* ["ADD","UPDATE","MERGE","DELETE"]
|
|
577
|
+
*/
|
|
578
|
+
allowedActions?: string[];
|
|
579
|
+
/**
|
|
580
|
+
* @example
|
|
581
|
+
* true
|
|
582
|
+
*/
|
|
583
|
+
dedupe?: boolean;
|
|
584
|
+
/**
|
|
585
|
+
* @example
|
|
586
|
+
* true
|
|
587
|
+
*/
|
|
588
|
+
humanEditProtection?: boolean;
|
|
589
|
+
/**
|
|
590
|
+
* @example
|
|
591
|
+
* semantic
|
|
592
|
+
*/
|
|
593
|
+
mergeKey?: string;
|
|
594
|
+
/**
|
|
595
|
+
* @example
|
|
596
|
+
* upsert
|
|
597
|
+
*/
|
|
598
|
+
mode?: string;
|
|
599
|
+
/**
|
|
600
|
+
* @example
|
|
601
|
+
* 0.4
|
|
602
|
+
*/
|
|
603
|
+
similarityThreshold?: number;
|
|
604
|
+
/**
|
|
605
|
+
* @example
|
|
606
|
+
* 0
|
|
607
|
+
*/
|
|
608
|
+
ttlDays?: number;
|
|
609
|
+
static names(): { [key: string]: string } {
|
|
610
|
+
return {
|
|
611
|
+
allowedActions: 'allowedActions',
|
|
612
|
+
dedupe: 'dedupe',
|
|
613
|
+
humanEditProtection: 'humanEditProtection',
|
|
614
|
+
mergeKey: 'mergeKey',
|
|
615
|
+
mode: 'mode',
|
|
616
|
+
similarityThreshold: 'similarityThreshold',
|
|
617
|
+
ttlDays: 'ttlDays',
|
|
618
|
+
};
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
static types(): { [key: string]: any } {
|
|
622
|
+
return {
|
|
623
|
+
allowedActions: { 'type': 'array', 'itemType': 'string' },
|
|
624
|
+
dedupe: 'boolean',
|
|
625
|
+
humanEditProtection: 'boolean',
|
|
626
|
+
mergeKey: 'string',
|
|
627
|
+
mode: 'string',
|
|
628
|
+
similarityThreshold: 'number',
|
|
629
|
+
ttlDays: 'number',
|
|
37
630
|
};
|
|
38
631
|
}
|
|
39
632
|
|
|
40
633
|
validate() {
|
|
634
|
+
if(Array.isArray(this.allowedActions)) {
|
|
635
|
+
$dara.Model.validateArray(this.allowedActions);
|
|
636
|
+
}
|
|
41
637
|
super.validate();
|
|
42
638
|
}
|
|
43
639
|
|
|
@@ -47,6 +643,8 @@ export class CreateContextStoreRequestConfigSource extends $dara.Model {
|
|
|
47
643
|
}
|
|
48
644
|
|
|
49
645
|
export class CreateContextStoreRequestConfig extends $dara.Model {
|
|
646
|
+
audit?: CreateContextStoreRequestConfigAudit;
|
|
647
|
+
extractionPolicy?: CreateContextStoreRequestConfigExtractionPolicy;
|
|
50
648
|
/**
|
|
51
649
|
* @remarks
|
|
52
650
|
* The metadata field mapping. The key is the business field and the value is the storage field.
|
|
@@ -63,12 +661,11 @@ export class CreateContextStoreRequestConfig extends $dara.Model {
|
|
|
63
661
|
* 1d
|
|
64
662
|
*/
|
|
65
663
|
miningInterval?: string;
|
|
664
|
+
scopePolicy?: CreateContextStoreRequestConfigScopePolicy;
|
|
66
665
|
/**
|
|
67
666
|
* @remarks
|
|
68
667
|
* 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.
|
|
69
668
|
*
|
|
70
|
-
* This parameter is required.
|
|
71
|
-
*
|
|
72
669
|
* @example
|
|
73
670
|
* ["order-service","payment-service"]
|
|
74
671
|
*/
|
|
@@ -78,34 +675,55 @@ export class CreateContextStoreRequestConfig extends $dara.Model {
|
|
|
78
675
|
* The datasource config, which serves only as the root identifier for the data source. This is an optional block.
|
|
79
676
|
*/
|
|
80
677
|
source?: CreateContextStoreRequestConfigSource;
|
|
678
|
+
storagePolicy?: CreateContextStoreRequestConfigStoragePolicy;
|
|
81
679
|
static names(): { [key: string]: string } {
|
|
82
680
|
return {
|
|
681
|
+
audit: 'audit',
|
|
682
|
+
extractionPolicy: 'extractionPolicy',
|
|
83
683
|
metadataField: 'metadataField',
|
|
84
684
|
miningInterval: 'miningInterval',
|
|
685
|
+
scopePolicy: 'scopePolicy',
|
|
85
686
|
serviceNames: 'serviceNames',
|
|
86
687
|
source: 'source',
|
|
688
|
+
storagePolicy: 'storagePolicy',
|
|
87
689
|
};
|
|
88
690
|
}
|
|
89
691
|
|
|
90
692
|
static types(): { [key: string]: any } {
|
|
91
693
|
return {
|
|
694
|
+
audit: CreateContextStoreRequestConfigAudit,
|
|
695
|
+
extractionPolicy: CreateContextStoreRequestConfigExtractionPolicy,
|
|
92
696
|
metadataField: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
93
697
|
miningInterval: 'string',
|
|
698
|
+
scopePolicy: CreateContextStoreRequestConfigScopePolicy,
|
|
94
699
|
serviceNames: { 'type': 'array', 'itemType': 'string' },
|
|
95
700
|
source: CreateContextStoreRequestConfigSource,
|
|
701
|
+
storagePolicy: CreateContextStoreRequestConfigStoragePolicy,
|
|
96
702
|
};
|
|
97
703
|
}
|
|
98
704
|
|
|
99
705
|
validate() {
|
|
706
|
+
if(this.audit && typeof (this.audit as any).validate === 'function') {
|
|
707
|
+
(this.audit as any).validate();
|
|
708
|
+
}
|
|
709
|
+
if(this.extractionPolicy && typeof (this.extractionPolicy as any).validate === 'function') {
|
|
710
|
+
(this.extractionPolicy as any).validate();
|
|
711
|
+
}
|
|
100
712
|
if(this.metadataField) {
|
|
101
713
|
$dara.Model.validateMap(this.metadataField);
|
|
102
714
|
}
|
|
715
|
+
if(this.scopePolicy && typeof (this.scopePolicy as any).validate === 'function') {
|
|
716
|
+
(this.scopePolicy as any).validate();
|
|
717
|
+
}
|
|
103
718
|
if(Array.isArray(this.serviceNames)) {
|
|
104
719
|
$dara.Model.validateArray(this.serviceNames);
|
|
105
720
|
}
|
|
106
721
|
if(this.source && typeof (this.source as any).validate === 'function') {
|
|
107
722
|
(this.source as any).validate();
|
|
108
723
|
}
|
|
724
|
+
if(this.storagePolicy && typeof (this.storagePolicy as any).validate === 'function') {
|
|
725
|
+
(this.storagePolicy as any).validate();
|
|
726
|
+
}
|
|
109
727
|
super.validate();
|
|
110
728
|
}
|
|
111
729
|
|
|
@@ -11,15 +11,22 @@ export class CreateContextStoreResponseBody extends $dara.Model {
|
|
|
11
11
|
* 9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M
|
|
12
12
|
*/
|
|
13
13
|
requestId?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @example
|
|
16
|
+
* 1
|
|
17
|
+
*/
|
|
18
|
+
strategyVersion?: number;
|
|
14
19
|
static names(): { [key: string]: string } {
|
|
15
20
|
return {
|
|
16
21
|
requestId: 'requestId',
|
|
22
|
+
strategyVersion: 'strategyVersion',
|
|
17
23
|
};
|
|
18
24
|
}
|
|
19
25
|
|
|
20
26
|
static types(): { [key: string]: any } {
|
|
21
27
|
return {
|
|
22
28
|
requestId: 'string',
|
|
29
|
+
strategyVersion: 'number',
|
|
23
30
|
};
|
|
24
31
|
}
|
|
25
32
|
|