@alicloud/agentloop20260520 2.4.1 → 2.4.3
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 +8 -2
- package/dist/client.js.map +1 -1
- package/dist/models/CreateContextStoreRequest.d.ts +117 -48
- package/dist/models/CreateContextStoreRequest.js +40 -1
- package/dist/models/CreateContextStoreRequest.js.map +1 -1
- package/dist/models/CreateContextStoreResponseBody.d.ts +1 -1
- package/dist/models/GetContextStoreResponseBody.d.ts +181 -55
- package/dist/models/GetContextStoreResponseBody.js +75 -1
- package/dist/models/GetContextStoreResponseBody.js.map +1 -1
- package/dist/models/ListContextStoresRequest.d.ts +1 -1
- package/dist/models/ListContextStoresResponseBody.d.ts +11 -6
- package/dist/models/ListContextStoresResponseBody.js +5 -0
- package/dist/models/ListContextStoresResponseBody.js.map +1 -1
- package/dist/models/SearchContextRequest.d.ts +8 -8
- package/dist/models/SearchContextResponseBody.d.ts +54 -3
- package/dist/models/SearchContextResponseBody.js +23 -0
- package/dist/models/SearchContextResponseBody.js.map +1 -1
- package/dist/models/UpdateContextStoreRequest.d.ts +136 -33
- package/dist/models/UpdateContextStoreRequest.js +46 -1
- package/dist/models/UpdateContextStoreRequest.js.map +1 -1
- package/dist/models/UpdateContextStoreResponseBody.d.ts +32 -2
- package/dist/models/UpdateContextStoreResponseBody.js +27 -1
- package/dist/models/UpdateContextStoreResponseBody.js.map +1 -1
- package/dist/models/model.d.ts +5 -0
- package/dist/models/model.js +75 -65
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +10 -2
- package/src/models/CreateContextStoreRequest.ts +147 -48
- package/src/models/CreateContextStoreResponseBody.ts +1 -1
- package/src/models/GetContextStoreResponseBody.ts +237 -55
- package/src/models/ListContextStoresRequest.ts +1 -1
- package/src/models/ListContextStoresResponseBody.ts +16 -6
- package/src/models/SearchContextRequest.ts +8 -8
- package/src/models/SearchContextResponseBody.ts +73 -3
- package/src/models/UpdateContextStoreRequest.ts +172 -33
- package/src/models/UpdateContextStoreResponseBody.ts +49 -2
- package/src/models/model.ts +5 -0
|
@@ -13,7 +13,7 @@ export class CreateContextStoreRequestConfigAudit extends $dara.Model {
|
|
|
13
13
|
droppedCandidates?: boolean;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The
|
|
16
|
+
* The recording mode for recall queries. Valid values: raw (plaintext) and hash (HMAC only). Default value: raw.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* raw
|
|
@@ -55,7 +55,7 @@ export class CreateContextStoreRequestConfigAudit extends $dara.Model {
|
|
|
55
55
|
export class CreateContextStoreRequestConfigExtractionPoliciesModel extends $dara.Model {
|
|
56
56
|
/**
|
|
57
57
|
* @remarks
|
|
58
|
-
* The name of the extraction model. Currently, only qwen3.8-flash is supported
|
|
58
|
+
* The name of the extraction model. Currently, only qwen3.8-flash is supported. Platform internal credentials are used.
|
|
59
59
|
*
|
|
60
60
|
* @example
|
|
61
61
|
* qwen3.8-flash
|
|
@@ -82,6 +82,99 @@ export class CreateContextStoreRequestConfigExtractionPoliciesModel extends $dar
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
export class CreateContextStoreRequestConfigExtractionPoliciesStoragePolicy extends $dara.Model {
|
|
86
|
+
/**
|
|
87
|
+
* @remarks
|
|
88
|
+
* The allowed storage actions. Default value: all actions (ADD, UPDATE, MERGE, and DELETE).
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* ["ADD","UPDATE","MERGE","DELETE"]
|
|
92
|
+
*/
|
|
93
|
+
allowedActions?: string[];
|
|
94
|
+
/**
|
|
95
|
+
* @remarks
|
|
96
|
+
* Specifies whether to enable deduplication in event mode. Default value: true.
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
* true
|
|
100
|
+
*/
|
|
101
|
+
dedupe?: boolean;
|
|
102
|
+
/**
|
|
103
|
+
* @remarks
|
|
104
|
+
* Specifies whether to enable human edit protection. Default value: true. When enabled, automatic extraction does not overwrite manually modified memories.
|
|
105
|
+
*
|
|
106
|
+
* @example
|
|
107
|
+
* true
|
|
108
|
+
*/
|
|
109
|
+
humanEditProtection?: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* @remarks
|
|
112
|
+
* The merge key for upsert operations. Valid values: factKey, semantic, and both. Default value: semantic.
|
|
113
|
+
*
|
|
114
|
+
* @example
|
|
115
|
+
* semantic
|
|
116
|
+
*/
|
|
117
|
+
mergeKey?: string;
|
|
118
|
+
/**
|
|
119
|
+
* @remarks
|
|
120
|
+
* The storage mode. Valid values: event (event append) and upsert (merge update). Default value: upsert.
|
|
121
|
+
*
|
|
122
|
+
* @example
|
|
123
|
+
* upsert
|
|
124
|
+
*/
|
|
125
|
+
mode?: string;
|
|
126
|
+
/**
|
|
127
|
+
* @remarks
|
|
128
|
+
* The similarity threshold for semantic merging. Valid values: 0 to 1. Default value: 0.4.
|
|
129
|
+
*
|
|
130
|
+
* @example
|
|
131
|
+
* 0.4
|
|
132
|
+
*/
|
|
133
|
+
similarityThreshold?: number;
|
|
134
|
+
/**
|
|
135
|
+
* @remarks
|
|
136
|
+
* The number of days before memories expire. A value of 0 indicates that memories do not expire.
|
|
137
|
+
*
|
|
138
|
+
* @example
|
|
139
|
+
* 0
|
|
140
|
+
*/
|
|
141
|
+
ttlDays?: number;
|
|
142
|
+
static names(): { [key: string]: string } {
|
|
143
|
+
return {
|
|
144
|
+
allowedActions: 'allowedActions',
|
|
145
|
+
dedupe: 'dedupe',
|
|
146
|
+
humanEditProtection: 'humanEditProtection',
|
|
147
|
+
mergeKey: 'mergeKey',
|
|
148
|
+
mode: 'mode',
|
|
149
|
+
similarityThreshold: 'similarityThreshold',
|
|
150
|
+
ttlDays: 'ttlDays',
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
static types(): { [key: string]: any } {
|
|
155
|
+
return {
|
|
156
|
+
allowedActions: { 'type': 'array', 'itemType': 'string' },
|
|
157
|
+
dedupe: 'boolean',
|
|
158
|
+
humanEditProtection: 'boolean',
|
|
159
|
+
mergeKey: 'string',
|
|
160
|
+
mode: 'string',
|
|
161
|
+
similarityThreshold: 'number',
|
|
162
|
+
ttlDays: 'number',
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
validate() {
|
|
167
|
+
if(Array.isArray(this.allowedActions)) {
|
|
168
|
+
$dara.Model.validateArray(this.allowedActions);
|
|
169
|
+
}
|
|
170
|
+
super.validate();
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
constructor(map?: { [key: string]: any }) {
|
|
174
|
+
super(map);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
85
178
|
export class CreateContextStoreRequestConfigExtractionPolicies extends $dara.Model {
|
|
86
179
|
/**
|
|
87
180
|
* @remarks
|
|
@@ -93,7 +186,7 @@ export class CreateContextStoreRequestConfigExtractionPolicies extends $dara.Mod
|
|
|
93
186
|
categories?: string[];
|
|
94
187
|
/**
|
|
95
188
|
* @remarks
|
|
96
|
-
* The custom extraction instructions. This parameter is required when preset is set to custom.
|
|
189
|
+
* The custom extraction instructions. This parameter is required when preset is set to custom. Length: 1 to 8,000 characters.
|
|
97
190
|
*
|
|
98
191
|
* @example
|
|
99
192
|
* Extract only user product preferences
|
|
@@ -101,7 +194,7 @@ export class CreateContextStoreRequestConfigExtractionPolicies extends $dara.Mod
|
|
|
101
194
|
customInstructions?: string;
|
|
102
195
|
/**
|
|
103
196
|
* @remarks
|
|
104
|
-
* Specifies whether to
|
|
197
|
+
* Specifies whether to apply this policy to new inputs. Default value: true. Disabling the policy does not delete historical memories.
|
|
105
198
|
*
|
|
106
199
|
* @example
|
|
107
200
|
* true
|
|
@@ -138,7 +231,12 @@ export class CreateContextStoreRequestConfigExtractionPolicies extends $dara.Mod
|
|
|
138
231
|
preset?: string;
|
|
139
232
|
/**
|
|
140
233
|
* @remarks
|
|
141
|
-
* The
|
|
234
|
+
* The independent storage rules for this policy. If omitted, the original values are retained. New policies use default values. Repeatedly confirmed memories refresh the validity period by default.
|
|
235
|
+
*/
|
|
236
|
+
storagePolicy?: CreateContextStoreRequestConfigExtractionPoliciesStoragePolicy;
|
|
237
|
+
/**
|
|
238
|
+
* @remarks
|
|
239
|
+
* 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. Maximum length: 64 characters. After default processing, the ID must be unique within the same library. Modifying the name or instructions does not change this ID.
|
|
142
240
|
*
|
|
143
241
|
* @example
|
|
144
242
|
* preferences
|
|
@@ -153,6 +251,7 @@ export class CreateContextStoreRequestConfigExtractionPolicies extends $dara.Mod
|
|
|
153
251
|
model: 'model',
|
|
154
252
|
name: 'name',
|
|
155
253
|
preset: 'preset',
|
|
254
|
+
storagePolicy: 'storagePolicy',
|
|
156
255
|
strategyId: 'strategyId',
|
|
157
256
|
};
|
|
158
257
|
}
|
|
@@ -166,6 +265,7 @@ export class CreateContextStoreRequestConfigExtractionPolicies extends $dara.Mod
|
|
|
166
265
|
model: CreateContextStoreRequestConfigExtractionPoliciesModel,
|
|
167
266
|
name: 'string',
|
|
168
267
|
preset: 'string',
|
|
268
|
+
storagePolicy: CreateContextStoreRequestConfigExtractionPoliciesStoragePolicy,
|
|
169
269
|
strategyId: 'string',
|
|
170
270
|
};
|
|
171
271
|
}
|
|
@@ -180,6 +280,9 @@ export class CreateContextStoreRequestConfigExtractionPolicies extends $dara.Mod
|
|
|
180
280
|
if(this.model && typeof (this.model as any).validate === 'function') {
|
|
181
281
|
(this.model as any).validate();
|
|
182
282
|
}
|
|
283
|
+
if(this.storagePolicy && typeof (this.storagePolicy as any).validate === 'function') {
|
|
284
|
+
(this.storagePolicy as any).validate();
|
|
285
|
+
}
|
|
183
286
|
super.validate();
|
|
184
287
|
}
|
|
185
288
|
|
|
@@ -191,7 +294,7 @@ export class CreateContextStoreRequestConfigExtractionPolicies extends $dara.Mod
|
|
|
191
294
|
export class CreateContextStoreRequestConfigExtractionPolicyModel extends $dara.Model {
|
|
192
295
|
/**
|
|
193
296
|
* @remarks
|
|
194
|
-
* The name of the extraction model. Currently, only qwen3.8-flash is supported
|
|
297
|
+
* The name of the extraction model. Currently, only qwen3.8-flash is supported. Platform internal credentials are used.
|
|
195
298
|
*
|
|
196
299
|
* @example
|
|
197
300
|
* qwen3.8-flash
|
|
@@ -229,7 +332,7 @@ export class CreateContextStoreRequestConfigExtractionPolicy extends $dara.Model
|
|
|
229
332
|
categories?: string[];
|
|
230
333
|
/**
|
|
231
334
|
* @remarks
|
|
232
|
-
* The custom extraction instructions. This parameter is required when preset is set to custom.
|
|
335
|
+
* The custom extraction instructions. This parameter is required when preset is set to custom. Length: 1 to 8,000 characters.
|
|
233
336
|
*
|
|
234
337
|
* @example
|
|
235
338
|
* Extract only user product preferences
|
|
@@ -330,7 +433,7 @@ export class CreateContextStoreRequestConfigScopePolicy extends $dara.Model {
|
|
|
330
433
|
export class CreateContextStoreRequestConfigSourceDatasetCustomFields extends $dara.Model {
|
|
331
434
|
/**
|
|
332
435
|
* @remarks
|
|
333
|
-
* The field
|
|
436
|
+
* The description of the field. This parameter is required when usage is set to extraction-input and is appended to the extraction prompt.
|
|
334
437
|
*
|
|
335
438
|
* @example
|
|
336
439
|
* Customer tier
|
|
@@ -338,7 +441,7 @@ export class CreateContextStoreRequestConfigSourceDatasetCustomFields extends $d
|
|
|
338
441
|
description?: string;
|
|
339
442
|
/**
|
|
340
443
|
* @remarks
|
|
341
|
-
* Specifies whether the field is sensitive.
|
|
444
|
+
* Specifies whether the field is a sensitive field.
|
|
342
445
|
*
|
|
343
446
|
* @example
|
|
344
447
|
* false
|
|
@@ -354,7 +457,7 @@ export class CreateContextStoreRequestConfigSourceDatasetCustomFields extends $d
|
|
|
354
457
|
sourceField?: string;
|
|
355
458
|
/**
|
|
356
459
|
* @remarks
|
|
357
|
-
* The target path
|
|
460
|
+
* The target write path, such as metadata.customerTier.
|
|
358
461
|
*
|
|
359
462
|
* @example
|
|
360
463
|
* metadata.customerTier
|
|
@@ -362,9 +465,7 @@ export class CreateContextStoreRequestConfigSourceDatasetCustomFields extends $d
|
|
|
362
465
|
target?: string;
|
|
363
466
|
/**
|
|
364
467
|
* @remarks
|
|
365
|
-
* The usage of the field. Valid values:
|
|
366
|
-
* - extraction-input: Participates in extraction.
|
|
367
|
-
* - ignore: Ignored.
|
|
468
|
+
* The usage of the field. Valid values: extraction-input (participates in extraction) and ignore (ignored).
|
|
368
469
|
*
|
|
369
470
|
* @example
|
|
370
471
|
* extraction-input
|
|
@@ -402,7 +503,7 @@ export class CreateContextStoreRequestConfigSourceDatasetCustomFields extends $d
|
|
|
402
503
|
export class CreateContextStoreRequestConfigSourceDatasetFilter extends $dara.Model {
|
|
403
504
|
/**
|
|
404
505
|
* @remarks
|
|
405
|
-
* The subset of the
|
|
506
|
+
* The subset of the pipeline where clause, which is pushed down to SQL.
|
|
406
507
|
*
|
|
407
508
|
* @example
|
|
408
509
|
* appId = \\"crm-service\\"
|
|
@@ -432,9 +533,7 @@ export class CreateContextStoreRequestConfigSourceDatasetFilter extends $dara.Mo
|
|
|
432
533
|
export class CreateContextStoreRequestConfigSourceDatasetVersionPolicy extends $dara.Model {
|
|
433
534
|
/**
|
|
434
535
|
* @remarks
|
|
435
|
-
* The consumption mode. Valid values:
|
|
436
|
-
* - follow: Consumes data incrementally based on __dataset_seq.
|
|
437
|
-
* - fixed: Consumes the specified ACTIVE version in full once.
|
|
536
|
+
* The consumption mode. Valid values: follow (incremental consumption based on __dataset_seq) and fixed (full consumption of the specified ACTIVE version once).
|
|
438
537
|
*
|
|
439
538
|
* @example
|
|
440
539
|
* follow
|
|
@@ -497,7 +596,7 @@ export class CreateContextStoreRequestConfigSourceDataset extends $dara.Model {
|
|
|
497
596
|
datasetName?: string;
|
|
498
597
|
/**
|
|
499
598
|
* @remarks
|
|
500
|
-
* The row filter
|
|
599
|
+
* The row filter conditions.
|
|
501
600
|
*/
|
|
502
601
|
filter?: CreateContextStoreRequestConfigSourceDatasetFilter;
|
|
503
602
|
/**
|
|
@@ -510,7 +609,7 @@ export class CreateContextStoreRequestConfigSourceDataset extends $dara.Model {
|
|
|
510
609
|
pollIntervalSeconds?: number;
|
|
511
610
|
/**
|
|
512
611
|
* @remarks
|
|
513
|
-
* The row schema contract
|
|
612
|
+
* The row schema contract of the Dataset. In the current version, this parameter is fixed to MemorySourceV1.
|
|
514
613
|
*
|
|
515
614
|
* @example
|
|
516
615
|
* MemorySourceV1
|
|
@@ -518,7 +617,7 @@ export class CreateContextStoreRequestConfigSourceDataset extends $dara.Model {
|
|
|
518
617
|
schemaContract?: string;
|
|
519
618
|
/**
|
|
520
619
|
* @remarks
|
|
521
|
-
* The version consumption policy
|
|
620
|
+
* The version consumption policy of the Dataset.
|
|
522
621
|
*/
|
|
523
622
|
versionPolicy?: CreateContextStoreRequestConfigSourceDatasetVersionPolicy;
|
|
524
623
|
static names(): { [key: string]: string } {
|
|
@@ -572,7 +671,7 @@ export class CreateContextStoreRequestConfigSourceTrajectoryFilter extends $dara
|
|
|
572
671
|
agentNames?: string[];
|
|
573
672
|
/**
|
|
574
673
|
* @remarks
|
|
575
|
-
* Specifies whether to exclude degraded trajectories. Default value: false
|
|
674
|
+
* Specifies whether to exclude degraded trajectories. Default value: false (degraded trajectories are included).
|
|
576
675
|
*
|
|
577
676
|
* @example
|
|
578
677
|
* false
|
|
@@ -580,7 +679,7 @@ export class CreateContextStoreRequestConfigSourceTrajectoryFilter extends $dara
|
|
|
580
679
|
excludeDegraded?: boolean;
|
|
581
680
|
/**
|
|
582
681
|
* @remarks
|
|
583
|
-
* The minimum number of steps
|
|
682
|
+
* The minimum number of steps, which must be greater than or equal to 0.
|
|
584
683
|
*
|
|
585
684
|
* @example
|
|
586
685
|
* 2
|
|
@@ -700,7 +799,7 @@ export class CreateContextStoreRequestConfigSourceTrajectoryScopeMapping extends
|
|
|
700
799
|
export class CreateContextStoreRequestConfigSourceTrajectory extends $dara.Model {
|
|
701
800
|
/**
|
|
702
801
|
* @remarks
|
|
703
|
-
* The trajectory filter
|
|
802
|
+
* The trajectory filter conditions. Conditions are combined with AND, and elements within a list are combined with OR.
|
|
704
803
|
*/
|
|
705
804
|
filter?: CreateContextStoreRequestConfigSourceTrajectoryFilter;
|
|
706
805
|
/**
|
|
@@ -721,12 +820,12 @@ export class CreateContextStoreRequestConfigSourceTrajectory extends $dara.Model
|
|
|
721
820
|
pollIntervalSeconds?: number;
|
|
722
821
|
/**
|
|
723
822
|
* @remarks
|
|
724
|
-
* The scope field mapping. The value
|
|
823
|
+
* The scope field mapping. The value must be a JSONPath expression. Only the $.a.b and $.a[0] formats are supported.
|
|
725
824
|
*/
|
|
726
825
|
scopeMapping?: CreateContextStoreRequestConfigSourceTrajectoryScopeMapping;
|
|
727
826
|
/**
|
|
728
827
|
* @remarks
|
|
729
|
-
* The start time for trajectory consumption in ISO 8601 UTC format. If
|
|
828
|
+
* The start time for trajectory consumption in ISO 8601 UTC format. If you do not specify this parameter, the creation time is used by default.
|
|
730
829
|
*
|
|
731
830
|
* Use the UTC time format: yyyy-MM-ddTHH:mm:ssZ
|
|
732
831
|
*
|
|
@@ -772,7 +871,7 @@ export class CreateContextStoreRequestConfigSourceTrajectory extends $dara.Model
|
|
|
772
871
|
export class CreateContextStoreRequestConfigSourceVersionPolicy extends $dara.Model {
|
|
773
872
|
/**
|
|
774
873
|
* @remarks
|
|
775
|
-
* The continuous consumption mode.
|
|
874
|
+
* The continuous consumption mode. Set the value to follow.
|
|
776
875
|
*
|
|
777
876
|
* @example
|
|
778
877
|
* follow
|
|
@@ -780,7 +879,7 @@ export class CreateContextStoreRequestConfigSourceVersionPolicy extends $dara.Mo
|
|
|
780
879
|
mode?: string;
|
|
781
880
|
/**
|
|
782
881
|
* @remarks
|
|
783
|
-
* The initial consumed append sequence number. The value
|
|
882
|
+
* The initial consumed append sequence number. The value must be a decimal string of a non-negative 64-bit integer. Default value: 0. The __dataset_seq field is used, and the business timestamp is not used as the consumption checkpoint.
|
|
784
883
|
*
|
|
785
884
|
* @example
|
|
786
885
|
* 0
|
|
@@ -812,7 +911,7 @@ export class CreateContextStoreRequestConfigSourceVersionPolicy extends $dara.Mo
|
|
|
812
911
|
export class CreateContextStoreRequestConfigSource extends $dara.Model {
|
|
813
912
|
/**
|
|
814
913
|
* @remarks
|
|
815
|
-
* 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
|
|
914
|
+
* 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 version. If specified, the value must be the same as the AgentSpace in the path. Otherwise, a 400 parameter error is returned. This parameter cannot be modified after creation.
|
|
816
915
|
*
|
|
817
916
|
* @example
|
|
818
917
|
* my-agent-space
|
|
@@ -820,7 +919,7 @@ export class CreateContextStoreRequestConfigSource extends $dara.Model {
|
|
|
820
919
|
agentSpace?: string;
|
|
821
920
|
/**
|
|
822
921
|
* @remarks
|
|
823
|
-
* The DatasetBinding v1
|
|
922
|
+
* The DatasetBinding v1 shared with optimization tasks, which includes version, selection (all/window and structured filters), and customFields. This parameter is validated by the server and does not accept SQL or column mappings.
|
|
824
923
|
*
|
|
825
924
|
* @example
|
|
826
925
|
* {"version":1,"selection":{"mode":"all"}}
|
|
@@ -828,12 +927,12 @@ export class CreateContextStoreRequestConfigSource extends $dara.Model {
|
|
|
828
927
|
binding?: { [key: string]: any };
|
|
829
928
|
/**
|
|
830
929
|
* @remarks
|
|
831
|
-
* The Dataset
|
|
930
|
+
* The Dataset datasource config. This parameter is required when source.type is set to dataset.
|
|
832
931
|
*/
|
|
833
932
|
dataset?: CreateContextStoreRequestConfigSourceDataset;
|
|
834
933
|
/**
|
|
835
934
|
* @remarks
|
|
836
|
-
* The
|
|
935
|
+
* The name of the experience Dataset source, 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.
|
|
837
936
|
*
|
|
838
937
|
* @example
|
|
839
938
|
* reviewed_trajectories
|
|
@@ -841,7 +940,7 @@ export class CreateContextStoreRequestConfigSource extends $dara.Model {
|
|
|
841
940
|
datasetName?: string;
|
|
842
941
|
/**
|
|
843
942
|
* @remarks
|
|
844
|
-
* The input format of the Dataset. For experience library Dataset sources, only atif is supported, and the fixed columns are
|
|
943
|
+
* The input format of the Dataset. For experience library Dataset sources, only atif is supported, and the fixed columns are the same as those for optimization tasks.
|
|
845
944
|
*
|
|
846
945
|
* @example
|
|
847
946
|
* atif
|
|
@@ -849,7 +948,7 @@ export class CreateContextStoreRequestConfigSource extends $dara.Model {
|
|
|
849
948
|
format?: string;
|
|
850
949
|
/**
|
|
851
950
|
* @remarks
|
|
852
|
-
* The maximum number of
|
|
951
|
+
* 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.
|
|
853
952
|
*
|
|
854
953
|
* @example
|
|
855
954
|
* 1000
|
|
@@ -857,7 +956,7 @@ export class CreateContextStoreRequestConfigSource extends $dara.Model {
|
|
|
857
956
|
maxRecords?: number;
|
|
858
957
|
/**
|
|
859
958
|
* @remarks
|
|
860
|
-
* The start time for data backfill in ISO 8601 UTC format. If
|
|
959
|
+
* The start time for data backfill in ISO 8601 UTC format. If not specified, the backfill starts from the current time.
|
|
861
960
|
*
|
|
862
961
|
* Use the UTC time format: yyyy-MM-ddTHH:mm:ssZ
|
|
863
962
|
*
|
|
@@ -867,12 +966,12 @@ export class CreateContextStoreRequestConfigSource extends $dara.Model {
|
|
|
867
966
|
startTime?: string;
|
|
868
967
|
/**
|
|
869
968
|
* @remarks
|
|
870
|
-
* The trajectory
|
|
969
|
+
* The trajectory datasource config. This parameter is required when source.type is set to trajectory.
|
|
871
970
|
*/
|
|
872
971
|
trajectory?: CreateContextStoreRequestConfigSourceTrajectory;
|
|
873
972
|
/**
|
|
874
973
|
* @remarks
|
|
875
|
-
* The data source type for the memory type. Valid values: trajectory
|
|
974
|
+
* The data source type for the memory type. Valid values: trajectory and dataset. If this parameter is not specified, manual is used, which means only AddContexts can write data. This parameter cannot be modified after creation.
|
|
876
975
|
*
|
|
877
976
|
* @example
|
|
878
977
|
* trajectory
|
|
@@ -880,7 +979,7 @@ export class CreateContextStoreRequestConfigSource extends $dara.Model {
|
|
|
880
979
|
type?: string;
|
|
881
980
|
/**
|
|
882
981
|
* @remarks
|
|
883
|
-
* The continuous consumption configuration for the native experience
|
|
982
|
+
* The continuous consumption configuration for the Dataset of the native experience library. Default value: manual. If the value is follow, only binding.selection.mode=all is allowed, and data is consumed based on the append sequence number. This parameter cannot be modified after creation.
|
|
884
983
|
*/
|
|
885
984
|
versionPolicy?: CreateContextStoreRequestConfigSourceVersionPolicy;
|
|
886
985
|
static names(): { [key: string]: string } {
|
|
@@ -937,7 +1036,7 @@ export class CreateContextStoreRequestConfigSource extends $dara.Model {
|
|
|
937
1036
|
export class CreateContextStoreRequestConfigStoragePolicy extends $dara.Model {
|
|
938
1037
|
/**
|
|
939
1038
|
* @remarks
|
|
940
|
-
* The allowed storage actions. Default value: all
|
|
1039
|
+
* The allowed storage actions. Default value: all actions (ADD, UPDATE, MERGE, and DELETE).
|
|
941
1040
|
*
|
|
942
1041
|
* @example
|
|
943
1042
|
* ["ADD","UPDATE","MERGE","DELETE"]
|
|
@@ -953,7 +1052,7 @@ export class CreateContextStoreRequestConfigStoragePolicy extends $dara.Model {
|
|
|
953
1052
|
dedupe?: boolean;
|
|
954
1053
|
/**
|
|
955
1054
|
* @remarks
|
|
956
|
-
* Specifies whether to enable
|
|
1055
|
+
* Specifies whether to enable human edit protection. Default value: true. When enabled, automatic extraction does not overwrite manually modified memories.
|
|
957
1056
|
*
|
|
958
1057
|
* @example
|
|
959
1058
|
* true
|
|
@@ -961,7 +1060,7 @@ export class CreateContextStoreRequestConfigStoragePolicy extends $dara.Model {
|
|
|
961
1060
|
humanEditProtection?: boolean;
|
|
962
1061
|
/**
|
|
963
1062
|
* @remarks
|
|
964
|
-
* The merge key for upsert operations.
|
|
1063
|
+
* The merge key for upsert operations. Valid values: factKey, semantic, and both. Default value: semantic.
|
|
965
1064
|
*
|
|
966
1065
|
* @example
|
|
967
1066
|
* semantic
|
|
@@ -969,7 +1068,7 @@ export class CreateContextStoreRequestConfigStoragePolicy extends $dara.Model {
|
|
|
969
1068
|
mergeKey?: string;
|
|
970
1069
|
/**
|
|
971
1070
|
* @remarks
|
|
972
|
-
* The storage mode.
|
|
1071
|
+
* The storage mode. Valid values: event (event append) and upsert (merge update). Default value: upsert.
|
|
973
1072
|
*
|
|
974
1073
|
* @example
|
|
975
1074
|
* upsert
|
|
@@ -985,7 +1084,7 @@ export class CreateContextStoreRequestConfigStoragePolicy extends $dara.Model {
|
|
|
985
1084
|
similarityThreshold?: number;
|
|
986
1085
|
/**
|
|
987
1086
|
* @remarks
|
|
988
|
-
* The number of days before
|
|
1087
|
+
* The number of days before memories expire. A value of 0 indicates that memories do not expire.
|
|
989
1088
|
*
|
|
990
1089
|
* @example
|
|
991
1090
|
* 0
|
|
@@ -1035,7 +1134,7 @@ export class CreateContextStoreRequestConfig extends $dara.Model {
|
|
|
1035
1134
|
audit?: CreateContextStoreRequestConfigAudit;
|
|
1036
1135
|
/**
|
|
1037
1136
|
* @remarks
|
|
1038
|
-
* The extraction policies. You can
|
|
1137
|
+
* The extraction policies. You can configure 1 to 10 policies. Compatible fields passed back as-is during updates are ignored. strategyVersion indicates the snapshot version of the entire library configuration.
|
|
1039
1138
|
*/
|
|
1040
1139
|
extractionPolicies?: CreateContextStoreRequestConfigExtractionPolicies[];
|
|
1041
1140
|
/**
|
|
@@ -1045,7 +1144,7 @@ export class CreateContextStoreRequestConfig extends $dara.Model {
|
|
|
1045
1144
|
extractionPolicy?: CreateContextStoreRequestConfigExtractionPolicy;
|
|
1046
1145
|
/**
|
|
1047
1146
|
* @remarks
|
|
1048
|
-
* The metadata field mapping
|
|
1147
|
+
* The metadata field mapping, where the key is the business field and the value is the storage field.
|
|
1049
1148
|
*
|
|
1050
1149
|
* @example
|
|
1051
1150
|
* {"userId":"user_id","sessionId":"session_id"}
|
|
@@ -1066,7 +1165,7 @@ export class CreateContextStoreRequestConfig extends $dara.Model {
|
|
|
1066
1165
|
scopePolicy?: CreateContextStoreRequestConfigScopePolicy;
|
|
1067
1166
|
/**
|
|
1068
1167
|
* @remarks
|
|
1069
|
-
* 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
|
|
1168
|
+
* 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 find the bound CMS workspace and project or logstore, and then filters by serviceName. This parameter cannot be modified after creation.
|
|
1070
1169
|
*
|
|
1071
1170
|
* @example
|
|
1072
1171
|
* ["order-service","payment-service"]
|
|
@@ -1074,7 +1173,7 @@ export class CreateContextStoreRequestConfig extends $dara.Model {
|
|
|
1074
1173
|
serviceNames?: string[];
|
|
1075
1174
|
/**
|
|
1076
1175
|
* @remarks
|
|
1077
|
-
* The
|
|
1176
|
+
* The datasource config, which serves only as the root identity for the data source. This block is optional.
|
|
1078
1177
|
*/
|
|
1079
1178
|
source?: CreateContextStoreRequestConfigSource;
|
|
1080
1179
|
/**
|
|
@@ -1161,7 +1260,7 @@ export class CreateContextStoreRequest extends $dara.Model {
|
|
|
1161
1260
|
contextStoreName?: string;
|
|
1162
1261
|
/**
|
|
1163
1262
|
* @remarks
|
|
1164
|
-
* The type of the context store. Valid values include experience
|
|
1263
|
+
* The type of the context store. Valid values include experience and memory.
|
|
1165
1264
|
*
|
|
1166
1265
|
* This parameter is required.
|
|
1167
1266
|
*
|
|
@@ -1179,7 +1278,7 @@ export class CreateContextStoreRequest extends $dara.Model {
|
|
|
1179
1278
|
description?: string;
|
|
1180
1279
|
/**
|
|
1181
1280
|
* @remarks
|
|
1182
|
-
* The
|
|
1281
|
+
* The client token. It is a unique string generated by the client to ensure the idempotency of the create operation.
|
|
1183
1282
|
*
|
|
1184
1283
|
* @example
|
|
1185
1284
|
* a1b2c3d4-1234-5678-90ab-cdef12345678
|
|
@@ -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
|
|
16
|
+
* The version number of the effective strategy for the memory type.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* 1
|