@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.
Files changed (38) hide show
  1. package/dist/client.d.ts +4 -4
  2. package/dist/client.js +7 -4
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateContextStoreRequest.d.ts +190 -42
  5. package/dist/models/CreateContextStoreRequest.js +106 -1
  6. package/dist/models/CreateContextStoreRequest.js.map +1 -1
  7. package/dist/models/CreateContextStoreResponseBody.d.ts +2 -2
  8. package/dist/models/GetAgentSpaceResponseBody.d.ts +8 -1
  9. package/dist/models/GetAgentSpaceResponseBody.js.map +1 -1
  10. package/dist/models/GetContextStoreResponseBody.d.ts +211 -66
  11. package/dist/models/GetContextStoreResponseBody.js +111 -1
  12. package/dist/models/GetContextStoreResponseBody.js.map +1 -1
  13. package/dist/models/ListContextStoresResponseBody.d.ts +1 -0
  14. package/dist/models/ListContextStoresResponseBody.js +5 -0
  15. package/dist/models/ListContextStoresResponseBody.js.map +1 -1
  16. package/dist/models/SearchContextRequest.d.ts +13 -5
  17. package/dist/models/SearchContextRequest.js +5 -0
  18. package/dist/models/SearchContextRequest.js.map +1 -1
  19. package/dist/models/SearchContextResponseBody.d.ts +3 -3
  20. package/dist/models/UpdateContextStoreRequest.d.ts +177 -31
  21. package/dist/models/UpdateContextStoreRequest.js +106 -1
  22. package/dist/models/UpdateContextStoreRequest.js.map +1 -1
  23. package/dist/models/UpdateContextStoreResponseBody.d.ts +2 -2
  24. package/dist/models/model.d.ts +9 -0
  25. package/dist/models/model.js +77 -59
  26. package/dist/models/model.js.map +1 -1
  27. package/package.json +1 -1
  28. package/src/client.ts +8 -4
  29. package/src/models/CreateContextStoreRequest.ts +268 -42
  30. package/src/models/CreateContextStoreResponseBody.ts +2 -2
  31. package/src/models/GetAgentSpaceResponseBody.ts +8 -1
  32. package/src/models/GetContextStoreResponseBody.ts +294 -66
  33. package/src/models/ListContextStoresResponseBody.ts +6 -0
  34. package/src/models/SearchContextRequest.ts +18 -5
  35. package/src/models/SearchContextResponseBody.ts +3 -3
  36. package/src/models/UpdateContextStoreRequest.ts +255 -31
  37. package/src/models/UpdateContextStoreResponseBody.ts +2 -2
  38. package/src/models/model.ts +9 -0
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class GetContextStoreResponseBodyConfigAudit extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * Specifies whether to write item events for candidates dropped during retrieval. Default value: false.
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 GetContextStoreResponseBodyConfigAudit extends $dara.Model {
13
13
  droppedCandidates?: boolean;
14
14
  /**
15
15
  * @remarks
16
- * The recording mode for retrieval queries. Valid values: raw (plaintext) and hash (HMAC only). Default value: raw.
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
@@ -52,10 +52,226 @@ export class GetContextStoreResponseBodyConfigAudit extends $dara.Model {
52
52
  }
53
53
  }
54
54
 
55
+ export class GetContextStoreResponseBodyConfigExtractionPoliciesModel extends $dara.Model {
56
+ /**
57
+ * @remarks
58
+ * The name of the extraction model. Currently, only qwen3.8-flash is supported. Internal platform credentials are used.
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 GetContextStoreResponseBodyConfigExtractionPoliciesStoragePolicy 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 GetContextStoreResponseBodyConfigExtractionPolicies 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 apply this policy to 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?: GetContextStoreResponseBodyConfigExtractionPoliciesModel;
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?: GetContextStoreResponseBodyConfigExtractionPoliciesStoragePolicy;
212
+ /**
213
+ * @remarks
214
+ * The stable ID of the extraction policy. The ID must start with a letter and can contain only letters, digits, underscores, and hyphens. It can be up to 64 characters in length. The ID must be unique within the same context library. Modifying the name or instructions does not change this ID.
215
+ *
216
+ * This parameter is required.
217
+ *
218
+ * @example
219
+ * preferences
220
+ */
221
+ strategyId?: string;
222
+ static names(): { [key: string]: string } {
223
+ return {
224
+ categories: 'categories',
225
+ customInstructions: 'customInstructions',
226
+ enabled: 'enabled',
227
+ excludeRules: 'excludeRules',
228
+ model: 'model',
229
+ name: 'name',
230
+ preset: 'preset',
231
+ storagePolicy: 'storagePolicy',
232
+ strategyId: 'strategyId',
233
+ };
234
+ }
235
+
236
+ static types(): { [key: string]: any } {
237
+ return {
238
+ categories: { 'type': 'array', 'itemType': 'string' },
239
+ customInstructions: 'string',
240
+ enabled: 'boolean',
241
+ excludeRules: { 'type': 'array', 'itemType': 'string' },
242
+ model: GetContextStoreResponseBodyConfigExtractionPoliciesModel,
243
+ name: 'string',
244
+ preset: 'string',
245
+ storagePolicy: GetContextStoreResponseBodyConfigExtractionPoliciesStoragePolicy,
246
+ strategyId: 'string',
247
+ };
248
+ }
249
+
250
+ validate() {
251
+ if(Array.isArray(this.categories)) {
252
+ $dara.Model.validateArray(this.categories);
253
+ }
254
+ if(Array.isArray(this.excludeRules)) {
255
+ $dara.Model.validateArray(this.excludeRules);
256
+ }
257
+ if(this.model && typeof (this.model as any).validate === 'function') {
258
+ (this.model as any).validate();
259
+ }
260
+ if(this.storagePolicy && typeof (this.storagePolicy as any).validate === 'function') {
261
+ (this.storagePolicy as any).validate();
262
+ }
263
+ super.validate();
264
+ }
265
+
266
+ constructor(map?: { [key: string]: any }) {
267
+ super(map);
268
+ }
269
+ }
270
+
55
271
  export class GetContextStoreResponseBodyConfigExtractionPolicyModel extends $dara.Model {
56
272
  /**
57
273
  * @remarks
58
- * The name of the extraction model. Currently, only qwen3.8-flash is supported, which uses internal platform credentials.
274
+ * The name of the extraction model. Currently, only qwen3.8-flash is supported. Internal platform credentials are used.
59
275
  *
60
276
  * @example
61
277
  * qwen3.8-flash
@@ -93,7 +309,7 @@ export class GetContextStoreResponseBodyConfigExtractionPolicy extends $dara.Mod
93
309
  categories?: string[];
94
310
  /**
95
311
  * @remarks
96
- * The custom extraction instructions. This parameter is required when preset is set to custom. Length: 1 to 8,000 characters.
312
+ * The custom extraction instructions. This parameter is required when preset is set to custom. The length must be 1 to 8,000 characters.
97
313
  *
98
314
  * @example
99
315
  * Extract only user product preferences
@@ -217,7 +433,7 @@ export class GetContextStoreResponseBodyConfigObservability extends $dara.Model
217
433
  eventsLogstore?: string;
218
434
  /**
219
435
  * @remarks
220
- * The SLS project where both resources are located, which is the project bound to the AgentSpace.
436
+ * The Simple Log Service (SLS) project to which both belong, which is bound to the AgentSpace.
221
437
  *
222
438
  * @example
223
439
  * agentloop-xxx
@@ -251,7 +467,7 @@ export class GetContextStoreResponseBodyConfigObservability extends $dara.Model
251
467
  export class GetContextStoreResponseBodyConfigOutputDataset extends $dara.Model {
252
468
  /**
253
469
  * @remarks
254
- * The AgentSpace where the dataset is located.
470
+ * The AgentSpace to which the dataset belongs.
255
471
  *
256
472
  * @example
257
473
  * my-agent-space
@@ -311,7 +527,7 @@ export class GetContextStoreResponseBodyConfigOutputDataset extends $dara.Model
311
527
  export class GetContextStoreResponseBodyConfigScopePolicy extends $dara.Model {
312
528
  /**
313
529
  * @remarks
314
- * At least one of the specified scope fields must be non-empty. Valid element values: userId, agentId, appId, and runId.
530
+ * Specifies that at least one of the scope fields must be non-empty. Valid values: userId, agentId, appId, and runId.
315
531
  *
316
532
  * @example
317
533
  * ["userId"]
@@ -352,7 +568,7 @@ export class GetContextStoreResponseBodyConfigSourceDatasetCustomFields extends
352
568
  description?: string;
353
569
  /**
354
570
  * @remarks
355
- * Specifies whether the field is sensitive.
571
+ * Specifies whether the field is a sensitive field.
356
572
  *
357
573
  * @example
358
574
  * false
@@ -368,7 +584,7 @@ export class GetContextStoreResponseBodyConfigSourceDatasetCustomFields extends
368
584
  sourceField?: string;
369
585
  /**
370
586
  * @remarks
371
- * The target path for writing data, such as metadata.customerTier.
587
+ * The target path for writing, such as metadata.customerTier.
372
588
  *
373
589
  * @example
374
590
  * metadata.customerTier
@@ -376,9 +592,7 @@ export class GetContextStoreResponseBodyConfigSourceDatasetCustomFields extends
376
592
  target?: string;
377
593
  /**
378
594
  * @remarks
379
- * The usage of the field. Valid values:
380
- * - extraction-input: Participates in extraction.
381
- * - ignore: Ignored.
595
+ * The usage of the field. Valid values: extraction-input (participates in extraction) and ignore (ignored).
382
596
  *
383
597
  * @example
384
598
  * extraction-input
@@ -416,7 +630,7 @@ export class GetContextStoreResponseBodyConfigSourceDatasetCustomFields extends
416
630
  export class GetContextStoreResponseBodyConfigSourceDatasetFilter extends $dara.Model {
417
631
  /**
418
632
  * @remarks
419
- * The subset of the Pipeline where clause, which is pushed down to SQL.
633
+ * The subset of the pipeline where clause, which is pushed down to SQL.
420
634
  *
421
635
  * @example
422
636
  * appId = \\"crm-service\\"
@@ -446,9 +660,7 @@ export class GetContextStoreResponseBodyConfigSourceDatasetFilter extends $dara.
446
660
  export class GetContextStoreResponseBodyConfigSourceDatasetVersionPolicy extends $dara.Model {
447
661
  /**
448
662
  * @remarks
449
- * The consumption mode. Valid values:
450
- * - follow: Consumes data incrementally based on __dataset_seq.
451
- * - fixed: Consumes the specified ACTIVE version in full at once.
663
+ * The consumption mode. Valid values: follow (incremental consumption based on __dataset_seq) and fixed (full consumption of the specified ACTIVE version at once).
452
664
  *
453
665
  * @example
454
666
  * follow
@@ -464,7 +676,7 @@ export class GetContextStoreResponseBodyConfigSourceDatasetVersionPolicy extends
464
676
  startSeq?: number;
465
677
  /**
466
678
  * @remarks
467
- * The Dataset version specified for the fixed mode.
679
+ * The dataset version specified for the fixed mode.
468
680
  *
469
681
  * @example
470
682
  * v3
@@ -503,7 +715,7 @@ export class GetContextStoreResponseBodyConfigSourceDataset extends $dara.Model
503
715
  customFields?: GetContextStoreResponseBodyConfigSourceDatasetCustomFields[];
504
716
  /**
505
717
  * @remarks
506
- * The name of the Dataset in the same AgentSpace. This parameter cannot be modified after creation.
718
+ * The name of the dataset in the same AgentSpace. This parameter cannot be modified after creation.
507
719
  *
508
720
  * @example
509
721
  * trajectory-with-crm-profile
@@ -511,7 +723,7 @@ export class GetContextStoreResponseBodyConfigSourceDataset extends $dara.Model
511
723
  datasetName?: string;
512
724
  /**
513
725
  * @remarks
514
- * The row filter conditions.
726
+ * The row filter condition.
515
727
  */
516
728
  filter?: GetContextStoreResponseBodyConfigSourceDatasetFilter;
517
729
  /**
@@ -524,7 +736,7 @@ export class GetContextStoreResponseBodyConfigSourceDataset extends $dara.Model
524
736
  pollIntervalSeconds?: number;
525
737
  /**
526
738
  * @remarks
527
- * The row schema contract of the Dataset. The value is fixed to MemorySourceV1 in the current phase.
739
+ * The row schema contract of the dataset. In the current phase, this parameter is fixed to MemorySourceV1.
528
740
  *
529
741
  * @example
530
742
  * MemorySourceV1
@@ -532,7 +744,7 @@ export class GetContextStoreResponseBodyConfigSourceDataset extends $dara.Model
532
744
  schemaContract?: string;
533
745
  /**
534
746
  * @remarks
535
- * The version consumption policy of the Dataset.
747
+ * The version consumption policy of the dataset.
536
748
  */
537
749
  versionPolicy?: GetContextStoreResponseBodyConfigSourceDatasetVersionPolicy;
538
750
  static names(): { [key: string]: string } {
@@ -578,7 +790,7 @@ export class GetContextStoreResponseBodyConfigSourceDataset extends $dara.Model
578
790
  export class GetContextStoreResponseBodyConfigSourceTrajectoryFilter extends $dara.Model {
579
791
  /**
580
792
  * @remarks
581
- * The list of agent names. An explicitly empty list returns a 400 error.
793
+ * The list of agent names. An explicit empty list returns a 400 error.
582
794
  *
583
795
  * @example
584
796
  * ["sales-copilot"]
@@ -594,7 +806,7 @@ export class GetContextStoreResponseBodyConfigSourceTrajectoryFilter extends $da
594
806
  excludeDegraded?: boolean;
595
807
  /**
596
808
  * @remarks
597
- * The minimum number of steps. The value must be greater than or equal to 0.
809
+ * The minimum step count, which must be greater than or equal to 0.
598
810
  *
599
811
  * @example
600
812
  * 2
@@ -602,7 +814,7 @@ export class GetContextStoreResponseBodyConfigSourceTrajectoryFilter extends $da
602
814
  minStepCount?: number;
603
815
  /**
604
816
  * @remarks
605
- * The native Simple Log Service (SLS) query statement, which is combined with the preceding conditions using AND.
817
+ * The native Simple Log Service (SLS) query statement. This statement is combined with the preceding conditions using the AND operator.
606
818
  *
607
819
  * @example
608
820
  * tool_names:"search_order"
@@ -610,7 +822,7 @@ export class GetContextStoreResponseBodyConfigSourceTrajectoryFilter extends $da
610
822
  query?: string;
611
823
  /**
612
824
  * @remarks
613
- * The list of service names. A single trailing asterisk (*) is supported. An explicitly empty list returns a 400 error.
825
+ * The list of service names. A single trailing asterisk (*) is supported. An explicit empty list returns a 400 error.
614
826
  *
615
827
  * @example
616
828
  * ["crm-service","app-*"]
@@ -714,7 +926,7 @@ export class GetContextStoreResponseBodyConfigSourceTrajectoryScopeMapping exten
714
926
  export class GetContextStoreResponseBodyConfigSourceTrajectory extends $dara.Model {
715
927
  /**
716
928
  * @remarks
717
- * The trajectory filter conditions. Conditions are combined with AND, while items within a list are combined with OR.
929
+ * The trajectory filter condition. Multiple conditions are combined with AND, and conditions within a list are combined with OR.
718
930
  */
719
931
  filter?: GetContextStoreResponseBodyConfigSourceTrajectoryFilter;
720
932
  /**
@@ -786,7 +998,7 @@ export class GetContextStoreResponseBodyConfigSourceTrajectory extends $dara.Mod
786
998
  export class GetContextStoreResponseBodyConfigSourceVersionPolicy extends $dara.Model {
787
999
  /**
788
1000
  * @remarks
789
- * The continuous consumption mode, which is fixed to follow.
1001
+ * The continuous consumption mode. The value is fixed to follow.
790
1002
  *
791
1003
  * @example
792
1004
  * follow
@@ -794,7 +1006,7 @@ export class GetContextStoreResponseBodyConfigSourceVersionPolicy extends $dara.
794
1006
  mode?: string;
795
1007
  /**
796
1008
  * @remarks
797
- * The initial consumed append sequence, which is a decimal string of a non-negative int64. The default is 0. It uses __dataset_seq. Business timestamps are not used as consumption checkpoints.
1009
+ * 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.
798
1010
  *
799
1011
  * @example
800
1012
  * 0
@@ -826,7 +1038,7 @@ export class GetContextStoreResponseBodyConfigSourceVersionPolicy extends $dara.
826
1038
  export class GetContextStoreResponseBodyConfigSource extends $dara.Model {
827
1039
  /**
828
1040
  * @remarks
829
- * The AgentSpace where the trace data source resides. It must be the same as the AgentSpace specified during creation.
1041
+ * The AgentSpace to which the trace data source belongs, which is the same as the AgentSpace to which it belonged when it was created.
830
1042
  *
831
1043
  * @example
832
1044
  * my-agent-space
@@ -842,12 +1054,12 @@ export class GetContextStoreResponseBodyConfigSource extends $dara.Model {
842
1054
  binding?: { [key: string]: any };
843
1055
  /**
844
1056
  * @remarks
845
- * The Dataset datasource config for the memory type. This parameter is required when the type is memory and source.type is dataset.
1057
+ * The data source configuration for the memory type dataset. This parameter is required when the type is memory and source.type is dataset.
846
1058
  */
847
1059
  dataset?: GetContextStoreResponseBodyConfigSourceDataset;
848
1060
  /**
849
1061
  * @remarks
850
- * The name of the source Dataset for the experience type in the current AgentSpace.
1062
+ * The name of the source dataset for the experience type in the current AgentSpace.
851
1063
  *
852
1064
  * @example
853
1065
  * reviewed_trajectories
@@ -855,7 +1067,7 @@ export class GetContextStoreResponseBodyConfigSource extends $dara.Model {
855
1067
  datasetName?: string;
856
1068
  /**
857
1069
  * @remarks
858
- * The input format of the Dataset. For Datasets from the experience library, the value is atif.
1070
+ * The input format of the dataset. For the experience base dataset, the source is atif.
859
1071
  *
860
1072
  * @example
861
1073
  * atif
@@ -863,7 +1075,7 @@ export class GetContextStoreResponseBodyConfigSource extends $dara.Model {
863
1075
  format?: string;
864
1076
  /**
865
1077
  * @remarks
866
- * The maximum number of records to read from the Dataset at a time. Valid values: 1 to 1000.
1078
+ * The maximum number of records to read from the dataset at a time. Valid values: 1 to 1000.
867
1079
  *
868
1080
  * @example
869
1081
  * 1000
@@ -881,12 +1093,12 @@ export class GetContextStoreResponseBodyConfigSource extends $dara.Model {
881
1093
  startTime?: string;
882
1094
  /**
883
1095
  * @remarks
884
- * The trajectory datasource config for the memory type. This parameter is required when the type is memory and source.type is trajectory.
1096
+ * The data source configuration for the memory type trajectory. This parameter is required when the type is memory and source.type is trajectory.
885
1097
  */
886
1098
  trajectory?: GetContextStoreResponseBodyConfigSourceTrajectory;
887
1099
  /**
888
1100
  * @remarks
889
- * The source type, which can be trajectory or dataset. For experience, if not specified, it inherits the trajectory configuration. For Dataset, it uses the datasetName, format, and binding at this level. The default is manual. If versionPolicy.mode is follow, it continuously processes and automatically applies changes to this experience store. For memory, if not specified, it indicates manual, meaning only AddContexts writes data. Otherwise, it uses the sub-configuration of the trajectory or dataset with the same name. This property cannot be modified after creation.
1101
+ * The source type, which can be trajectory or dataset. For experience, if not specified, the trajectory configuration is used. For Dataset, the datasetName, format, and binding at the current level are used. The default mode is manual. If versionPolicy.mode is set to follow, continuous processing is performed and automatically applied to the experience library. For memory, if not specified, the mode is manual (only written by AddContexts). Otherwise, the trajectory or dataset sub-configuration with the same name is used. This parameter cannot be modified after creation.
890
1102
  *
891
1103
  * @example
892
1104
  * dataset
@@ -894,7 +1106,7 @@ export class GetContextStoreResponseBodyConfigSource extends $dara.Model {
894
1106
  type?: string;
895
1107
  /**
896
1108
  * @remarks
897
- * The continuous consumption configuration for the native experience store Dataset. The default is manual. The follow mode only allows binding.selection.mode=all and consumes by append sequence. This cannot be changed after creation.
1109
+ * The continuous consumption configuration for the native experience library Dataset. The default mode is manual. The follow mode only allows binding.selection.mode to be set to all, and consumes data by append sequence number. This parameter cannot be modified after creation.
898
1110
  */
899
1111
  versionPolicy?: GetContextStoreResponseBodyConfigSourceVersionPolicy;
900
1112
  static names(): { [key: string]: string } {
@@ -951,25 +1163,25 @@ export class GetContextStoreResponseBodyConfigSource extends $dara.Model {
951
1163
  export class GetContextStoreResponseBodyConfigSourceStatus extends $dara.Model {
952
1164
  /**
953
1165
  * @remarks
954
- * The processing progress. For memory trajectory, it includes processTimeNs and watermarkMs. For dataset, it includes seq. For manual, it is empty. For experience Dataset follow mode, seq uses an exact int64 decimal string.
1166
+ * The processing progress. For memory trajectory, the format is {processTimeNs, watermarkMs}. For dataset, the format is {seq}. For manual, the format is {}. For experience Dataset follow, the seq field uses an exact int64 decimal string.
955
1167
  */
956
1168
  checkpoint?: { [key: string]: any };
957
1169
  /**
958
1170
  * @remarks
959
- * The current scheduled sequence window for experience Dataset follow mode, including after, until, and runId. All sequences are decimal strings. Failures do not advance the submitted checkpoint.
1171
+ * The current reserved sequence window for experience Dataset follow, in the format of {after, until, runId}. All sequence numbers are decimal strings. If a failure occurs, the submitted checkpoint is not advanced.
960
1172
  */
961
1173
  currentWindow?: { [key: string]: string };
962
1174
  /**
963
1175
  * @remarks
964
- * The desensitized latest error message. It is empty when the status is normal.
1176
+ * The last desensitized error message. This field is empty when the status is normal.
965
1177
  *
966
1178
  * @example
967
- * Timeout reading the data source
1179
+ * Data source read timeout
968
1180
  */
969
1181
  lastError?: string;
970
1182
  /**
971
1183
  * @remarks
972
- * The run ID of the last successful automatic application to the native experience store. This is for audit purposes only.
1184
+ * The run ID of the last successful automatic application to the native experience library. This field is for audit purposes only.
973
1185
  *
974
1186
  * @example
975
1187
  * opr-example
@@ -985,7 +1197,7 @@ export class GetContextStoreResponseBodyConfigSourceStatus extends $dara.Model {
985
1197
  lastWindowAt?: string;
986
1198
  /**
987
1199
  * @remarks
988
- * The consecutive retry count.
1200
+ * The number of consecutive retries.
989
1201
  *
990
1202
  * @example
991
1203
  * 0
@@ -993,7 +1205,7 @@ export class GetContextStoreResponseBodyConfigSourceStatus extends $dara.Model {
993
1205
  retryCount?: number;
994
1206
  /**
995
1207
  * @remarks
996
- * The data source status. Valid values: Validating, Ready, Running, Retrying, Paused, SourceSchemaChanged, and Failed.
1208
+ * The state of the data source. Valid values: Validating, Ready, Running, Retrying, Paused, SourceSchemaChanged, and Failed.
997
1209
  *
998
1210
  * @example
999
1211
  * Running
@@ -1041,7 +1253,7 @@ export class GetContextStoreResponseBodyConfigSourceStatus extends $dara.Model {
1041
1253
  export class GetContextStoreResponseBodyConfigStoragePolicy extends $dara.Model {
1042
1254
  /**
1043
1255
  * @remarks
1044
- * The allowed storage actions. The default is all: ADD, UPDATE, MERGE, and DELETE.
1256
+ * The allowed storage actions. Default value: all actions. Valid values: ADD, UPDATE, MERGE, and DELETE.
1045
1257
  *
1046
1258
  * @example
1047
1259
  * ["ADD","UPDATE","MERGE","DELETE"]
@@ -1049,7 +1261,7 @@ export class GetContextStoreResponseBodyConfigStoragePolicy extends $dara.Model
1049
1261
  allowedActions?: string[];
1050
1262
  /**
1051
1263
  * @remarks
1052
- * Specifies whether to deduplicate in event mode. The default is true.
1264
+ * Specifies whether to enable deduplication in event mode. Default value: true.
1053
1265
  *
1054
1266
  * @example
1055
1267
  * true
@@ -1057,7 +1269,7 @@ export class GetContextStoreResponseBodyConfigStoragePolicy extends $dara.Model
1057
1269
  dedupe?: boolean;
1058
1270
  /**
1059
1271
  * @remarks
1060
- * The human edit protection. The default is true. When enabled, automatic extraction does not overwrite manually modified memories.
1272
+ * Specifies whether to enable human edit protection. Default value: true. When enabled, automatic extraction does not overwrite manually modified memories.
1061
1273
  *
1062
1274
  * @example
1063
1275
  * true
@@ -1065,7 +1277,7 @@ export class GetContextStoreResponseBodyConfigStoragePolicy extends $dara.Model
1065
1277
  humanEditProtection?: boolean;
1066
1278
  /**
1067
1279
  * @remarks
1068
- * The upsert merge key. Valid values: factKey, semantic, and both. The default is semantic.
1280
+ * The merge key for upsert operations. Default value: semantic. Valid values: factKey, semantic, and both.
1069
1281
  *
1070
1282
  * @example
1071
1283
  * semantic
@@ -1073,7 +1285,7 @@ export class GetContextStoreResponseBodyConfigStoragePolicy extends $dara.Model
1073
1285
  mergeKey?: string;
1074
1286
  /**
1075
1287
  * @remarks
1076
- * The storage mode. Valid values: event for event appending, and upsert for merge updating. The default is upsert.
1288
+ * The storage mode. Default value: upsert. Valid values: event (event append) and upsert (merge update).
1077
1289
  *
1078
1290
  * @example
1079
1291
  * upsert
@@ -1081,7 +1293,7 @@ export class GetContextStoreResponseBodyConfigStoragePolicy extends $dara.Model
1081
1293
  mode?: string;
1082
1294
  /**
1083
1295
  * @remarks
1084
- * The semantic merge similarity threshold. Valid values: 0 to 1. The default is 0.4.
1296
+ * The similarity threshold for semantic merging. Valid values: 0 to 1. Default value: 0.4.
1085
1297
  *
1086
1298
  * @example
1087
1299
  * 0.4
@@ -1089,7 +1301,7 @@ export class GetContextStoreResponseBodyConfigStoragePolicy extends $dara.Model
1089
1301
  similarityThreshold?: number;
1090
1302
  /**
1091
1303
  * @remarks
1092
- * The memory expiration days. A value of 0 indicates no expiration.
1304
+ * The number of days before memories expire. A value of 0 indicates that memories do not expire.
1093
1305
  *
1094
1306
  * @example
1095
1307
  * 0
@@ -1137,6 +1349,11 @@ export class GetContextStoreResponseBodyConfig extends $dara.Model {
1137
1349
  * The audit configuration.
1138
1350
  */
1139
1351
  audit?: GetContextStoreResponseBodyConfigAudit;
1352
+ /**
1353
+ * @remarks
1354
+ * The extraction policies. You can configure 1 to 10 policies. The strategyVersion parameter indicates the snapshot version of the entire library configuration.
1355
+ */
1356
+ extractionPolicies?: GetContextStoreResponseBodyConfigExtractionPolicies[];
1140
1357
  /**
1141
1358
  * @remarks
1142
1359
  * The extraction policy for the memory type.
@@ -1144,12 +1361,12 @@ export class GetContextStoreResponseBodyConfig extends $dara.Model {
1144
1361
  extractionPolicy?: GetContextStoreResponseBodyConfigExtractionPolicy;
1145
1362
  /**
1146
1363
  * @remarks
1147
- * The system-assigned coordinates of the event Logstore for the memory type, located in the Simple Log Service (SLS) project bound to the AgentSpace.
1364
+ * The system-assigned coordinates of the event Logstore for the memory type. The Logstore is located in the Simple Log Service (SLS) project bound to the AgentSpace.
1148
1365
  */
1149
1366
  innerSource?: GetContextStoreResponseBodyConfigInnerSource;
1150
1367
  /**
1151
1368
  * @remarks
1152
- * The metadata field mapping, where the key is the business field and the value is the storage field.
1369
+ * The metadata field mapping. The key is the business field and the value is the storage field.
1153
1370
  *
1154
1371
  * @example
1155
1372
  * {"userId":"user_id","sessionId":"session_id"}
@@ -1165,7 +1382,7 @@ export class GetContextStoreResponseBodyConfig extends $dara.Model {
1165
1382
  miningInterval?: string;
1166
1383
  /**
1167
1384
  * @remarks
1168
- * The name of the internal running task associated with the server. Continuous libraries use this for read-only viewing of consumption records, while manual libraries can run limited mining. This is not inferred by the client and cannot replace the ingestion and retrieval criteria of the native experience library.
1385
+ * The name of the internal running task associated with the server. For continuous libraries, it is used to view consumption records in read-only mode. For manual libraries, it can run limited mining. It is not inferred by the client and cannot replace the ingestion and recall criteria of the native experience library.
1169
1386
  *
1170
1387
  * @example
1171
1388
  * experience-review-library
@@ -1173,12 +1390,12 @@ export class GetContextStoreResponseBodyConfig extends $dara.Model {
1173
1390
  miningTaskName?: string;
1174
1391
  /**
1175
1392
  * @remarks
1176
- * The coordinates of observability resources for the memory type.
1393
+ * The observability resource coordinates (memory type).
1177
1394
  */
1178
1395
  observability?: GetContextStoreResponseBodyConfigObservability;
1179
1396
  /**
1180
1397
  * @remarks
1181
- * The location of the memory output dataset for the memory type.
1398
+ * The location of the memory output dataset (memory type).
1182
1399
  */
1183
1400
  outputDataset?: GetContextStoreResponseBodyConfigOutputDataset;
1184
1401
  /**
@@ -1188,7 +1405,7 @@ export class GetContextStoreResponseBodyConfig extends $dara.Model {
1188
1405
  scopePolicy?: GetContextStoreResponseBodyConfigScopePolicy;
1189
1406
  /**
1190
1407
  * @remarks
1191
- * The list of service names, which are used together with source.agentSpace to locate the trace data source. This parameter cannot be modified in the current phase.
1408
+ * The list of service names used to locate the trace data source together with source.agentSpace. This parameter cannot be modified in the current phase.
1192
1409
  *
1193
1410
  * @example
1194
1411
  * ["order-service","payment-service"]
@@ -1196,14 +1413,15 @@ export class GetContextStoreResponseBodyConfig extends $dara.Model {
1196
1413
  serviceNames?: string[];
1197
1414
  /**
1198
1415
  * @remarks
1199
- * The datasource config provided by the user, which serves only as the root identity for the data source.
1416
+ * The data source configuration provided by the user, which serves only as the root identifier of the data source.
1200
1417
  */
1201
1418
  source?: GetContextStoreResponseBodyConfigSource;
1202
1419
  /**
1203
1420
  * @remarks
1204
- * The data source running status for memory type and experience Dataset follow mode. The experience store submits a checkpoint only after successful publishing and automatic application. Pausing and restarting retain the checkpoint.
1421
+ * The running status of the data source, applicable to the memory type and experience Dataset follow mode. The experience library submits a checkpoint only after it is published and automatically applied successfully. Pausing and restarting retain the checkpoint.
1205
1422
  */
1206
1423
  sourceStatus?: GetContextStoreResponseBodyConfigSourceStatus;
1424
+ storageModes?: string[];
1207
1425
  /**
1208
1426
  * @remarks
1209
1427
  * The storage policy for the memory type.
@@ -1211,7 +1429,7 @@ export class GetContextStoreResponseBodyConfig extends $dara.Model {
1211
1429
  storagePolicy?: GetContextStoreResponseBodyConfigStoragePolicy;
1212
1430
  /**
1213
1431
  * @remarks
1214
- * The current effective strategy version number for the memory type.
1432
+ * The currently effective strategy version number for the memory type.
1215
1433
  *
1216
1434
  * @example
1217
1435
  * 1
@@ -1220,6 +1438,7 @@ export class GetContextStoreResponseBodyConfig extends $dara.Model {
1220
1438
  static names(): { [key: string]: string } {
1221
1439
  return {
1222
1440
  audit: 'audit',
1441
+ extractionPolicies: 'extractionPolicies',
1223
1442
  extractionPolicy: 'extractionPolicy',
1224
1443
  innerSource: 'innerSource',
1225
1444
  metadataField: 'metadataField',
@@ -1231,6 +1450,7 @@ export class GetContextStoreResponseBodyConfig extends $dara.Model {
1231
1450
  serviceNames: 'serviceNames',
1232
1451
  source: 'source',
1233
1452
  sourceStatus: 'sourceStatus',
1453
+ storageModes: 'storageModes',
1234
1454
  storagePolicy: 'storagePolicy',
1235
1455
  strategyVersion: 'strategyVersion',
1236
1456
  };
@@ -1239,6 +1459,7 @@ export class GetContextStoreResponseBodyConfig extends $dara.Model {
1239
1459
  static types(): { [key: string]: any } {
1240
1460
  return {
1241
1461
  audit: GetContextStoreResponseBodyConfigAudit,
1462
+ extractionPolicies: { 'type': 'array', 'itemType': GetContextStoreResponseBodyConfigExtractionPolicies },
1242
1463
  extractionPolicy: GetContextStoreResponseBodyConfigExtractionPolicy,
1243
1464
  innerSource: GetContextStoreResponseBodyConfigInnerSource,
1244
1465
  metadataField: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
@@ -1250,6 +1471,7 @@ export class GetContextStoreResponseBodyConfig extends $dara.Model {
1250
1471
  serviceNames: { 'type': 'array', 'itemType': 'string' },
1251
1472
  source: GetContextStoreResponseBodyConfigSource,
1252
1473
  sourceStatus: GetContextStoreResponseBodyConfigSourceStatus,
1474
+ storageModes: { 'type': 'array', 'itemType': 'string' },
1253
1475
  storagePolicy: GetContextStoreResponseBodyConfigStoragePolicy,
1254
1476
  strategyVersion: 'number',
1255
1477
  };
@@ -1259,6 +1481,9 @@ export class GetContextStoreResponseBodyConfig extends $dara.Model {
1259
1481
  if(this.audit && typeof (this.audit as any).validate === 'function') {
1260
1482
  (this.audit as any).validate();
1261
1483
  }
1484
+ if(Array.isArray(this.extractionPolicies)) {
1485
+ $dara.Model.validateArray(this.extractionPolicies);
1486
+ }
1262
1487
  if(this.extractionPolicy && typeof (this.extractionPolicy as any).validate === 'function') {
1263
1488
  (this.extractionPolicy as any).validate();
1264
1489
  }
@@ -1286,6 +1511,9 @@ export class GetContextStoreResponseBodyConfig extends $dara.Model {
1286
1511
  if(this.sourceStatus && typeof (this.sourceStatus as any).validate === 'function') {
1287
1512
  (this.sourceStatus as any).validate();
1288
1513
  }
1514
+ if(Array.isArray(this.storageModes)) {
1515
+ $dara.Model.validateArray(this.storageModes);
1516
+ }
1289
1517
  if(this.storagePolicy && typeof (this.storagePolicy as any).validate === 'function') {
1290
1518
  (this.storagePolicy as any).validate();
1291
1519
  }
@@ -1313,7 +1541,7 @@ export class GetContextStoreResponseBody extends $dara.Model {
1313
1541
  config?: GetContextStoreResponseBodyConfig;
1314
1542
  /**
1315
1543
  * @remarks
1316
- * The context store name.
1544
+ * The name of the context store.
1317
1545
  *
1318
1546
  * @example
1319
1547
  * my-context-store
@@ -1321,7 +1549,7 @@ export class GetContextStoreResponseBody extends $dara.Model {
1321
1549
  contextStoreName?: string;
1322
1550
  /**
1323
1551
  * @remarks
1324
- * The context store type, such as experience for experience store and memory for memory store.
1552
+ * The type of the context store, such as experience or memory.
1325
1553
  *
1326
1554
  * @example
1327
1555
  * experience
@@ -1329,7 +1557,7 @@ export class GetContextStoreResponseBody extends $dara.Model {
1329
1557
  contextType?: string;
1330
1558
  /**
1331
1559
  * @remarks
1332
- * The context store creation time in ISO 8601 UTC format.
1560
+ * The time when the context store was created, in ISO 8601 UTC format.
1333
1561
  *
1334
1562
  * Use the UTC time format: yyyy-MM-ddTHH:mm:ssZ
1335
1563
  *
@@ -1339,7 +1567,7 @@ export class GetContextStoreResponseBody extends $dara.Model {
1339
1567
  createTime?: string;
1340
1568
  /**
1341
1569
  * @remarks
1342
- * The context store description.
1570
+ * The description of the context store.
1343
1571
  *
1344
1572
  * @example
1345
1573
  * My context store
@@ -1347,7 +1575,7 @@ export class GetContextStoreResponseBody extends $dara.Model {
1347
1575
  description?: string;
1348
1576
  /**
1349
1577
  * @remarks
1350
- * The region ID of the context store.
1578
+ * The ID of the region where the context store is located.
1351
1579
  *
1352
1580
  * @example
1353
1581
  * cn-hangzhou
@@ -1363,7 +1591,7 @@ export class GetContextStoreResponseBody extends $dara.Model {
1363
1591
  requestId?: string;
1364
1592
  /**
1365
1593
  * @remarks
1366
- * The context store status. Valid values: ACTIVE, INITIALIZING, and FAILED.
1594
+ * The status of the context store, such as ACTIVE, INITIALIZING, or FAILED.
1367
1595
  *
1368
1596
  * @example
1369
1597
  * ACTIVE
@@ -1371,7 +1599,7 @@ export class GetContextStoreResponseBody extends $dara.Model {
1371
1599
  status?: string;
1372
1600
  /**
1373
1601
  * @remarks
1374
- * The last update time of the context store in ISO 8601 UTC format.
1602
+ * The time when the context store was last updated, in ISO 8601 UTC format.
1375
1603
  *
1376
1604
  * Use the UTC time format: yyyy-MM-ddTHH:mm:ssZ
1377
1605
  *