@alicloud/agentloop20260520 2.4.0 → 2.4.2
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 +4 -4
- package/dist/client.js +7 -4
- package/dist/client.js.map +1 -1
- package/dist/models/CreateContextStoreRequest.d.ts +190 -42
- package/dist/models/CreateContextStoreRequest.js +106 -1
- package/dist/models/CreateContextStoreRequest.js.map +1 -1
- package/dist/models/CreateContextStoreResponseBody.d.ts +2 -2
- package/dist/models/GetAgentSpaceResponseBody.d.ts +8 -1
- package/dist/models/GetAgentSpaceResponseBody.js.map +1 -1
- package/dist/models/GetContextStoreResponseBody.d.ts +211 -66
- package/dist/models/GetContextStoreResponseBody.js +111 -1
- package/dist/models/GetContextStoreResponseBody.js.map +1 -1
- package/dist/models/ListContextStoresResponseBody.d.ts +1 -0
- package/dist/models/ListContextStoresResponseBody.js +5 -0
- package/dist/models/ListContextStoresResponseBody.js.map +1 -1
- package/dist/models/SearchContextRequest.d.ts +13 -5
- package/dist/models/SearchContextRequest.js +5 -0
- package/dist/models/SearchContextRequest.js.map +1 -1
- package/dist/models/SearchContextResponseBody.d.ts +3 -3
- package/dist/models/UpdateContextStoreRequest.d.ts +177 -31
- package/dist/models/UpdateContextStoreRequest.js +106 -1
- package/dist/models/UpdateContextStoreRequest.js.map +1 -1
- package/dist/models/UpdateContextStoreResponseBody.d.ts +2 -2
- package/dist/models/model.d.ts +9 -0
- package/dist/models/model.js +77 -59
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +8 -4
- package/src/models/CreateContextStoreRequest.ts +268 -42
- package/src/models/CreateContextStoreResponseBody.ts +2 -2
- package/src/models/GetAgentSpaceResponseBody.ts +8 -1
- package/src/models/GetContextStoreResponseBody.ts +294 -66
- package/src/models/ListContextStoresResponseBody.ts +6 -0
- package/src/models/SearchContextRequest.ts +18 -5
- package/src/models/SearchContextResponseBody.ts +3 -3
- package/src/models/UpdateContextStoreRequest.ts +255 -31
- package/src/models/UpdateContextStoreResponseBody.ts +2 -2
- package/src/models/model.ts +9 -0
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class CreateContextStoreRequestConfigAudit extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* Specifies whether to write item events for
|
|
8
|
+
* Specifies whether to write item events for dropped recall candidates. Default value: false.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* false
|
|
@@ -13,7 +13,7 @@ export class CreateContextStoreRequestConfigAudit extends $dara.Model {
|
|
|
13
13
|
droppedCandidates?: boolean;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
*
|
|
16
|
+
* The logging mode for recall queries. Valid values: raw (plaintext) and hash (HMAC only). Default value: raw.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* raw
|
|
@@ -21,7 +21,7 @@ export class CreateContextStoreRequestConfigAudit extends $dara.Model {
|
|
|
21
21
|
queryMode?: string;
|
|
22
22
|
/**
|
|
23
23
|
* @remarks
|
|
24
|
-
*
|
|
24
|
+
* The number of days to retain audit logs. Valid values: 1 to 180. Default value: 30.
|
|
25
25
|
*
|
|
26
26
|
* @example
|
|
27
27
|
* 30
|
|
@@ -52,10 +52,224 @@ export class CreateContextStoreRequestConfigAudit extends $dara.Model {
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
+
export class CreateContextStoreRequestConfigExtractionPoliciesModel extends $dara.Model {
|
|
56
|
+
/**
|
|
57
|
+
* @remarks
|
|
58
|
+
* The name of the extraction model. Currently, only qwen3.8-flash is supported, which uses internal platform credentials.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* qwen3.8-flash
|
|
62
|
+
*/
|
|
63
|
+
name?: string;
|
|
64
|
+
static names(): { [key: string]: string } {
|
|
65
|
+
return {
|
|
66
|
+
name: 'name',
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
static types(): { [key: string]: any } {
|
|
71
|
+
return {
|
|
72
|
+
name: 'string',
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
validate() {
|
|
77
|
+
super.validate();
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
constructor(map?: { [key: string]: any }) {
|
|
81
|
+
super(map);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export class CreateContextStoreRequestConfigExtractionPoliciesStoragePolicy extends $dara.Model {
|
|
86
|
+
/**
|
|
87
|
+
* @example
|
|
88
|
+
* ["ADD","UPDATE","MERGE","DELETE"]
|
|
89
|
+
*/
|
|
90
|
+
allowedActions?: string[];
|
|
91
|
+
/**
|
|
92
|
+
* @example
|
|
93
|
+
* true
|
|
94
|
+
*/
|
|
95
|
+
dedupe?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* @example
|
|
98
|
+
* true
|
|
99
|
+
*/
|
|
100
|
+
humanEditProtection?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* @example
|
|
103
|
+
* semantic
|
|
104
|
+
*/
|
|
105
|
+
mergeKey?: string;
|
|
106
|
+
/**
|
|
107
|
+
* @example
|
|
108
|
+
* upsert
|
|
109
|
+
*/
|
|
110
|
+
mode?: string;
|
|
111
|
+
/**
|
|
112
|
+
* @example
|
|
113
|
+
* 0.4
|
|
114
|
+
*/
|
|
115
|
+
similarityThreshold?: number;
|
|
116
|
+
/**
|
|
117
|
+
* @example
|
|
118
|
+
* 0
|
|
119
|
+
*/
|
|
120
|
+
ttlDays?: number;
|
|
121
|
+
static names(): { [key: string]: string } {
|
|
122
|
+
return {
|
|
123
|
+
allowedActions: 'allowedActions',
|
|
124
|
+
dedupe: 'dedupe',
|
|
125
|
+
humanEditProtection: 'humanEditProtection',
|
|
126
|
+
mergeKey: 'mergeKey',
|
|
127
|
+
mode: 'mode',
|
|
128
|
+
similarityThreshold: 'similarityThreshold',
|
|
129
|
+
ttlDays: 'ttlDays',
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
static types(): { [key: string]: any } {
|
|
134
|
+
return {
|
|
135
|
+
allowedActions: { 'type': 'array', 'itemType': 'string' },
|
|
136
|
+
dedupe: 'boolean',
|
|
137
|
+
humanEditProtection: 'boolean',
|
|
138
|
+
mergeKey: 'string',
|
|
139
|
+
mode: 'string',
|
|
140
|
+
similarityThreshold: 'number',
|
|
141
|
+
ttlDays: 'number',
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
validate() {
|
|
146
|
+
if(Array.isArray(this.allowedActions)) {
|
|
147
|
+
$dara.Model.validateArray(this.allowedActions);
|
|
148
|
+
}
|
|
149
|
+
super.validate();
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
constructor(map?: { [key: string]: any }) {
|
|
153
|
+
super(map);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export class CreateContextStoreRequestConfigExtractionPolicies extends $dara.Model {
|
|
158
|
+
/**
|
|
159
|
+
* @remarks
|
|
160
|
+
* The list of memory categories.
|
|
161
|
+
*
|
|
162
|
+
* @example
|
|
163
|
+
* ["preference","profile"]
|
|
164
|
+
*/
|
|
165
|
+
categories?: string[];
|
|
166
|
+
/**
|
|
167
|
+
* @remarks
|
|
168
|
+
* The custom extraction instructions. This parameter is required when preset is set to custom. The length must be 1 to 8,000 characters.
|
|
169
|
+
*
|
|
170
|
+
* @example
|
|
171
|
+
* Extract only user product preferences
|
|
172
|
+
*/
|
|
173
|
+
customInstructions?: string;
|
|
174
|
+
/**
|
|
175
|
+
* @remarks
|
|
176
|
+
* Specifies whether to execute this policy for new inputs. Default value: true. Disabling the policy does not delete historical memories.
|
|
177
|
+
*
|
|
178
|
+
* @example
|
|
179
|
+
* true
|
|
180
|
+
*/
|
|
181
|
+
enabled?: boolean;
|
|
182
|
+
/**
|
|
183
|
+
* @remarks
|
|
184
|
+
* The list of exclusion rules. Content that matches these rules is not extracted.
|
|
185
|
+
*
|
|
186
|
+
* @example
|
|
187
|
+
* ["Password","ID number"]
|
|
188
|
+
*/
|
|
189
|
+
excludeRules?: string[];
|
|
190
|
+
/**
|
|
191
|
+
* @remarks
|
|
192
|
+
* The extraction model configuration.
|
|
193
|
+
*/
|
|
194
|
+
model?: CreateContextStoreRequestConfigExtractionPoliciesModel;
|
|
195
|
+
/**
|
|
196
|
+
* @remarks
|
|
197
|
+
* The display name of the extraction policy.
|
|
198
|
+
*
|
|
199
|
+
* @example
|
|
200
|
+
* User preferences
|
|
201
|
+
*/
|
|
202
|
+
name?: string;
|
|
203
|
+
/**
|
|
204
|
+
* @remarks
|
|
205
|
+
* The preset policy. Valid values: fact, toc-profile, tob-digital-twin, and custom. Default value: fact.
|
|
206
|
+
*
|
|
207
|
+
* @example
|
|
208
|
+
* fact
|
|
209
|
+
*/
|
|
210
|
+
preset?: string;
|
|
211
|
+
storagePolicy?: CreateContextStoreRequestConfigExtractionPoliciesStoragePolicy;
|
|
212
|
+
/**
|
|
213
|
+
* @remarks
|
|
214
|
+
* The ID of the extraction policy. This parameter is optional. If omitted, the default value is used. The ID must start with a letter and can contain only letters, digits, underscores, and hyphens. The maximum length is 64 characters. After default value processing, the ID must be unique within the same library. Modifying the name or instructions does not change this ID.
|
|
215
|
+
*
|
|
216
|
+
* @example
|
|
217
|
+
* preferences
|
|
218
|
+
*/
|
|
219
|
+
strategyId?: string;
|
|
220
|
+
static names(): { [key: string]: string } {
|
|
221
|
+
return {
|
|
222
|
+
categories: 'categories',
|
|
223
|
+
customInstructions: 'customInstructions',
|
|
224
|
+
enabled: 'enabled',
|
|
225
|
+
excludeRules: 'excludeRules',
|
|
226
|
+
model: 'model',
|
|
227
|
+
name: 'name',
|
|
228
|
+
preset: 'preset',
|
|
229
|
+
storagePolicy: 'storagePolicy',
|
|
230
|
+
strategyId: 'strategyId',
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
static types(): { [key: string]: any } {
|
|
235
|
+
return {
|
|
236
|
+
categories: { 'type': 'array', 'itemType': 'string' },
|
|
237
|
+
customInstructions: 'string',
|
|
238
|
+
enabled: 'boolean',
|
|
239
|
+
excludeRules: { 'type': 'array', 'itemType': 'string' },
|
|
240
|
+
model: CreateContextStoreRequestConfigExtractionPoliciesModel,
|
|
241
|
+
name: 'string',
|
|
242
|
+
preset: 'string',
|
|
243
|
+
storagePolicy: CreateContextStoreRequestConfigExtractionPoliciesStoragePolicy,
|
|
244
|
+
strategyId: 'string',
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
validate() {
|
|
249
|
+
if(Array.isArray(this.categories)) {
|
|
250
|
+
$dara.Model.validateArray(this.categories);
|
|
251
|
+
}
|
|
252
|
+
if(Array.isArray(this.excludeRules)) {
|
|
253
|
+
$dara.Model.validateArray(this.excludeRules);
|
|
254
|
+
}
|
|
255
|
+
if(this.model && typeof (this.model as any).validate === 'function') {
|
|
256
|
+
(this.model as any).validate();
|
|
257
|
+
}
|
|
258
|
+
if(this.storagePolicy && typeof (this.storagePolicy as any).validate === 'function') {
|
|
259
|
+
(this.storagePolicy as any).validate();
|
|
260
|
+
}
|
|
261
|
+
super.validate();
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
constructor(map?: { [key: string]: any }) {
|
|
265
|
+
super(map);
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
|
|
55
269
|
export class CreateContextStoreRequestConfigExtractionPolicyModel extends $dara.Model {
|
|
56
270
|
/**
|
|
57
271
|
* @remarks
|
|
58
|
-
*
|
|
272
|
+
* The name of the extraction model. Currently, only qwen3.8-flash is supported, which uses internal platform credentials.
|
|
59
273
|
*
|
|
60
274
|
* @example
|
|
61
275
|
* qwen3.8-flash
|
|
@@ -93,7 +307,7 @@ export class CreateContextStoreRequestConfigExtractionPolicy extends $dara.Model
|
|
|
93
307
|
categories?: string[];
|
|
94
308
|
/**
|
|
95
309
|
* @remarks
|
|
96
|
-
*
|
|
310
|
+
* The custom extraction instructions. This parameter is required when preset is set to custom. The length must be 1 to 8,000 characters.
|
|
97
311
|
*
|
|
98
312
|
* @example
|
|
99
313
|
* Extract only user product preferences
|
|
@@ -114,7 +328,7 @@ export class CreateContextStoreRequestConfigExtractionPolicy extends $dara.Model
|
|
|
114
328
|
model?: CreateContextStoreRequestConfigExtractionPolicyModel;
|
|
115
329
|
/**
|
|
116
330
|
* @remarks
|
|
117
|
-
*
|
|
331
|
+
* The preset policy. Valid values: fact, toc-profile, tob-digital-twin, and custom. Default value: fact.
|
|
118
332
|
*
|
|
119
333
|
* @example
|
|
120
334
|
* fact
|
|
@@ -194,7 +408,7 @@ export class CreateContextStoreRequestConfigScopePolicy extends $dara.Model {
|
|
|
194
408
|
export class CreateContextStoreRequestConfigSourceDatasetCustomFields extends $dara.Model {
|
|
195
409
|
/**
|
|
196
410
|
* @remarks
|
|
197
|
-
*
|
|
411
|
+
* The field description. This parameter is required when usage is set to extraction-input and is appended to the extraction prompt.
|
|
198
412
|
*
|
|
199
413
|
* @example
|
|
200
414
|
* Customer tier
|
|
@@ -202,7 +416,7 @@ export class CreateContextStoreRequestConfigSourceDatasetCustomFields extends $d
|
|
|
202
416
|
description?: string;
|
|
203
417
|
/**
|
|
204
418
|
* @remarks
|
|
205
|
-
* Specifies whether the field is
|
|
419
|
+
* Specifies whether the field is sensitive.
|
|
206
420
|
*
|
|
207
421
|
* @example
|
|
208
422
|
* false
|
|
@@ -218,7 +432,7 @@ export class CreateContextStoreRequestConfigSourceDatasetCustomFields extends $d
|
|
|
218
432
|
sourceField?: string;
|
|
219
433
|
/**
|
|
220
434
|
* @remarks
|
|
221
|
-
* The target path for writing, such as metadata.customerTier.
|
|
435
|
+
* The target path for writing data, such as metadata.customerTier.
|
|
222
436
|
*
|
|
223
437
|
* @example
|
|
224
438
|
* metadata.customerTier
|
|
@@ -226,7 +440,9 @@ export class CreateContextStoreRequestConfigSourceDatasetCustomFields extends $d
|
|
|
226
440
|
target?: string;
|
|
227
441
|
/**
|
|
228
442
|
* @remarks
|
|
229
|
-
*
|
|
443
|
+
* The usage of the field. Valid values:
|
|
444
|
+
* - extraction-input: Participates in extraction.
|
|
445
|
+
* - ignore: Ignored.
|
|
230
446
|
*
|
|
231
447
|
* @example
|
|
232
448
|
* extraction-input
|
|
@@ -296,7 +512,7 @@ export class CreateContextStoreRequestConfigSourceDatasetVersionPolicy extends $
|
|
|
296
512
|
* @remarks
|
|
297
513
|
* The consumption mode. Valid values:
|
|
298
514
|
* - follow: Consumes data incrementally based on __dataset_seq.
|
|
299
|
-
* - fixed: Consumes the specified ACTIVE version in full
|
|
515
|
+
* - fixed: Consumes the specified ACTIVE version in full once.
|
|
300
516
|
*
|
|
301
517
|
* @example
|
|
302
518
|
* follow
|
|
@@ -312,7 +528,7 @@ export class CreateContextStoreRequestConfigSourceDatasetVersionPolicy extends $
|
|
|
312
528
|
startSeq?: number;
|
|
313
529
|
/**
|
|
314
530
|
* @remarks
|
|
315
|
-
* The
|
|
531
|
+
* The Dataset version specified for the fixed mode.
|
|
316
532
|
*
|
|
317
533
|
* @example
|
|
318
534
|
* v3
|
|
@@ -351,7 +567,7 @@ export class CreateContextStoreRequestConfigSourceDataset extends $dara.Model {
|
|
|
351
567
|
customFields?: CreateContextStoreRequestConfigSourceDatasetCustomFields[];
|
|
352
568
|
/**
|
|
353
569
|
* @remarks
|
|
354
|
-
*
|
|
570
|
+
* The name of the Dataset in the same AgentSpace. This parameter cannot be modified after creation.
|
|
355
571
|
*
|
|
356
572
|
* @example
|
|
357
573
|
* trajectory-with-crm-profile
|
|
@@ -359,12 +575,12 @@ export class CreateContextStoreRequestConfigSourceDataset extends $dara.Model {
|
|
|
359
575
|
datasetName?: string;
|
|
360
576
|
/**
|
|
361
577
|
* @remarks
|
|
362
|
-
* The row filter
|
|
578
|
+
* The row filter condition.
|
|
363
579
|
*/
|
|
364
580
|
filter?: CreateContextStoreRequestConfigSourceDatasetFilter;
|
|
365
581
|
/**
|
|
366
582
|
* @remarks
|
|
367
|
-
*
|
|
583
|
+
* The polling interval in seconds. Valid values: 60 to 3600. Default value: 300.
|
|
368
584
|
*
|
|
369
585
|
* @example
|
|
370
586
|
* 300
|
|
@@ -372,7 +588,7 @@ export class CreateContextStoreRequestConfigSourceDataset extends $dara.Model {
|
|
|
372
588
|
pollIntervalSeconds?: number;
|
|
373
589
|
/**
|
|
374
590
|
* @remarks
|
|
375
|
-
* The
|
|
591
|
+
* The row schema contract for the Dataset. The value is fixed to MemorySourceV1 in the current phase.
|
|
376
592
|
*
|
|
377
593
|
* @example
|
|
378
594
|
* MemorySourceV1
|
|
@@ -380,7 +596,7 @@ export class CreateContextStoreRequestConfigSourceDataset extends $dara.Model {
|
|
|
380
596
|
schemaContract?: string;
|
|
381
597
|
/**
|
|
382
598
|
* @remarks
|
|
383
|
-
* The
|
|
599
|
+
* The version consumption policy for the Dataset.
|
|
384
600
|
*/
|
|
385
601
|
versionPolicy?: CreateContextStoreRequestConfigSourceDatasetVersionPolicy;
|
|
386
602
|
static names(): { [key: string]: string } {
|
|
@@ -450,7 +666,7 @@ export class CreateContextStoreRequestConfigSourceTrajectoryFilter extends $dara
|
|
|
450
666
|
minStepCount?: number;
|
|
451
667
|
/**
|
|
452
668
|
* @remarks
|
|
453
|
-
* The native Simple Log Service (SLS) query statement
|
|
669
|
+
* The native Simple Log Service (SLS) query statement, which is combined with the preceding conditions using AND.
|
|
454
670
|
*
|
|
455
671
|
* @example
|
|
456
672
|
* tool_names:"search_order"
|
|
@@ -562,7 +778,7 @@ export class CreateContextStoreRequestConfigSourceTrajectoryScopeMapping extends
|
|
|
562
778
|
export class CreateContextStoreRequestConfigSourceTrajectory extends $dara.Model {
|
|
563
779
|
/**
|
|
564
780
|
* @remarks
|
|
565
|
-
* The trajectory filter
|
|
781
|
+
* The trajectory filter condition. Conditions are combined with AND, and items within a list are combined with OR.
|
|
566
782
|
*/
|
|
567
783
|
filter?: CreateContextStoreRequestConfigSourceTrajectoryFilter;
|
|
568
784
|
/**
|
|
@@ -575,7 +791,7 @@ export class CreateContextStoreRequestConfigSourceTrajectory extends $dara.Model
|
|
|
575
791
|
logstore?: string;
|
|
576
792
|
/**
|
|
577
793
|
* @remarks
|
|
578
|
-
*
|
|
794
|
+
* The polling interval in seconds. Valid values: 60 to 3600. Default value: 300.
|
|
579
795
|
*
|
|
580
796
|
* @example
|
|
581
797
|
* 300
|
|
@@ -588,7 +804,7 @@ export class CreateContextStoreRequestConfigSourceTrajectory extends $dara.Model
|
|
|
588
804
|
scopeMapping?: CreateContextStoreRequestConfigSourceTrajectoryScopeMapping;
|
|
589
805
|
/**
|
|
590
806
|
* @remarks
|
|
591
|
-
* The start time for trajectory consumption in ISO 8601 UTC format. If not specified, the creation time is used by default.
|
|
807
|
+
* The start time for trajectory consumption in ISO 8601 UTC format. If this parameter is not specified, the creation time is used by default.
|
|
592
808
|
*
|
|
593
809
|
* Use the UTC time format: yyyy-MM-ddTHH:mm:ssZ
|
|
594
810
|
*
|
|
@@ -642,7 +858,7 @@ export class CreateContextStoreRequestConfigSourceVersionPolicy extends $dara.Mo
|
|
|
642
858
|
mode?: string;
|
|
643
859
|
/**
|
|
644
860
|
* @remarks
|
|
645
|
-
* The initial consumed append sequence. The value is a decimal string of a non-negative int64 integer. Default value: 0. The __dataset_seq field is used, and the business timestamp is not used as the consumption checkpoint.
|
|
861
|
+
* The initial consumed append sequence number. The value is a decimal string of a non-negative int64 integer. Default value: 0. The __dataset_seq field is used, and the business timestamp is not used as the consumption checkpoint.
|
|
646
862
|
*
|
|
647
863
|
* @example
|
|
648
864
|
* 0
|
|
@@ -674,7 +890,7 @@ export class CreateContextStoreRequestConfigSourceVersionPolicy extends $dara.Mo
|
|
|
674
890
|
export class CreateContextStoreRequestConfigSource extends $dara.Model {
|
|
675
891
|
/**
|
|
676
892
|
* @remarks
|
|
677
|
-
*
|
|
893
|
+
* The AgentSpace where the trace data source is located. If not specified, the default value is the AgentSpace in the current path. Cross-AgentSpace operations are not supported in the current phase. If specified, the value must be identical to the path AgentSpace. Otherwise, a 400 parameter error is returned. This parameter cannot be modified after creation.
|
|
678
894
|
*
|
|
679
895
|
* @example
|
|
680
896
|
* my-agent-space
|
|
@@ -682,7 +898,7 @@ export class CreateContextStoreRequestConfigSource extends $dara.Model {
|
|
|
682
898
|
agentSpace?: string;
|
|
683
899
|
/**
|
|
684
900
|
* @remarks
|
|
685
|
-
* The DatasetBinding v1 shared with optimization tasks. It includes version, selection (all/window and structured filters), and customFields. It is validated by the server and does not accept SQL or column mappings.
|
|
901
|
+
* The DatasetBinding v1 configuration shared with optimization tasks. It includes version, selection (all/window and structured filters), and customFields. It is validated by the server and does not accept SQL or column mappings.
|
|
686
902
|
*
|
|
687
903
|
* @example
|
|
688
904
|
* {"version":1,"selection":{"mode":"all"}}
|
|
@@ -690,12 +906,12 @@ export class CreateContextStoreRequestConfigSource extends $dara.Model {
|
|
|
690
906
|
binding?: { [key: string]: any };
|
|
691
907
|
/**
|
|
692
908
|
* @remarks
|
|
693
|
-
* The Dataset
|
|
909
|
+
* The Dataset data source configuration. This parameter is required when source.type is set to dataset.
|
|
694
910
|
*/
|
|
695
911
|
dataset?: CreateContextStoreRequestConfigSourceDataset;
|
|
696
912
|
/**
|
|
697
913
|
* @remarks
|
|
698
|
-
* The name of the experience
|
|
914
|
+
* The source name of the experience Dataset, which must be located in the current AgentSpace. This parameter is provided only when the type is experience and source.type is set to dataset.
|
|
699
915
|
*
|
|
700
916
|
* @example
|
|
701
917
|
* reviewed_trajectories
|
|
@@ -703,7 +919,7 @@ export class CreateContextStoreRequestConfigSource extends $dara.Model {
|
|
|
703
919
|
datasetName?: string;
|
|
704
920
|
/**
|
|
705
921
|
* @remarks
|
|
706
|
-
* The input format of the
|
|
922
|
+
* The input format of the Dataset. For experience library Dataset sources, only atif is supported, and the fixed columns are consistent with those of optimization tasks.
|
|
707
923
|
*
|
|
708
924
|
* @example
|
|
709
925
|
* atif
|
|
@@ -711,7 +927,7 @@ export class CreateContextStoreRequestConfigSource extends $dara.Model {
|
|
|
711
927
|
format?: string;
|
|
712
928
|
/**
|
|
713
929
|
* @remarks
|
|
714
|
-
* The maximum number of records to read per batch. Valid values: 1 to 1000. Default value: 1000. In manual mode, exceeding the limit causes a failure. In follow mode, bounded pagination is used to continue consumption.
|
|
930
|
+
* The maximum number of Dataset records to read per batch. Valid values: 1 to 1000. Default value: 1000. In manual mode, exceeding the limit causes a failure. In follow mode, bounded pagination is used to continue consumption.
|
|
715
931
|
*
|
|
716
932
|
* @example
|
|
717
933
|
* 1000
|
|
@@ -719,7 +935,7 @@ export class CreateContextStoreRequestConfigSource extends $dara.Model {
|
|
|
719
935
|
maxRecords?: number;
|
|
720
936
|
/**
|
|
721
937
|
* @remarks
|
|
722
|
-
* The start time for data backfill in ISO 8601 UTC format. If not specified, the current time is used.
|
|
938
|
+
* The start time for data backfill in ISO 8601 UTC format. If this parameter is not specified, the current time is used.
|
|
723
939
|
*
|
|
724
940
|
* Use the UTC time format: yyyy-MM-ddTHH:mm:ssZ
|
|
725
941
|
*
|
|
@@ -729,12 +945,12 @@ export class CreateContextStoreRequestConfigSource extends $dara.Model {
|
|
|
729
945
|
startTime?: string;
|
|
730
946
|
/**
|
|
731
947
|
* @remarks
|
|
732
|
-
* The trajectory
|
|
948
|
+
* The trajectory data source configuration. This parameter is required when source.type is set to trajectory.
|
|
733
949
|
*/
|
|
734
950
|
trajectory?: CreateContextStoreRequestConfigSourceTrajectory;
|
|
735
951
|
/**
|
|
736
952
|
* @remarks
|
|
737
|
-
* The data source type for the memory type. Valid values: trajectory
|
|
953
|
+
* The data source type for the memory type. Valid values: trajectory, dataset. If this parameter is not specified, the default value is manual, which means data is written only through AddContexts. This parameter cannot be modified after creation.
|
|
738
954
|
*
|
|
739
955
|
* @example
|
|
740
956
|
* trajectory
|
|
@@ -742,7 +958,7 @@ export class CreateContextStoreRequestConfigSource extends $dara.Model {
|
|
|
742
958
|
type?: string;
|
|
743
959
|
/**
|
|
744
960
|
* @remarks
|
|
745
|
-
* The continuous consumption configuration for the native experience dataset. The default
|
|
961
|
+
* The continuous consumption configuration for the native experience dataset. The default value is manual. The follow mode is allowed only when binding.selection.mode is set to all. In this mode, data is consumed by append sequence number. This configuration cannot be modified after creation.
|
|
746
962
|
*/
|
|
747
963
|
versionPolicy?: CreateContextStoreRequestConfigSourceVersionPolicy;
|
|
748
964
|
static names(): { [key: string]: string } {
|
|
@@ -799,7 +1015,7 @@ export class CreateContextStoreRequestConfigSource extends $dara.Model {
|
|
|
799
1015
|
export class CreateContextStoreRequestConfigStoragePolicy extends $dara.Model {
|
|
800
1016
|
/**
|
|
801
1017
|
* @remarks
|
|
802
|
-
* The allowed storage actions. Default value: all
|
|
1018
|
+
* The allowed storage actions. Default value: all. Valid values: ADD, UPDATE, MERGE, DELETE.
|
|
803
1019
|
*
|
|
804
1020
|
* @example
|
|
805
1021
|
* ["ADD","UPDATE","MERGE","DELETE"]
|
|
@@ -815,7 +1031,7 @@ export class CreateContextStoreRequestConfigStoragePolicy extends $dara.Model {
|
|
|
815
1031
|
dedupe?: boolean;
|
|
816
1032
|
/**
|
|
817
1033
|
* @remarks
|
|
818
|
-
* Specifies whether to enable
|
|
1034
|
+
* Specifies whether to enable manual edit protection. Default value: true. If this feature is enabled, automatic extraction does not overwrite manually modified memories.
|
|
819
1035
|
*
|
|
820
1036
|
* @example
|
|
821
1037
|
* true
|
|
@@ -823,7 +1039,7 @@ export class CreateContextStoreRequestConfigStoragePolicy extends $dara.Model {
|
|
|
823
1039
|
humanEditProtection?: boolean;
|
|
824
1040
|
/**
|
|
825
1041
|
* @remarks
|
|
826
|
-
* The merge key for upsert operations. Valid values: factKey, semantic,
|
|
1042
|
+
* The merge key for upsert operations. Default value: semantic. Valid values: factKey, semantic, both.
|
|
827
1043
|
*
|
|
828
1044
|
* @example
|
|
829
1045
|
* semantic
|
|
@@ -831,7 +1047,7 @@ export class CreateContextStoreRequestConfigStoragePolicy extends $dara.Model {
|
|
|
831
1047
|
mergeKey?: string;
|
|
832
1048
|
/**
|
|
833
1049
|
* @remarks
|
|
834
|
-
* The storage mode. Valid values: event
|
|
1050
|
+
* The storage mode. Default value: upsert. Valid values: event (event append), upsert (merge update).
|
|
835
1051
|
*
|
|
836
1052
|
* @example
|
|
837
1053
|
* upsert
|
|
@@ -847,7 +1063,7 @@ export class CreateContextStoreRequestConfigStoragePolicy extends $dara.Model {
|
|
|
847
1063
|
similarityThreshold?: number;
|
|
848
1064
|
/**
|
|
849
1065
|
* @remarks
|
|
850
|
-
* The number of days before
|
|
1066
|
+
* The number of days before a memory expires. A value of 0 indicates that the memory does not expire.
|
|
851
1067
|
*
|
|
852
1068
|
* @example
|
|
853
1069
|
* 0
|
|
@@ -895,6 +1111,11 @@ export class CreateContextStoreRequestConfig extends $dara.Model {
|
|
|
895
1111
|
* The audit configuration.
|
|
896
1112
|
*/
|
|
897
1113
|
audit?: CreateContextStoreRequestConfigAudit;
|
|
1114
|
+
/**
|
|
1115
|
+
* @remarks
|
|
1116
|
+
* The extraction policies. You can specify 1 to 10 policies. In a request, you can specify either this field or the compatible extractionPolicy field, but not both. The strategyVersion parameter indicates the snapshot version of the entire library configuration.
|
|
1117
|
+
*/
|
|
1118
|
+
extractionPolicies?: CreateContextStoreRequestConfigExtractionPolicies[];
|
|
898
1119
|
/**
|
|
899
1120
|
* @remarks
|
|
900
1121
|
* The extraction policy for the memory type.
|
|
@@ -910,7 +1131,7 @@ export class CreateContextStoreRequestConfig extends $dara.Model {
|
|
|
910
1131
|
metadataField?: { [key: string]: string };
|
|
911
1132
|
/**
|
|
912
1133
|
* @remarks
|
|
913
|
-
*
|
|
1134
|
+
* The experience mining interval, which controls how often experience mining is executed. Valid values: 1h, 6h, 12h, and 1d. Default value: 1d. This parameter cannot be modified after creation.
|
|
914
1135
|
*
|
|
915
1136
|
* @example
|
|
916
1137
|
* 1d
|
|
@@ -923,7 +1144,7 @@ export class CreateContextStoreRequestConfig extends $dara.Model {
|
|
|
923
1144
|
scopePolicy?: CreateContextStoreRequestConfigScopePolicy;
|
|
924
1145
|
/**
|
|
925
1146
|
* @remarks
|
|
926
|
-
* 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 agentSpace to
|
|
1147
|
+
* 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 agentSpace to query the bound CMS workspace and project or logstore, and then filters by serviceName. This parameter cannot be modified after creation.
|
|
927
1148
|
*
|
|
928
1149
|
* @example
|
|
929
1150
|
* ["order-service","payment-service"]
|
|
@@ -931,7 +1152,7 @@ export class CreateContextStoreRequestConfig extends $dara.Model {
|
|
|
931
1152
|
serviceNames?: string[];
|
|
932
1153
|
/**
|
|
933
1154
|
* @remarks
|
|
934
|
-
* The
|
|
1155
|
+
* The data source configuration, which serves only as the root identifier for the data source. This block is optional.
|
|
935
1156
|
*/
|
|
936
1157
|
source?: CreateContextStoreRequestConfigSource;
|
|
937
1158
|
/**
|
|
@@ -942,6 +1163,7 @@ export class CreateContextStoreRequestConfig extends $dara.Model {
|
|
|
942
1163
|
static names(): { [key: string]: string } {
|
|
943
1164
|
return {
|
|
944
1165
|
audit: 'audit',
|
|
1166
|
+
extractionPolicies: 'extractionPolicies',
|
|
945
1167
|
extractionPolicy: 'extractionPolicy',
|
|
946
1168
|
metadataField: 'metadataField',
|
|
947
1169
|
miningInterval: 'miningInterval',
|
|
@@ -955,6 +1177,7 @@ export class CreateContextStoreRequestConfig extends $dara.Model {
|
|
|
955
1177
|
static types(): { [key: string]: any } {
|
|
956
1178
|
return {
|
|
957
1179
|
audit: CreateContextStoreRequestConfigAudit,
|
|
1180
|
+
extractionPolicies: { 'type': 'array', 'itemType': CreateContextStoreRequestConfigExtractionPolicies },
|
|
958
1181
|
extractionPolicy: CreateContextStoreRequestConfigExtractionPolicy,
|
|
959
1182
|
metadataField: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
960
1183
|
miningInterval: 'string',
|
|
@@ -969,6 +1192,9 @@ export class CreateContextStoreRequestConfig extends $dara.Model {
|
|
|
969
1192
|
if(this.audit && typeof (this.audit as any).validate === 'function') {
|
|
970
1193
|
(this.audit as any).validate();
|
|
971
1194
|
}
|
|
1195
|
+
if(Array.isArray(this.extractionPolicies)) {
|
|
1196
|
+
$dara.Model.validateArray(this.extractionPolicies);
|
|
1197
|
+
}
|
|
972
1198
|
if(this.extractionPolicy && typeof (this.extractionPolicy as any).validate === 'function') {
|
|
973
1199
|
(this.extractionPolicy as any).validate();
|
|
974
1200
|
}
|
|
@@ -1013,7 +1239,7 @@ export class CreateContextStoreRequest extends $dara.Model {
|
|
|
1013
1239
|
contextStoreName?: string;
|
|
1014
1240
|
/**
|
|
1015
1241
|
* @remarks
|
|
1016
|
-
* The type of the context store. Valid values include experience and memory.
|
|
1242
|
+
* The type of the context store. Valid values include experience (experience store) and memory (memory store).
|
|
1017
1243
|
*
|
|
1018
1244
|
* This parameter is required.
|
|
1019
1245
|
*
|
|
@@ -1031,7 +1257,7 @@ export class CreateContextStoreRequest extends $dara.Model {
|
|
|
1031
1257
|
description?: string;
|
|
1032
1258
|
/**
|
|
1033
1259
|
* @remarks
|
|
1034
|
-
* The idempotency token
|
|
1260
|
+
* The idempotency token. This is a unique string generated by the client to ensure the idempotency of the creation operation.
|
|
1035
1261
|
*
|
|
1036
1262
|
* @example
|
|
1037
1263
|
* a1b2c3d4-1234-5678-90ab-cdef12345678
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class CreateContextStoreResponseBody extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The request ID, which is used to locate the request
|
|
8
|
+
* The request ID, which is used to locate the request during troubleshooting.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* 9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M
|
|
@@ -13,7 +13,7 @@ export class CreateContextStoreResponseBody extends $dara.Model {
|
|
|
13
13
|
requestId?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The version number of the currently effective strategy
|
|
16
|
+
* The version number of the currently effective strategy (memory type).
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* 1
|
|
@@ -3,6 +3,13 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class GetAgentSpaceResponseBodyMseNamespace extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The attach type of the MSE namespace. AutoCreated indicates automatic creation by AgentLoop. UserSelected indicates that an existing namespace is selected and attached when the AgentSpace is created.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* AutoCreated
|
|
12
|
+
*/
|
|
6
13
|
bindType?: string;
|
|
7
14
|
/**
|
|
8
15
|
* @remarks
|
|
@@ -56,7 +63,7 @@ export class GetAgentSpaceResponseBody extends $dara.Model {
|
|
|
56
63
|
agentSpace?: string;
|
|
57
64
|
/**
|
|
58
65
|
* @remarks
|
|
59
|
-
* The
|
|
66
|
+
* The CMS workspace.
|
|
60
67
|
*
|
|
61
68
|
* @example
|
|
62
69
|
* test-cms-workspace
|