@alicloud/agentloop20260520 2.4.1 → 2.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +2 -2
- package/dist/client.js +8 -2
- package/dist/client.js.map +1 -1
- package/dist/models/CreateContextStoreRequest.d.ts +117 -48
- package/dist/models/CreateContextStoreRequest.js +40 -1
- package/dist/models/CreateContextStoreRequest.js.map +1 -1
- package/dist/models/CreateContextStoreResponseBody.d.ts +1 -1
- package/dist/models/GetContextStoreResponseBody.d.ts +181 -55
- package/dist/models/GetContextStoreResponseBody.js +75 -1
- package/dist/models/GetContextStoreResponseBody.js.map +1 -1
- package/dist/models/ListContextStoresRequest.d.ts +1 -1
- package/dist/models/ListContextStoresResponseBody.d.ts +11 -6
- package/dist/models/ListContextStoresResponseBody.js +5 -0
- package/dist/models/ListContextStoresResponseBody.js.map +1 -1
- package/dist/models/SearchContextRequest.d.ts +8 -8
- package/dist/models/SearchContextResponseBody.d.ts +54 -3
- package/dist/models/SearchContextResponseBody.js +23 -0
- package/dist/models/SearchContextResponseBody.js.map +1 -1
- package/dist/models/UpdateContextStoreRequest.d.ts +136 -33
- package/dist/models/UpdateContextStoreRequest.js +46 -1
- package/dist/models/UpdateContextStoreRequest.js.map +1 -1
- package/dist/models/UpdateContextStoreResponseBody.d.ts +32 -2
- package/dist/models/UpdateContextStoreResponseBody.js +27 -1
- package/dist/models/UpdateContextStoreResponseBody.js.map +1 -1
- package/dist/models/model.d.ts +5 -0
- package/dist/models/model.js +75 -65
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +10 -2
- package/src/models/CreateContextStoreRequest.ts +147 -48
- package/src/models/CreateContextStoreResponseBody.ts +1 -1
- package/src/models/GetContextStoreResponseBody.ts +237 -55
- package/src/models/ListContextStoresRequest.ts +1 -1
- package/src/models/ListContextStoresResponseBody.ts +16 -6
- package/src/models/SearchContextRequest.ts +8 -8
- package/src/models/SearchContextResponseBody.ts +73 -3
- package/src/models/UpdateContextStoreRequest.ts +172 -33
- package/src/models/UpdateContextStoreResponseBody.ts +49 -2
- package/src/models/model.ts +5 -0
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class UpdateContextStoreRequestConfigAudit extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* Specifies whether to write item events for
|
|
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,10 @@ export class UpdateContextStoreRequestConfigAudit extends $dara.Model {
|
|
|
13
13
|
droppedCandidates?: boolean;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The recording
|
|
16
|
+
* The recording method for recall queries. Valid values:
|
|
17
|
+
* - raw: Plaintext.
|
|
18
|
+
* - hash: HMAC only.
|
|
19
|
+
* Default value: raw.
|
|
17
20
|
*
|
|
18
21
|
* @example
|
|
19
22
|
* raw
|
|
@@ -55,7 +58,7 @@ export class UpdateContextStoreRequestConfigAudit extends $dara.Model {
|
|
|
55
58
|
export class UpdateContextStoreRequestConfigExtractionPoliciesModel extends $dara.Model {
|
|
56
59
|
/**
|
|
57
60
|
* @remarks
|
|
58
|
-
* The name of the extraction model. Currently, only qwen3.8-flash is supported
|
|
61
|
+
* The name of the extraction model. Currently, only qwen3.8-flash is supported, which uses internal platform credentials.
|
|
59
62
|
*
|
|
60
63
|
* @example
|
|
61
64
|
* qwen3.8-flash
|
|
@@ -82,6 +85,102 @@ export class UpdateContextStoreRequestConfigExtractionPoliciesModel extends $dar
|
|
|
82
85
|
}
|
|
83
86
|
}
|
|
84
87
|
|
|
88
|
+
export class UpdateContextStoreRequestConfigExtractionPoliciesStoragePolicy extends $dara.Model {
|
|
89
|
+
/**
|
|
90
|
+
* @remarks
|
|
91
|
+
* The allowed storage actions. Default value: all actions (ADD, UPDATE, MERGE, and DELETE).
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* ["ADD","UPDATE","MERGE","DELETE"]
|
|
95
|
+
*/
|
|
96
|
+
allowedActions?: string[];
|
|
97
|
+
/**
|
|
98
|
+
* @remarks
|
|
99
|
+
* Specifies whether to enable deduplication in event mode. Default value: true.
|
|
100
|
+
*
|
|
101
|
+
* @example
|
|
102
|
+
* true
|
|
103
|
+
*/
|
|
104
|
+
dedupe?: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* @remarks
|
|
107
|
+
* Specifies whether to enable human edit protection. Default value: true. When enabled, automatic extraction does not overwrite manually modified memories.
|
|
108
|
+
*
|
|
109
|
+
* @example
|
|
110
|
+
* true
|
|
111
|
+
*/
|
|
112
|
+
humanEditProtection?: boolean;
|
|
113
|
+
/**
|
|
114
|
+
* @remarks
|
|
115
|
+
* The merge key for upsert operations. Valid values: factKey, semantic, and both. Default value: semantic.
|
|
116
|
+
*
|
|
117
|
+
* @example
|
|
118
|
+
* semantic
|
|
119
|
+
*/
|
|
120
|
+
mergeKey?: string;
|
|
121
|
+
/**
|
|
122
|
+
* @remarks
|
|
123
|
+
* The storage mode. Valid values:
|
|
124
|
+
* - event: Event append.
|
|
125
|
+
* - upsert: Merge and update.
|
|
126
|
+
* Default value: upsert.
|
|
127
|
+
*
|
|
128
|
+
* @example
|
|
129
|
+
* upsert
|
|
130
|
+
*/
|
|
131
|
+
mode?: string;
|
|
132
|
+
/**
|
|
133
|
+
* @remarks
|
|
134
|
+
* The similarity threshold for semantic merging. Valid values: 0 to 1. Default value: 0.4.
|
|
135
|
+
*
|
|
136
|
+
* @example
|
|
137
|
+
* 0.4
|
|
138
|
+
*/
|
|
139
|
+
similarityThreshold?: number;
|
|
140
|
+
/**
|
|
141
|
+
* @remarks
|
|
142
|
+
* The number of days before memories expire. A value of 0 indicates that memories do not expire.
|
|
143
|
+
*
|
|
144
|
+
* @example
|
|
145
|
+
* 0
|
|
146
|
+
*/
|
|
147
|
+
ttlDays?: number;
|
|
148
|
+
static names(): { [key: string]: string } {
|
|
149
|
+
return {
|
|
150
|
+
allowedActions: 'allowedActions',
|
|
151
|
+
dedupe: 'dedupe',
|
|
152
|
+
humanEditProtection: 'humanEditProtection',
|
|
153
|
+
mergeKey: 'mergeKey',
|
|
154
|
+
mode: 'mode',
|
|
155
|
+
similarityThreshold: 'similarityThreshold',
|
|
156
|
+
ttlDays: 'ttlDays',
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
static types(): { [key: string]: any } {
|
|
161
|
+
return {
|
|
162
|
+
allowedActions: { 'type': 'array', 'itemType': 'string' },
|
|
163
|
+
dedupe: 'boolean',
|
|
164
|
+
humanEditProtection: 'boolean',
|
|
165
|
+
mergeKey: 'string',
|
|
166
|
+
mode: 'string',
|
|
167
|
+
similarityThreshold: 'number',
|
|
168
|
+
ttlDays: 'number',
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
validate() {
|
|
173
|
+
if(Array.isArray(this.allowedActions)) {
|
|
174
|
+
$dara.Model.validateArray(this.allowedActions);
|
|
175
|
+
}
|
|
176
|
+
super.validate();
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
constructor(map?: { [key: string]: any }) {
|
|
180
|
+
super(map);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
85
184
|
export class UpdateContextStoreRequestConfigExtractionPolicies extends $dara.Model {
|
|
86
185
|
/**
|
|
87
186
|
* @remarks
|
|
@@ -93,7 +192,7 @@ export class UpdateContextStoreRequestConfigExtractionPolicies extends $dara.Mod
|
|
|
93
192
|
categories?: string[];
|
|
94
193
|
/**
|
|
95
194
|
* @remarks
|
|
96
|
-
* The custom extraction instructions. This parameter is required when preset is set to custom.
|
|
195
|
+
* The custom extraction instructions. This parameter is required when preset is set to custom. Length: 1 to 8000 characters.
|
|
97
196
|
*
|
|
98
197
|
* @example
|
|
99
198
|
* Extract only user product preferences
|
|
@@ -101,7 +200,7 @@ export class UpdateContextStoreRequestConfigExtractionPolicies extends $dara.Mod
|
|
|
101
200
|
customInstructions?: string;
|
|
102
201
|
/**
|
|
103
202
|
* @remarks
|
|
104
|
-
* Specifies whether to
|
|
203
|
+
* Specifies whether to execute this policy for new inputs. Default value: true. Disabling the policy does not delete historical memories.
|
|
105
204
|
*
|
|
106
205
|
* @example
|
|
107
206
|
* true
|
|
@@ -138,7 +237,12 @@ export class UpdateContextStoreRequestConfigExtractionPolicies extends $dara.Mod
|
|
|
138
237
|
preset?: string;
|
|
139
238
|
/**
|
|
140
239
|
* @remarks
|
|
141
|
-
* The
|
|
240
|
+
* The independent storage rule 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.
|
|
241
|
+
*/
|
|
242
|
+
storagePolicy?: UpdateContextStoreRequestConfigExtractionPoliciesStoragePolicy;
|
|
243
|
+
/**
|
|
244
|
+
* @remarks
|
|
245
|
+
* The ID of the extraction policy. This parameter is optional. If omitted, the default value is used. The ID must start with a letter and can contain only letters, digits, underscores, and hyphens. Maximum length: 64 characters. After default processing, the ID must be unique within the same library. Modifying the name or instructions does not change this ID.
|
|
142
246
|
*
|
|
143
247
|
* @example
|
|
144
248
|
* preferences
|
|
@@ -153,6 +257,7 @@ export class UpdateContextStoreRequestConfigExtractionPolicies extends $dara.Mod
|
|
|
153
257
|
model: 'model',
|
|
154
258
|
name: 'name',
|
|
155
259
|
preset: 'preset',
|
|
260
|
+
storagePolicy: 'storagePolicy',
|
|
156
261
|
strategyId: 'strategyId',
|
|
157
262
|
};
|
|
158
263
|
}
|
|
@@ -166,6 +271,7 @@ export class UpdateContextStoreRequestConfigExtractionPolicies extends $dara.Mod
|
|
|
166
271
|
model: UpdateContextStoreRequestConfigExtractionPoliciesModel,
|
|
167
272
|
name: 'string',
|
|
168
273
|
preset: 'string',
|
|
274
|
+
storagePolicy: UpdateContextStoreRequestConfigExtractionPoliciesStoragePolicy,
|
|
169
275
|
strategyId: 'string',
|
|
170
276
|
};
|
|
171
277
|
}
|
|
@@ -180,6 +286,9 @@ export class UpdateContextStoreRequestConfigExtractionPolicies extends $dara.Mod
|
|
|
180
286
|
if(this.model && typeof (this.model as any).validate === 'function') {
|
|
181
287
|
(this.model as any).validate();
|
|
182
288
|
}
|
|
289
|
+
if(this.storagePolicy && typeof (this.storagePolicy as any).validate === 'function') {
|
|
290
|
+
(this.storagePolicy as any).validate();
|
|
291
|
+
}
|
|
183
292
|
super.validate();
|
|
184
293
|
}
|
|
185
294
|
|
|
@@ -191,7 +300,7 @@ export class UpdateContextStoreRequestConfigExtractionPolicies extends $dara.Mod
|
|
|
191
300
|
export class UpdateContextStoreRequestConfigExtractionPolicyModel extends $dara.Model {
|
|
192
301
|
/**
|
|
193
302
|
* @remarks
|
|
194
|
-
* The name of the extraction model. Currently, only qwen3.8-flash is supported
|
|
303
|
+
* The name of the extraction model. Currently, only qwen3.8-flash is supported, which uses internal platform credentials.
|
|
195
304
|
*
|
|
196
305
|
* @example
|
|
197
306
|
* qwen3.8-flash
|
|
@@ -229,7 +338,7 @@ export class UpdateContextStoreRequestConfigExtractionPolicy extends $dara.Model
|
|
|
229
338
|
categories?: string[];
|
|
230
339
|
/**
|
|
231
340
|
* @remarks
|
|
232
|
-
* The custom extraction instructions. This parameter is required when preset is set to custom.
|
|
341
|
+
* The custom extraction instructions. This parameter is required when preset is set to custom. Length: 1 to 8000 characters.
|
|
233
342
|
*
|
|
234
343
|
* @example
|
|
235
344
|
* Extract only user product preferences
|
|
@@ -297,7 +406,7 @@ export class UpdateContextStoreRequestConfigExtractionPolicy extends $dara.Model
|
|
|
297
406
|
export class UpdateContextStoreRequestConfigScopePolicy extends $dara.Model {
|
|
298
407
|
/**
|
|
299
408
|
* @remarks
|
|
300
|
-
* Specifies that at least one of the
|
|
409
|
+
* Specifies that at least one of the scope fields must be non-empty. Valid values for the elements: userId, agentId, appId, and runId.
|
|
301
410
|
*
|
|
302
411
|
* @example
|
|
303
412
|
* ["userId"]
|
|
@@ -330,7 +439,7 @@ export class UpdateContextStoreRequestConfigScopePolicy extends $dara.Model {
|
|
|
330
439
|
export class UpdateContextStoreRequestConfigSourceDatasetCustomFields extends $dara.Model {
|
|
331
440
|
/**
|
|
332
441
|
* @remarks
|
|
333
|
-
* The field
|
|
442
|
+
* The description of the field. This parameter is required when usage is set to extraction-input.
|
|
334
443
|
*
|
|
335
444
|
* @example
|
|
336
445
|
* Customer tier
|
|
@@ -354,7 +463,7 @@ export class UpdateContextStoreRequestConfigSourceDatasetCustomFields extends $d
|
|
|
354
463
|
sourceField?: string;
|
|
355
464
|
/**
|
|
356
465
|
* @remarks
|
|
357
|
-
* The target path
|
|
466
|
+
* The target write path, such as metadata.customerTier.
|
|
358
467
|
*
|
|
359
468
|
* @example
|
|
360
469
|
* metadata.customerTier
|
|
@@ -400,7 +509,7 @@ export class UpdateContextStoreRequestConfigSourceDatasetCustomFields extends $d
|
|
|
400
509
|
export class UpdateContextStoreRequestConfigSourceDatasetFilter extends $dara.Model {
|
|
401
510
|
/**
|
|
402
511
|
* @remarks
|
|
403
|
-
* The subset of the
|
|
512
|
+
* The subset of the Pipeline where clause, which is pushed down to SQL.
|
|
404
513
|
*
|
|
405
514
|
* @example
|
|
406
515
|
* appId = \\"crm-service\\"
|
|
@@ -430,12 +539,12 @@ export class UpdateContextStoreRequestConfigSourceDatasetFilter extends $dara.Mo
|
|
|
430
539
|
export class UpdateContextStoreRequestConfigSourceDataset extends $dara.Model {
|
|
431
540
|
/**
|
|
432
541
|
* @remarks
|
|
433
|
-
* The list of custom field declarations. If
|
|
542
|
+
* The list of custom field declarations. If provided, the entire list is overwritten.
|
|
434
543
|
*/
|
|
435
544
|
customFields?: UpdateContextStoreRequestConfigSourceDatasetCustomFields[];
|
|
436
545
|
/**
|
|
437
546
|
* @remarks
|
|
438
|
-
* The row filter
|
|
547
|
+
* The row filter condition.
|
|
439
548
|
*/
|
|
440
549
|
filter?: UpdateContextStoreRequestConfigSourceDatasetFilter;
|
|
441
550
|
/**
|
|
@@ -488,7 +597,7 @@ export class UpdateContextStoreRequestConfigSourceTrajectoryFilter extends $dara
|
|
|
488
597
|
agentNames?: string[];
|
|
489
598
|
/**
|
|
490
599
|
* @remarks
|
|
491
|
-
* Specifies whether to exclude degraded trajectories. Default value: false (
|
|
600
|
+
* Specifies whether to exclude degraded trajectories. Default value: false (degraded trajectories are included).
|
|
492
601
|
*
|
|
493
602
|
* @example
|
|
494
603
|
* false
|
|
@@ -504,7 +613,7 @@ export class UpdateContextStoreRequestConfigSourceTrajectoryFilter extends $dara
|
|
|
504
613
|
minStepCount?: number;
|
|
505
614
|
/**
|
|
506
615
|
* @remarks
|
|
507
|
-
* The native Simple Log Service (SLS) query statement
|
|
616
|
+
* The native Simple Log Service (SLS) query statement, which is combined with the preceding conditions using AND.
|
|
508
617
|
*
|
|
509
618
|
* @example
|
|
510
619
|
* tool_names:"search_order"
|
|
@@ -556,7 +665,7 @@ export class UpdateContextStoreRequestConfigSourceTrajectoryFilter extends $dara
|
|
|
556
665
|
export class UpdateContextStoreRequestConfigSourceTrajectoryScopeMapping extends $dara.Model {
|
|
557
666
|
/**
|
|
558
667
|
* @remarks
|
|
559
|
-
* The JSONPath for agentId. Default value: $.agent_name.
|
|
668
|
+
* The JSONPath expression for agentId. Default value: $.agent_name.
|
|
560
669
|
*
|
|
561
670
|
* @example
|
|
562
671
|
* $.agent_name
|
|
@@ -564,7 +673,7 @@ export class UpdateContextStoreRequestConfigSourceTrajectoryScopeMapping extends
|
|
|
564
673
|
agentId?: string;
|
|
565
674
|
/**
|
|
566
675
|
* @remarks
|
|
567
|
-
* The JSONPath for appId. Default value: $.service_names[0].
|
|
676
|
+
* The JSONPath expression for appId. Default value: $.service_names[0].
|
|
568
677
|
*
|
|
569
678
|
* @example
|
|
570
679
|
* $.service_names[0]
|
|
@@ -572,7 +681,7 @@ export class UpdateContextStoreRequestConfigSourceTrajectoryScopeMapping extends
|
|
|
572
681
|
appId?: string;
|
|
573
682
|
/**
|
|
574
683
|
* @remarks
|
|
575
|
-
* The JSONPath for runId. Default value: $.trajectory_id.
|
|
684
|
+
* The JSONPath expression for runId. Default value: $.trajectory_id.
|
|
576
685
|
*
|
|
577
686
|
* @example
|
|
578
687
|
* $.trajectory_id
|
|
@@ -580,7 +689,7 @@ export class UpdateContextStoreRequestConfigSourceTrajectoryScopeMapping extends
|
|
|
580
689
|
runId?: string;
|
|
581
690
|
/**
|
|
582
691
|
* @remarks
|
|
583
|
-
* The JSONPath for userId. By default, this field is not mapped.
|
|
692
|
+
* The JSONPath expression for userId. By default, this field is not mapped.
|
|
584
693
|
*
|
|
585
694
|
* @example
|
|
586
695
|
* $.trajectory_extensions.user_id
|
|
@@ -616,7 +725,7 @@ export class UpdateContextStoreRequestConfigSourceTrajectoryScopeMapping extends
|
|
|
616
725
|
export class UpdateContextStoreRequestConfigSourceTrajectory extends $dara.Model {
|
|
617
726
|
/**
|
|
618
727
|
* @remarks
|
|
619
|
-
* The trajectory filter conditions. Conditions are combined with AND,
|
|
728
|
+
* The trajectory filter conditions. Conditions are combined with AND, while items within a list are combined with OR.
|
|
620
729
|
*/
|
|
621
730
|
filter?: UpdateContextStoreRequestConfigSourceTrajectoryFilter;
|
|
622
731
|
/**
|
|
@@ -676,7 +785,7 @@ export class UpdateContextStoreRequestConfigSourceTrajectory extends $dara.Model
|
|
|
676
785
|
export class UpdateContextStoreRequestConfigSource extends $dara.Model {
|
|
677
786
|
/**
|
|
678
787
|
* @remarks
|
|
679
|
-
* The AgentSpace where the trace data source is located. Cross-AgentSpace operations are not supported in the current
|
|
788
|
+
* The AgentSpace where the trace data source is located. Cross-AgentSpace operations are not supported in the current version. If specified, the value must be equal to the path AgentSpace. Otherwise, a 400 parameter error is returned. The AgentSpace cannot be changed after creation.
|
|
680
789
|
*
|
|
681
790
|
* @example
|
|
682
791
|
* my-agent-space
|
|
@@ -689,7 +798,7 @@ export class UpdateContextStoreRequestConfigSource extends $dara.Model {
|
|
|
689
798
|
dataset?: UpdateContextStoreRequestConfigSourceDataset;
|
|
690
799
|
/**
|
|
691
800
|
* @remarks
|
|
692
|
-
* The start time for data backfill in ISO 8601 UTC format.
|
|
801
|
+
* The start time for data backfill, in ISO 8601 UTC format.
|
|
693
802
|
*
|
|
694
803
|
* @example
|
|
695
804
|
* 2026-01-01T00:00:00Z
|
|
@@ -744,7 +853,7 @@ export class UpdateContextStoreRequestConfigStoragePolicy extends $dara.Model {
|
|
|
744
853
|
allowedActions?: string[];
|
|
745
854
|
/**
|
|
746
855
|
* @remarks
|
|
747
|
-
* Specifies whether to
|
|
856
|
+
* Specifies whether to enable deduplication in event mode. Default value: true.
|
|
748
857
|
*
|
|
749
858
|
* @example
|
|
750
859
|
* true
|
|
@@ -768,7 +877,10 @@ export class UpdateContextStoreRequestConfigStoragePolicy extends $dara.Model {
|
|
|
768
877
|
mergeKey?: string;
|
|
769
878
|
/**
|
|
770
879
|
* @remarks
|
|
771
|
-
* The storage mode. Valid values:
|
|
880
|
+
* The storage mode. Valid values:
|
|
881
|
+
* - event: Event append.
|
|
882
|
+
* - upsert: Merge and update.
|
|
883
|
+
* Default value: upsert.
|
|
772
884
|
*
|
|
773
885
|
* @example
|
|
774
886
|
* upsert
|
|
@@ -834,7 +946,7 @@ export class UpdateContextStoreRequestConfig extends $dara.Model {
|
|
|
834
946
|
audit?: UpdateContextStoreRequestConfigAudit;
|
|
835
947
|
/**
|
|
836
948
|
* @remarks
|
|
837
|
-
* The extraction policies. You can specify 1 to 10 policies.
|
|
949
|
+
* The extraction policies. You can specify 1 to 10 policies. Compatible fields returned as-is during updates are ignored. strategyVersion indicates the snapshot version of the entire library configuration.
|
|
838
950
|
*/
|
|
839
951
|
extractionPolicies?: UpdateContextStoreRequestConfigExtractionPolicies[];
|
|
840
952
|
/**
|
|
@@ -844,12 +956,17 @@ export class UpdateContextStoreRequestConfig extends $dara.Model {
|
|
|
844
956
|
extractionPolicy?: UpdateContextStoreRequestConfigExtractionPolicy;
|
|
845
957
|
/**
|
|
846
958
|
* @remarks
|
|
847
|
-
* The metadata field mapping
|
|
959
|
+
* The metadata field mapping, where the key is the business field and the value is the storage field.
|
|
848
960
|
*
|
|
849
961
|
* @example
|
|
850
962
|
* {"userId":"user_id","sessionId":"session_id"}
|
|
851
963
|
*/
|
|
852
964
|
metadataField?: { [key: string]: string };
|
|
965
|
+
/**
|
|
966
|
+
* @remarks
|
|
967
|
+
* Specifies whether runtime recall is allowed for the experience library. When modifying this parameter, you must provide expectedRuntimeRecallRevision and submit only this property in the config.
|
|
968
|
+
*/
|
|
969
|
+
runtimeRecallEnabled?: boolean;
|
|
853
970
|
/**
|
|
854
971
|
* @remarks
|
|
855
972
|
* The scope constraint policy.
|
|
@@ -857,7 +974,7 @@ export class UpdateContextStoreRequestConfig extends $dara.Model {
|
|
|
857
974
|
scopePolicy?: UpdateContextStoreRequestConfigScopePolicy;
|
|
858
975
|
/**
|
|
859
976
|
* @remarks
|
|
860
|
-
* The datasource config
|
|
977
|
+
* The datasource config, which serves only as the root identity for the data source.
|
|
861
978
|
*/
|
|
862
979
|
source?: UpdateContextStoreRequestConfigSource;
|
|
863
980
|
/**
|
|
@@ -871,6 +988,7 @@ export class UpdateContextStoreRequestConfig extends $dara.Model {
|
|
|
871
988
|
extractionPolicies: 'extractionPolicies',
|
|
872
989
|
extractionPolicy: 'extractionPolicy',
|
|
873
990
|
metadataField: 'metadataField',
|
|
991
|
+
runtimeRecallEnabled: 'runtimeRecallEnabled',
|
|
874
992
|
scopePolicy: 'scopePolicy',
|
|
875
993
|
source: 'source',
|
|
876
994
|
storagePolicy: 'storagePolicy',
|
|
@@ -883,6 +1001,7 @@ export class UpdateContextStoreRequestConfig extends $dara.Model {
|
|
|
883
1001
|
extractionPolicies: { 'type': 'array', 'itemType': UpdateContextStoreRequestConfigExtractionPolicies },
|
|
884
1002
|
extractionPolicy: UpdateContextStoreRequestConfigExtractionPolicy,
|
|
885
1003
|
metadataField: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1004
|
+
runtimeRecallEnabled: 'boolean',
|
|
886
1005
|
scopePolicy: UpdateContextStoreRequestConfigScopePolicy,
|
|
887
1006
|
source: UpdateContextStoreRequestConfigSource,
|
|
888
1007
|
storagePolicy: UpdateContextStoreRequestConfigStoragePolicy,
|
|
@@ -922,7 +1041,7 @@ export class UpdateContextStoreRequestConfig extends $dara.Model {
|
|
|
922
1041
|
export class UpdateContextStoreRequest extends $dara.Model {
|
|
923
1042
|
/**
|
|
924
1043
|
* @remarks
|
|
925
|
-
* The description of the policy change. A new policy version is
|
|
1044
|
+
* The description of the policy change. A new policy version is generated when policy fields in the configuration change.
|
|
926
1045
|
*
|
|
927
1046
|
* @example
|
|
928
1047
|
* Relax the similarity threshold
|
|
@@ -930,12 +1049,12 @@ export class UpdateContextStoreRequest extends $dara.Model {
|
|
|
930
1049
|
changeNote?: string;
|
|
931
1050
|
/**
|
|
932
1051
|
* @remarks
|
|
933
|
-
* The context library configuration. If
|
|
1052
|
+
* The context library configuration. If passed, the entire configuration is overwritten. If not passed, the original configuration is retained.
|
|
934
1053
|
*/
|
|
935
1054
|
config?: UpdateContextStoreRequestConfig;
|
|
936
1055
|
/**
|
|
937
1056
|
* @remarks
|
|
938
|
-
* The context library type. This field
|
|
1057
|
+
* The context library type. This field cannot be changed after creation and is provided only for exception correction.
|
|
939
1058
|
*
|
|
940
1059
|
* @example
|
|
941
1060
|
* experience
|
|
@@ -951,7 +1070,23 @@ export class UpdateContextStoreRequest extends $dara.Model {
|
|
|
951
1070
|
description?: string;
|
|
952
1071
|
/**
|
|
953
1072
|
* @remarks
|
|
954
|
-
* The
|
|
1073
|
+
* The expected runtime recall revision. This field is required when you modify the runtime recall switch and must be equal to the config.runtimeRecallRevision value returned by GetContextStore. A 409 error is returned if a conflict occurs.
|
|
1074
|
+
*
|
|
1075
|
+
* @example
|
|
1076
|
+
* 1
|
|
1077
|
+
*/
|
|
1078
|
+
expectedRuntimeRecallRevision?: number;
|
|
1079
|
+
/**
|
|
1080
|
+
* @remarks
|
|
1081
|
+
* The audit reason for modifying the runtime recall switch. The maximum length is 2,000 characters.
|
|
1082
|
+
*
|
|
1083
|
+
* @example
|
|
1084
|
+
* Pause runtime recall during experience content adjustment
|
|
1085
|
+
*/
|
|
1086
|
+
reason?: string;
|
|
1087
|
+
/**
|
|
1088
|
+
* @remarks
|
|
1089
|
+
* The running status, which can be Active or Paused. For the memory type, pausing stops data source reading and extraction. For the experience dataset follow type, pausing retains submitted and in-flight checkpoints, and resuming continues to process new records without skipping history from the current time. You do not need to pass back the source if you only update the status.
|
|
955
1090
|
*
|
|
956
1091
|
* @example
|
|
957
1092
|
* Active
|
|
@@ -959,7 +1094,7 @@ export class UpdateContextStoreRequest extends $dara.Model {
|
|
|
959
1094
|
status?: string;
|
|
960
1095
|
/**
|
|
961
1096
|
* @remarks
|
|
962
|
-
* The
|
|
1097
|
+
* The client token. This is a unique string generated by the client to ensure the idempotence of the update operation.
|
|
963
1098
|
*
|
|
964
1099
|
* @example
|
|
965
1100
|
* a1b2c3d4-1234-5678-90ab-cdef12345678
|
|
@@ -971,6 +1106,8 @@ export class UpdateContextStoreRequest extends $dara.Model {
|
|
|
971
1106
|
config: 'config',
|
|
972
1107
|
contextType: 'contextType',
|
|
973
1108
|
description: 'description',
|
|
1109
|
+
expectedRuntimeRecallRevision: 'expectedRuntimeRecallRevision',
|
|
1110
|
+
reason: 'reason',
|
|
974
1111
|
status: 'status',
|
|
975
1112
|
clientToken: 'clientToken',
|
|
976
1113
|
};
|
|
@@ -982,6 +1119,8 @@ export class UpdateContextStoreRequest extends $dara.Model {
|
|
|
982
1119
|
config: UpdateContextStoreRequestConfig,
|
|
983
1120
|
contextType: 'string',
|
|
984
1121
|
description: 'string',
|
|
1122
|
+
expectedRuntimeRecallRevision: 'number',
|
|
1123
|
+
reason: 'string',
|
|
985
1124
|
status: 'string',
|
|
986
1125
|
clientToken: 'string',
|
|
987
1126
|
};
|
|
@@ -2,10 +2,52 @@
|
|
|
2
2
|
import * as $dara from '@darabonba/typescript';
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
export class UpdateContextStoreResponseBodyConfig extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* Indicates whether runtime recall is allowed after the experience library is updated.
|
|
9
|
+
*/
|
|
10
|
+
runtimeRecallEnabled?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* The runtime recall property version that takes effect after this update.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* 1
|
|
17
|
+
*/
|
|
18
|
+
runtimeRecallRevision?: number;
|
|
19
|
+
static names(): { [key: string]: string } {
|
|
20
|
+
return {
|
|
21
|
+
runtimeRecallEnabled: 'runtimeRecallEnabled',
|
|
22
|
+
runtimeRecallRevision: 'runtimeRecallRevision',
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
static types(): { [key: string]: any } {
|
|
27
|
+
return {
|
|
28
|
+
runtimeRecallEnabled: 'boolean',
|
|
29
|
+
runtimeRecallRevision: 'number',
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
validate() {
|
|
34
|
+
super.validate();
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
constructor(map?: { [key: string]: any }) {
|
|
38
|
+
super(map);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
5
42
|
export class UpdateContextStoreResponseBody extends $dara.Model {
|
|
6
43
|
/**
|
|
7
44
|
* @remarks
|
|
8
|
-
* The
|
|
45
|
+
* The configuration properties after the runtime recall switch is updated. This block is not returned for other library update operations.
|
|
46
|
+
*/
|
|
47
|
+
config?: UpdateContextStoreResponseBodyConfig;
|
|
48
|
+
/**
|
|
49
|
+
* @remarks
|
|
50
|
+
* The request ID, which is used to locate this request during troubleshooting.
|
|
9
51
|
*
|
|
10
52
|
* @example
|
|
11
53
|
* 9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M
|
|
@@ -13,7 +55,7 @@ export class UpdateContextStoreResponseBody extends $dara.Model {
|
|
|
13
55
|
requestId?: string;
|
|
14
56
|
/**
|
|
15
57
|
* @remarks
|
|
16
|
-
* The strategy version that takes effect after the update for the memory type. If the strategy remains unchanged, the version is the same as
|
|
58
|
+
* The strategy version number that takes effect after the update for the memory type. If the strategy remains unchanged, the version number is the same as before the update.
|
|
17
59
|
*
|
|
18
60
|
* @example
|
|
19
61
|
* 2
|
|
@@ -21,6 +63,7 @@ export class UpdateContextStoreResponseBody extends $dara.Model {
|
|
|
21
63
|
strategyVersion?: number;
|
|
22
64
|
static names(): { [key: string]: string } {
|
|
23
65
|
return {
|
|
66
|
+
config: 'config',
|
|
24
67
|
requestId: 'requestId',
|
|
25
68
|
strategyVersion: 'strategyVersion',
|
|
26
69
|
};
|
|
@@ -28,12 +71,16 @@ export class UpdateContextStoreResponseBody extends $dara.Model {
|
|
|
28
71
|
|
|
29
72
|
static types(): { [key: string]: any } {
|
|
30
73
|
return {
|
|
74
|
+
config: UpdateContextStoreResponseBodyConfig,
|
|
31
75
|
requestId: 'string',
|
|
32
76
|
strategyVersion: 'number',
|
|
33
77
|
};
|
|
34
78
|
}
|
|
35
79
|
|
|
36
80
|
validate() {
|
|
81
|
+
if(this.config && typeof (this.config as any).validate === 'function') {
|
|
82
|
+
(this.config as any).validate();
|
|
83
|
+
}
|
|
37
84
|
super.validate();
|
|
38
85
|
}
|
|
39
86
|
|
package/src/models/model.ts
CHANGED
|
@@ -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';
|
|
@@ -44,7 +45,9 @@ export { ExecuteQueryResponseBodyMetaTruncation } from './ExecuteQueryResponseBo
|
|
|
44
45
|
export { ExecuteQueryResponseBodyMeta } from './ExecuteQueryResponseBody';
|
|
45
46
|
export { GetAgentSpaceResponseBodyMseNamespace } from './GetAgentSpaceResponseBody';
|
|
46
47
|
export { GetContextStoreResponseBodyConfigAudit } from './GetContextStoreResponseBody';
|
|
48
|
+
export { GetContextStoreResponseBodyConfigAuditLogStore } from './GetContextStoreResponseBody';
|
|
47
49
|
export { GetContextStoreResponseBodyConfigExtractionPoliciesModel } from './GetContextStoreResponseBody';
|
|
50
|
+
export { GetContextStoreResponseBodyConfigExtractionPoliciesStoragePolicy } from './GetContextStoreResponseBody';
|
|
48
51
|
export { GetContextStoreResponseBodyConfigExtractionPolicies } from './GetContextStoreResponseBody';
|
|
49
52
|
export { GetContextStoreResponseBodyConfigExtractionPolicyModel } from './GetContextStoreResponseBody';
|
|
50
53
|
export { GetContextStoreResponseBodyConfigExtractionPolicy } from './GetContextStoreResponseBody';
|
|
@@ -136,6 +139,7 @@ export { RunPipelineRequestOutput } from './RunPipelineRequest';
|
|
|
136
139
|
export { SearchContextRequestScope } from './SearchContextRequest';
|
|
137
140
|
export { UpdateContextStoreRequestConfigAudit } from './UpdateContextStoreRequest';
|
|
138
141
|
export { UpdateContextStoreRequestConfigExtractionPoliciesModel } from './UpdateContextStoreRequest';
|
|
142
|
+
export { UpdateContextStoreRequestConfigExtractionPoliciesStoragePolicy } from './UpdateContextStoreRequest';
|
|
139
143
|
export { UpdateContextStoreRequestConfigExtractionPolicies } from './UpdateContextStoreRequest';
|
|
140
144
|
export { UpdateContextStoreRequestConfigExtractionPolicyModel } from './UpdateContextStoreRequest';
|
|
141
145
|
export { UpdateContextStoreRequestConfigExtractionPolicy } from './UpdateContextStoreRequest';
|
|
@@ -149,6 +153,7 @@ export { UpdateContextStoreRequestConfigSourceTrajectory } from './UpdateContext
|
|
|
149
153
|
export { UpdateContextStoreRequestConfigSource } from './UpdateContextStoreRequest';
|
|
150
154
|
export { UpdateContextStoreRequestConfigStoragePolicy } from './UpdateContextStoreRequest';
|
|
151
155
|
export { UpdateContextStoreRequestConfig } from './UpdateContextStoreRequest';
|
|
156
|
+
export { UpdateContextStoreResponseBodyConfig } from './UpdateContextStoreResponseBody';
|
|
152
157
|
export { UpdateDatasetRequestRenames } from './UpdateDatasetRequest';
|
|
153
158
|
export { UpdateEvaluatorSkillRequestFiles } from './UpdateEvaluatorSkillRequest';
|
|
154
159
|
export { UpdatePipelineRequestExecutePolicyContinuous } from './UpdatePipelineRequest';
|