@alicloud/agentloop20260520 2.4.1 → 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.
@@ -82,6 +82,78 @@ export class CreateContextStoreRequestConfigExtractionPoliciesModel extends $dar
82
82
  }
83
83
  }
84
84
 
85
+ export class CreateContextStoreRequestConfigExtractionPoliciesStoragePolicy extends $dara.Model {
86
+ /**
87
+ * @example
88
+ * ["ADD","UPDATE","MERGE","DELETE"]
89
+ */
90
+ allowedActions?: string[];
91
+ /**
92
+ * @example
93
+ * true
94
+ */
95
+ dedupe?: boolean;
96
+ /**
97
+ * @example
98
+ * true
99
+ */
100
+ humanEditProtection?: boolean;
101
+ /**
102
+ * @example
103
+ * semantic
104
+ */
105
+ mergeKey?: string;
106
+ /**
107
+ * @example
108
+ * upsert
109
+ */
110
+ mode?: string;
111
+ /**
112
+ * @example
113
+ * 0.4
114
+ */
115
+ similarityThreshold?: number;
116
+ /**
117
+ * @example
118
+ * 0
119
+ */
120
+ ttlDays?: number;
121
+ static names(): { [key: string]: string } {
122
+ return {
123
+ allowedActions: 'allowedActions',
124
+ dedupe: 'dedupe',
125
+ humanEditProtection: 'humanEditProtection',
126
+ mergeKey: 'mergeKey',
127
+ mode: 'mode',
128
+ similarityThreshold: 'similarityThreshold',
129
+ ttlDays: 'ttlDays',
130
+ };
131
+ }
132
+
133
+ static types(): { [key: string]: any } {
134
+ return {
135
+ allowedActions: { 'type': 'array', 'itemType': 'string' },
136
+ dedupe: 'boolean',
137
+ humanEditProtection: 'boolean',
138
+ mergeKey: 'string',
139
+ mode: 'string',
140
+ similarityThreshold: 'number',
141
+ ttlDays: 'number',
142
+ };
143
+ }
144
+
145
+ validate() {
146
+ if(Array.isArray(this.allowedActions)) {
147
+ $dara.Model.validateArray(this.allowedActions);
148
+ }
149
+ super.validate();
150
+ }
151
+
152
+ constructor(map?: { [key: string]: any }) {
153
+ super(map);
154
+ }
155
+ }
156
+
85
157
  export class CreateContextStoreRequestConfigExtractionPolicies extends $dara.Model {
86
158
  /**
87
159
  * @remarks
@@ -136,6 +208,7 @@ export class CreateContextStoreRequestConfigExtractionPolicies extends $dara.Mod
136
208
  * fact
137
209
  */
138
210
  preset?: string;
211
+ storagePolicy?: CreateContextStoreRequestConfigExtractionPoliciesStoragePolicy;
139
212
  /**
140
213
  * @remarks
141
214
  * The ID of the extraction policy. This parameter is optional. If omitted, the default value is used. The ID must start with a letter and can contain only letters, digits, underscores, and hyphens. The maximum length is 64 characters. After default value processing, the ID must be unique within the same library. Modifying the name or instructions does not change this ID.
@@ -153,6 +226,7 @@ export class CreateContextStoreRequestConfigExtractionPolicies extends $dara.Mod
153
226
  model: 'model',
154
227
  name: 'name',
155
228
  preset: 'preset',
229
+ storagePolicy: 'storagePolicy',
156
230
  strategyId: 'strategyId',
157
231
  };
158
232
  }
@@ -166,6 +240,7 @@ export class CreateContextStoreRequestConfigExtractionPolicies extends $dara.Mod
166
240
  model: CreateContextStoreRequestConfigExtractionPoliciesModel,
167
241
  name: 'string',
168
242
  preset: 'string',
243
+ storagePolicy: CreateContextStoreRequestConfigExtractionPoliciesStoragePolicy,
169
244
  strategyId: 'string',
170
245
  };
171
246
  }
@@ -180,6 +255,9 @@ export class CreateContextStoreRequestConfigExtractionPolicies extends $dara.Mod
180
255
  if(this.model && typeof (this.model as any).validate === 'function') {
181
256
  (this.model as any).validate();
182
257
  }
258
+ if(this.storagePolicy && typeof (this.storagePolicy as any).validate === 'function') {
259
+ (this.storagePolicy as any).validate();
260
+ }
183
261
  super.validate();
184
262
  }
185
263
 
@@ -82,6 +82,78 @@ export class GetContextStoreResponseBodyConfigExtractionPoliciesModel extends $d
82
82
  }
83
83
  }
84
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
+
85
157
  export class GetContextStoreResponseBodyConfigExtractionPolicies extends $dara.Model {
86
158
  /**
87
159
  * @remarks
@@ -136,6 +208,7 @@ export class GetContextStoreResponseBodyConfigExtractionPolicies extends $dara.M
136
208
  * fact
137
209
  */
138
210
  preset?: string;
211
+ storagePolicy?: GetContextStoreResponseBodyConfigExtractionPoliciesStoragePolicy;
139
212
  /**
140
213
  * @remarks
141
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.
@@ -155,6 +228,7 @@ export class GetContextStoreResponseBodyConfigExtractionPolicies extends $dara.M
155
228
  model: 'model',
156
229
  name: 'name',
157
230
  preset: 'preset',
231
+ storagePolicy: 'storagePolicy',
158
232
  strategyId: 'strategyId',
159
233
  };
160
234
  }
@@ -168,6 +242,7 @@ export class GetContextStoreResponseBodyConfigExtractionPolicies extends $dara.M
168
242
  model: GetContextStoreResponseBodyConfigExtractionPoliciesModel,
169
243
  name: 'string',
170
244
  preset: 'string',
245
+ storagePolicy: GetContextStoreResponseBodyConfigExtractionPoliciesStoragePolicy,
171
246
  strategyId: 'string',
172
247
  };
173
248
  }
@@ -182,6 +257,9 @@ export class GetContextStoreResponseBodyConfigExtractionPolicies extends $dara.M
182
257
  if(this.model && typeof (this.model as any).validate === 'function') {
183
258
  (this.model as any).validate();
184
259
  }
260
+ if(this.storagePolicy && typeof (this.storagePolicy as any).validate === 'function') {
261
+ (this.storagePolicy as any).validate();
262
+ }
185
263
  super.validate();
186
264
  }
187
265
 
@@ -1343,6 +1421,7 @@ export class GetContextStoreResponseBodyConfig extends $dara.Model {
1343
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.
1344
1422
  */
1345
1423
  sourceStatus?: GetContextStoreResponseBodyConfigSourceStatus;
1424
+ storageModes?: string[];
1346
1425
  /**
1347
1426
  * @remarks
1348
1427
  * The storage policy for the memory type.
@@ -1371,6 +1450,7 @@ export class GetContextStoreResponseBodyConfig extends $dara.Model {
1371
1450
  serviceNames: 'serviceNames',
1372
1451
  source: 'source',
1373
1452
  sourceStatus: 'sourceStatus',
1453
+ storageModes: 'storageModes',
1374
1454
  storagePolicy: 'storagePolicy',
1375
1455
  strategyVersion: 'strategyVersion',
1376
1456
  };
@@ -1391,6 +1471,7 @@ export class GetContextStoreResponseBodyConfig extends $dara.Model {
1391
1471
  serviceNames: { 'type': 'array', 'itemType': 'string' },
1392
1472
  source: GetContextStoreResponseBodyConfigSource,
1393
1473
  sourceStatus: GetContextStoreResponseBodyConfigSourceStatus,
1474
+ storageModes: { 'type': 'array', 'itemType': 'string' },
1394
1475
  storagePolicy: GetContextStoreResponseBodyConfigStoragePolicy,
1395
1476
  strategyVersion: 'number',
1396
1477
  };
@@ -1430,6 +1511,9 @@ export class GetContextStoreResponseBodyConfig extends $dara.Model {
1430
1511
  if(this.sourceStatus && typeof (this.sourceStatus as any).validate === 'function') {
1431
1512
  (this.sourceStatus as any).validate();
1432
1513
  }
1514
+ if(Array.isArray(this.storageModes)) {
1515
+ $dara.Model.validateArray(this.storageModes);
1516
+ }
1433
1517
  if(this.storagePolicy && typeof (this.storagePolicy as any).validate === 'function') {
1434
1518
  (this.storagePolicy as any).validate();
1435
1519
  }
@@ -85,6 +85,7 @@ export class ListContextStoresResponseBodyResults extends $dara.Model {
85
85
  * upsert
86
86
  */
87
87
  storageMode?: string;
88
+ storageModes?: string[];
88
89
  /**
89
90
  * @remarks
90
91
  * The time when the context store was last updated, in ISO 8601 UTC format.
@@ -107,6 +108,7 @@ export class ListContextStoresResponseBodyResults extends $dara.Model {
107
108
  sourceType: 'sourceType',
108
109
  status: 'status',
109
110
  storageMode: 'storageMode',
111
+ storageModes: 'storageModes',
110
112
  updateTime: 'updateTime',
111
113
  };
112
114
  }
@@ -123,6 +125,7 @@ export class ListContextStoresResponseBodyResults extends $dara.Model {
123
125
  sourceType: 'string',
124
126
  status: 'string',
125
127
  storageMode: 'string',
128
+ storageModes: { 'type': 'array', 'itemType': 'string' },
126
129
  updateTime: 'string',
127
130
  };
128
131
  }
@@ -131,6 +134,9 @@ export class ListContextStoresResponseBodyResults extends $dara.Model {
131
134
  if(Array.isArray(this.serviceNames)) {
132
135
  $dara.Model.validateArray(this.serviceNames);
133
136
  }
137
+ if(Array.isArray(this.storageModes)) {
138
+ $dara.Model.validateArray(this.storageModes);
139
+ }
134
140
  super.validate();
135
141
  }
136
142
 
@@ -82,6 +82,78 @@ export class UpdateContextStoreRequestConfigExtractionPoliciesModel extends $dar
82
82
  }
83
83
  }
84
84
 
85
+ export class UpdateContextStoreRequestConfigExtractionPoliciesStoragePolicy 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
+
85
157
  export class UpdateContextStoreRequestConfigExtractionPolicies extends $dara.Model {
86
158
  /**
87
159
  * @remarks
@@ -136,6 +208,7 @@ export class UpdateContextStoreRequestConfigExtractionPolicies extends $dara.Mod
136
208
  * fact
137
209
  */
138
210
  preset?: string;
211
+ storagePolicy?: UpdateContextStoreRequestConfigExtractionPoliciesStoragePolicy;
139
212
  /**
140
213
  * @remarks
141
214
  * The ID of the extraction policy. This parameter is optional. If omitted, the default value is default. 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. After default value processing, the ID must be unique within the same library. Modifying the name or instructions does not change this ID.
@@ -153,6 +226,7 @@ export class UpdateContextStoreRequestConfigExtractionPolicies extends $dara.Mod
153
226
  model: 'model',
154
227
  name: 'name',
155
228
  preset: 'preset',
229
+ storagePolicy: 'storagePolicy',
156
230
  strategyId: 'strategyId',
157
231
  };
158
232
  }
@@ -166,6 +240,7 @@ export class UpdateContextStoreRequestConfigExtractionPolicies extends $dara.Mod
166
240
  model: UpdateContextStoreRequestConfigExtractionPoliciesModel,
167
241
  name: 'string',
168
242
  preset: 'string',
243
+ storagePolicy: UpdateContextStoreRequestConfigExtractionPoliciesStoragePolicy,
169
244
  strategyId: 'string',
170
245
  };
171
246
  }
@@ -180,6 +255,9 @@ export class UpdateContextStoreRequestConfigExtractionPolicies extends $dara.Mod
180
255
  if(this.model && typeof (this.model as any).validate === 'function') {
181
256
  (this.model as any).validate();
182
257
  }
258
+ if(this.storagePolicy && typeof (this.storagePolicy as any).validate === 'function') {
259
+ (this.storagePolicy as any).validate();
260
+ }
183
261
  super.validate();
184
262
  }
185
263
 
@@ -1,6 +1,7 @@
1
1
  export { AuditTaskStateRuntimeError } from './AuditTaskState';
2
2
  export { CreateContextStoreRequestConfigAudit } from './CreateContextStoreRequest';
3
3
  export { CreateContextStoreRequestConfigExtractionPoliciesModel } from './CreateContextStoreRequest';
4
+ export { CreateContextStoreRequestConfigExtractionPoliciesStoragePolicy } from './CreateContextStoreRequest';
4
5
  export { CreateContextStoreRequestConfigExtractionPolicies } from './CreateContextStoreRequest';
5
6
  export { CreateContextStoreRequestConfigExtractionPolicyModel } from './CreateContextStoreRequest';
6
7
  export { CreateContextStoreRequestConfigExtractionPolicy } from './CreateContextStoreRequest';
@@ -45,6 +46,7 @@ export { ExecuteQueryResponseBodyMeta } from './ExecuteQueryResponseBody';
45
46
  export { GetAgentSpaceResponseBodyMseNamespace } from './GetAgentSpaceResponseBody';
46
47
  export { GetContextStoreResponseBodyConfigAudit } from './GetContextStoreResponseBody';
47
48
  export { GetContextStoreResponseBodyConfigExtractionPoliciesModel } from './GetContextStoreResponseBody';
49
+ export { GetContextStoreResponseBodyConfigExtractionPoliciesStoragePolicy } from './GetContextStoreResponseBody';
48
50
  export { GetContextStoreResponseBodyConfigExtractionPolicies } from './GetContextStoreResponseBody';
49
51
  export { GetContextStoreResponseBodyConfigExtractionPolicyModel } from './GetContextStoreResponseBody';
50
52
  export { GetContextStoreResponseBodyConfigExtractionPolicy } from './GetContextStoreResponseBody';
@@ -136,6 +138,7 @@ export { RunPipelineRequestOutput } from './RunPipelineRequest';
136
138
  export { SearchContextRequestScope } from './SearchContextRequest';
137
139
  export { UpdateContextStoreRequestConfigAudit } from './UpdateContextStoreRequest';
138
140
  export { UpdateContextStoreRequestConfigExtractionPoliciesModel } from './UpdateContextStoreRequest';
141
+ export { UpdateContextStoreRequestConfigExtractionPoliciesStoragePolicy } from './UpdateContextStoreRequest';
139
142
  export { UpdateContextStoreRequestConfigExtractionPolicies } from './UpdateContextStoreRequest';
140
143
  export { UpdateContextStoreRequestConfigExtractionPolicyModel } from './UpdateContextStoreRequest';
141
144
  export { UpdateContextStoreRequestConfigExtractionPolicy } from './UpdateContextStoreRequest';