@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
|
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class CreateContextStoreRequestConfigAudit extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
* Specifies whether to write item events for
|
|
5
|
+
* Specifies whether to write item events for dropped recall candidates. Default value: false.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* false
|
|
@@ -10,7 +10,7 @@ export declare class CreateContextStoreRequestConfigAudit extends $dara.Model {
|
|
|
10
10
|
droppedCandidates?: boolean;
|
|
11
11
|
/**
|
|
12
12
|
* @remarks
|
|
13
|
-
*
|
|
13
|
+
* The logging mode for recall queries. Valid values: raw (plaintext) and hash (HMAC only). Default value: raw.
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
* raw
|
|
@@ -18,7 +18,7 @@ export declare class CreateContextStoreRequestConfigAudit extends $dara.Model {
|
|
|
18
18
|
queryMode?: string;
|
|
19
19
|
/**
|
|
20
20
|
* @remarks
|
|
21
|
-
*
|
|
21
|
+
* The number of days to retain audit logs. Valid values: 1 to 180. Default value: 30.
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
24
|
* 30
|
|
@@ -35,10 +35,151 @@ export declare class CreateContextStoreRequestConfigAudit extends $dara.Model {
|
|
|
35
35
|
[key: string]: any;
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
|
+
export declare class CreateContextStoreRequestConfigExtractionPoliciesModel extends $dara.Model {
|
|
39
|
+
/**
|
|
40
|
+
* @remarks
|
|
41
|
+
* The name of the extraction model. Currently, only qwen3.8-flash is supported, which uses internal platform credentials.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* qwen3.8-flash
|
|
45
|
+
*/
|
|
46
|
+
name?: string;
|
|
47
|
+
static names(): {
|
|
48
|
+
[key: string]: string;
|
|
49
|
+
};
|
|
50
|
+
static types(): {
|
|
51
|
+
[key: string]: any;
|
|
52
|
+
};
|
|
53
|
+
validate(): void;
|
|
54
|
+
constructor(map?: {
|
|
55
|
+
[key: string]: any;
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
export declare class CreateContextStoreRequestConfigExtractionPoliciesStoragePolicy extends $dara.Model {
|
|
59
|
+
/**
|
|
60
|
+
* @example
|
|
61
|
+
* ["ADD","UPDATE","MERGE","DELETE"]
|
|
62
|
+
*/
|
|
63
|
+
allowedActions?: string[];
|
|
64
|
+
/**
|
|
65
|
+
* @example
|
|
66
|
+
* true
|
|
67
|
+
*/
|
|
68
|
+
dedupe?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* @example
|
|
71
|
+
* true
|
|
72
|
+
*/
|
|
73
|
+
humanEditProtection?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* @example
|
|
76
|
+
* semantic
|
|
77
|
+
*/
|
|
78
|
+
mergeKey?: string;
|
|
79
|
+
/**
|
|
80
|
+
* @example
|
|
81
|
+
* upsert
|
|
82
|
+
*/
|
|
83
|
+
mode?: string;
|
|
84
|
+
/**
|
|
85
|
+
* @example
|
|
86
|
+
* 0.4
|
|
87
|
+
*/
|
|
88
|
+
similarityThreshold?: number;
|
|
89
|
+
/**
|
|
90
|
+
* @example
|
|
91
|
+
* 0
|
|
92
|
+
*/
|
|
93
|
+
ttlDays?: number;
|
|
94
|
+
static names(): {
|
|
95
|
+
[key: string]: string;
|
|
96
|
+
};
|
|
97
|
+
static types(): {
|
|
98
|
+
[key: string]: any;
|
|
99
|
+
};
|
|
100
|
+
validate(): void;
|
|
101
|
+
constructor(map?: {
|
|
102
|
+
[key: string]: any;
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
export declare class CreateContextStoreRequestConfigExtractionPolicies extends $dara.Model {
|
|
106
|
+
/**
|
|
107
|
+
* @remarks
|
|
108
|
+
* The list of memory categories.
|
|
109
|
+
*
|
|
110
|
+
* @example
|
|
111
|
+
* ["preference","profile"]
|
|
112
|
+
*/
|
|
113
|
+
categories?: string[];
|
|
114
|
+
/**
|
|
115
|
+
* @remarks
|
|
116
|
+
* The custom extraction instructions. This parameter is required when preset is set to custom. The length must be 1 to 8,000 characters.
|
|
117
|
+
*
|
|
118
|
+
* @example
|
|
119
|
+
* Extract only user product preferences
|
|
120
|
+
*/
|
|
121
|
+
customInstructions?: string;
|
|
122
|
+
/**
|
|
123
|
+
* @remarks
|
|
124
|
+
* Specifies whether to execute this policy for new inputs. Default value: true. Disabling the policy does not delete historical memories.
|
|
125
|
+
*
|
|
126
|
+
* @example
|
|
127
|
+
* true
|
|
128
|
+
*/
|
|
129
|
+
enabled?: boolean;
|
|
130
|
+
/**
|
|
131
|
+
* @remarks
|
|
132
|
+
* The list of exclusion rules. Content that matches these rules is not extracted.
|
|
133
|
+
*
|
|
134
|
+
* @example
|
|
135
|
+
* ["Password","ID number"]
|
|
136
|
+
*/
|
|
137
|
+
excludeRules?: string[];
|
|
138
|
+
/**
|
|
139
|
+
* @remarks
|
|
140
|
+
* The extraction model configuration.
|
|
141
|
+
*/
|
|
142
|
+
model?: CreateContextStoreRequestConfigExtractionPoliciesModel;
|
|
143
|
+
/**
|
|
144
|
+
* @remarks
|
|
145
|
+
* The display name of the extraction policy.
|
|
146
|
+
*
|
|
147
|
+
* @example
|
|
148
|
+
* User preferences
|
|
149
|
+
*/
|
|
150
|
+
name?: string;
|
|
151
|
+
/**
|
|
152
|
+
* @remarks
|
|
153
|
+
* The preset policy. Valid values: fact, toc-profile, tob-digital-twin, and custom. Default value: fact.
|
|
154
|
+
*
|
|
155
|
+
* @example
|
|
156
|
+
* fact
|
|
157
|
+
*/
|
|
158
|
+
preset?: string;
|
|
159
|
+
storagePolicy?: CreateContextStoreRequestConfigExtractionPoliciesStoragePolicy;
|
|
160
|
+
/**
|
|
161
|
+
* @remarks
|
|
162
|
+
* 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.
|
|
163
|
+
*
|
|
164
|
+
* @example
|
|
165
|
+
* preferences
|
|
166
|
+
*/
|
|
167
|
+
strategyId?: 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
|
+
}
|
|
38
179
|
export declare class CreateContextStoreRequestConfigExtractionPolicyModel extends $dara.Model {
|
|
39
180
|
/**
|
|
40
181
|
* @remarks
|
|
41
|
-
*
|
|
182
|
+
* The name of the extraction model. Currently, only qwen3.8-flash is supported, which uses internal platform credentials.
|
|
42
183
|
*
|
|
43
184
|
* @example
|
|
44
185
|
* qwen3.8-flash
|
|
@@ -66,7 +207,7 @@ export declare class CreateContextStoreRequestConfigExtractionPolicy extends $da
|
|
|
66
207
|
categories?: string[];
|
|
67
208
|
/**
|
|
68
209
|
* @remarks
|
|
69
|
-
*
|
|
210
|
+
* The custom extraction instructions. This parameter is required when preset is set to custom. The length must be 1 to 8,000 characters.
|
|
70
211
|
*
|
|
71
212
|
* @example
|
|
72
213
|
* Extract only user product preferences
|
|
@@ -87,7 +228,7 @@ export declare class CreateContextStoreRequestConfigExtractionPolicy extends $da
|
|
|
87
228
|
model?: CreateContextStoreRequestConfigExtractionPolicyModel;
|
|
88
229
|
/**
|
|
89
230
|
* @remarks
|
|
90
|
-
*
|
|
231
|
+
* The preset policy. Valid values: fact, toc-profile, tob-digital-twin, and custom. Default value: fact.
|
|
91
232
|
*
|
|
92
233
|
* @example
|
|
93
234
|
* fact
|
|
@@ -127,7 +268,7 @@ export declare class CreateContextStoreRequestConfigScopePolicy extends $dara.Mo
|
|
|
127
268
|
export declare class CreateContextStoreRequestConfigSourceDatasetCustomFields extends $dara.Model {
|
|
128
269
|
/**
|
|
129
270
|
* @remarks
|
|
130
|
-
*
|
|
271
|
+
* The field description. This parameter is required when usage is set to extraction-input and is appended to the extraction prompt.
|
|
131
272
|
*
|
|
132
273
|
* @example
|
|
133
274
|
* Customer tier
|
|
@@ -135,7 +276,7 @@ export declare class CreateContextStoreRequestConfigSourceDatasetCustomFields ex
|
|
|
135
276
|
description?: string;
|
|
136
277
|
/**
|
|
137
278
|
* @remarks
|
|
138
|
-
* Specifies whether the field is
|
|
279
|
+
* Specifies whether the field is sensitive.
|
|
139
280
|
*
|
|
140
281
|
* @example
|
|
141
282
|
* false
|
|
@@ -151,7 +292,7 @@ export declare class CreateContextStoreRequestConfigSourceDatasetCustomFields ex
|
|
|
151
292
|
sourceField?: string;
|
|
152
293
|
/**
|
|
153
294
|
* @remarks
|
|
154
|
-
* The target path for writing, such as metadata.customerTier.
|
|
295
|
+
* The target path for writing data, such as metadata.customerTier.
|
|
155
296
|
*
|
|
156
297
|
* @example
|
|
157
298
|
* metadata.customerTier
|
|
@@ -159,7 +300,9 @@ export declare class CreateContextStoreRequestConfigSourceDatasetCustomFields ex
|
|
|
159
300
|
target?: string;
|
|
160
301
|
/**
|
|
161
302
|
* @remarks
|
|
162
|
-
*
|
|
303
|
+
* The usage of the field. Valid values:
|
|
304
|
+
* - extraction-input: Participates in extraction.
|
|
305
|
+
* - ignore: Ignored.
|
|
163
306
|
*
|
|
164
307
|
* @example
|
|
165
308
|
* extraction-input
|
|
@@ -201,7 +344,7 @@ export declare class CreateContextStoreRequestConfigSourceDatasetVersionPolicy e
|
|
|
201
344
|
* @remarks
|
|
202
345
|
* The consumption mode. Valid values:
|
|
203
346
|
* - follow: Consumes data incrementally based on __dataset_seq.
|
|
204
|
-
* - fixed: Consumes the specified ACTIVE version in full
|
|
347
|
+
* - fixed: Consumes the specified ACTIVE version in full once.
|
|
205
348
|
*
|
|
206
349
|
* @example
|
|
207
350
|
* follow
|
|
@@ -217,7 +360,7 @@ export declare class CreateContextStoreRequestConfigSourceDatasetVersionPolicy e
|
|
|
217
360
|
startSeq?: number;
|
|
218
361
|
/**
|
|
219
362
|
* @remarks
|
|
220
|
-
* The
|
|
363
|
+
* The Dataset version specified for the fixed mode.
|
|
221
364
|
*
|
|
222
365
|
* @example
|
|
223
366
|
* v3
|
|
@@ -242,7 +385,7 @@ export declare class CreateContextStoreRequestConfigSourceDataset extends $dara.
|
|
|
242
385
|
customFields?: CreateContextStoreRequestConfigSourceDatasetCustomFields[];
|
|
243
386
|
/**
|
|
244
387
|
* @remarks
|
|
245
|
-
*
|
|
388
|
+
* The name of the Dataset in the same AgentSpace. This parameter cannot be modified after creation.
|
|
246
389
|
*
|
|
247
390
|
* @example
|
|
248
391
|
* trajectory-with-crm-profile
|
|
@@ -250,12 +393,12 @@ export declare class CreateContextStoreRequestConfigSourceDataset extends $dara.
|
|
|
250
393
|
datasetName?: string;
|
|
251
394
|
/**
|
|
252
395
|
* @remarks
|
|
253
|
-
* The row filter
|
|
396
|
+
* The row filter condition.
|
|
254
397
|
*/
|
|
255
398
|
filter?: CreateContextStoreRequestConfigSourceDatasetFilter;
|
|
256
399
|
/**
|
|
257
400
|
* @remarks
|
|
258
|
-
*
|
|
401
|
+
* The polling interval in seconds. Valid values: 60 to 3600. Default value: 300.
|
|
259
402
|
*
|
|
260
403
|
* @example
|
|
261
404
|
* 300
|
|
@@ -263,7 +406,7 @@ export declare class CreateContextStoreRequestConfigSourceDataset extends $dara.
|
|
|
263
406
|
pollIntervalSeconds?: number;
|
|
264
407
|
/**
|
|
265
408
|
* @remarks
|
|
266
|
-
* The
|
|
409
|
+
* The row schema contract for the Dataset. The value is fixed to MemorySourceV1 in the current phase.
|
|
267
410
|
*
|
|
268
411
|
* @example
|
|
269
412
|
* MemorySourceV1
|
|
@@ -271,7 +414,7 @@ export declare class CreateContextStoreRequestConfigSourceDataset extends $dara.
|
|
|
271
414
|
schemaContract?: string;
|
|
272
415
|
/**
|
|
273
416
|
* @remarks
|
|
274
|
-
* The
|
|
417
|
+
* The version consumption policy for the Dataset.
|
|
275
418
|
*/
|
|
276
419
|
versionPolicy?: CreateContextStoreRequestConfigSourceDatasetVersionPolicy;
|
|
277
420
|
static names(): {
|
|
@@ -312,7 +455,7 @@ export declare class CreateContextStoreRequestConfigSourceTrajectoryFilter exten
|
|
|
312
455
|
minStepCount?: number;
|
|
313
456
|
/**
|
|
314
457
|
* @remarks
|
|
315
|
-
* The native Simple Log Service (SLS) query statement
|
|
458
|
+
* The native Simple Log Service (SLS) query statement, which is combined with the preceding conditions using AND.
|
|
316
459
|
*
|
|
317
460
|
* @example
|
|
318
461
|
* tool_names:"search_order"
|
|
@@ -384,7 +527,7 @@ export declare class CreateContextStoreRequestConfigSourceTrajectoryScopeMapping
|
|
|
384
527
|
export declare class CreateContextStoreRequestConfigSourceTrajectory extends $dara.Model {
|
|
385
528
|
/**
|
|
386
529
|
* @remarks
|
|
387
|
-
* The trajectory filter
|
|
530
|
+
* The trajectory filter condition. Conditions are combined with AND, and items within a list are combined with OR.
|
|
388
531
|
*/
|
|
389
532
|
filter?: CreateContextStoreRequestConfigSourceTrajectoryFilter;
|
|
390
533
|
/**
|
|
@@ -397,7 +540,7 @@ export declare class CreateContextStoreRequestConfigSourceTrajectory extends $da
|
|
|
397
540
|
logstore?: string;
|
|
398
541
|
/**
|
|
399
542
|
* @remarks
|
|
400
|
-
*
|
|
543
|
+
* The polling interval in seconds. Valid values: 60 to 3600. Default value: 300.
|
|
401
544
|
*
|
|
402
545
|
* @example
|
|
403
546
|
* 300
|
|
@@ -410,7 +553,7 @@ export declare class CreateContextStoreRequestConfigSourceTrajectory extends $da
|
|
|
410
553
|
scopeMapping?: CreateContextStoreRequestConfigSourceTrajectoryScopeMapping;
|
|
411
554
|
/**
|
|
412
555
|
* @remarks
|
|
413
|
-
* The start time for trajectory consumption in ISO 8601 UTC format. If not specified, the creation time is used by default.
|
|
556
|
+
* The start time for trajectory consumption in ISO 8601 UTC format. If this parameter is not specified, the creation time is used by default.
|
|
414
557
|
*
|
|
415
558
|
* Use the UTC time format: yyyy-MM-ddTHH:mm:ssZ
|
|
416
559
|
*
|
|
@@ -440,7 +583,7 @@ export declare class CreateContextStoreRequestConfigSourceVersionPolicy extends
|
|
|
440
583
|
mode?: string;
|
|
441
584
|
/**
|
|
442
585
|
* @remarks
|
|
443
|
-
* 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.
|
|
586
|
+
* 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.
|
|
444
587
|
*
|
|
445
588
|
* @example
|
|
446
589
|
* 0
|
|
@@ -460,7 +603,7 @@ export declare class CreateContextStoreRequestConfigSourceVersionPolicy extends
|
|
|
460
603
|
export declare class CreateContextStoreRequestConfigSource extends $dara.Model {
|
|
461
604
|
/**
|
|
462
605
|
* @remarks
|
|
463
|
-
*
|
|
606
|
+
* 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.
|
|
464
607
|
*
|
|
465
608
|
* @example
|
|
466
609
|
* my-agent-space
|
|
@@ -468,7 +611,7 @@ export declare class CreateContextStoreRequestConfigSource extends $dara.Model {
|
|
|
468
611
|
agentSpace?: string;
|
|
469
612
|
/**
|
|
470
613
|
* @remarks
|
|
471
|
-
* 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.
|
|
614
|
+
* 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.
|
|
472
615
|
*
|
|
473
616
|
* @example
|
|
474
617
|
* {"version":1,"selection":{"mode":"all"}}
|
|
@@ -478,12 +621,12 @@ export declare class CreateContextStoreRequestConfigSource extends $dara.Model {
|
|
|
478
621
|
};
|
|
479
622
|
/**
|
|
480
623
|
* @remarks
|
|
481
|
-
* The Dataset
|
|
624
|
+
* The Dataset data source configuration. This parameter is required when source.type is set to dataset.
|
|
482
625
|
*/
|
|
483
626
|
dataset?: CreateContextStoreRequestConfigSourceDataset;
|
|
484
627
|
/**
|
|
485
628
|
* @remarks
|
|
486
|
-
* The name of the experience
|
|
629
|
+
* 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.
|
|
487
630
|
*
|
|
488
631
|
* @example
|
|
489
632
|
* reviewed_trajectories
|
|
@@ -491,7 +634,7 @@ export declare class CreateContextStoreRequestConfigSource extends $dara.Model {
|
|
|
491
634
|
datasetName?: string;
|
|
492
635
|
/**
|
|
493
636
|
* @remarks
|
|
494
|
-
* The input format of the
|
|
637
|
+
* 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.
|
|
495
638
|
*
|
|
496
639
|
* @example
|
|
497
640
|
* atif
|
|
@@ -499,7 +642,7 @@ export declare class CreateContextStoreRequestConfigSource extends $dara.Model {
|
|
|
499
642
|
format?: string;
|
|
500
643
|
/**
|
|
501
644
|
* @remarks
|
|
502
|
-
* 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.
|
|
645
|
+
* 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.
|
|
503
646
|
*
|
|
504
647
|
* @example
|
|
505
648
|
* 1000
|
|
@@ -507,7 +650,7 @@ export declare class CreateContextStoreRequestConfigSource extends $dara.Model {
|
|
|
507
650
|
maxRecords?: number;
|
|
508
651
|
/**
|
|
509
652
|
* @remarks
|
|
510
|
-
* The start time for data backfill in ISO 8601 UTC format. If not specified, the current time is used.
|
|
653
|
+
* The start time for data backfill in ISO 8601 UTC format. If this parameter is not specified, the current time is used.
|
|
511
654
|
*
|
|
512
655
|
* Use the UTC time format: yyyy-MM-ddTHH:mm:ssZ
|
|
513
656
|
*
|
|
@@ -517,12 +660,12 @@ export declare class CreateContextStoreRequestConfigSource extends $dara.Model {
|
|
|
517
660
|
startTime?: string;
|
|
518
661
|
/**
|
|
519
662
|
* @remarks
|
|
520
|
-
* The trajectory
|
|
663
|
+
* The trajectory data source configuration. This parameter is required when source.type is set to trajectory.
|
|
521
664
|
*/
|
|
522
665
|
trajectory?: CreateContextStoreRequestConfigSourceTrajectory;
|
|
523
666
|
/**
|
|
524
667
|
* @remarks
|
|
525
|
-
* The data source type for the memory type. Valid values: trajectory
|
|
668
|
+
* 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.
|
|
526
669
|
*
|
|
527
670
|
* @example
|
|
528
671
|
* trajectory
|
|
@@ -530,7 +673,7 @@ export declare class CreateContextStoreRequestConfigSource extends $dara.Model {
|
|
|
530
673
|
type?: string;
|
|
531
674
|
/**
|
|
532
675
|
* @remarks
|
|
533
|
-
* The continuous consumption configuration for the native experience dataset. The default
|
|
676
|
+
* 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.
|
|
534
677
|
*/
|
|
535
678
|
versionPolicy?: CreateContextStoreRequestConfigSourceVersionPolicy;
|
|
536
679
|
static names(): {
|
|
@@ -547,7 +690,7 @@ export declare class CreateContextStoreRequestConfigSource extends $dara.Model {
|
|
|
547
690
|
export declare class CreateContextStoreRequestConfigStoragePolicy extends $dara.Model {
|
|
548
691
|
/**
|
|
549
692
|
* @remarks
|
|
550
|
-
* The allowed storage actions. Default value: all
|
|
693
|
+
* The allowed storage actions. Default value: all. Valid values: ADD, UPDATE, MERGE, DELETE.
|
|
551
694
|
*
|
|
552
695
|
* @example
|
|
553
696
|
* ["ADD","UPDATE","MERGE","DELETE"]
|
|
@@ -563,7 +706,7 @@ export declare class CreateContextStoreRequestConfigStoragePolicy extends $dara.
|
|
|
563
706
|
dedupe?: boolean;
|
|
564
707
|
/**
|
|
565
708
|
* @remarks
|
|
566
|
-
* Specifies whether to enable
|
|
709
|
+
* Specifies whether to enable manual edit protection. Default value: true. If this feature is enabled, automatic extraction does not overwrite manually modified memories.
|
|
567
710
|
*
|
|
568
711
|
* @example
|
|
569
712
|
* true
|
|
@@ -571,7 +714,7 @@ export declare class CreateContextStoreRequestConfigStoragePolicy extends $dara.
|
|
|
571
714
|
humanEditProtection?: boolean;
|
|
572
715
|
/**
|
|
573
716
|
* @remarks
|
|
574
|
-
* The merge key for upsert operations. Valid values: factKey, semantic,
|
|
717
|
+
* The merge key for upsert operations. Default value: semantic. Valid values: factKey, semantic, both.
|
|
575
718
|
*
|
|
576
719
|
* @example
|
|
577
720
|
* semantic
|
|
@@ -579,7 +722,7 @@ export declare class CreateContextStoreRequestConfigStoragePolicy extends $dara.
|
|
|
579
722
|
mergeKey?: string;
|
|
580
723
|
/**
|
|
581
724
|
* @remarks
|
|
582
|
-
* The storage mode. Valid values: event
|
|
725
|
+
* The storage mode. Default value: upsert. Valid values: event (event append), upsert (merge update).
|
|
583
726
|
*
|
|
584
727
|
* @example
|
|
585
728
|
* upsert
|
|
@@ -595,7 +738,7 @@ export declare class CreateContextStoreRequestConfigStoragePolicy extends $dara.
|
|
|
595
738
|
similarityThreshold?: number;
|
|
596
739
|
/**
|
|
597
740
|
* @remarks
|
|
598
|
-
* The number of days before
|
|
741
|
+
* The number of days before a memory expires. A value of 0 indicates that the memory does not expire.
|
|
599
742
|
*
|
|
600
743
|
* @example
|
|
601
744
|
* 0
|
|
@@ -618,6 +761,11 @@ export declare class CreateContextStoreRequestConfig extends $dara.Model {
|
|
|
618
761
|
* The audit configuration.
|
|
619
762
|
*/
|
|
620
763
|
audit?: CreateContextStoreRequestConfigAudit;
|
|
764
|
+
/**
|
|
765
|
+
* @remarks
|
|
766
|
+
* 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.
|
|
767
|
+
*/
|
|
768
|
+
extractionPolicies?: CreateContextStoreRequestConfigExtractionPolicies[];
|
|
621
769
|
/**
|
|
622
770
|
* @remarks
|
|
623
771
|
* The extraction policy for the memory type.
|
|
@@ -635,7 +783,7 @@ export declare class CreateContextStoreRequestConfig extends $dara.Model {
|
|
|
635
783
|
};
|
|
636
784
|
/**
|
|
637
785
|
* @remarks
|
|
638
|
-
*
|
|
786
|
+
* 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.
|
|
639
787
|
*
|
|
640
788
|
* @example
|
|
641
789
|
* 1d
|
|
@@ -648,7 +796,7 @@ export declare class CreateContextStoreRequestConfig extends $dara.Model {
|
|
|
648
796
|
scopePolicy?: CreateContextStoreRequestConfigScopePolicy;
|
|
649
797
|
/**
|
|
650
798
|
* @remarks
|
|
651
|
-
* 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
|
|
799
|
+
* 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.
|
|
652
800
|
*
|
|
653
801
|
* @example
|
|
654
802
|
* ["order-service","payment-service"]
|
|
@@ -656,7 +804,7 @@ export declare class CreateContextStoreRequestConfig extends $dara.Model {
|
|
|
656
804
|
serviceNames?: string[];
|
|
657
805
|
/**
|
|
658
806
|
* @remarks
|
|
659
|
-
* The
|
|
807
|
+
* The data source configuration, which serves only as the root identifier for the data source. This block is optional.
|
|
660
808
|
*/
|
|
661
809
|
source?: CreateContextStoreRequestConfigSource;
|
|
662
810
|
/**
|
|
@@ -693,7 +841,7 @@ export declare class CreateContextStoreRequest extends $dara.Model {
|
|
|
693
841
|
contextStoreName?: string;
|
|
694
842
|
/**
|
|
695
843
|
* @remarks
|
|
696
|
-
* The type of the context store. Valid values include experience and memory.
|
|
844
|
+
* The type of the context store. Valid values include experience (experience store) and memory (memory store).
|
|
697
845
|
*
|
|
698
846
|
* This parameter is required.
|
|
699
847
|
*
|
|
@@ -711,7 +859,7 @@ export declare class CreateContextStoreRequest extends $dara.Model {
|
|
|
711
859
|
description?: string;
|
|
712
860
|
/**
|
|
713
861
|
* @remarks
|
|
714
|
-
* The idempotency token
|
|
862
|
+
* The idempotency token. This is a unique string generated by the client to ensure the idempotency of the creation operation.
|
|
715
863
|
*
|
|
716
864
|
* @example
|
|
717
865
|
* a1b2c3d4-1234-5678-90ab-cdef12345678
|
|
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.CreateContextStoreRequest = exports.CreateContextStoreRequestConfig = exports.CreateContextStoreRequestConfigStoragePolicy = exports.CreateContextStoreRequestConfigSource = exports.CreateContextStoreRequestConfigSourceVersionPolicy = exports.CreateContextStoreRequestConfigSourceTrajectory = exports.CreateContextStoreRequestConfigSourceTrajectoryScopeMapping = exports.CreateContextStoreRequestConfigSourceTrajectoryFilter = exports.CreateContextStoreRequestConfigSourceDataset = exports.CreateContextStoreRequestConfigSourceDatasetVersionPolicy = exports.CreateContextStoreRequestConfigSourceDatasetFilter = exports.CreateContextStoreRequestConfigSourceDatasetCustomFields = exports.CreateContextStoreRequestConfigScopePolicy = exports.CreateContextStoreRequestConfigExtractionPolicy = exports.CreateContextStoreRequestConfigExtractionPolicyModel = exports.CreateContextStoreRequestConfigAudit = void 0;
|
|
36
|
+
exports.CreateContextStoreRequest = exports.CreateContextStoreRequestConfig = exports.CreateContextStoreRequestConfigStoragePolicy = exports.CreateContextStoreRequestConfigSource = exports.CreateContextStoreRequestConfigSourceVersionPolicy = exports.CreateContextStoreRequestConfigSourceTrajectory = exports.CreateContextStoreRequestConfigSourceTrajectoryScopeMapping = exports.CreateContextStoreRequestConfigSourceTrajectoryFilter = exports.CreateContextStoreRequestConfigSourceDataset = exports.CreateContextStoreRequestConfigSourceDatasetVersionPolicy = exports.CreateContextStoreRequestConfigSourceDatasetFilter = exports.CreateContextStoreRequestConfigSourceDatasetCustomFields = exports.CreateContextStoreRequestConfigScopePolicy = exports.CreateContextStoreRequestConfigExtractionPolicy = exports.CreateContextStoreRequestConfigExtractionPolicyModel = exports.CreateContextStoreRequestConfigExtractionPolicies = exports.CreateContextStoreRequestConfigExtractionPoliciesStoragePolicy = exports.CreateContextStoreRequestConfigExtractionPoliciesModel = exports.CreateContextStoreRequestConfigAudit = void 0;
|
|
37
37
|
// This file is auto-generated, don't edit it
|
|
38
38
|
const $dara = __importStar(require("@darabonba/typescript"));
|
|
39
39
|
class CreateContextStoreRequestConfigAudit extends $dara.Model {
|
|
@@ -59,6 +59,106 @@ class CreateContextStoreRequestConfigAudit extends $dara.Model {
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
exports.CreateContextStoreRequestConfigAudit = CreateContextStoreRequestConfigAudit;
|
|
62
|
+
class CreateContextStoreRequestConfigExtractionPoliciesModel extends $dara.Model {
|
|
63
|
+
static names() {
|
|
64
|
+
return {
|
|
65
|
+
name: 'name',
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
static types() {
|
|
69
|
+
return {
|
|
70
|
+
name: 'string',
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
validate() {
|
|
74
|
+
super.validate();
|
|
75
|
+
}
|
|
76
|
+
constructor(map) {
|
|
77
|
+
super(map);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
exports.CreateContextStoreRequestConfigExtractionPoliciesModel = CreateContextStoreRequestConfigExtractionPoliciesModel;
|
|
81
|
+
class CreateContextStoreRequestConfigExtractionPoliciesStoragePolicy extends $dara.Model {
|
|
82
|
+
static names() {
|
|
83
|
+
return {
|
|
84
|
+
allowedActions: 'allowedActions',
|
|
85
|
+
dedupe: 'dedupe',
|
|
86
|
+
humanEditProtection: 'humanEditProtection',
|
|
87
|
+
mergeKey: 'mergeKey',
|
|
88
|
+
mode: 'mode',
|
|
89
|
+
similarityThreshold: 'similarityThreshold',
|
|
90
|
+
ttlDays: 'ttlDays',
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
static types() {
|
|
94
|
+
return {
|
|
95
|
+
allowedActions: { 'type': 'array', 'itemType': 'string' },
|
|
96
|
+
dedupe: 'boolean',
|
|
97
|
+
humanEditProtection: 'boolean',
|
|
98
|
+
mergeKey: 'string',
|
|
99
|
+
mode: 'string',
|
|
100
|
+
similarityThreshold: 'number',
|
|
101
|
+
ttlDays: 'number',
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
validate() {
|
|
105
|
+
if (Array.isArray(this.allowedActions)) {
|
|
106
|
+
$dara.Model.validateArray(this.allowedActions);
|
|
107
|
+
}
|
|
108
|
+
super.validate();
|
|
109
|
+
}
|
|
110
|
+
constructor(map) {
|
|
111
|
+
super(map);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
exports.CreateContextStoreRequestConfigExtractionPoliciesStoragePolicy = CreateContextStoreRequestConfigExtractionPoliciesStoragePolicy;
|
|
115
|
+
class CreateContextStoreRequestConfigExtractionPolicies extends $dara.Model {
|
|
116
|
+
static names() {
|
|
117
|
+
return {
|
|
118
|
+
categories: 'categories',
|
|
119
|
+
customInstructions: 'customInstructions',
|
|
120
|
+
enabled: 'enabled',
|
|
121
|
+
excludeRules: 'excludeRules',
|
|
122
|
+
model: 'model',
|
|
123
|
+
name: 'name',
|
|
124
|
+
preset: 'preset',
|
|
125
|
+
storagePolicy: 'storagePolicy',
|
|
126
|
+
strategyId: 'strategyId',
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
static types() {
|
|
130
|
+
return {
|
|
131
|
+
categories: { 'type': 'array', 'itemType': 'string' },
|
|
132
|
+
customInstructions: 'string',
|
|
133
|
+
enabled: 'boolean',
|
|
134
|
+
excludeRules: { 'type': 'array', 'itemType': 'string' },
|
|
135
|
+
model: CreateContextStoreRequestConfigExtractionPoliciesModel,
|
|
136
|
+
name: 'string',
|
|
137
|
+
preset: 'string',
|
|
138
|
+
storagePolicy: CreateContextStoreRequestConfigExtractionPoliciesStoragePolicy,
|
|
139
|
+
strategyId: 'string',
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
validate() {
|
|
143
|
+
if (Array.isArray(this.categories)) {
|
|
144
|
+
$dara.Model.validateArray(this.categories);
|
|
145
|
+
}
|
|
146
|
+
if (Array.isArray(this.excludeRules)) {
|
|
147
|
+
$dara.Model.validateArray(this.excludeRules);
|
|
148
|
+
}
|
|
149
|
+
if (this.model && typeof this.model.validate === 'function') {
|
|
150
|
+
this.model.validate();
|
|
151
|
+
}
|
|
152
|
+
if (this.storagePolicy && typeof this.storagePolicy.validate === 'function') {
|
|
153
|
+
this.storagePolicy.validate();
|
|
154
|
+
}
|
|
155
|
+
super.validate();
|
|
156
|
+
}
|
|
157
|
+
constructor(map) {
|
|
158
|
+
super(map);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
exports.CreateContextStoreRequestConfigExtractionPolicies = CreateContextStoreRequestConfigExtractionPolicies;
|
|
62
162
|
class CreateContextStoreRequestConfigExtractionPolicyModel extends $dara.Model {
|
|
63
163
|
static names() {
|
|
64
164
|
return {
|
|
@@ -442,6 +542,7 @@ class CreateContextStoreRequestConfig extends $dara.Model {
|
|
|
442
542
|
static names() {
|
|
443
543
|
return {
|
|
444
544
|
audit: 'audit',
|
|
545
|
+
extractionPolicies: 'extractionPolicies',
|
|
445
546
|
extractionPolicy: 'extractionPolicy',
|
|
446
547
|
metadataField: 'metadataField',
|
|
447
548
|
miningInterval: 'miningInterval',
|
|
@@ -454,6 +555,7 @@ class CreateContextStoreRequestConfig extends $dara.Model {
|
|
|
454
555
|
static types() {
|
|
455
556
|
return {
|
|
456
557
|
audit: CreateContextStoreRequestConfigAudit,
|
|
558
|
+
extractionPolicies: { 'type': 'array', 'itemType': CreateContextStoreRequestConfigExtractionPolicies },
|
|
457
559
|
extractionPolicy: CreateContextStoreRequestConfigExtractionPolicy,
|
|
458
560
|
metadataField: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
459
561
|
miningInterval: 'string',
|
|
@@ -467,6 +569,9 @@ class CreateContextStoreRequestConfig extends $dara.Model {
|
|
|
467
569
|
if (this.audit && typeof this.audit.validate === 'function') {
|
|
468
570
|
this.audit.validate();
|
|
469
571
|
}
|
|
572
|
+
if (Array.isArray(this.extractionPolicies)) {
|
|
573
|
+
$dara.Model.validateArray(this.extractionPolicies);
|
|
574
|
+
}
|
|
470
575
|
if (this.extractionPolicy && typeof this.extractionPolicy.validate === 'function') {
|
|
471
576
|
this.extractionPolicy.validate();
|
|
472
577
|
}
|