@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.
Files changed (39) hide show
  1. package/dist/client.d.ts +2 -2
  2. package/dist/client.js +8 -2
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateContextStoreRequest.d.ts +117 -48
  5. package/dist/models/CreateContextStoreRequest.js +40 -1
  6. package/dist/models/CreateContextStoreRequest.js.map +1 -1
  7. package/dist/models/CreateContextStoreResponseBody.d.ts +1 -1
  8. package/dist/models/GetContextStoreResponseBody.d.ts +181 -55
  9. package/dist/models/GetContextStoreResponseBody.js +75 -1
  10. package/dist/models/GetContextStoreResponseBody.js.map +1 -1
  11. package/dist/models/ListContextStoresRequest.d.ts +1 -1
  12. package/dist/models/ListContextStoresResponseBody.d.ts +11 -6
  13. package/dist/models/ListContextStoresResponseBody.js +5 -0
  14. package/dist/models/ListContextStoresResponseBody.js.map +1 -1
  15. package/dist/models/SearchContextRequest.d.ts +8 -8
  16. package/dist/models/SearchContextResponseBody.d.ts +54 -3
  17. package/dist/models/SearchContextResponseBody.js +23 -0
  18. package/dist/models/SearchContextResponseBody.js.map +1 -1
  19. package/dist/models/UpdateContextStoreRequest.d.ts +136 -33
  20. package/dist/models/UpdateContextStoreRequest.js +46 -1
  21. package/dist/models/UpdateContextStoreRequest.js.map +1 -1
  22. package/dist/models/UpdateContextStoreResponseBody.d.ts +32 -2
  23. package/dist/models/UpdateContextStoreResponseBody.js +27 -1
  24. package/dist/models/UpdateContextStoreResponseBody.js.map +1 -1
  25. package/dist/models/model.d.ts +5 -0
  26. package/dist/models/model.js +75 -65
  27. package/dist/models/model.js.map +1 -1
  28. package/package.json +1 -1
  29. package/src/client.ts +10 -2
  30. package/src/models/CreateContextStoreRequest.ts +147 -48
  31. package/src/models/CreateContextStoreResponseBody.ts +1 -1
  32. package/src/models/GetContextStoreResponseBody.ts +237 -55
  33. package/src/models/ListContextStoresRequest.ts +1 -1
  34. package/src/models/ListContextStoresResponseBody.ts +16 -6
  35. package/src/models/SearchContextRequest.ts +8 -8
  36. package/src/models/SearchContextResponseBody.ts +73 -3
  37. package/src/models/UpdateContextStoreRequest.ts +172 -33
  38. package/src/models/UpdateContextStoreResponseBody.ts +49 -2
  39. package/src/models/model.ts +5 -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 dropped recall candidates. Default value: false.
8
+ * Specifies whether to write item events for dropped candidates during retrieval. 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 recall queries. Valid values: raw (plaintext) and hash (HMAC only). Default value: raw.
16
+ * The recording mode for retrieval queries. Valid values: raw (plaintext) and hash (HMAC only). Default value: raw.
17
17
  *
18
18
  * @example
19
19
  * raw
@@ -52,10 +52,50 @@ export class GetContextStoreResponseBodyConfigAudit extends $dara.Model {
52
52
  }
53
53
  }
54
54
 
55
+ export class GetContextStoreResponseBodyConfigAuditLogStore extends $dara.Model {
56
+ /**
57
+ * @remarks
58
+ * The name of the Logstore for the experience library audit logs.
59
+ *
60
+ * @example
61
+ * experience_audit
62
+ */
63
+ logstore?: string;
64
+ /**
65
+ * @remarks
66
+ * The name of the user SLS project where the experience library audit logs are stored.
67
+ *
68
+ * @example
69
+ * agentloop-xxx
70
+ */
71
+ project?: string;
72
+ static names(): { [key: string]: string } {
73
+ return {
74
+ logstore: 'logstore',
75
+ project: 'project',
76
+ };
77
+ }
78
+
79
+ static types(): { [key: string]: any } {
80
+ return {
81
+ logstore: 'string',
82
+ project: 'string',
83
+ };
84
+ }
85
+
86
+ validate() {
87
+ super.validate();
88
+ }
89
+
90
+ constructor(map?: { [key: string]: any }) {
91
+ super(map);
92
+ }
93
+ }
94
+
55
95
  export class GetContextStoreResponseBodyConfigExtractionPoliciesModel extends $dara.Model {
56
96
  /**
57
97
  * @remarks
58
- * The name of the extraction model. Currently, only qwen3.8-flash is supported. Internal platform credentials are used.
98
+ * The name of the extraction model. Currently, only qwen3.8-flash is supported. The platform uses internal credentials.
59
99
  *
60
100
  * @example
61
101
  * qwen3.8-flash
@@ -82,6 +122,99 @@ export class GetContextStoreResponseBodyConfigExtractionPoliciesModel extends $d
82
122
  }
83
123
  }
84
124
 
125
+ export class GetContextStoreResponseBodyConfigExtractionPoliciesStoragePolicy extends $dara.Model {
126
+ /**
127
+ * @remarks
128
+ * The allowed storage actions. Default value: all actions (ADD, UPDATE, MERGE, and DELETE).
129
+ *
130
+ * @example
131
+ * ["ADD","UPDATE","MERGE","DELETE"]
132
+ */
133
+ allowedActions?: string[];
134
+ /**
135
+ * @remarks
136
+ * Specifies whether to enable deduplication in event mode. Default value: true.
137
+ *
138
+ * @example
139
+ * true
140
+ */
141
+ dedupe?: boolean;
142
+ /**
143
+ * @remarks
144
+ * Specifies whether to enable human edit protection. Default value: true. When enabled, automatic extraction does not overwrite manually modified memories.
145
+ *
146
+ * @example
147
+ * true
148
+ */
149
+ humanEditProtection?: boolean;
150
+ /**
151
+ * @remarks
152
+ * The merge key for upsert operations. Valid values: factKey, semantic, and both. Default value: semantic.
153
+ *
154
+ * @example
155
+ * semantic
156
+ */
157
+ mergeKey?: string;
158
+ /**
159
+ * @remarks
160
+ * The storage mode. Valid values: event (event append) and upsert (merge update). Default value: upsert.
161
+ *
162
+ * @example
163
+ * upsert
164
+ */
165
+ mode?: string;
166
+ /**
167
+ * @remarks
168
+ * The similarity threshold for semantic merging. Valid values: 0 to 1. Default value: 0.4.
169
+ *
170
+ * @example
171
+ * 0.4
172
+ */
173
+ similarityThreshold?: number;
174
+ /**
175
+ * @remarks
176
+ * The number of days before memories expire. A value of 0 indicates that memories do not expire.
177
+ *
178
+ * @example
179
+ * 0
180
+ */
181
+ ttlDays?: number;
182
+ static names(): { [key: string]: string } {
183
+ return {
184
+ allowedActions: 'allowedActions',
185
+ dedupe: 'dedupe',
186
+ humanEditProtection: 'humanEditProtection',
187
+ mergeKey: 'mergeKey',
188
+ mode: 'mode',
189
+ similarityThreshold: 'similarityThreshold',
190
+ ttlDays: 'ttlDays',
191
+ };
192
+ }
193
+
194
+ static types(): { [key: string]: any } {
195
+ return {
196
+ allowedActions: { 'type': 'array', 'itemType': 'string' },
197
+ dedupe: 'boolean',
198
+ humanEditProtection: 'boolean',
199
+ mergeKey: 'string',
200
+ mode: 'string',
201
+ similarityThreshold: 'number',
202
+ ttlDays: 'number',
203
+ };
204
+ }
205
+
206
+ validate() {
207
+ if(Array.isArray(this.allowedActions)) {
208
+ $dara.Model.validateArray(this.allowedActions);
209
+ }
210
+ super.validate();
211
+ }
212
+
213
+ constructor(map?: { [key: string]: any }) {
214
+ super(map);
215
+ }
216
+ }
217
+
85
218
  export class GetContextStoreResponseBodyConfigExtractionPolicies extends $dara.Model {
86
219
  /**
87
220
  * @remarks
@@ -101,7 +234,7 @@ export class GetContextStoreResponseBodyConfigExtractionPolicies extends $dara.M
101
234
  customInstructions?: string;
102
235
  /**
103
236
  * @remarks
104
- * Specifies whether to apply this policy to new inputs. Default value: true. Disabling the policy does not delete historical memories.
237
+ * Specifies whether to execute this policy for new input. Default value: true. Disabling the policy does not delete historical memories.
105
238
  *
106
239
  * @example
107
240
  * true
@@ -109,7 +242,7 @@ export class GetContextStoreResponseBodyConfigExtractionPolicies extends $dara.M
109
242
  enabled?: boolean;
110
243
  /**
111
244
  * @remarks
112
- * The list of exclusion rules. Content that matches these rules is not extracted.
245
+ * The list of exclusion rules. Content that matches the rules is not extracted.
113
246
  *
114
247
  * @example
115
248
  * ["Password","ID number"]
@@ -136,6 +269,11 @@ export class GetContextStoreResponseBodyConfigExtractionPolicies extends $dara.M
136
269
  * fact
137
270
  */
138
271
  preset?: string;
272
+ /**
273
+ * @remarks
274
+ * The independent storage rules for this policy. If omitted, the original value is retained. New policies use the default value. Repeatedly confirmed memories refresh the validity period by default.
275
+ */
276
+ storagePolicy?: GetContextStoreResponseBodyConfigExtractionPoliciesStoragePolicy;
139
277
  /**
140
278
  * @remarks
141
279
  * 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.
@@ -155,6 +293,7 @@ export class GetContextStoreResponseBodyConfigExtractionPolicies extends $dara.M
155
293
  model: 'model',
156
294
  name: 'name',
157
295
  preset: 'preset',
296
+ storagePolicy: 'storagePolicy',
158
297
  strategyId: 'strategyId',
159
298
  };
160
299
  }
@@ -168,6 +307,7 @@ export class GetContextStoreResponseBodyConfigExtractionPolicies extends $dara.M
168
307
  model: GetContextStoreResponseBodyConfigExtractionPoliciesModel,
169
308
  name: 'string',
170
309
  preset: 'string',
310
+ storagePolicy: GetContextStoreResponseBodyConfigExtractionPoliciesStoragePolicy,
171
311
  strategyId: 'string',
172
312
  };
173
313
  }
@@ -182,6 +322,9 @@ export class GetContextStoreResponseBodyConfigExtractionPolicies extends $dara.M
182
322
  if(this.model && typeof (this.model as any).validate === 'function') {
183
323
  (this.model as any).validate();
184
324
  }
325
+ if(this.storagePolicy && typeof (this.storagePolicy as any).validate === 'function') {
326
+ (this.storagePolicy as any).validate();
327
+ }
185
328
  super.validate();
186
329
  }
187
330
 
@@ -193,7 +336,7 @@ export class GetContextStoreResponseBodyConfigExtractionPolicies extends $dara.M
193
336
  export class GetContextStoreResponseBodyConfigExtractionPolicyModel extends $dara.Model {
194
337
  /**
195
338
  * @remarks
196
- * The name of the extraction model. Currently, only qwen3.8-flash is supported. Internal platform credentials are used.
339
+ * The name of the extraction model. Currently, only qwen3.8-flash is supported. The platform uses internal credentials.
197
340
  *
198
341
  * @example
199
342
  * qwen3.8-flash
@@ -239,7 +382,7 @@ export class GetContextStoreResponseBodyConfigExtractionPolicy extends $dara.Mod
239
382
  customInstructions?: string;
240
383
  /**
241
384
  * @remarks
242
- * The list of exclusion rules. Content that matches these rules is not extracted.
385
+ * The list of exclusion rules. Content that matches the rules is not extracted.
243
386
  *
244
387
  * @example
245
388
  * ["Password","ID number"]
@@ -307,7 +450,7 @@ export class GetContextStoreResponseBodyConfigInnerSource extends $dara.Model {
307
450
  logstore?: string;
308
451
  /**
309
452
  * @remarks
310
- * The name of the SLS project.
453
+ * The name of the Simple Log Service (SLS) project.
311
454
  *
312
455
  * @example
313
456
  * agentloop-xxx
@@ -355,7 +498,7 @@ export class GetContextStoreResponseBodyConfigObservability extends $dara.Model
355
498
  eventsLogstore?: string;
356
499
  /**
357
500
  * @remarks
358
- * The Simple Log Service (SLS) project to which both belong, which is bound to the AgentSpace.
501
+ * The Simple Log Service (SLS) project where both resources are located, which is the project bound to the AgentSpace.
359
502
  *
360
503
  * @example
361
504
  * agentloop-xxx
@@ -389,7 +532,7 @@ export class GetContextStoreResponseBodyConfigObservability extends $dara.Model
389
532
  export class GetContextStoreResponseBodyConfigOutputDataset extends $dara.Model {
390
533
  /**
391
534
  * @remarks
392
- * The AgentSpace to which the dataset belongs.
535
+ * The AgentSpace where the dataset is located.
393
536
  *
394
537
  * @example
395
538
  * my-agent-space
@@ -413,7 +556,7 @@ export class GetContextStoreResponseBodyConfigOutputDataset extends $dara.Model
413
556
  schemaContract?: string;
414
557
  /**
415
558
  * @remarks
416
- * The schema version.
559
+ * The version of the schema.
417
560
  *
418
561
  * @example
419
562
  * 1
@@ -449,7 +592,7 @@ export class GetContextStoreResponseBodyConfigOutputDataset extends $dara.Model
449
592
  export class GetContextStoreResponseBodyConfigScopePolicy extends $dara.Model {
450
593
  /**
451
594
  * @remarks
452
- * Specifies that at least one of the scope fields must be non-empty. Valid values: userId, agentId, appId, and runId.
595
+ * At least one of the scope fields must be non-empty. Valid values for the elements: userId, agentId, appId, and runId.
453
596
  *
454
597
  * @example
455
598
  * ["userId"]
@@ -482,7 +625,7 @@ export class GetContextStoreResponseBodyConfigScopePolicy extends $dara.Model {
482
625
  export class GetContextStoreResponseBodyConfigSourceDatasetCustomFields extends $dara.Model {
483
626
  /**
484
627
  * @remarks
485
- * The description of the field. This parameter is required when usage is extraction-input and is appended to the extraction prompt.
628
+ * The description of the field. This parameter is required when usage is set to extraction-input, and it is appended to the extraction prompt.
486
629
  *
487
630
  * @example
488
631
  * Customer tier
@@ -506,7 +649,7 @@ export class GetContextStoreResponseBodyConfigSourceDatasetCustomFields extends
506
649
  sourceField?: string;
507
650
  /**
508
651
  * @remarks
509
- * The target path for writing, such as metadata.customerTier.
652
+ * The write target path, such as metadata.customerTier.
510
653
  *
511
654
  * @example
512
655
  * metadata.customerTier
@@ -552,7 +695,7 @@ export class GetContextStoreResponseBodyConfigSourceDatasetCustomFields extends
552
695
  export class GetContextStoreResponseBodyConfigSourceDatasetFilter extends $dara.Model {
553
696
  /**
554
697
  * @remarks
555
- * The subset of the pipeline where clause, which is pushed down to SQL.
698
+ * The subset of the pipeline where clause that is pushed down to SQL.
556
699
  *
557
700
  * @example
558
701
  * appId = \\"crm-service\\"
@@ -582,7 +725,9 @@ export class GetContextStoreResponseBodyConfigSourceDatasetFilter extends $dara.
582
725
  export class GetContextStoreResponseBodyConfigSourceDatasetVersionPolicy extends $dara.Model {
583
726
  /**
584
727
  * @remarks
585
- * The consumption mode. Valid values: follow (incremental consumption based on __dataset_seq) and fixed (full consumption of the specified ACTIVE version at once).
728
+ * The version consumption mode. Valid values:
729
+ * - follow: consumes data incrementally based on __dataset_seq.
730
+ * - fixed: consumes the specified ACTIVE version in full at once.
586
731
  *
587
732
  * @example
588
733
  * follow
@@ -637,7 +782,7 @@ export class GetContextStoreResponseBodyConfigSourceDataset extends $dara.Model
637
782
  customFields?: GetContextStoreResponseBodyConfigSourceDatasetCustomFields[];
638
783
  /**
639
784
  * @remarks
640
- * The name of the dataset in the same AgentSpace. This parameter cannot be modified after creation.
785
+ * The name of the dataset in the same AgentSpace. This parameter cannot be changed after creation.
641
786
  *
642
787
  * @example
643
788
  * trajectory-with-crm-profile
@@ -645,7 +790,7 @@ export class GetContextStoreResponseBodyConfigSourceDataset extends $dara.Model
645
790
  datasetName?: string;
646
791
  /**
647
792
  * @remarks
648
- * The row filter condition.
793
+ * The row filter conditions.
649
794
  */
650
795
  filter?: GetContextStoreResponseBodyConfigSourceDatasetFilter;
651
796
  /**
@@ -658,7 +803,7 @@ export class GetContextStoreResponseBodyConfigSourceDataset extends $dara.Model
658
803
  pollIntervalSeconds?: number;
659
804
  /**
660
805
  * @remarks
661
- * The row schema contract of the dataset. In the current phase, this parameter is fixed to MemorySourceV1.
806
+ * The row schema contract of the dataset. The value is fixed to MemorySourceV1 in the current phase.
662
807
  *
663
808
  * @example
664
809
  * MemorySourceV1
@@ -712,7 +857,7 @@ export class GetContextStoreResponseBodyConfigSourceDataset extends $dara.Model
712
857
  export class GetContextStoreResponseBodyConfigSourceTrajectoryFilter extends $dara.Model {
713
858
  /**
714
859
  * @remarks
715
- * The list of agent names. An explicit empty list returns a 400 error.
860
+ * The list of agent names. An explicitly empty list returns a 400 error.
716
861
  *
717
862
  * @example
718
863
  * ["sales-copilot"]
@@ -720,7 +865,7 @@ export class GetContextStoreResponseBodyConfigSourceTrajectoryFilter extends $da
720
865
  agentNames?: string[];
721
866
  /**
722
867
  * @remarks
723
- * Specifies whether to exclude degraded trajectories. Default value: false (includes degraded trajectories).
868
+ * Specifies whether to exclude degraded trajectories. Default value: false, which includes degraded trajectories.
724
869
  *
725
870
  * @example
726
871
  * false
@@ -728,7 +873,7 @@ export class GetContextStoreResponseBodyConfigSourceTrajectoryFilter extends $da
728
873
  excludeDegraded?: boolean;
729
874
  /**
730
875
  * @remarks
731
- * The minimum step count, which must be greater than or equal to 0.
876
+ * The minimum number of steps. The value must be greater than or equal to 0.
732
877
  *
733
878
  * @example
734
879
  * 2
@@ -736,7 +881,7 @@ export class GetContextStoreResponseBodyConfigSourceTrajectoryFilter extends $da
736
881
  minStepCount?: number;
737
882
  /**
738
883
  * @remarks
739
- * The native Simple Log Service (SLS) query statement. This statement is combined with the preceding conditions using the AND operator.
884
+ * The native Simple Log Service (SLS) query statement. This statement is combined with the preceding conditions using AND.
740
885
  *
741
886
  * @example
742
887
  * tool_names:"search_order"
@@ -744,7 +889,7 @@ export class GetContextStoreResponseBodyConfigSourceTrajectoryFilter extends $da
744
889
  query?: string;
745
890
  /**
746
891
  * @remarks
747
- * The list of service names. A single trailing asterisk (*) is supported. An explicit empty list returns a 400 error.
892
+ * The list of service names. A single trailing asterisk (*) is supported. An explicitly empty list returns a 400 error.
748
893
  *
749
894
  * @example
750
895
  * ["crm-service","app-*"]
@@ -848,12 +993,12 @@ export class GetContextStoreResponseBodyConfigSourceTrajectoryScopeMapping exten
848
993
  export class GetContextStoreResponseBodyConfigSourceTrajectory extends $dara.Model {
849
994
  /**
850
995
  * @remarks
851
- * The trajectory filter condition. Multiple conditions are combined with AND, and conditions within a list are combined with OR.
996
+ * The trajectory filter conditions. Conditions are combined with AND, and items within a list are combined with OR.
852
997
  */
853
998
  filter?: GetContextStoreResponseBodyConfigSourceTrajectoryFilter;
854
999
  /**
855
1000
  * @remarks
856
- * The name of the trajectory Logstore. Default value: agent-trajectory. This parameter cannot be modified after creation.
1001
+ * The name of the trajectory Logstore. Default value: agent-trajectory. The value cannot be changed after creation.
857
1002
  *
858
1003
  * @example
859
1004
  * agent-trajectory
@@ -928,7 +1073,7 @@ export class GetContextStoreResponseBodyConfigSourceVersionPolicy extends $dara.
928
1073
  mode?: string;
929
1074
  /**
930
1075
  * @remarks
931
- * 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.
1076
+ * The initial consumed append sequence number. The value is a decimal string of a non-negative int64 integer. Default value: 0. The __dataset_seq parameter is used, and the business timestamp is not used as the consumption checkpoint.
932
1077
  *
933
1078
  * @example
934
1079
  * 0
@@ -960,7 +1105,7 @@ export class GetContextStoreResponseBodyConfigSourceVersionPolicy extends $dara.
960
1105
  export class GetContextStoreResponseBodyConfigSource extends $dara.Model {
961
1106
  /**
962
1107
  * @remarks
963
- * The AgentSpace to which the trace data source belongs, which is the same as the AgentSpace to which it belonged when it was created.
1108
+ * The AgentSpace where the trace data source is located, which is the same as the AgentSpace to which it belonged when it was created.
964
1109
  *
965
1110
  * @example
966
1111
  * my-agent-space
@@ -976,7 +1121,7 @@ export class GetContextStoreResponseBodyConfigSource extends $dara.Model {
976
1121
  binding?: { [key: string]: any };
977
1122
  /**
978
1123
  * @remarks
979
- * The data source configuration for the memory type dataset. This parameter is required when the type is memory and source.type is dataset.
1124
+ * The dataset data source configuration for the memory type. This parameter is required when the memory type is used and source.type is set to dataset.
980
1125
  */
981
1126
  dataset?: GetContextStoreResponseBodyConfigSourceDataset;
982
1127
  /**
@@ -989,7 +1134,7 @@ export class GetContextStoreResponseBodyConfigSource extends $dara.Model {
989
1134
  datasetName?: string;
990
1135
  /**
991
1136
  * @remarks
992
- * The input format of the dataset. For the experience base dataset, the source is atif.
1137
+ * The input format of the dataset. The source of the experience base dataset is atif.
993
1138
  *
994
1139
  * @example
995
1140
  * atif
@@ -1015,12 +1160,12 @@ export class GetContextStoreResponseBodyConfigSource extends $dara.Model {
1015
1160
  startTime?: string;
1016
1161
  /**
1017
1162
  * @remarks
1018
- * The data source configuration for the memory type trajectory. This parameter is required when the type is memory and source.type is trajectory.
1163
+ * The trajectory datasource config for the memory type. This parameter is required when the type is memory and source.type is trajectory.
1019
1164
  */
1020
1165
  trajectory?: GetContextStoreResponseBodyConfigSourceTrajectory;
1021
1166
  /**
1022
1167
  * @remarks
1023
- * 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.
1168
+ * The source type. Valid values: trajectory and dataset. For the experience type, if this parameter is not specified, trajectory is used. For datasets, the datasetName, format, and binding parameters at the current level are used. The default mode is manual. If versionPolicy.mode is set to follow, data is continuously processed and automatically applied to the experience base. For the memory type, if this parameter is not specified, manual is used, meaning data is written only through AddContexts. Otherwise, the trajectory or dataset sub-configuration with the same name is used. The value cannot be changed after creation.
1024
1169
  *
1025
1170
  * @example
1026
1171
  * dataset
@@ -1028,7 +1173,7 @@ export class GetContextStoreResponseBodyConfigSource extends $dara.Model {
1028
1173
  type?: string;
1029
1174
  /**
1030
1175
  * @remarks
1031
- * 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.
1176
+ * The continuous consumption configuration for the native experience base dataset. The default mode is manual. The follow mode only allows binding.selection.mode to be set to all, and data is consumed based on the append sequence number. The value cannot be changed after creation.
1032
1177
  */
1033
1178
  versionPolicy?: GetContextStoreResponseBodyConfigSourceVersionPolicy;
1034
1179
  static names(): { [key: string]: string } {
@@ -1085,12 +1230,12 @@ export class GetContextStoreResponseBodyConfigSource extends $dara.Model {
1085
1230
  export class GetContextStoreResponseBodyConfigSourceStatus extends $dara.Model {
1086
1231
  /**
1087
1232
  * @remarks
1088
- * 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.
1233
+ * The processing progress. For memory trajectory, the format is {processTimeNs, watermarkMs}. For dataset, the format is {seq}. For manual, the format is {}. For the experience dataset in follow mode, the seq value is an exact int64 decimal string.
1089
1234
  */
1090
1235
  checkpoint?: { [key: string]: any };
1091
1236
  /**
1092
1237
  * @remarks
1093
- * 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.
1238
+ * The current scheduled sequence window for the experience dataset in follow mode. The format is {after, until, runId}. All sequence numbers are decimal strings. If a failure occurs, the submitted checkpoint is not advanced.
1094
1239
  */
1095
1240
  currentWindow?: { [key: string]: string };
1096
1241
  /**
@@ -1103,7 +1248,7 @@ export class GetContextStoreResponseBodyConfigSourceStatus extends $dara.Model {
1103
1248
  lastError?: string;
1104
1249
  /**
1105
1250
  * @remarks
1106
- * The run ID of the last successful automatic application to the native experience library. This field is for audit purposes only.
1251
+ * The run ID of the last successful automatic application to the native experience store, for audit purposes only.
1107
1252
  *
1108
1253
  * @example
1109
1254
  * opr-example
@@ -1175,7 +1320,7 @@ export class GetContextStoreResponseBodyConfigSourceStatus extends $dara.Model {
1175
1320
  export class GetContextStoreResponseBodyConfigStoragePolicy extends $dara.Model {
1176
1321
  /**
1177
1322
  * @remarks
1178
- * The allowed storage actions. Default value: all actions. Valid values: ADD, UPDATE, MERGE, and DELETE.
1323
+ * The allowed storage actions. Default value: all actions (ADD, UPDATE, MERGE, and DELETE).
1179
1324
  *
1180
1325
  * @example
1181
1326
  * ["ADD","UPDATE","MERGE","DELETE"]
@@ -1199,7 +1344,7 @@ export class GetContextStoreResponseBodyConfigStoragePolicy extends $dara.Model
1199
1344
  humanEditProtection?: boolean;
1200
1345
  /**
1201
1346
  * @remarks
1202
- * The merge key for upsert operations. Default value: semantic. Valid values: factKey, semantic, and both.
1347
+ * The merge key for upsert operations. Valid values: factKey, semantic, and both. Default value: semantic.
1203
1348
  *
1204
1349
  * @example
1205
1350
  * semantic
@@ -1207,7 +1352,7 @@ export class GetContextStoreResponseBodyConfigStoragePolicy extends $dara.Model
1207
1352
  mergeKey?: string;
1208
1353
  /**
1209
1354
  * @remarks
1210
- * The storage mode. Default value: upsert. Valid values: event (event append) and upsert (merge update).
1355
+ * The storage mode. Valid values: event (event append) and upsert (merge update). Default value: upsert.
1211
1356
  *
1212
1357
  * @example
1213
1358
  * upsert
@@ -1271,6 +1416,11 @@ export class GetContextStoreResponseBodyConfig extends $dara.Model {
1271
1416
  * The audit configuration.
1272
1417
  */
1273
1418
  audit?: GetContextStoreResponseBodyConfigAudit;
1419
+ /**
1420
+ * @remarks
1421
+ * The Simple Log Service (SLS) audit log location for the experience library user. The console reads the logs by using the existing GetLogs permission.
1422
+ */
1423
+ auditLogStore?: GetContextStoreResponseBodyConfigAuditLogStore;
1274
1424
  /**
1275
1425
  * @remarks
1276
1426
  * The extraction policies. You can configure 1 to 10 policies. The strategyVersion parameter indicates the snapshot version of the entire library configuration.
@@ -1278,17 +1428,17 @@ export class GetContextStoreResponseBodyConfig extends $dara.Model {
1278
1428
  extractionPolicies?: GetContextStoreResponseBodyConfigExtractionPolicies[];
1279
1429
  /**
1280
1430
  * @remarks
1281
- * The extraction policy for the memory type.
1431
+ * The extraction policy of the memory type.
1282
1432
  */
1283
1433
  extractionPolicy?: GetContextStoreResponseBodyConfigExtractionPolicy;
1284
1434
  /**
1285
1435
  * @remarks
1286
- * 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.
1436
+ * The system-assigned event Logstore coordinates for the memory type, located in the Simple Log Service (SLS) project bound to the AgentSpace.
1287
1437
  */
1288
1438
  innerSource?: GetContextStoreResponseBodyConfigInnerSource;
1289
1439
  /**
1290
1440
  * @remarks
1291
- * The metadata field mapping. The key is the business field and the value is the storage field.
1441
+ * The metadata field mapping, where the key is the business field and the value is the storage field.
1292
1442
  *
1293
1443
  * @example
1294
1444
  * {"userId":"user_id","sessionId":"session_id"}
@@ -1296,7 +1446,7 @@ export class GetContextStoreResponseBodyConfig extends $dara.Model {
1296
1446
  metadataField?: { [key: string]: string };
1297
1447
  /**
1298
1448
  * @remarks
1299
- * The interval for experience mining. Valid values: 1h, 6h, 12h, and 1d. Default value: 1d.
1449
+ * The experience mining interval. Valid values: 1h, 6h, 12h, and 1d. Default value: 1d.
1300
1450
  *
1301
1451
  * @example
1302
1452
  * 1d
@@ -1304,7 +1454,7 @@ export class GetContextStoreResponseBodyConfig extends $dara.Model {
1304
1454
  miningInterval?: string;
1305
1455
  /**
1306
1456
  * @remarks
1307
- * 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.
1457
+ * The name of the internal running task associated with the server. Continuous libraries are used for read-only viewing of consumption records, and manual libraries can run limited mining. This value is not inferred by the client and cannot replace the ingestion and recall criteria of the native experience library.
1308
1458
  *
1309
1459
  * @example
1310
1460
  * experience-review-library
@@ -1312,14 +1462,27 @@ export class GetContextStoreResponseBodyConfig extends $dara.Model {
1312
1462
  miningTaskName?: string;
1313
1463
  /**
1314
1464
  * @remarks
1315
- * The observability resource coordinates (memory type).
1465
+ * The observability resource coordinates for the memory type.
1316
1466
  */
1317
1467
  observability?: GetContextStoreResponseBodyConfigObservability;
1318
1468
  /**
1319
1469
  * @remarks
1320
- * The location of the memory output dataset (memory type).
1470
+ * The location of the memory output dataset for the memory type.
1321
1471
  */
1322
1472
  outputDataset?: GetContextStoreResponseBodyConfigOutputDataset;
1473
+ /**
1474
+ * @remarks
1475
+ * Specifies whether runtime recall is allowed for the experience library. This parameter is returned only for the experience type.
1476
+ */
1477
+ runtimeRecallEnabled?: boolean;
1478
+ /**
1479
+ * @remarks
1480
+ * The version of the runtime recall property, which is read-only. When you update the switch, a concurrency check is performed by using expectedRuntimeRecallRevision.
1481
+ *
1482
+ * @example
1483
+ * 1
1484
+ */
1485
+ runtimeRecallRevision?: number;
1323
1486
  /**
1324
1487
  * @remarks
1325
1488
  * The scope constraint policy.
@@ -1327,7 +1490,7 @@ export class GetContextStoreResponseBodyConfig extends $dara.Model {
1327
1490
  scopePolicy?: GetContextStoreResponseBodyConfigScopePolicy;
1328
1491
  /**
1329
1492
  * @remarks
1330
- * 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.
1493
+ * The list of service names, which are used together with source.agentSpace to locate the trace data source. This parameter cannot be changed in the current phase.
1331
1494
  *
1332
1495
  * @example
1333
1496
  * ["order-service","payment-service"]
@@ -1335,14 +1498,19 @@ export class GetContextStoreResponseBodyConfig extends $dara.Model {
1335
1498
  serviceNames?: string[];
1336
1499
  /**
1337
1500
  * @remarks
1338
- * The data source configuration provided by the user, which serves only as the root identifier of the data source.
1501
+ * The data source configuration passed by the user, which serves only as the root identity of the data source.
1339
1502
  */
1340
1503
  source?: GetContextStoreResponseBodyConfigSource;
1341
1504
  /**
1342
1505
  * @remarks
1343
- * 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.
1506
+ * The running status of the data source. This applies to the memory type and the experience dataset in follow mode. The experience base submits a checkpoint only after it is published and automatically applied. Pausing and restarting retain the checkpoint.
1344
1507
  */
1345
1508
  sourceStatus?: GetContextStoreResponseBodyConfigSourceStatus;
1509
+ /**
1510
+ * @remarks
1511
+ * The actual storage modes for each policy. A hybrid store includes event and upsert.
1512
+ */
1513
+ storageModes?: string[];
1346
1514
  /**
1347
1515
  * @remarks
1348
1516
  * The storage policy for the memory type.
@@ -1350,7 +1518,7 @@ export class GetContextStoreResponseBodyConfig extends $dara.Model {
1350
1518
  storagePolicy?: GetContextStoreResponseBodyConfigStoragePolicy;
1351
1519
  /**
1352
1520
  * @remarks
1353
- * The currently effective strategy version number for the memory type.
1521
+ * The version number of the currently effective policy for the memory type.
1354
1522
  *
1355
1523
  * @example
1356
1524
  * 1
@@ -1359,6 +1527,7 @@ export class GetContextStoreResponseBodyConfig extends $dara.Model {
1359
1527
  static names(): { [key: string]: string } {
1360
1528
  return {
1361
1529
  audit: 'audit',
1530
+ auditLogStore: 'auditLogStore',
1362
1531
  extractionPolicies: 'extractionPolicies',
1363
1532
  extractionPolicy: 'extractionPolicy',
1364
1533
  innerSource: 'innerSource',
@@ -1367,10 +1536,13 @@ export class GetContextStoreResponseBodyConfig extends $dara.Model {
1367
1536
  miningTaskName: 'miningTaskName',
1368
1537
  observability: 'observability',
1369
1538
  outputDataset: 'outputDataset',
1539
+ runtimeRecallEnabled: 'runtimeRecallEnabled',
1540
+ runtimeRecallRevision: 'runtimeRecallRevision',
1370
1541
  scopePolicy: 'scopePolicy',
1371
1542
  serviceNames: 'serviceNames',
1372
1543
  source: 'source',
1373
1544
  sourceStatus: 'sourceStatus',
1545
+ storageModes: 'storageModes',
1374
1546
  storagePolicy: 'storagePolicy',
1375
1547
  strategyVersion: 'strategyVersion',
1376
1548
  };
@@ -1379,6 +1551,7 @@ export class GetContextStoreResponseBodyConfig extends $dara.Model {
1379
1551
  static types(): { [key: string]: any } {
1380
1552
  return {
1381
1553
  audit: GetContextStoreResponseBodyConfigAudit,
1554
+ auditLogStore: GetContextStoreResponseBodyConfigAuditLogStore,
1382
1555
  extractionPolicies: { 'type': 'array', 'itemType': GetContextStoreResponseBodyConfigExtractionPolicies },
1383
1556
  extractionPolicy: GetContextStoreResponseBodyConfigExtractionPolicy,
1384
1557
  innerSource: GetContextStoreResponseBodyConfigInnerSource,
@@ -1387,10 +1560,13 @@ export class GetContextStoreResponseBodyConfig extends $dara.Model {
1387
1560
  miningTaskName: 'string',
1388
1561
  observability: GetContextStoreResponseBodyConfigObservability,
1389
1562
  outputDataset: GetContextStoreResponseBodyConfigOutputDataset,
1563
+ runtimeRecallEnabled: 'boolean',
1564
+ runtimeRecallRevision: 'number',
1390
1565
  scopePolicy: GetContextStoreResponseBodyConfigScopePolicy,
1391
1566
  serviceNames: { 'type': 'array', 'itemType': 'string' },
1392
1567
  source: GetContextStoreResponseBodyConfigSource,
1393
1568
  sourceStatus: GetContextStoreResponseBodyConfigSourceStatus,
1569
+ storageModes: { 'type': 'array', 'itemType': 'string' },
1394
1570
  storagePolicy: GetContextStoreResponseBodyConfigStoragePolicy,
1395
1571
  strategyVersion: 'number',
1396
1572
  };
@@ -1400,6 +1576,9 @@ export class GetContextStoreResponseBodyConfig extends $dara.Model {
1400
1576
  if(this.audit && typeof (this.audit as any).validate === 'function') {
1401
1577
  (this.audit as any).validate();
1402
1578
  }
1579
+ if(this.auditLogStore && typeof (this.auditLogStore as any).validate === 'function') {
1580
+ (this.auditLogStore as any).validate();
1581
+ }
1403
1582
  if(Array.isArray(this.extractionPolicies)) {
1404
1583
  $dara.Model.validateArray(this.extractionPolicies);
1405
1584
  }
@@ -1430,6 +1609,9 @@ export class GetContextStoreResponseBodyConfig extends $dara.Model {
1430
1609
  if(this.sourceStatus && typeof (this.sourceStatus as any).validate === 'function') {
1431
1610
  (this.sourceStatus as any).validate();
1432
1611
  }
1612
+ if(Array.isArray(this.storageModes)) {
1613
+ $dara.Model.validateArray(this.storageModes);
1614
+ }
1433
1615
  if(this.storagePolicy && typeof (this.storagePolicy as any).validate === 'function') {
1434
1616
  (this.storagePolicy as any).validate();
1435
1617
  }
@@ -1473,7 +1655,7 @@ export class GetContextStoreResponseBody extends $dara.Model {
1473
1655
  contextType?: string;
1474
1656
  /**
1475
1657
  * @remarks
1476
- * The time when the context store was created, in ISO 8601 UTC format.
1658
+ * The creation time of the context store in ISO 8601 UTC format.
1477
1659
  *
1478
1660
  * Use the UTC time format: yyyy-MM-ddTHH:mm:ssZ
1479
1661
  *
@@ -1491,7 +1673,7 @@ export class GetContextStoreResponseBody extends $dara.Model {
1491
1673
  description?: string;
1492
1674
  /**
1493
1675
  * @remarks
1494
- * The ID of the region where the context store is located.
1676
+ * The ID of the region where the context store resides.
1495
1677
  *
1496
1678
  * @example
1497
1679
  * cn-hangzhou
@@ -1499,7 +1681,7 @@ export class GetContextStoreResponseBody extends $dara.Model {
1499
1681
  regionId?: string;
1500
1682
  /**
1501
1683
  * @remarks
1502
- * The request ID used to locate the request during troubleshooting.
1684
+ * The request ID, which is used to locate the request for troubleshooting.
1503
1685
  *
1504
1686
  * @example
1505
1687
  * 9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M
@@ -1507,7 +1689,7 @@ export class GetContextStoreResponseBody extends $dara.Model {
1507
1689
  requestId?: string;
1508
1690
  /**
1509
1691
  * @remarks
1510
- * The status of the context store, such as ACTIVE, INITIALIZING, or FAILED.
1692
+ * The status of the context store. Valid values: ACTIVE, INITIALIZING, and FAILED.
1511
1693
  *
1512
1694
  * @example
1513
1695
  * ACTIVE
@@ -1515,7 +1697,7 @@ export class GetContextStoreResponseBody extends $dara.Model {
1515
1697
  status?: string;
1516
1698
  /**
1517
1699
  * @remarks
1518
- * The time when the context store was last updated, in ISO 8601 UTC format.
1700
+ * The last update time of the context store in ISO 8601 UTC format.
1519
1701
  *
1520
1702
  * Use the UTC time format: yyyy-MM-ddTHH:mm:ssZ
1521
1703
  *