@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.
- package/dist/client.d.ts +4 -4
- package/dist/client.js +7 -4
- package/dist/client.js.map +1 -1
- package/dist/models/CreateContextStoreRequest.d.ts +190 -42
- package/dist/models/CreateContextStoreRequest.js +106 -1
- package/dist/models/CreateContextStoreRequest.js.map +1 -1
- package/dist/models/CreateContextStoreResponseBody.d.ts +2 -2
- package/dist/models/GetAgentSpaceResponseBody.d.ts +8 -1
- package/dist/models/GetAgentSpaceResponseBody.js.map +1 -1
- package/dist/models/GetContextStoreResponseBody.d.ts +211 -66
- package/dist/models/GetContextStoreResponseBody.js +111 -1
- package/dist/models/GetContextStoreResponseBody.js.map +1 -1
- package/dist/models/ListContextStoresResponseBody.d.ts +1 -0
- package/dist/models/ListContextStoresResponseBody.js +5 -0
- package/dist/models/ListContextStoresResponseBody.js.map +1 -1
- package/dist/models/SearchContextRequest.d.ts +13 -5
- package/dist/models/SearchContextRequest.js +5 -0
- package/dist/models/SearchContextRequest.js.map +1 -1
- package/dist/models/SearchContextResponseBody.d.ts +3 -3
- package/dist/models/UpdateContextStoreRequest.d.ts +177 -31
- package/dist/models/UpdateContextStoreRequest.js +106 -1
- package/dist/models/UpdateContextStoreRequest.js.map +1 -1
- package/dist/models/UpdateContextStoreResponseBody.d.ts +2 -2
- package/dist/models/model.d.ts +9 -0
- package/dist/models/model.js +77 -59
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +8 -4
- package/src/models/CreateContextStoreRequest.ts +268 -42
- package/src/models/CreateContextStoreResponseBody.ts +2 -2
- package/src/models/GetAgentSpaceResponseBody.ts +8 -1
- package/src/models/GetContextStoreResponseBody.ts +294 -66
- package/src/models/ListContextStoresResponseBody.ts +6 -0
- package/src/models/SearchContextRequest.ts +18 -5
- package/src/models/SearchContextResponseBody.ts +3 -3
- package/src/models/UpdateContextStoreRequest.ts +255 -31
- package/src/models/UpdateContextStoreResponseBody.ts +2 -2
- package/src/models/model.ts +9 -0
|
@@ -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
|
|
|
@@ -65,7 +65,7 @@ export class SearchContextRequestScope extends $dara.Model {
|
|
|
65
65
|
export class SearchContextRequest extends $dara.Model {
|
|
66
66
|
/**
|
|
67
67
|
* @remarks
|
|
68
|
-
* The structured filter conditions. The key is the field name, and the value is the expected
|
|
68
|
+
* The structured filter conditions. The key is the field name, and the value is the expected match value.
|
|
69
69
|
*
|
|
70
70
|
* @example
|
|
71
71
|
* {"userId":"alice"}
|
|
@@ -73,7 +73,7 @@ export class SearchContextRequest extends $dara.Model {
|
|
|
73
73
|
filter?: { [key: string]: any };
|
|
74
74
|
/**
|
|
75
75
|
* @remarks
|
|
76
|
-
* Specifies whether to
|
|
76
|
+
* Specifies whether to apply structured formatting to the returned results.
|
|
77
77
|
*
|
|
78
78
|
* @example
|
|
79
79
|
* true
|
|
@@ -81,7 +81,7 @@ export class SearchContextRequest extends $dara.Model {
|
|
|
81
81
|
formatted?: boolean;
|
|
82
82
|
/**
|
|
83
83
|
* @remarks
|
|
84
|
-
* Specifies whether to include memories
|
|
84
|
+
* Specifies whether to include memories whose sourceState is inactive. Default value: false.
|
|
85
85
|
*
|
|
86
86
|
* @example
|
|
87
87
|
* false
|
|
@@ -89,7 +89,7 @@ export class SearchContextRequest extends $dara.Model {
|
|
|
89
89
|
includeInactive?: boolean;
|
|
90
90
|
/**
|
|
91
91
|
* @remarks
|
|
92
|
-
* The maximum number of returned results, which corresponds to the
|
|
92
|
+
* The maximum number of returned results, which corresponds to the top N results by similarity.
|
|
93
93
|
*
|
|
94
94
|
* @example
|
|
95
95
|
* 10
|
|
@@ -120,7 +120,15 @@ export class SearchContextRequest extends $dara.Model {
|
|
|
120
120
|
scope?: SearchContextRequestScope;
|
|
121
121
|
/**
|
|
122
122
|
* @remarks
|
|
123
|
-
*
|
|
123
|
+
* Filters results by extraction strategy ID. Multiple IDs in the list are evaluated with an OR condition. If this parameter is not specified, all strategies are recalled. An empty list returns a 400 error. If the format is valid but no matching IDs are found, an empty result is returned. IDs of historically removed strategies are supported.
|
|
124
|
+
*
|
|
125
|
+
* @example
|
|
126
|
+
* ["preferences","profile"]
|
|
127
|
+
*/
|
|
128
|
+
strategyIds?: string[];
|
|
129
|
+
/**
|
|
130
|
+
* @remarks
|
|
131
|
+
* The similarity threshold. Results with a similarity score below this value are filtered out. Valid values: 0 to 1.
|
|
124
132
|
*
|
|
125
133
|
* @example
|
|
126
134
|
* 0.5
|
|
@@ -135,6 +143,7 @@ export class SearchContextRequest extends $dara.Model {
|
|
|
135
143
|
query: 'query',
|
|
136
144
|
retrievalOption: 'retrievalOption',
|
|
137
145
|
scope: 'scope',
|
|
146
|
+
strategyIds: 'strategyIds',
|
|
138
147
|
threshold: 'threshold',
|
|
139
148
|
};
|
|
140
149
|
}
|
|
@@ -148,6 +157,7 @@ export class SearchContextRequest extends $dara.Model {
|
|
|
148
157
|
query: 'string',
|
|
149
158
|
retrievalOption: 'string',
|
|
150
159
|
scope: SearchContextRequestScope,
|
|
160
|
+
strategyIds: { 'type': 'array', 'itemType': 'string' },
|
|
151
161
|
threshold: 'number',
|
|
152
162
|
};
|
|
153
163
|
}
|
|
@@ -159,6 +169,9 @@ export class SearchContextRequest extends $dara.Model {
|
|
|
159
169
|
if(this.scope && typeof (this.scope as any).validate === 'function') {
|
|
160
170
|
(this.scope as any).validate();
|
|
161
171
|
}
|
|
172
|
+
if(Array.isArray(this.strategyIds)) {
|
|
173
|
+
$dara.Model.validateArray(this.strategyIds);
|
|
174
|
+
}
|
|
162
175
|
super.validate();
|
|
163
176
|
}
|
|
164
177
|
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class SearchContextResponseBody extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The audit write status. Valid values: ok
|
|
8
|
+
* The audit write status. Valid values: ok, degraded.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* ok
|
|
@@ -13,7 +13,7 @@ export class SearchContextResponseBody extends $dara.Model {
|
|
|
13
13
|
auditStatus?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The recall event ID. You can use this ID to call
|
|
16
|
+
* The recall event ID. You can use this ID to call GetContextStoreRecall to view audit details.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* 0190f1c2-7d3e-7a1b-9c4d-2e5f6a7b8c9d
|
|
@@ -21,7 +21,7 @@ export class SearchContextResponseBody extends $dara.Model {
|
|
|
21
21
|
recallEventId?: string;
|
|
22
22
|
/**
|
|
23
23
|
* @remarks
|
|
24
|
-
* The request ID, which
|
|
24
|
+
* The request ID, which is used to locate the request during troubleshooting.
|
|
25
25
|
*
|
|
26
26
|
* @example
|
|
27
27
|
* 9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M
|
|
@@ -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 dropped
|
|
8
|
+
* Specifies whether to write item events for candidates dropped during recall. Default value: false.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* false
|
|
@@ -13,7 +13,7 @@ export class UpdateContextStoreRequestConfigAudit extends $dara.Model {
|
|
|
13
13
|
droppedCandidates?: boolean;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The recording mode for
|
|
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,224 @@ export class UpdateContextStoreRequestConfigAudit extends $dara.Model {
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
+
export class UpdateContextStoreRequestConfigExtractionPoliciesModel extends $dara.Model {
|
|
56
|
+
/**
|
|
57
|
+
* @remarks
|
|
58
|
+
* The name of the extraction model. Currently, only qwen3.8-flash is supported. The platform uses internal credentials.
|
|
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 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
|
+
|
|
157
|
+
export class UpdateContextStoreRequestConfigExtractionPolicies 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?: UpdateContextStoreRequestConfigExtractionPoliciesModel;
|
|
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?: UpdateContextStoreRequestConfigExtractionPoliciesStoragePolicy;
|
|
212
|
+
/**
|
|
213
|
+
* @remarks
|
|
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.
|
|
215
|
+
*
|
|
216
|
+
* @example
|
|
217
|
+
* preferences
|
|
218
|
+
*/
|
|
219
|
+
strategyId?: string;
|
|
220
|
+
static names(): { [key: string]: string } {
|
|
221
|
+
return {
|
|
222
|
+
categories: 'categories',
|
|
223
|
+
customInstructions: 'customInstructions',
|
|
224
|
+
enabled: 'enabled',
|
|
225
|
+
excludeRules: 'excludeRules',
|
|
226
|
+
model: 'model',
|
|
227
|
+
name: 'name',
|
|
228
|
+
preset: 'preset',
|
|
229
|
+
storagePolicy: 'storagePolicy',
|
|
230
|
+
strategyId: 'strategyId',
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
static types(): { [key: string]: any } {
|
|
235
|
+
return {
|
|
236
|
+
categories: { 'type': 'array', 'itemType': 'string' },
|
|
237
|
+
customInstructions: 'string',
|
|
238
|
+
enabled: 'boolean',
|
|
239
|
+
excludeRules: { 'type': 'array', 'itemType': 'string' },
|
|
240
|
+
model: UpdateContextStoreRequestConfigExtractionPoliciesModel,
|
|
241
|
+
name: 'string',
|
|
242
|
+
preset: 'string',
|
|
243
|
+
storagePolicy: UpdateContextStoreRequestConfigExtractionPoliciesStoragePolicy,
|
|
244
|
+
strategyId: 'string',
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
validate() {
|
|
249
|
+
if(Array.isArray(this.categories)) {
|
|
250
|
+
$dara.Model.validateArray(this.categories);
|
|
251
|
+
}
|
|
252
|
+
if(Array.isArray(this.excludeRules)) {
|
|
253
|
+
$dara.Model.validateArray(this.excludeRules);
|
|
254
|
+
}
|
|
255
|
+
if(this.model && typeof (this.model as any).validate === 'function') {
|
|
256
|
+
(this.model as any).validate();
|
|
257
|
+
}
|
|
258
|
+
if(this.storagePolicy && typeof (this.storagePolicy as any).validate === 'function') {
|
|
259
|
+
(this.storagePolicy as any).validate();
|
|
260
|
+
}
|
|
261
|
+
super.validate();
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
constructor(map?: { [key: string]: any }) {
|
|
265
|
+
super(map);
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
|
|
55
269
|
export class UpdateContextStoreRequestConfigExtractionPolicyModel extends $dara.Model {
|
|
56
270
|
/**
|
|
57
271
|
* @remarks
|
|
58
|
-
* The name of the extraction model. Currently, only qwen3.8-flash is supported
|
|
272
|
+
* The name of the extraction model. Currently, only qwen3.8-flash is supported. The platform uses internal credentials.
|
|
59
273
|
*
|
|
60
274
|
* @example
|
|
61
275
|
* qwen3.8-flash
|
|
@@ -93,7 +307,7 @@ export class UpdateContextStoreRequestConfigExtractionPolicy extends $dara.Model
|
|
|
93
307
|
categories?: string[];
|
|
94
308
|
/**
|
|
95
309
|
* @remarks
|
|
96
|
-
* The custom extraction instructions. This parameter is required when preset is set to custom.
|
|
310
|
+
* The custom extraction instructions. This parameter is required when preset is set to custom. The length must be 1 to 8,000 characters.
|
|
97
311
|
*
|
|
98
312
|
* @example
|
|
99
313
|
* Extract only user product preferences
|
|
@@ -104,7 +318,7 @@ export class UpdateContextStoreRequestConfigExtractionPolicy extends $dara.Model
|
|
|
104
318
|
* The list of exclusion rules. Content that matches these rules is not extracted.
|
|
105
319
|
*
|
|
106
320
|
* @example
|
|
107
|
-
* ["Password",
|
|
321
|
+
* ["Password","ID number"]
|
|
108
322
|
*/
|
|
109
323
|
excludeRules?: string[];
|
|
110
324
|
/**
|
|
@@ -161,7 +375,7 @@ export class UpdateContextStoreRequestConfigExtractionPolicy extends $dara.Model
|
|
|
161
375
|
export class UpdateContextStoreRequestConfigScopePolicy extends $dara.Model {
|
|
162
376
|
/**
|
|
163
377
|
* @remarks
|
|
164
|
-
*
|
|
378
|
+
* Specifies that at least one of the specified scope fields must be non-empty. Valid values for elements: userId, agentId, appId, and runId.
|
|
165
379
|
*
|
|
166
380
|
* @example
|
|
167
381
|
* ["userId"]
|
|
@@ -194,7 +408,7 @@ export class UpdateContextStoreRequestConfigScopePolicy extends $dara.Model {
|
|
|
194
408
|
export class UpdateContextStoreRequestConfigSourceDatasetCustomFields extends $dara.Model {
|
|
195
409
|
/**
|
|
196
410
|
* @remarks
|
|
197
|
-
* The description
|
|
411
|
+
* The field description. Required when usage is set to extraction-input.
|
|
198
412
|
*
|
|
199
413
|
* @example
|
|
200
414
|
* Customer tier
|
|
@@ -264,7 +478,7 @@ export class UpdateContextStoreRequestConfigSourceDatasetCustomFields extends $d
|
|
|
264
478
|
export class UpdateContextStoreRequestConfigSourceDatasetFilter extends $dara.Model {
|
|
265
479
|
/**
|
|
266
480
|
* @remarks
|
|
267
|
-
* The subset of the
|
|
481
|
+
* The subset of the pipeline where clause, which is pushed down to SQL.
|
|
268
482
|
*
|
|
269
483
|
* @example
|
|
270
484
|
* appId = \\"crm-service\\"
|
|
@@ -352,7 +566,7 @@ export class UpdateContextStoreRequestConfigSourceTrajectoryFilter extends $dara
|
|
|
352
566
|
agentNames?: string[];
|
|
353
567
|
/**
|
|
354
568
|
* @remarks
|
|
355
|
-
* Specifies whether to exclude degraded trajectories. Default value: false (degraded trajectories
|
|
569
|
+
* Specifies whether to exclude degraded trajectories. Default value: false (includes degraded trajectories).
|
|
356
570
|
*
|
|
357
571
|
* @example
|
|
358
572
|
* false
|
|
@@ -368,7 +582,7 @@ export class UpdateContextStoreRequestConfigSourceTrajectoryFilter extends $dara
|
|
|
368
582
|
minStepCount?: number;
|
|
369
583
|
/**
|
|
370
584
|
* @remarks
|
|
371
|
-
* The native Simple Log Service (SLS) query statement
|
|
585
|
+
* The native Simple Log Service (SLS) query statement. It is combined with the preceding conditions using AND.
|
|
372
586
|
*
|
|
373
587
|
* @example
|
|
374
588
|
* tool_names:"search_order"
|
|
@@ -420,7 +634,7 @@ export class UpdateContextStoreRequestConfigSourceTrajectoryFilter extends $dara
|
|
|
420
634
|
export class UpdateContextStoreRequestConfigSourceTrajectoryScopeMapping extends $dara.Model {
|
|
421
635
|
/**
|
|
422
636
|
* @remarks
|
|
423
|
-
* The JSONPath
|
|
637
|
+
* The JSONPath for agentId. Default value: $.agent_name.
|
|
424
638
|
*
|
|
425
639
|
* @example
|
|
426
640
|
* $.agent_name
|
|
@@ -428,7 +642,7 @@ export class UpdateContextStoreRequestConfigSourceTrajectoryScopeMapping extends
|
|
|
428
642
|
agentId?: string;
|
|
429
643
|
/**
|
|
430
644
|
* @remarks
|
|
431
|
-
* The JSONPath
|
|
645
|
+
* The JSONPath for appId. Default value: $.service_names[0].
|
|
432
646
|
*
|
|
433
647
|
* @example
|
|
434
648
|
* $.service_names[0]
|
|
@@ -436,7 +650,7 @@ export class UpdateContextStoreRequestConfigSourceTrajectoryScopeMapping extends
|
|
|
436
650
|
appId?: string;
|
|
437
651
|
/**
|
|
438
652
|
* @remarks
|
|
439
|
-
* The JSONPath
|
|
653
|
+
* The JSONPath for runId. Default value: $.trajectory_id.
|
|
440
654
|
*
|
|
441
655
|
* @example
|
|
442
656
|
* $.trajectory_id
|
|
@@ -444,7 +658,7 @@ export class UpdateContextStoreRequestConfigSourceTrajectoryScopeMapping extends
|
|
|
444
658
|
runId?: string;
|
|
445
659
|
/**
|
|
446
660
|
* @remarks
|
|
447
|
-
* The JSONPath
|
|
661
|
+
* The JSONPath for userId. By default, this field is not mapped.
|
|
448
662
|
*
|
|
449
663
|
* @example
|
|
450
664
|
* $.trajectory_extensions.user_id
|
|
@@ -480,12 +694,12 @@ export class UpdateContextStoreRequestConfigSourceTrajectoryScopeMapping extends
|
|
|
480
694
|
export class UpdateContextStoreRequestConfigSourceTrajectory extends $dara.Model {
|
|
481
695
|
/**
|
|
482
696
|
* @remarks
|
|
483
|
-
* The trajectory filter conditions. Conditions are combined with AND, and
|
|
697
|
+
* The trajectory filter conditions. Conditions are combined with AND, and items within a list are combined with OR.
|
|
484
698
|
*/
|
|
485
699
|
filter?: UpdateContextStoreRequestConfigSourceTrajectoryFilter;
|
|
486
700
|
/**
|
|
487
701
|
* @remarks
|
|
488
|
-
* The name of the trajectory Logstore. Default value: agent-trajectory. This parameter cannot be
|
|
702
|
+
* The name of the trajectory Logstore. Default value: agent-trajectory. This parameter cannot be changed after creation.
|
|
489
703
|
*
|
|
490
704
|
* @example
|
|
491
705
|
* agent-trajectory
|
|
@@ -540,7 +754,7 @@ export class UpdateContextStoreRequestConfigSourceTrajectory extends $dara.Model
|
|
|
540
754
|
export class UpdateContextStoreRequestConfigSource extends $dara.Model {
|
|
541
755
|
/**
|
|
542
756
|
* @remarks
|
|
543
|
-
* The AgentSpace where the trace data source is located. Cross-AgentSpace
|
|
757
|
+
* The AgentSpace where the trace data source is located. Cross-AgentSpace operations are not supported in the current phase. 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.
|
|
544
758
|
*
|
|
545
759
|
* @example
|
|
546
760
|
* my-agent-space
|
|
@@ -548,7 +762,7 @@ export class UpdateContextStoreRequestConfigSource extends $dara.Model {
|
|
|
548
762
|
agentSpace?: string;
|
|
549
763
|
/**
|
|
550
764
|
* @remarks
|
|
551
|
-
* The updatable items
|
|
765
|
+
* The updatable items of the Dataset data source. The datasetName cannot be changed after creation.
|
|
552
766
|
*/
|
|
553
767
|
dataset?: UpdateContextStoreRequestConfigSourceDataset;
|
|
554
768
|
/**
|
|
@@ -561,7 +775,7 @@ export class UpdateContextStoreRequestConfigSource extends $dara.Model {
|
|
|
561
775
|
startTime?: string;
|
|
562
776
|
/**
|
|
563
777
|
* @remarks
|
|
564
|
-
* The updatable items
|
|
778
|
+
* The updatable items of the trajectory data source. The source.type cannot be changed after creation.
|
|
565
779
|
*/
|
|
566
780
|
trajectory?: UpdateContextStoreRequestConfigSourceTrajectory;
|
|
567
781
|
static names(): { [key: string]: string } {
|
|
@@ -600,7 +814,7 @@ export class UpdateContextStoreRequestConfigSource extends $dara.Model {
|
|
|
600
814
|
export class UpdateContextStoreRequestConfigStoragePolicy extends $dara.Model {
|
|
601
815
|
/**
|
|
602
816
|
* @remarks
|
|
603
|
-
* The allowed storage actions. Default value: all actions
|
|
817
|
+
* The allowed storage actions. Default value: all actions (ADD, UPDATE, MERGE, and DELETE).
|
|
604
818
|
*
|
|
605
819
|
* @example
|
|
606
820
|
* ["ADD","UPDATE","MERGE","DELETE"]
|
|
@@ -608,7 +822,7 @@ export class UpdateContextStoreRequestConfigStoragePolicy extends $dara.Model {
|
|
|
608
822
|
allowedActions?: string[];
|
|
609
823
|
/**
|
|
610
824
|
* @remarks
|
|
611
|
-
* Specifies whether to
|
|
825
|
+
* Specifies whether to deduplicate data in event mode. Default value: true.
|
|
612
826
|
*
|
|
613
827
|
* @example
|
|
614
828
|
* true
|
|
@@ -616,7 +830,7 @@ export class UpdateContextStoreRequestConfigStoragePolicy extends $dara.Model {
|
|
|
616
830
|
dedupe?: boolean;
|
|
617
831
|
/**
|
|
618
832
|
* @remarks
|
|
619
|
-
* Specifies whether to enable
|
|
833
|
+
* Specifies whether to enable human edit protection. Default value: true. When enabled, automatic extraction does not overwrite manually modified memories.
|
|
620
834
|
*
|
|
621
835
|
* @example
|
|
622
836
|
* true
|
|
@@ -632,7 +846,7 @@ export class UpdateContextStoreRequestConfigStoragePolicy extends $dara.Model {
|
|
|
632
846
|
mergeKey?: string;
|
|
633
847
|
/**
|
|
634
848
|
* @remarks
|
|
635
|
-
* The storage mode. Valid values: event (event append) and upsert (merge update). Default value: upsert.
|
|
849
|
+
* The storage mode. Valid values: event (event append) and upsert (merge and update). Default value: upsert.
|
|
636
850
|
*
|
|
637
851
|
* @example
|
|
638
852
|
* upsert
|
|
@@ -648,7 +862,7 @@ export class UpdateContextStoreRequestConfigStoragePolicy extends $dara.Model {
|
|
|
648
862
|
similarityThreshold?: number;
|
|
649
863
|
/**
|
|
650
864
|
* @remarks
|
|
651
|
-
* The number of days before
|
|
865
|
+
* The number of days before memories expire. A value of 0 indicates that memories do not expire.
|
|
652
866
|
*
|
|
653
867
|
* @example
|
|
654
868
|
* 0
|
|
@@ -696,6 +910,11 @@ export class UpdateContextStoreRequestConfig extends $dara.Model {
|
|
|
696
910
|
* The audit configuration.
|
|
697
911
|
*/
|
|
698
912
|
audit?: UpdateContextStoreRequestConfigAudit;
|
|
913
|
+
/**
|
|
914
|
+
* @remarks
|
|
915
|
+
* The extraction policies. You can specify 1 to 10 policies. In a request, you can specify either this field or the compatible extractionPolicy field, but not both. The strategyVersion parameter indicates the snapshot version of the entire library configuration.
|
|
916
|
+
*/
|
|
917
|
+
extractionPolicies?: UpdateContextStoreRequestConfigExtractionPolicies[];
|
|
699
918
|
/**
|
|
700
919
|
* @remarks
|
|
701
920
|
* The extraction policy for the memory type.
|
|
@@ -716,7 +935,7 @@ export class UpdateContextStoreRequestConfig extends $dara.Model {
|
|
|
716
935
|
scopePolicy?: UpdateContextStoreRequestConfigScopePolicy;
|
|
717
936
|
/**
|
|
718
937
|
* @remarks
|
|
719
|
-
* The datasource config
|
|
938
|
+
* The datasource config. This serves only as the root identity for the data source.
|
|
720
939
|
*/
|
|
721
940
|
source?: UpdateContextStoreRequestConfigSource;
|
|
722
941
|
/**
|
|
@@ -727,6 +946,7 @@ export class UpdateContextStoreRequestConfig extends $dara.Model {
|
|
|
727
946
|
static names(): { [key: string]: string } {
|
|
728
947
|
return {
|
|
729
948
|
audit: 'audit',
|
|
949
|
+
extractionPolicies: 'extractionPolicies',
|
|
730
950
|
extractionPolicy: 'extractionPolicy',
|
|
731
951
|
metadataField: 'metadataField',
|
|
732
952
|
scopePolicy: 'scopePolicy',
|
|
@@ -738,6 +958,7 @@ export class UpdateContextStoreRequestConfig extends $dara.Model {
|
|
|
738
958
|
static types(): { [key: string]: any } {
|
|
739
959
|
return {
|
|
740
960
|
audit: UpdateContextStoreRequestConfigAudit,
|
|
961
|
+
extractionPolicies: { 'type': 'array', 'itemType': UpdateContextStoreRequestConfigExtractionPolicies },
|
|
741
962
|
extractionPolicy: UpdateContextStoreRequestConfigExtractionPolicy,
|
|
742
963
|
metadataField: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
743
964
|
scopePolicy: UpdateContextStoreRequestConfigScopePolicy,
|
|
@@ -750,6 +971,9 @@ export class UpdateContextStoreRequestConfig extends $dara.Model {
|
|
|
750
971
|
if(this.audit && typeof (this.audit as any).validate === 'function') {
|
|
751
972
|
(this.audit as any).validate();
|
|
752
973
|
}
|
|
974
|
+
if(Array.isArray(this.extractionPolicies)) {
|
|
975
|
+
$dara.Model.validateArray(this.extractionPolicies);
|
|
976
|
+
}
|
|
753
977
|
if(this.extractionPolicy && typeof (this.extractionPolicy as any).validate === 'function') {
|
|
754
978
|
(this.extractionPolicy as any).validate();
|
|
755
979
|
}
|
|
@@ -776,20 +1000,20 @@ export class UpdateContextStoreRequestConfig extends $dara.Model {
|
|
|
776
1000
|
export class UpdateContextStoreRequest extends $dara.Model {
|
|
777
1001
|
/**
|
|
778
1002
|
* @remarks
|
|
779
|
-
* The description of the policy change. A new policy version is
|
|
1003
|
+
* The description of the policy change. A new policy version is created when policy fields in the configuration are changed.
|
|
780
1004
|
*
|
|
781
1005
|
* @example
|
|
782
|
-
* Relax similarity threshold
|
|
1006
|
+
* Relax the similarity threshold
|
|
783
1007
|
*/
|
|
784
1008
|
changeNote?: string;
|
|
785
1009
|
/**
|
|
786
1010
|
* @remarks
|
|
787
|
-
* The context library configuration. If specified, the entire configuration is overwritten. If
|
|
1011
|
+
* The context library configuration. If specified, the entire configuration is overwritten. If omitted, the original configuration is retained.
|
|
788
1012
|
*/
|
|
789
1013
|
config?: UpdateContextStoreRequestConfig;
|
|
790
1014
|
/**
|
|
791
1015
|
* @remarks
|
|
792
|
-
* The context library type. This field
|
|
1016
|
+
* The context library type. This field generally cannot be modified after creation and is provided only for exception correction.
|
|
793
1017
|
*
|
|
794
1018
|
* @example
|
|
795
1019
|
* experience
|
|
@@ -805,7 +1029,7 @@ export class UpdateContextStoreRequest extends $dara.Model {
|
|
|
805
1029
|
description?: string;
|
|
806
1030
|
/**
|
|
807
1031
|
* @remarks
|
|
808
|
-
* The running status. Valid values: Active and Paused. For the memory type, pausing stops data source reading and extraction. For the experience
|
|
1032
|
+
* The running status. Valid values: Active and 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 parameter when only updating the status.
|
|
809
1033
|
*
|
|
810
1034
|
* @example
|
|
811
1035
|
* Active
|
|
@@ -813,7 +1037,7 @@ export class UpdateContextStoreRequest extends $dara.Model {
|
|
|
813
1037
|
status?: string;
|
|
814
1038
|
/**
|
|
815
1039
|
* @remarks
|
|
816
|
-
* The idempotency token
|
|
1040
|
+
* The idempotency token, which is a unique string generated by the client to ensure the idempotence of the update operation.
|
|
817
1041
|
*
|
|
818
1042
|
* @example
|
|
819
1043
|
* a1b2c3d4-1234-5678-90ab-cdef12345678
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class UpdateContextStoreResponseBody extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The request ID, which is used to locate the request
|
|
8
|
+
* The request ID, which is used to locate the request when troubleshooting issues.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* 9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M
|
|
@@ -13,7 +13,7 @@ export class UpdateContextStoreResponseBody extends $dara.Model {
|
|
|
13
13
|
requestId?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The strategy version
|
|
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 the one before the update.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* 2
|