@alicloud/agentloop20260520 2.3.7 → 2.3.9
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 +14 -14
- package/dist/client.js +31 -14
- package/dist/client.js.map +1 -1
- package/dist/models/CreateContextStoreRequest.d.ts +364 -2
- package/dist/models/CreateContextStoreRequest.js +365 -1
- package/dist/models/CreateContextStoreRequest.js.map +1 -1
- package/dist/models/CreateContextStoreResponseBody.d.ts +5 -0
- package/dist/models/CreateContextStoreResponseBody.js +2 -0
- package/dist/models/CreateContextStoreResponseBody.js.map +1 -1
- package/dist/models/CreatePipelineRequest.d.ts +148 -39
- package/dist/models/CreatePipelineRequest.js +76 -1
- package/dist/models/CreatePipelineRequest.js.map +1 -1
- package/dist/models/CreatePipelineResponseBody.d.ts +1 -1
- package/dist/models/DeleteContextStoreRequest.d.ts +8 -0
- package/dist/models/DeleteContextStoreRequest.js +6 -2
- package/dist/models/DeleteContextStoreRequest.js.map +1 -1
- package/dist/models/DeleteContextStoreResponseBody.d.ts +1 -1
- package/dist/models/GetContextStoreResponseBody.d.ts +489 -0
- package/dist/models/GetContextStoreResponseBody.js +486 -1
- package/dist/models/GetContextStoreResponseBody.js.map +1 -1
- package/dist/models/GetPipelineResponseBody.d.ts +157 -42
- package/dist/models/GetPipelineResponseBody.js +78 -1
- package/dist/models/GetPipelineResponseBody.js.map +1 -1
- package/dist/models/ListContextStoresRequest.d.ts +5 -0
- package/dist/models/ListContextStoresRequest.js +2 -0
- package/dist/models/ListContextStoresRequest.js.map +1 -1
- package/dist/models/ListContextStoresResponseBody.d.ts +10 -0
- package/dist/models/ListContextStoresResponseBody.js +4 -0
- package/dist/models/ListContextStoresResponseBody.js.map +1 -1
- package/dist/models/ListPipelinesResponseBody.d.ts +111 -0
- package/dist/models/ListPipelinesResponseBody.js +102 -1
- package/dist/models/ListPipelinesResponseBody.js.map +1 -1
- package/dist/models/MetaSchemaValue.d.ts +21 -0
- package/dist/models/MetaSchemaValue.js +58 -0
- package/dist/models/MetaSchemaValue.js.map +1 -0
- package/dist/models/PreviewPipelineRequest.d.ts +91 -17
- package/dist/models/PreviewPipelineRequest.js +52 -1
- package/dist/models/PreviewPipelineRequest.js.map +1 -1
- package/dist/models/PreviewPipelineResponseBody.d.ts +45 -16
- package/dist/models/PreviewPipelineResponseBody.js +6 -0
- package/dist/models/PreviewPipelineResponseBody.js.map +1 -1
- package/dist/models/SearchContextRequest.d.ts +38 -0
- package/dist/models/SearchContextRequest.js +33 -1
- package/dist/models/SearchContextRequest.js.map +1 -1
- package/dist/models/SearchContextResponseBody.d.ts +10 -0
- package/dist/models/SearchContextResponseBody.js +4 -0
- package/dist/models/SearchContextResponseBody.js.map +1 -1
- package/dist/models/UpdateContextStoreRequest.d.ts +479 -9
- package/dist/models/UpdateContextStoreRequest.js +331 -1
- package/dist/models/UpdateContextStoreRequest.js.map +1 -1
- package/dist/models/UpdateContextStoreResponseBody.d.ts +8 -0
- package/dist/models/UpdateContextStoreResponseBody.js +2 -0
- package/dist/models/UpdateContextStoreResponseBody.js.map +1 -1
- package/dist/models/UpdatePipelineRequest.d.ts +140 -32
- package/dist/models/UpdatePipelineRequest.js +76 -1
- package/dist/models/UpdatePipelineRequest.js.map +1 -1
- package/dist/models/UpdatePipelineResponseBody.d.ts +1 -1
- package/dist/models/model.d.ts +56 -0
- package/dist/models/model.js +211 -98
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +36 -14
- package/src/models/CreateContextStoreRequest.ts +620 -2
- package/src/models/CreateContextStoreResponseBody.ts +7 -0
- package/src/models/CreatePipelineRequest.ts +196 -39
- package/src/models/CreatePipelineResponseBody.ts +1 -1
- package/src/models/DeleteContextStoreRequest.ts +10 -0
- package/src/models/DeleteContextStoreResponseBody.ts +1 -1
- package/src/models/GetContextStoreResponseBody.ts +828 -0
- package/src/models/GetPipelineResponseBody.ts +207 -42
- package/src/models/ListContextStoresRequest.ts +7 -0
- package/src/models/ListContextStoresResponseBody.ts +14 -0
- package/src/models/ListPipelinesResponseBody.ts +176 -0
- package/src/models/MetaSchemaValue.ts +34 -0
- package/src/models/PreviewPipelineRequest.ts +124 -17
- package/src/models/PreviewPipelineResponseBody.ts +48 -16
- package/src/models/SearchContextRequest.ts +61 -0
- package/src/models/SearchContextResponseBody.ts +14 -0
- package/src/models/UpdateContextStoreRequest.ts +710 -9
- package/src/models/UpdateContextStoreResponseBody.ts +10 -0
- package/src/models/UpdatePipelineRequest.ts +188 -32
- package/src/models/UpdatePipelineResponseBody.ts +1 -1
- package/src/models/model.ts +56 -0
|
@@ -2,6 +2,634 @@
|
|
|
2
2
|
import * as $dara from '@darabonba/typescript';
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
export class GetContextStoreResponseBodyConfigAudit extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* false
|
|
9
|
+
*/
|
|
10
|
+
droppedCandidates?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* raw
|
|
14
|
+
*/
|
|
15
|
+
queryMode?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* 30
|
|
19
|
+
*/
|
|
20
|
+
retentionDays?: number;
|
|
21
|
+
static names(): { [key: string]: string } {
|
|
22
|
+
return {
|
|
23
|
+
droppedCandidates: 'droppedCandidates',
|
|
24
|
+
queryMode: 'queryMode',
|
|
25
|
+
retentionDays: 'retentionDays',
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
static types(): { [key: string]: any } {
|
|
30
|
+
return {
|
|
31
|
+
droppedCandidates: 'boolean',
|
|
32
|
+
queryMode: 'string',
|
|
33
|
+
retentionDays: 'number',
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
validate() {
|
|
38
|
+
super.validate();
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
constructor(map?: { [key: string]: any }) {
|
|
42
|
+
super(map);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export class GetContextStoreResponseBodyConfigExtractionPolicyModel extends $dara.Model {
|
|
47
|
+
/**
|
|
48
|
+
* @example
|
|
49
|
+
* qwen3.8-flash
|
|
50
|
+
*/
|
|
51
|
+
name?: string;
|
|
52
|
+
static names(): { [key: string]: string } {
|
|
53
|
+
return {
|
|
54
|
+
name: 'name',
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
static types(): { [key: string]: any } {
|
|
59
|
+
return {
|
|
60
|
+
name: 'string',
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
validate() {
|
|
65
|
+
super.validate();
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
constructor(map?: { [key: string]: any }) {
|
|
69
|
+
super(map);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export class GetContextStoreResponseBodyConfigExtractionPolicy extends $dara.Model {
|
|
74
|
+
/**
|
|
75
|
+
* @example
|
|
76
|
+
* ["preference","profile"]
|
|
77
|
+
*/
|
|
78
|
+
categories?: string[];
|
|
79
|
+
/**
|
|
80
|
+
* @example
|
|
81
|
+
* 只抽取用户的产品偏好
|
|
82
|
+
*/
|
|
83
|
+
customInstructions?: string;
|
|
84
|
+
/**
|
|
85
|
+
* @example
|
|
86
|
+
* ["密码","证件号"]
|
|
87
|
+
*/
|
|
88
|
+
excludeRules?: string[];
|
|
89
|
+
model?: GetContextStoreResponseBodyConfigExtractionPolicyModel;
|
|
90
|
+
/**
|
|
91
|
+
* @example
|
|
92
|
+
* fact
|
|
93
|
+
*/
|
|
94
|
+
preset?: string;
|
|
95
|
+
static names(): { [key: string]: string } {
|
|
96
|
+
return {
|
|
97
|
+
categories: 'categories',
|
|
98
|
+
customInstructions: 'customInstructions',
|
|
99
|
+
excludeRules: 'excludeRules',
|
|
100
|
+
model: 'model',
|
|
101
|
+
preset: 'preset',
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
static types(): { [key: string]: any } {
|
|
106
|
+
return {
|
|
107
|
+
categories: { 'type': 'array', 'itemType': 'string' },
|
|
108
|
+
customInstructions: 'string',
|
|
109
|
+
excludeRules: { 'type': 'array', 'itemType': 'string' },
|
|
110
|
+
model: GetContextStoreResponseBodyConfigExtractionPolicyModel,
|
|
111
|
+
preset: 'string',
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
validate() {
|
|
116
|
+
if(Array.isArray(this.categories)) {
|
|
117
|
+
$dara.Model.validateArray(this.categories);
|
|
118
|
+
}
|
|
119
|
+
if(Array.isArray(this.excludeRules)) {
|
|
120
|
+
$dara.Model.validateArray(this.excludeRules);
|
|
121
|
+
}
|
|
122
|
+
if(this.model && typeof (this.model as any).validate === 'function') {
|
|
123
|
+
(this.model as any).validate();
|
|
124
|
+
}
|
|
125
|
+
super.validate();
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
constructor(map?: { [key: string]: any }) {
|
|
129
|
+
super(map);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export class GetContextStoreResponseBodyConfigInnerSource extends $dara.Model {
|
|
134
|
+
/**
|
|
135
|
+
* @example
|
|
136
|
+
* memory_events_0a1b2c3d
|
|
137
|
+
*/
|
|
138
|
+
logstore?: string;
|
|
139
|
+
/**
|
|
140
|
+
* @example
|
|
141
|
+
* agentloop-xxx
|
|
142
|
+
*/
|
|
143
|
+
project?: string;
|
|
144
|
+
static names(): { [key: string]: string } {
|
|
145
|
+
return {
|
|
146
|
+
logstore: 'logstore',
|
|
147
|
+
project: 'project',
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
static types(): { [key: string]: any } {
|
|
152
|
+
return {
|
|
153
|
+
logstore: 'string',
|
|
154
|
+
project: 'string',
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
validate() {
|
|
159
|
+
super.validate();
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
constructor(map?: { [key: string]: any }) {
|
|
163
|
+
super(map);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export class GetContextStoreResponseBodyConfigObservability extends $dara.Model {
|
|
168
|
+
/**
|
|
169
|
+
* @example
|
|
170
|
+
* memory-audit
|
|
171
|
+
*/
|
|
172
|
+
auditLogstore?: string;
|
|
173
|
+
/**
|
|
174
|
+
* @example
|
|
175
|
+
* memory_events_0a1b2c3d
|
|
176
|
+
*/
|
|
177
|
+
eventsLogstore?: string;
|
|
178
|
+
/**
|
|
179
|
+
* @example
|
|
180
|
+
* agentloop-xxx
|
|
181
|
+
*/
|
|
182
|
+
project?: string;
|
|
183
|
+
static names(): { [key: string]: string } {
|
|
184
|
+
return {
|
|
185
|
+
auditLogstore: 'auditLogstore',
|
|
186
|
+
eventsLogstore: 'eventsLogstore',
|
|
187
|
+
project: 'project',
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
static types(): { [key: string]: any } {
|
|
192
|
+
return {
|
|
193
|
+
auditLogstore: 'string',
|
|
194
|
+
eventsLogstore: 'string',
|
|
195
|
+
project: 'string',
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
validate() {
|
|
200
|
+
super.validate();
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
constructor(map?: { [key: string]: any }) {
|
|
204
|
+
super(map);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export class GetContextStoreResponseBodyConfigOutputDataset extends $dara.Model {
|
|
209
|
+
/**
|
|
210
|
+
* @example
|
|
211
|
+
* my-agent-space
|
|
212
|
+
*/
|
|
213
|
+
agentSpace?: string;
|
|
214
|
+
/**
|
|
215
|
+
* @example
|
|
216
|
+
* memory-my-context-store
|
|
217
|
+
*/
|
|
218
|
+
datasetName?: string;
|
|
219
|
+
/**
|
|
220
|
+
* @example
|
|
221
|
+
* MemoryRecordV1
|
|
222
|
+
*/
|
|
223
|
+
schemaContract?: string;
|
|
224
|
+
/**
|
|
225
|
+
* @example
|
|
226
|
+
* 1
|
|
227
|
+
*/
|
|
228
|
+
schemaVersion?: number;
|
|
229
|
+
static names(): { [key: string]: string } {
|
|
230
|
+
return {
|
|
231
|
+
agentSpace: 'agentSpace',
|
|
232
|
+
datasetName: 'datasetName',
|
|
233
|
+
schemaContract: 'schemaContract',
|
|
234
|
+
schemaVersion: 'schemaVersion',
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
static types(): { [key: string]: any } {
|
|
239
|
+
return {
|
|
240
|
+
agentSpace: 'string',
|
|
241
|
+
datasetName: 'string',
|
|
242
|
+
schemaContract: 'string',
|
|
243
|
+
schemaVersion: 'number',
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
validate() {
|
|
248
|
+
super.validate();
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
constructor(map?: { [key: string]: any }) {
|
|
252
|
+
super(map);
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
export class GetContextStoreResponseBodyConfigScopePolicy extends $dara.Model {
|
|
257
|
+
/**
|
|
258
|
+
* @example
|
|
259
|
+
* ["userId"]
|
|
260
|
+
*/
|
|
261
|
+
requiredAnyOf?: string[];
|
|
262
|
+
static names(): { [key: string]: string } {
|
|
263
|
+
return {
|
|
264
|
+
requiredAnyOf: 'requiredAnyOf',
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
static types(): { [key: string]: any } {
|
|
269
|
+
return {
|
|
270
|
+
requiredAnyOf: { 'type': 'array', 'itemType': 'string' },
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
validate() {
|
|
275
|
+
if(Array.isArray(this.requiredAnyOf)) {
|
|
276
|
+
$dara.Model.validateArray(this.requiredAnyOf);
|
|
277
|
+
}
|
|
278
|
+
super.validate();
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
constructor(map?: { [key: string]: any }) {
|
|
282
|
+
super(map);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
export class GetContextStoreResponseBodyConfigSourceDatasetCustomFields extends $dara.Model {
|
|
287
|
+
/**
|
|
288
|
+
* @example
|
|
289
|
+
* 客户等级
|
|
290
|
+
*/
|
|
291
|
+
description?: string;
|
|
292
|
+
/**
|
|
293
|
+
* @example
|
|
294
|
+
* false
|
|
295
|
+
*/
|
|
296
|
+
sensitive?: boolean;
|
|
297
|
+
/**
|
|
298
|
+
* @example
|
|
299
|
+
* customerTier
|
|
300
|
+
*/
|
|
301
|
+
sourceField?: string;
|
|
302
|
+
/**
|
|
303
|
+
* @example
|
|
304
|
+
* metadata.customerTier
|
|
305
|
+
*/
|
|
306
|
+
target?: string;
|
|
307
|
+
/**
|
|
308
|
+
* @example
|
|
309
|
+
* extraction-input
|
|
310
|
+
*/
|
|
311
|
+
usage?: string;
|
|
312
|
+
static names(): { [key: string]: string } {
|
|
313
|
+
return {
|
|
314
|
+
description: 'description',
|
|
315
|
+
sensitive: 'sensitive',
|
|
316
|
+
sourceField: 'sourceField',
|
|
317
|
+
target: 'target',
|
|
318
|
+
usage: 'usage',
|
|
319
|
+
};
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
static types(): { [key: string]: any } {
|
|
323
|
+
return {
|
|
324
|
+
description: 'string',
|
|
325
|
+
sensitive: 'boolean',
|
|
326
|
+
sourceField: 'string',
|
|
327
|
+
target: 'string',
|
|
328
|
+
usage: 'string',
|
|
329
|
+
};
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
validate() {
|
|
333
|
+
super.validate();
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
constructor(map?: { [key: string]: any }) {
|
|
337
|
+
super(map);
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
export class GetContextStoreResponseBodyConfigSourceDatasetFilter extends $dara.Model {
|
|
342
|
+
/**
|
|
343
|
+
* @example
|
|
344
|
+
* appId = \\"crm-service\\"
|
|
345
|
+
*/
|
|
346
|
+
where?: string;
|
|
347
|
+
static names(): { [key: string]: string } {
|
|
348
|
+
return {
|
|
349
|
+
where: 'where',
|
|
350
|
+
};
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
static types(): { [key: string]: any } {
|
|
354
|
+
return {
|
|
355
|
+
where: 'string',
|
|
356
|
+
};
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
validate() {
|
|
360
|
+
super.validate();
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
constructor(map?: { [key: string]: any }) {
|
|
364
|
+
super(map);
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
export class GetContextStoreResponseBodyConfigSourceDatasetVersionPolicy extends $dara.Model {
|
|
369
|
+
/**
|
|
370
|
+
* @example
|
|
371
|
+
* follow
|
|
372
|
+
*/
|
|
373
|
+
mode?: string;
|
|
374
|
+
/**
|
|
375
|
+
* @example
|
|
376
|
+
* 0
|
|
377
|
+
*/
|
|
378
|
+
startSeq?: number;
|
|
379
|
+
/**
|
|
380
|
+
* @example
|
|
381
|
+
* v3
|
|
382
|
+
*/
|
|
383
|
+
version?: string;
|
|
384
|
+
static names(): { [key: string]: string } {
|
|
385
|
+
return {
|
|
386
|
+
mode: 'mode',
|
|
387
|
+
startSeq: 'startSeq',
|
|
388
|
+
version: 'version',
|
|
389
|
+
};
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
static types(): { [key: string]: any } {
|
|
393
|
+
return {
|
|
394
|
+
mode: 'string',
|
|
395
|
+
startSeq: 'number',
|
|
396
|
+
version: 'string',
|
|
397
|
+
};
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
validate() {
|
|
401
|
+
super.validate();
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
constructor(map?: { [key: string]: any }) {
|
|
405
|
+
super(map);
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
export class GetContextStoreResponseBodyConfigSourceDataset extends $dara.Model {
|
|
410
|
+
customFields?: GetContextStoreResponseBodyConfigSourceDatasetCustomFields[];
|
|
411
|
+
/**
|
|
412
|
+
* @example
|
|
413
|
+
* trajectory-with-crm-profile
|
|
414
|
+
*/
|
|
415
|
+
datasetName?: string;
|
|
416
|
+
filter?: GetContextStoreResponseBodyConfigSourceDatasetFilter;
|
|
417
|
+
/**
|
|
418
|
+
* @example
|
|
419
|
+
* 300
|
|
420
|
+
*/
|
|
421
|
+
pollIntervalSeconds?: number;
|
|
422
|
+
/**
|
|
423
|
+
* @example
|
|
424
|
+
* MemorySourceV1
|
|
425
|
+
*/
|
|
426
|
+
schemaContract?: string;
|
|
427
|
+
versionPolicy?: GetContextStoreResponseBodyConfigSourceDatasetVersionPolicy;
|
|
428
|
+
static names(): { [key: string]: string } {
|
|
429
|
+
return {
|
|
430
|
+
customFields: 'customFields',
|
|
431
|
+
datasetName: 'datasetName',
|
|
432
|
+
filter: 'filter',
|
|
433
|
+
pollIntervalSeconds: 'pollIntervalSeconds',
|
|
434
|
+
schemaContract: 'schemaContract',
|
|
435
|
+
versionPolicy: 'versionPolicy',
|
|
436
|
+
};
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
static types(): { [key: string]: any } {
|
|
440
|
+
return {
|
|
441
|
+
customFields: { 'type': 'array', 'itemType': GetContextStoreResponseBodyConfigSourceDatasetCustomFields },
|
|
442
|
+
datasetName: 'string',
|
|
443
|
+
filter: GetContextStoreResponseBodyConfigSourceDatasetFilter,
|
|
444
|
+
pollIntervalSeconds: 'number',
|
|
445
|
+
schemaContract: 'string',
|
|
446
|
+
versionPolicy: GetContextStoreResponseBodyConfigSourceDatasetVersionPolicy,
|
|
447
|
+
};
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
validate() {
|
|
451
|
+
if(Array.isArray(this.customFields)) {
|
|
452
|
+
$dara.Model.validateArray(this.customFields);
|
|
453
|
+
}
|
|
454
|
+
if(this.filter && typeof (this.filter as any).validate === 'function') {
|
|
455
|
+
(this.filter as any).validate();
|
|
456
|
+
}
|
|
457
|
+
if(this.versionPolicy && typeof (this.versionPolicy as any).validate === 'function') {
|
|
458
|
+
(this.versionPolicy as any).validate();
|
|
459
|
+
}
|
|
460
|
+
super.validate();
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
constructor(map?: { [key: string]: any }) {
|
|
464
|
+
super(map);
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
export class GetContextStoreResponseBodyConfigSourceTrajectoryFilter extends $dara.Model {
|
|
469
|
+
/**
|
|
470
|
+
* @example
|
|
471
|
+
* ["sales-copilot"]
|
|
472
|
+
*/
|
|
473
|
+
agentNames?: string[];
|
|
474
|
+
/**
|
|
475
|
+
* @example
|
|
476
|
+
* false
|
|
477
|
+
*/
|
|
478
|
+
excludeDegraded?: boolean;
|
|
479
|
+
/**
|
|
480
|
+
* @example
|
|
481
|
+
* 2
|
|
482
|
+
*/
|
|
483
|
+
minStepCount?: number;
|
|
484
|
+
/**
|
|
485
|
+
* @example
|
|
486
|
+
* tool_names:"search_order"
|
|
487
|
+
*/
|
|
488
|
+
query?: string;
|
|
489
|
+
/**
|
|
490
|
+
* @example
|
|
491
|
+
* ["crm-service","app-*"]
|
|
492
|
+
*/
|
|
493
|
+
serviceNames?: string[];
|
|
494
|
+
static names(): { [key: string]: string } {
|
|
495
|
+
return {
|
|
496
|
+
agentNames: 'agentNames',
|
|
497
|
+
excludeDegraded: 'excludeDegraded',
|
|
498
|
+
minStepCount: 'minStepCount',
|
|
499
|
+
query: 'query',
|
|
500
|
+
serviceNames: 'serviceNames',
|
|
501
|
+
};
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
static types(): { [key: string]: any } {
|
|
505
|
+
return {
|
|
506
|
+
agentNames: { 'type': 'array', 'itemType': 'string' },
|
|
507
|
+
excludeDegraded: 'boolean',
|
|
508
|
+
minStepCount: 'number',
|
|
509
|
+
query: 'string',
|
|
510
|
+
serviceNames: { 'type': 'array', 'itemType': 'string' },
|
|
511
|
+
};
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
validate() {
|
|
515
|
+
if(Array.isArray(this.agentNames)) {
|
|
516
|
+
$dara.Model.validateArray(this.agentNames);
|
|
517
|
+
}
|
|
518
|
+
if(Array.isArray(this.serviceNames)) {
|
|
519
|
+
$dara.Model.validateArray(this.serviceNames);
|
|
520
|
+
}
|
|
521
|
+
super.validate();
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
constructor(map?: { [key: string]: any }) {
|
|
525
|
+
super(map);
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
export class GetContextStoreResponseBodyConfigSourceTrajectoryScopeMapping extends $dara.Model {
|
|
530
|
+
/**
|
|
531
|
+
* @example
|
|
532
|
+
* $.agent_name
|
|
533
|
+
*/
|
|
534
|
+
agentId?: string;
|
|
535
|
+
/**
|
|
536
|
+
* @example
|
|
537
|
+
* $.service_names[0]
|
|
538
|
+
*/
|
|
539
|
+
appId?: string;
|
|
540
|
+
/**
|
|
541
|
+
* @example
|
|
542
|
+
* $.trajectory_id
|
|
543
|
+
*/
|
|
544
|
+
runId?: string;
|
|
545
|
+
/**
|
|
546
|
+
* @example
|
|
547
|
+
* $.trajectory_extensions.user_id
|
|
548
|
+
*/
|
|
549
|
+
userId?: string;
|
|
550
|
+
static names(): { [key: string]: string } {
|
|
551
|
+
return {
|
|
552
|
+
agentId: 'agentId',
|
|
553
|
+
appId: 'appId',
|
|
554
|
+
runId: 'runId',
|
|
555
|
+
userId: 'userId',
|
|
556
|
+
};
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
static types(): { [key: string]: any } {
|
|
560
|
+
return {
|
|
561
|
+
agentId: 'string',
|
|
562
|
+
appId: 'string',
|
|
563
|
+
runId: 'string',
|
|
564
|
+
userId: 'string',
|
|
565
|
+
};
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
validate() {
|
|
569
|
+
super.validate();
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
constructor(map?: { [key: string]: any }) {
|
|
573
|
+
super(map);
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
export class GetContextStoreResponseBodyConfigSourceTrajectory extends $dara.Model {
|
|
578
|
+
filter?: GetContextStoreResponseBodyConfigSourceTrajectoryFilter;
|
|
579
|
+
/**
|
|
580
|
+
* @example
|
|
581
|
+
* agent-trajectory
|
|
582
|
+
*/
|
|
583
|
+
logstore?: string;
|
|
584
|
+
/**
|
|
585
|
+
* @example
|
|
586
|
+
* 300
|
|
587
|
+
*/
|
|
588
|
+
pollIntervalSeconds?: number;
|
|
589
|
+
scopeMapping?: GetContextStoreResponseBodyConfigSourceTrajectoryScopeMapping;
|
|
590
|
+
/**
|
|
591
|
+
* @remarks
|
|
592
|
+
* Use the UTC time format: yyyy-MM-ddTHH:mm:ssZ
|
|
593
|
+
*
|
|
594
|
+
* @example
|
|
595
|
+
* 2026-10-01T00:00:00Z
|
|
596
|
+
*/
|
|
597
|
+
startTime?: string;
|
|
598
|
+
static names(): { [key: string]: string } {
|
|
599
|
+
return {
|
|
600
|
+
filter: 'filter',
|
|
601
|
+
logstore: 'logstore',
|
|
602
|
+
pollIntervalSeconds: 'pollIntervalSeconds',
|
|
603
|
+
scopeMapping: 'scopeMapping',
|
|
604
|
+
startTime: 'startTime',
|
|
605
|
+
};
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
static types(): { [key: string]: any } {
|
|
609
|
+
return {
|
|
610
|
+
filter: GetContextStoreResponseBodyConfigSourceTrajectoryFilter,
|
|
611
|
+
logstore: 'string',
|
|
612
|
+
pollIntervalSeconds: 'number',
|
|
613
|
+
scopeMapping: GetContextStoreResponseBodyConfigSourceTrajectoryScopeMapping,
|
|
614
|
+
startTime: 'string',
|
|
615
|
+
};
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
validate() {
|
|
619
|
+
if(this.filter && typeof (this.filter as any).validate === 'function') {
|
|
620
|
+
(this.filter as any).validate();
|
|
621
|
+
}
|
|
622
|
+
if(this.scopeMapping && typeof (this.scopeMapping as any).validate === 'function') {
|
|
623
|
+
(this.scopeMapping as any).validate();
|
|
624
|
+
}
|
|
625
|
+
super.validate();
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
constructor(map?: { [key: string]: any }) {
|
|
629
|
+
super(map);
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
|
|
5
633
|
export class GetContextStoreResponseBodyConfigSource extends $dara.Model {
|
|
6
634
|
/**
|
|
7
635
|
* @remarks
|
|
@@ -11,6 +639,7 @@ export class GetContextStoreResponseBodyConfigSource extends $dara.Model {
|
|
|
11
639
|
* my-agent-space
|
|
12
640
|
*/
|
|
13
641
|
agentSpace?: string;
|
|
642
|
+
dataset?: GetContextStoreResponseBodyConfigSourceDataset;
|
|
14
643
|
/**
|
|
15
644
|
* @remarks
|
|
16
645
|
* The start time for data backfill, in ISO 8601 UTC format.
|
|
@@ -21,21 +650,165 @@ export class GetContextStoreResponseBodyConfigSource extends $dara.Model {
|
|
|
21
650
|
* 2026-01-01T00:00:00Z
|
|
22
651
|
*/
|
|
23
652
|
startTime?: string;
|
|
653
|
+
trajectory?: GetContextStoreResponseBodyConfigSourceTrajectory;
|
|
654
|
+
/**
|
|
655
|
+
* @example
|
|
656
|
+
* trajectory
|
|
657
|
+
*/
|
|
658
|
+
type?: string;
|
|
24
659
|
static names(): { [key: string]: string } {
|
|
25
660
|
return {
|
|
26
661
|
agentSpace: 'agentSpace',
|
|
662
|
+
dataset: 'dataset',
|
|
27
663
|
startTime: 'startTime',
|
|
664
|
+
trajectory: 'trajectory',
|
|
665
|
+
type: 'type',
|
|
28
666
|
};
|
|
29
667
|
}
|
|
30
668
|
|
|
31
669
|
static types(): { [key: string]: any } {
|
|
32
670
|
return {
|
|
33
671
|
agentSpace: 'string',
|
|
672
|
+
dataset: GetContextStoreResponseBodyConfigSourceDataset,
|
|
34
673
|
startTime: 'string',
|
|
674
|
+
trajectory: GetContextStoreResponseBodyConfigSourceTrajectory,
|
|
675
|
+
type: 'string',
|
|
35
676
|
};
|
|
36
677
|
}
|
|
37
678
|
|
|
38
679
|
validate() {
|
|
680
|
+
if(this.dataset && typeof (this.dataset as any).validate === 'function') {
|
|
681
|
+
(this.dataset as any).validate();
|
|
682
|
+
}
|
|
683
|
+
if(this.trajectory && typeof (this.trajectory as any).validate === 'function') {
|
|
684
|
+
(this.trajectory as any).validate();
|
|
685
|
+
}
|
|
686
|
+
super.validate();
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
constructor(map?: { [key: string]: any }) {
|
|
690
|
+
super(map);
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
export class GetContextStoreResponseBodyConfigSourceStatus extends $dara.Model {
|
|
695
|
+
checkpoint?: { [key: string]: any };
|
|
696
|
+
/**
|
|
697
|
+
* @example
|
|
698
|
+
* 读取数据源超时
|
|
699
|
+
*/
|
|
700
|
+
lastError?: string;
|
|
701
|
+
/**
|
|
702
|
+
* @example
|
|
703
|
+
* 2026-10-01T08:00:00Z
|
|
704
|
+
*/
|
|
705
|
+
lastWindowAt?: string;
|
|
706
|
+
/**
|
|
707
|
+
* @example
|
|
708
|
+
* 0
|
|
709
|
+
*/
|
|
710
|
+
retryCount?: number;
|
|
711
|
+
/**
|
|
712
|
+
* @example
|
|
713
|
+
* Running
|
|
714
|
+
*/
|
|
715
|
+
state?: string;
|
|
716
|
+
static names(): { [key: string]: string } {
|
|
717
|
+
return {
|
|
718
|
+
checkpoint: 'checkpoint',
|
|
719
|
+
lastError: 'lastError',
|
|
720
|
+
lastWindowAt: 'lastWindowAt',
|
|
721
|
+
retryCount: 'retryCount',
|
|
722
|
+
state: 'state',
|
|
723
|
+
};
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
static types(): { [key: string]: any } {
|
|
727
|
+
return {
|
|
728
|
+
checkpoint: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
729
|
+
lastError: 'string',
|
|
730
|
+
lastWindowAt: 'string',
|
|
731
|
+
retryCount: 'number',
|
|
732
|
+
state: 'string',
|
|
733
|
+
};
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
validate() {
|
|
737
|
+
if(this.checkpoint) {
|
|
738
|
+
$dara.Model.validateMap(this.checkpoint);
|
|
739
|
+
}
|
|
740
|
+
super.validate();
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
constructor(map?: { [key: string]: any }) {
|
|
744
|
+
super(map);
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
export class GetContextStoreResponseBodyConfigStoragePolicy extends $dara.Model {
|
|
749
|
+
/**
|
|
750
|
+
* @example
|
|
751
|
+
* ["ADD","UPDATE","MERGE","DELETE"]
|
|
752
|
+
*/
|
|
753
|
+
allowedActions?: string[];
|
|
754
|
+
/**
|
|
755
|
+
* @example
|
|
756
|
+
* true
|
|
757
|
+
*/
|
|
758
|
+
dedupe?: boolean;
|
|
759
|
+
/**
|
|
760
|
+
* @example
|
|
761
|
+
* true
|
|
762
|
+
*/
|
|
763
|
+
humanEditProtection?: boolean;
|
|
764
|
+
/**
|
|
765
|
+
* @example
|
|
766
|
+
* semantic
|
|
767
|
+
*/
|
|
768
|
+
mergeKey?: string;
|
|
769
|
+
/**
|
|
770
|
+
* @example
|
|
771
|
+
* upsert
|
|
772
|
+
*/
|
|
773
|
+
mode?: string;
|
|
774
|
+
/**
|
|
775
|
+
* @example
|
|
776
|
+
* 0.4
|
|
777
|
+
*/
|
|
778
|
+
similarityThreshold?: number;
|
|
779
|
+
/**
|
|
780
|
+
* @example
|
|
781
|
+
* 0
|
|
782
|
+
*/
|
|
783
|
+
ttlDays?: number;
|
|
784
|
+
static names(): { [key: string]: string } {
|
|
785
|
+
return {
|
|
786
|
+
allowedActions: 'allowedActions',
|
|
787
|
+
dedupe: 'dedupe',
|
|
788
|
+
humanEditProtection: 'humanEditProtection',
|
|
789
|
+
mergeKey: 'mergeKey',
|
|
790
|
+
mode: 'mode',
|
|
791
|
+
similarityThreshold: 'similarityThreshold',
|
|
792
|
+
ttlDays: 'ttlDays',
|
|
793
|
+
};
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
static types(): { [key: string]: any } {
|
|
797
|
+
return {
|
|
798
|
+
allowedActions: { 'type': 'array', 'itemType': 'string' },
|
|
799
|
+
dedupe: 'boolean',
|
|
800
|
+
humanEditProtection: 'boolean',
|
|
801
|
+
mergeKey: 'string',
|
|
802
|
+
mode: 'string',
|
|
803
|
+
similarityThreshold: 'number',
|
|
804
|
+
ttlDays: 'number',
|
|
805
|
+
};
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
validate() {
|
|
809
|
+
if(Array.isArray(this.allowedActions)) {
|
|
810
|
+
$dara.Model.validateArray(this.allowedActions);
|
|
811
|
+
}
|
|
39
812
|
super.validate();
|
|
40
813
|
}
|
|
41
814
|
|
|
@@ -45,6 +818,9 @@ export class GetContextStoreResponseBodyConfigSource extends $dara.Model {
|
|
|
45
818
|
}
|
|
46
819
|
|
|
47
820
|
export class GetContextStoreResponseBodyConfig extends $dara.Model {
|
|
821
|
+
audit?: GetContextStoreResponseBodyConfigAudit;
|
|
822
|
+
extractionPolicy?: GetContextStoreResponseBodyConfigExtractionPolicy;
|
|
823
|
+
innerSource?: GetContextStoreResponseBodyConfigInnerSource;
|
|
48
824
|
/**
|
|
49
825
|
* @remarks
|
|
50
826
|
* The metadata field mapping. The key is the business field and the value is the storage field.
|
|
@@ -61,6 +837,9 @@ export class GetContextStoreResponseBodyConfig extends $dara.Model {
|
|
|
61
837
|
* 1d
|
|
62
838
|
*/
|
|
63
839
|
miningInterval?: string;
|
|
840
|
+
observability?: GetContextStoreResponseBodyConfigObservability;
|
|
841
|
+
outputDataset?: GetContextStoreResponseBodyConfigOutputDataset;
|
|
842
|
+
scopePolicy?: GetContextStoreResponseBodyConfigScopePolicy;
|
|
64
843
|
/**
|
|
65
844
|
* @remarks
|
|
66
845
|
* The list of service names. This works together with source.agentSpace to locate the trace data source. This value cannot be changed in the current version.
|
|
@@ -74,34 +853,83 @@ export class GetContextStoreResponseBodyConfig extends $dara.Model {
|
|
|
74
853
|
* The datasource config passed in by the user. This serves only as the root identifier of the data source.
|
|
75
854
|
*/
|
|
76
855
|
source?: GetContextStoreResponseBodyConfigSource;
|
|
856
|
+
sourceStatus?: GetContextStoreResponseBodyConfigSourceStatus;
|
|
857
|
+
storagePolicy?: GetContextStoreResponseBodyConfigStoragePolicy;
|
|
858
|
+
/**
|
|
859
|
+
* @example
|
|
860
|
+
* 1
|
|
861
|
+
*/
|
|
862
|
+
strategyVersion?: number;
|
|
77
863
|
static names(): { [key: string]: string } {
|
|
78
864
|
return {
|
|
865
|
+
audit: 'audit',
|
|
866
|
+
extractionPolicy: 'extractionPolicy',
|
|
867
|
+
innerSource: 'innerSource',
|
|
79
868
|
metadataField: 'metadataField',
|
|
80
869
|
miningInterval: 'miningInterval',
|
|
870
|
+
observability: 'observability',
|
|
871
|
+
outputDataset: 'outputDataset',
|
|
872
|
+
scopePolicy: 'scopePolicy',
|
|
81
873
|
serviceNames: 'serviceNames',
|
|
82
874
|
source: 'source',
|
|
875
|
+
sourceStatus: 'sourceStatus',
|
|
876
|
+
storagePolicy: 'storagePolicy',
|
|
877
|
+
strategyVersion: 'strategyVersion',
|
|
83
878
|
};
|
|
84
879
|
}
|
|
85
880
|
|
|
86
881
|
static types(): { [key: string]: any } {
|
|
87
882
|
return {
|
|
883
|
+
audit: GetContextStoreResponseBodyConfigAudit,
|
|
884
|
+
extractionPolicy: GetContextStoreResponseBodyConfigExtractionPolicy,
|
|
885
|
+
innerSource: GetContextStoreResponseBodyConfigInnerSource,
|
|
88
886
|
metadataField: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
89
887
|
miningInterval: 'string',
|
|
888
|
+
observability: GetContextStoreResponseBodyConfigObservability,
|
|
889
|
+
outputDataset: GetContextStoreResponseBodyConfigOutputDataset,
|
|
890
|
+
scopePolicy: GetContextStoreResponseBodyConfigScopePolicy,
|
|
90
891
|
serviceNames: { 'type': 'array', 'itemType': 'string' },
|
|
91
892
|
source: GetContextStoreResponseBodyConfigSource,
|
|
893
|
+
sourceStatus: GetContextStoreResponseBodyConfigSourceStatus,
|
|
894
|
+
storagePolicy: GetContextStoreResponseBodyConfigStoragePolicy,
|
|
895
|
+
strategyVersion: 'number',
|
|
92
896
|
};
|
|
93
897
|
}
|
|
94
898
|
|
|
95
899
|
validate() {
|
|
900
|
+
if(this.audit && typeof (this.audit as any).validate === 'function') {
|
|
901
|
+
(this.audit as any).validate();
|
|
902
|
+
}
|
|
903
|
+
if(this.extractionPolicy && typeof (this.extractionPolicy as any).validate === 'function') {
|
|
904
|
+
(this.extractionPolicy as any).validate();
|
|
905
|
+
}
|
|
906
|
+
if(this.innerSource && typeof (this.innerSource as any).validate === 'function') {
|
|
907
|
+
(this.innerSource as any).validate();
|
|
908
|
+
}
|
|
96
909
|
if(this.metadataField) {
|
|
97
910
|
$dara.Model.validateMap(this.metadataField);
|
|
98
911
|
}
|
|
912
|
+
if(this.observability && typeof (this.observability as any).validate === 'function') {
|
|
913
|
+
(this.observability as any).validate();
|
|
914
|
+
}
|
|
915
|
+
if(this.outputDataset && typeof (this.outputDataset as any).validate === 'function') {
|
|
916
|
+
(this.outputDataset as any).validate();
|
|
917
|
+
}
|
|
918
|
+
if(this.scopePolicy && typeof (this.scopePolicy as any).validate === 'function') {
|
|
919
|
+
(this.scopePolicy as any).validate();
|
|
920
|
+
}
|
|
99
921
|
if(Array.isArray(this.serviceNames)) {
|
|
100
922
|
$dara.Model.validateArray(this.serviceNames);
|
|
101
923
|
}
|
|
102
924
|
if(this.source && typeof (this.source as any).validate === 'function') {
|
|
103
925
|
(this.source as any).validate();
|
|
104
926
|
}
|
|
927
|
+
if(this.sourceStatus && typeof (this.sourceStatus as any).validate === 'function') {
|
|
928
|
+
(this.sourceStatus as any).validate();
|
|
929
|
+
}
|
|
930
|
+
if(this.storagePolicy && typeof (this.storagePolicy as any).validate === 'function') {
|
|
931
|
+
(this.storagePolicy as any).validate();
|
|
932
|
+
}
|
|
105
933
|
super.validate();
|
|
106
934
|
}
|
|
107
935
|
|