@alicloud/agentloop20260520 2.3.2 → 2.3.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 +16 -16
- package/dist/client.js +16 -16
- package/dist/models/CreateEvaluationTaskRequest.d.ts +11 -11
- package/dist/models/CreateExperimentPlanRequest.d.ts +10 -6
- package/dist/models/CreateExperimentPlanRequest.js.map +1 -1
- package/dist/models/CreateExperimentPlanResponseBody.d.ts +2 -2
- package/dist/models/CreatePipelineRequest.d.ts +251 -9
- package/dist/models/CreatePipelineRequest.js +203 -1
- package/dist/models/CreatePipelineRequest.js.map +1 -1
- package/dist/models/Evaluator.d.ts +11 -3
- package/dist/models/Evaluator.js +6 -0
- package/dist/models/Evaluator.js.map +1 -1
- package/dist/models/EvaluatorVariableExtractorMappingValue.d.ts +37 -0
- package/dist/models/EvaluatorVariableExtractorMappingValue.js +62 -0
- package/dist/models/EvaluatorVariableExtractorMappingValue.js.map +1 -0
- package/dist/models/GetEvaluationTaskResponseBody.d.ts +3 -3
- package/dist/models/GetExperimentPlanResponseBody.d.ts +8 -4
- package/dist/models/GetExperimentPlanResponseBody.js.map +1 -1
- package/dist/models/GetPipelineResponseBody.d.ts +172 -3
- package/dist/models/GetPipelineResponseBody.js +203 -1
- package/dist/models/GetPipelineResponseBody.js.map +1 -1
- package/dist/models/ListExperimentRunsRequest.d.ts +1 -1
- package/dist/models/PreviewPipelineRequest.d.ts +68 -2
- package/dist/models/PreviewPipelineRequest.js +53 -1
- package/dist/models/PreviewPipelineRequest.js.map +1 -1
- package/dist/models/PreviewPipelineResponseBody.d.ts +6 -6
- package/dist/models/RunPipelineRequest.d.ts +16 -0
- package/dist/models/RunPipelineRequest.js.map +1 -1
- package/dist/models/RunPipelineResponseBody.d.ts +15 -0
- package/dist/models/RunPipelineResponseBody.js.map +1 -1
- package/dist/models/UpdateEvaluationTaskRequest.d.ts +5 -5
- package/dist/models/UpdateExperimentPlanRequest.d.ts +10 -6
- package/dist/models/UpdateExperimentPlanRequest.js.map +1 -1
- package/dist/models/UpdateExperimentPlanResponseBody.d.ts +3 -3
- package/dist/models/UpdatePipelineRequest.d.ts +267 -13
- package/dist/models/UpdatePipelineRequest.js +205 -1
- package/dist/models/UpdatePipelineRequest.js.map +1 -1
- package/dist/models/model.d.ts +27 -0
- package/dist/models/model.js +83 -28
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +16 -16
- package/src/models/CreateEvaluationTaskRequest.ts +11 -11
- package/src/models/CreateExperimentPlanRequest.ts +10 -6
- package/src/models/CreateExperimentPlanResponseBody.ts +2 -2
- package/src/models/CreatePipelineRequest.ts +381 -9
- package/src/models/Evaluator.ts +14 -3
- package/src/models/EvaluatorVariableExtractorMappingValue.ts +54 -0
- package/src/models/GetEvaluationTaskResponseBody.ts +3 -3
- package/src/models/GetExperimentPlanResponseBody.ts +8 -4
- package/src/models/GetPipelineResponseBody.ts +302 -3
- package/src/models/ListExperimentRunsRequest.ts +1 -1
- package/src/models/PreviewPipelineRequest.ts +102 -2
- package/src/models/PreviewPipelineResponseBody.ts +6 -6
- package/src/models/RunPipelineRequest.ts +16 -0
- package/src/models/RunPipelineResponseBody.ts +15 -0
- package/src/models/UpdateEvaluationTaskRequest.ts +5 -5
- package/src/models/UpdateExperimentPlanRequest.ts +10 -6
- package/src/models/UpdateExperimentPlanResponseBody.ts +3 -3
- package/src/models/UpdatePipelineRequest.ts +399 -13
- package/src/models/model.ts +27 -0
|
@@ -73,7 +73,7 @@ export class GetPipelineResponseBodyExecutePolicyScheduled extends $dara.Model {
|
|
|
73
73
|
export class GetPipelineResponseBodyExecutePolicy extends $dara.Model {
|
|
74
74
|
/**
|
|
75
75
|
* @example
|
|
76
|
-
*
|
|
76
|
+
* scheduled
|
|
77
77
|
*/
|
|
78
78
|
mode?: string;
|
|
79
79
|
runOnce?: GetPipelineResponseBodyExecutePolicyRunOnce;
|
|
@@ -175,6 +175,219 @@ export class GetPipelineResponseBodyPipeline extends $dara.Model {
|
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
+
export class GetPipelineResponseBodySinkConditionDefaultSinkDataset extends $dara.Model {
|
|
179
|
+
/**
|
|
180
|
+
* @example
|
|
181
|
+
* my-agent-space
|
|
182
|
+
*/
|
|
183
|
+
agentSpace?: string;
|
|
184
|
+
/**
|
|
185
|
+
* @example
|
|
186
|
+
* other-result
|
|
187
|
+
*/
|
|
188
|
+
dataset?: string;
|
|
189
|
+
static names(): { [key: string]: string } {
|
|
190
|
+
return {
|
|
191
|
+
agentSpace: 'agentSpace',
|
|
192
|
+
dataset: 'dataset',
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
static types(): { [key: string]: any } {
|
|
197
|
+
return {
|
|
198
|
+
agentSpace: 'string',
|
|
199
|
+
dataset: 'string',
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
validate() {
|
|
204
|
+
super.validate();
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
constructor(map?: { [key: string]: any }) {
|
|
208
|
+
super(map);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
export class GetPipelineResponseBodySinkConditionDefaultSink extends $dara.Model {
|
|
213
|
+
dataset?: GetPipelineResponseBodySinkConditionDefaultSinkDataset;
|
|
214
|
+
/**
|
|
215
|
+
* @example
|
|
216
|
+
* dataset
|
|
217
|
+
*/
|
|
218
|
+
type?: string;
|
|
219
|
+
static names(): { [key: string]: string } {
|
|
220
|
+
return {
|
|
221
|
+
dataset: 'dataset',
|
|
222
|
+
type: 'type',
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
static types(): { [key: string]: any } {
|
|
227
|
+
return {
|
|
228
|
+
dataset: GetPipelineResponseBodySinkConditionDefaultSinkDataset,
|
|
229
|
+
type: 'string',
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
validate() {
|
|
234
|
+
if(this.dataset && typeof (this.dataset as any).validate === 'function') {
|
|
235
|
+
(this.dataset as any).validate();
|
|
236
|
+
}
|
|
237
|
+
super.validate();
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
constructor(map?: { [key: string]: any }) {
|
|
241
|
+
super(map);
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export class GetPipelineResponseBodySinkConditionRoutesSinkDataset extends $dara.Model {
|
|
246
|
+
/**
|
|
247
|
+
* @example
|
|
248
|
+
* my-agent-space
|
|
249
|
+
*/
|
|
250
|
+
agentSpace?: string;
|
|
251
|
+
/**
|
|
252
|
+
* @example
|
|
253
|
+
* refund-result
|
|
254
|
+
*/
|
|
255
|
+
dataset?: string;
|
|
256
|
+
static names(): { [key: string]: string } {
|
|
257
|
+
return {
|
|
258
|
+
agentSpace: 'agentSpace',
|
|
259
|
+
dataset: 'dataset',
|
|
260
|
+
};
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
static types(): { [key: string]: any } {
|
|
264
|
+
return {
|
|
265
|
+
agentSpace: 'string',
|
|
266
|
+
dataset: 'string',
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
validate() {
|
|
271
|
+
super.validate();
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
constructor(map?: { [key: string]: any }) {
|
|
275
|
+
super(map);
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
export class GetPipelineResponseBodySinkConditionRoutesSink extends $dara.Model {
|
|
280
|
+
dataset?: GetPipelineResponseBodySinkConditionRoutesSinkDataset;
|
|
281
|
+
/**
|
|
282
|
+
* @example
|
|
283
|
+
* dataset
|
|
284
|
+
*/
|
|
285
|
+
type?: string;
|
|
286
|
+
static names(): { [key: string]: string } {
|
|
287
|
+
return {
|
|
288
|
+
dataset: 'dataset',
|
|
289
|
+
type: 'type',
|
|
290
|
+
};
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
static types(): { [key: string]: any } {
|
|
294
|
+
return {
|
|
295
|
+
dataset: GetPipelineResponseBodySinkConditionRoutesSinkDataset,
|
|
296
|
+
type: 'string',
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
validate() {
|
|
301
|
+
if(this.dataset && typeof (this.dataset as any).validate === 'function') {
|
|
302
|
+
(this.dataset as any).validate();
|
|
303
|
+
}
|
|
304
|
+
super.validate();
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
constructor(map?: { [key: string]: any }) {
|
|
308
|
+
super(map);
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
export class GetPipelineResponseBodySinkConditionRoutes extends $dara.Model {
|
|
313
|
+
/**
|
|
314
|
+
* @example
|
|
315
|
+
* * | where intent = \\"refund\\"
|
|
316
|
+
*/
|
|
317
|
+
expression?: string;
|
|
318
|
+
/**
|
|
319
|
+
* @example
|
|
320
|
+
* refund
|
|
321
|
+
*/
|
|
322
|
+
id?: string;
|
|
323
|
+
sink?: GetPipelineResponseBodySinkConditionRoutesSink;
|
|
324
|
+
static names(): { [key: string]: string } {
|
|
325
|
+
return {
|
|
326
|
+
expression: 'expression',
|
|
327
|
+
id: 'id',
|
|
328
|
+
sink: 'sink',
|
|
329
|
+
};
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
static types(): { [key: string]: any } {
|
|
333
|
+
return {
|
|
334
|
+
expression: 'string',
|
|
335
|
+
id: 'string',
|
|
336
|
+
sink: GetPipelineResponseBodySinkConditionRoutesSink,
|
|
337
|
+
};
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
validate() {
|
|
341
|
+
if(this.sink && typeof (this.sink as any).validate === 'function') {
|
|
342
|
+
(this.sink as any).validate();
|
|
343
|
+
}
|
|
344
|
+
super.validate();
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
constructor(map?: { [key: string]: any }) {
|
|
348
|
+
super(map);
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
export class GetPipelineResponseBodySinkCondition extends $dara.Model {
|
|
353
|
+
defaultSink?: GetPipelineResponseBodySinkConditionDefaultSink;
|
|
354
|
+
/**
|
|
355
|
+
* @example
|
|
356
|
+
* all
|
|
357
|
+
*/
|
|
358
|
+
matchMode?: string;
|
|
359
|
+
routes?: GetPipelineResponseBodySinkConditionRoutes[];
|
|
360
|
+
static names(): { [key: string]: string } {
|
|
361
|
+
return {
|
|
362
|
+
defaultSink: 'defaultSink',
|
|
363
|
+
matchMode: 'matchMode',
|
|
364
|
+
routes: 'routes',
|
|
365
|
+
};
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
static types(): { [key: string]: any } {
|
|
369
|
+
return {
|
|
370
|
+
defaultSink: GetPipelineResponseBodySinkConditionDefaultSink,
|
|
371
|
+
matchMode: 'string',
|
|
372
|
+
routes: { 'type': 'array', 'itemType': GetPipelineResponseBodySinkConditionRoutes },
|
|
373
|
+
};
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
validate() {
|
|
377
|
+
if(this.defaultSink && typeof (this.defaultSink as any).validate === 'function') {
|
|
378
|
+
(this.defaultSink as any).validate();
|
|
379
|
+
}
|
|
380
|
+
if(Array.isArray(this.routes)) {
|
|
381
|
+
$dara.Model.validateArray(this.routes);
|
|
382
|
+
}
|
|
383
|
+
super.validate();
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
constructor(map?: { [key: string]: any }) {
|
|
387
|
+
super(map);
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
|
|
178
391
|
export class GetPipelineResponseBodySinkDataset extends $dara.Model {
|
|
179
392
|
/**
|
|
180
393
|
* @example
|
|
@@ -210,14 +423,16 @@ export class GetPipelineResponseBodySinkDataset extends $dara.Model {
|
|
|
210
423
|
}
|
|
211
424
|
|
|
212
425
|
export class GetPipelineResponseBodySink extends $dara.Model {
|
|
426
|
+
condition?: GetPipelineResponseBodySinkCondition;
|
|
213
427
|
dataset?: GetPipelineResponseBodySinkDataset;
|
|
214
428
|
/**
|
|
215
429
|
* @example
|
|
216
|
-
*
|
|
430
|
+
* condition
|
|
217
431
|
*/
|
|
218
432
|
type?: string;
|
|
219
433
|
static names(): { [key: string]: string } {
|
|
220
434
|
return {
|
|
435
|
+
condition: 'condition',
|
|
221
436
|
dataset: 'dataset',
|
|
222
437
|
type: 'type',
|
|
223
438
|
};
|
|
@@ -225,12 +440,16 @@ export class GetPipelineResponseBodySink extends $dara.Model {
|
|
|
225
440
|
|
|
226
441
|
static types(): { [key: string]: any } {
|
|
227
442
|
return {
|
|
443
|
+
condition: GetPipelineResponseBodySinkCondition,
|
|
228
444
|
dataset: GetPipelineResponseBodySinkDataset,
|
|
229
445
|
type: 'string',
|
|
230
446
|
};
|
|
231
447
|
}
|
|
232
448
|
|
|
233
449
|
validate() {
|
|
450
|
+
if(this.condition && typeof (this.condition as any).validate === 'function') {
|
|
451
|
+
(this.condition as any).validate();
|
|
452
|
+
}
|
|
234
453
|
if(this.dataset && typeof (this.dataset as any).validate === 'function') {
|
|
235
454
|
(this.dataset as any).validate();
|
|
236
455
|
}
|
|
@@ -242,6 +461,74 @@ export class GetPipelineResponseBodySink extends $dara.Model {
|
|
|
242
461
|
}
|
|
243
462
|
}
|
|
244
463
|
|
|
464
|
+
export class GetPipelineResponseBodySourceDataset extends $dara.Model {
|
|
465
|
+
/**
|
|
466
|
+
* @example
|
|
467
|
+
* my-dataset
|
|
468
|
+
*/
|
|
469
|
+
dataset?: string;
|
|
470
|
+
/**
|
|
471
|
+
* @example
|
|
472
|
+
* status = \\"pending\\"
|
|
473
|
+
*/
|
|
474
|
+
filter?: string;
|
|
475
|
+
static names(): { [key: string]: string } {
|
|
476
|
+
return {
|
|
477
|
+
dataset: 'dataset',
|
|
478
|
+
filter: 'filter',
|
|
479
|
+
};
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
static types(): { [key: string]: any } {
|
|
483
|
+
return {
|
|
484
|
+
dataset: 'string',
|
|
485
|
+
filter: 'string',
|
|
486
|
+
};
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
validate() {
|
|
490
|
+
super.validate();
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
constructor(map?: { [key: string]: any }) {
|
|
494
|
+
super(map);
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
export class GetPipelineResponseBodySourceInputFields extends $dara.Model {
|
|
499
|
+
/**
|
|
500
|
+
* @example
|
|
501
|
+
* question
|
|
502
|
+
*/
|
|
503
|
+
name?: string;
|
|
504
|
+
/**
|
|
505
|
+
* @example
|
|
506
|
+
* text
|
|
507
|
+
*/
|
|
508
|
+
type?: string;
|
|
509
|
+
static names(): { [key: string]: string } {
|
|
510
|
+
return {
|
|
511
|
+
name: 'name',
|
|
512
|
+
type: 'type',
|
|
513
|
+
};
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
static types(): { [key: string]: any } {
|
|
517
|
+
return {
|
|
518
|
+
name: 'string',
|
|
519
|
+
type: 'string',
|
|
520
|
+
};
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
validate() {
|
|
524
|
+
super.validate();
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
constructor(map?: { [key: string]: any }) {
|
|
528
|
+
super(map);
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
|
|
245
532
|
export class GetPipelineResponseBodySourceLogstore extends $dara.Model {
|
|
246
533
|
/**
|
|
247
534
|
* @example
|
|
@@ -284,14 +571,18 @@ export class GetPipelineResponseBodySourceLogstore extends $dara.Model {
|
|
|
284
571
|
}
|
|
285
572
|
|
|
286
573
|
export class GetPipelineResponseBodySource extends $dara.Model {
|
|
574
|
+
dataset?: GetPipelineResponseBodySourceDataset;
|
|
575
|
+
inputFields?: GetPipelineResponseBodySourceInputFields[];
|
|
287
576
|
logstore?: GetPipelineResponseBodySourceLogstore;
|
|
288
577
|
/**
|
|
289
578
|
* @example
|
|
290
|
-
*
|
|
579
|
+
* dataset
|
|
291
580
|
*/
|
|
292
581
|
type?: string;
|
|
293
582
|
static names(): { [key: string]: string } {
|
|
294
583
|
return {
|
|
584
|
+
dataset: 'dataset',
|
|
585
|
+
inputFields: 'inputFields',
|
|
295
586
|
logstore: 'logstore',
|
|
296
587
|
type: 'type',
|
|
297
588
|
};
|
|
@@ -299,12 +590,20 @@ export class GetPipelineResponseBodySource extends $dara.Model {
|
|
|
299
590
|
|
|
300
591
|
static types(): { [key: string]: any } {
|
|
301
592
|
return {
|
|
593
|
+
dataset: GetPipelineResponseBodySourceDataset,
|
|
594
|
+
inputFields: { 'type': 'array', 'itemType': GetPipelineResponseBodySourceInputFields },
|
|
302
595
|
logstore: GetPipelineResponseBodySourceLogstore,
|
|
303
596
|
type: 'string',
|
|
304
597
|
};
|
|
305
598
|
}
|
|
306
599
|
|
|
307
600
|
validate() {
|
|
601
|
+
if(this.dataset && typeof (this.dataset as any).validate === 'function') {
|
|
602
|
+
(this.dataset as any).validate();
|
|
603
|
+
}
|
|
604
|
+
if(Array.isArray(this.inputFields)) {
|
|
605
|
+
$dara.Model.validateArray(this.inputFields);
|
|
606
|
+
}
|
|
308
607
|
if(this.logstore && typeof (this.logstore as any).validate === 'function') {
|
|
309
608
|
(this.logstore as any).validate();
|
|
310
609
|
}
|
|
@@ -53,7 +53,7 @@ export class ListExperimentRunsRequest extends $dara.Model {
|
|
|
53
53
|
pageSize?: number;
|
|
54
54
|
/**
|
|
55
55
|
* @remarks
|
|
56
|
-
* Filters results by fuzzy match on experiment plan name.
|
|
56
|
+
* Filters results by fuzzy match on the experiment plan name.
|
|
57
57
|
*
|
|
58
58
|
* @example
|
|
59
59
|
* arms_agent_experiment
|
|
@@ -13,7 +13,7 @@ export class PreviewPipelineRequestPipelineNodes extends $dara.Model {
|
|
|
13
13
|
id?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The node parameters in key-value
|
|
16
|
+
* The node parameters in key-value format. The parameters vary based on the node type.
|
|
17
17
|
*/
|
|
18
18
|
parameters?: { [key: string]: any };
|
|
19
19
|
/**
|
|
@@ -82,6 +82,86 @@ export class PreviewPipelineRequestPipeline extends $dara.Model {
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
export class PreviewPipelineRequestSourceDataset extends $dara.Model {
|
|
86
|
+
/**
|
|
87
|
+
* @remarks
|
|
88
|
+
* The name of the source dataset.
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* my-dataset
|
|
92
|
+
*/
|
|
93
|
+
dataset?: string;
|
|
94
|
+
/**
|
|
95
|
+
* @remarks
|
|
96
|
+
* The filter condition for dataset data.
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
* status = \\"pending\\"
|
|
100
|
+
*/
|
|
101
|
+
filter?: string;
|
|
102
|
+
static names(): { [key: string]: string } {
|
|
103
|
+
return {
|
|
104
|
+
dataset: 'dataset',
|
|
105
|
+
filter: 'filter',
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
static types(): { [key: string]: any } {
|
|
110
|
+
return {
|
|
111
|
+
dataset: 'string',
|
|
112
|
+
filter: 'string',
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
validate() {
|
|
117
|
+
super.validate();
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
constructor(map?: { [key: string]: any }) {
|
|
121
|
+
super(map);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export class PreviewPipelineRequestSourceInputFields extends $dara.Model {
|
|
126
|
+
/**
|
|
127
|
+
* @remarks
|
|
128
|
+
* The field name.
|
|
129
|
+
*
|
|
130
|
+
* @example
|
|
131
|
+
* question
|
|
132
|
+
*/
|
|
133
|
+
name?: string;
|
|
134
|
+
/**
|
|
135
|
+
* @remarks
|
|
136
|
+
* The field type. Valid values: text, long, double, and json.
|
|
137
|
+
*
|
|
138
|
+
* @example
|
|
139
|
+
* text
|
|
140
|
+
*/
|
|
141
|
+
type?: string;
|
|
142
|
+
static names(): { [key: string]: string } {
|
|
143
|
+
return {
|
|
144
|
+
name: 'name',
|
|
145
|
+
type: 'type',
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
static types(): { [key: string]: any } {
|
|
150
|
+
return {
|
|
151
|
+
name: 'string',
|
|
152
|
+
type: 'string',
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
validate() {
|
|
157
|
+
super.validate();
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
constructor(map?: { [key: string]: any }) {
|
|
161
|
+
super(map);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
85
165
|
export class PreviewPipelineRequestSourceLogstore extends $dara.Model {
|
|
86
166
|
/**
|
|
87
167
|
* @remarks
|
|
@@ -133,6 +213,16 @@ export class PreviewPipelineRequestSourceLogstore extends $dara.Model {
|
|
|
133
213
|
}
|
|
134
214
|
|
|
135
215
|
export class PreviewPipelineRequestSource extends $dara.Model {
|
|
216
|
+
/**
|
|
217
|
+
* @remarks
|
|
218
|
+
* The Dataset datasource config under the current AgentSpace.
|
|
219
|
+
*/
|
|
220
|
+
dataset?: PreviewPipelineRequestSourceDataset;
|
|
221
|
+
/**
|
|
222
|
+
* @remarks
|
|
223
|
+
* The input fields and field types. This parameter applies to all data source types.
|
|
224
|
+
*/
|
|
225
|
+
inputFields?: PreviewPipelineRequestSourceInputFields[];
|
|
136
226
|
/**
|
|
137
227
|
* @remarks
|
|
138
228
|
* The SLS Logstore datasource config.
|
|
@@ -140,7 +230,7 @@ export class PreviewPipelineRequestSource extends $dara.Model {
|
|
|
140
230
|
logstore?: PreviewPipelineRequestSourceLogstore;
|
|
141
231
|
/**
|
|
142
232
|
* @remarks
|
|
143
|
-
* The data source type. Currently,
|
|
233
|
+
* The data source type. Currently, Simple Log Service (SLS) is supported.
|
|
144
234
|
*
|
|
145
235
|
* @example
|
|
146
236
|
* SLS
|
|
@@ -148,6 +238,8 @@ export class PreviewPipelineRequestSource extends $dara.Model {
|
|
|
148
238
|
type?: string;
|
|
149
239
|
static names(): { [key: string]: string } {
|
|
150
240
|
return {
|
|
241
|
+
dataset: 'dataset',
|
|
242
|
+
inputFields: 'inputFields',
|
|
151
243
|
logstore: 'logstore',
|
|
152
244
|
type: 'type',
|
|
153
245
|
};
|
|
@@ -155,12 +247,20 @@ export class PreviewPipelineRequestSource extends $dara.Model {
|
|
|
155
247
|
|
|
156
248
|
static types(): { [key: string]: any } {
|
|
157
249
|
return {
|
|
250
|
+
dataset: PreviewPipelineRequestSourceDataset,
|
|
251
|
+
inputFields: { 'type': 'array', 'itemType': PreviewPipelineRequestSourceInputFields },
|
|
158
252
|
logstore: PreviewPipelineRequestSourceLogstore,
|
|
159
253
|
type: 'string',
|
|
160
254
|
};
|
|
161
255
|
}
|
|
162
256
|
|
|
163
257
|
validate() {
|
|
258
|
+
if(this.dataset && typeof (this.dataset as any).validate === 'function') {
|
|
259
|
+
(this.dataset as any).validate();
|
|
260
|
+
}
|
|
261
|
+
if(Array.isArray(this.inputFields)) {
|
|
262
|
+
$dara.Model.validateArray(this.inputFields);
|
|
263
|
+
}
|
|
164
264
|
if(this.logstore && typeof (this.logstore as any).validate === 'function') {
|
|
165
265
|
(this.logstore as any).validate();
|
|
166
266
|
}
|
|
@@ -13,7 +13,7 @@ export class PreviewPipelineResponseBodyMeta extends $dara.Model {
|
|
|
13
13
|
aggQuery?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
*
|
|
16
|
+
* `meta.columnTypes` provides the mapping from column names to data types (string / long / double / json).
|
|
17
17
|
*/
|
|
18
18
|
columnTypes?: string[];
|
|
19
19
|
/**
|
|
@@ -65,7 +65,7 @@ export class PreviewPipelineResponseBodyMeta extends $dara.Model {
|
|
|
65
65
|
keys?: string[];
|
|
66
66
|
/**
|
|
67
67
|
* @remarks
|
|
68
|
-
* The maximum number of
|
|
68
|
+
* The maximum number of rows that can be returned.
|
|
69
69
|
*
|
|
70
70
|
* @example
|
|
71
71
|
* 5
|
|
@@ -81,7 +81,7 @@ export class PreviewPipelineResponseBodyMeta extends $dara.Model {
|
|
|
81
81
|
mode?: number;
|
|
82
82
|
/**
|
|
83
83
|
* @remarks
|
|
84
|
-
* The number of
|
|
84
|
+
* The number of data bytes processed.
|
|
85
85
|
*
|
|
86
86
|
* @example
|
|
87
87
|
* 524288
|
|
@@ -97,7 +97,7 @@ export class PreviewPipelineResponseBodyMeta extends $dara.Model {
|
|
|
97
97
|
processedRows?: number;
|
|
98
98
|
/**
|
|
99
99
|
* @remarks
|
|
100
|
-
* The SLS query progress. A value of Complete indicates that the query is complete.
|
|
100
|
+
* The Simple Log Service (SLS) query progress. A value of Complete indicates that the query is complete.
|
|
101
101
|
*
|
|
102
102
|
* @example
|
|
103
103
|
* Complete
|
|
@@ -113,7 +113,7 @@ export class PreviewPipelineResponseBodyMeta extends $dara.Model {
|
|
|
113
113
|
scanBytes?: number;
|
|
114
114
|
/**
|
|
115
115
|
* @remarks
|
|
116
|
-
* The
|
|
116
|
+
* The type and aggregation information of columns.
|
|
117
117
|
*/
|
|
118
118
|
terms?: { [key: string]: any }[];
|
|
119
119
|
/**
|
|
@@ -189,7 +189,7 @@ export class PreviewPipelineResponseBodyMeta extends $dara.Model {
|
|
|
189
189
|
export class PreviewPipelineResponseBody extends $dara.Model {
|
|
190
190
|
/**
|
|
191
191
|
* @remarks
|
|
192
|
-
*
|
|
192
|
+
* `data` is a collection of sample rows (maps within an array) that contains only the first N rows (up to 5 by default) and does not reflect the complete write plan.
|
|
193
193
|
*/
|
|
194
194
|
data?: { [key: string]: string }[];
|
|
195
195
|
/**
|
|
@@ -4,11 +4,17 @@ import * as $dara from '@darabonba/typescript';
|
|
|
4
4
|
|
|
5
5
|
export class RunPipelineRequestOutput extends $dara.Model {
|
|
6
6
|
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* Specifies whether to write to the target Dataset. Default value: true.
|
|
9
|
+
*
|
|
7
10
|
* @example
|
|
8
11
|
* true
|
|
9
12
|
*/
|
|
10
13
|
dataset?: boolean;
|
|
11
14
|
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* Specifies whether to return inline results in the response. Default value: false.
|
|
17
|
+
*
|
|
12
18
|
* @example
|
|
13
19
|
* false
|
|
14
20
|
*/
|
|
@@ -38,12 +44,22 @@ export class RunPipelineRequestOutput extends $dara.Model {
|
|
|
38
44
|
|
|
39
45
|
export class RunPipelineRequest extends $dara.Model {
|
|
40
46
|
/**
|
|
47
|
+
* @remarks
|
|
48
|
+
* The start of the data processing window, in UNIX seconds. This parameter is required for SQL Pipeline and time window-based WorkItem Source. This parameter is optional for checkpoint-based WorkItem Source types such as Dataset and Logstore Pull.
|
|
49
|
+
*
|
|
41
50
|
* @example
|
|
42
51
|
* 1735660800
|
|
43
52
|
*/
|
|
44
53
|
fromTime?: number;
|
|
54
|
+
/**
|
|
55
|
+
* @remarks
|
|
56
|
+
* The output control settings. SQL Pipeline supports overriding. WorkItem Pipeline uses the saved Sink configuration and must keep the default value.
|
|
57
|
+
*/
|
|
45
58
|
output?: RunPipelineRequestOutput;
|
|
46
59
|
/**
|
|
60
|
+
* @remarks
|
|
61
|
+
* The end of the data processing window, in UNIX seconds. This parameter must be provided together with fromTime and must be greater than fromTime. This parameter is optional for checkpoint-based WorkItem Source types.
|
|
62
|
+
*
|
|
47
63
|
* @example
|
|
48
64
|
* 1735747200
|
|
49
65
|
*/
|
|
@@ -4,26 +4,41 @@ import * as $dara from '@darabonba/typescript';
|
|
|
4
4
|
|
|
5
5
|
export class RunPipelineResponseBody extends $dara.Model {
|
|
6
6
|
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The name of the AgentSpace.
|
|
9
|
+
*
|
|
7
10
|
* @example
|
|
8
11
|
* my-agent-space
|
|
9
12
|
*/
|
|
10
13
|
agentSpaceName?: string;
|
|
11
14
|
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The pipeline name.
|
|
17
|
+
*
|
|
12
18
|
* @example
|
|
13
19
|
* my-pipeline
|
|
14
20
|
*/
|
|
15
21
|
pipelineName?: string;
|
|
16
22
|
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The request ID, which is used to locate and troubleshoot issues.
|
|
25
|
+
*
|
|
17
26
|
* @example
|
|
18
27
|
* 9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M
|
|
19
28
|
*/
|
|
20
29
|
requestId?: string;
|
|
21
30
|
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* The run ID created by this trigger.
|
|
33
|
+
*
|
|
22
34
|
* @example
|
|
23
35
|
* run-20260101-0001
|
|
24
36
|
*/
|
|
25
37
|
runId?: string;
|
|
26
38
|
/**
|
|
39
|
+
* @remarks
|
|
40
|
+
* The current status of the run. The status is typically Pending after the run is queued.
|
|
41
|
+
*
|
|
27
42
|
* @example
|
|
28
43
|
* Pending
|
|
29
44
|
*/
|
|
@@ -15,7 +15,7 @@ export class UpdateEvaluationTaskRequest extends $dara.Model {
|
|
|
15
15
|
config?: { [key: string]: string };
|
|
16
16
|
/**
|
|
17
17
|
* @remarks
|
|
18
|
-
* The filter
|
|
18
|
+
* The filter conditions for evaluation data. JSON objects and JSON strings are supported.
|
|
19
19
|
*
|
|
20
20
|
* @example
|
|
21
21
|
* {"query":"serviceName=\\"checkout-service\\" AND status=\\"OK\\"","maxRecords":10,"samplingRate":50}
|
|
@@ -26,7 +26,7 @@ export class UpdateEvaluationTaskRequest extends $dara.Model {
|
|
|
26
26
|
* The description of the evaluation task.
|
|
27
27
|
*
|
|
28
28
|
* @example
|
|
29
|
-
*
|
|
29
|
+
* Updated trace link task completion evaluation
|
|
30
30
|
*/
|
|
31
31
|
description?: string;
|
|
32
32
|
/**
|
|
@@ -39,12 +39,12 @@ export class UpdateEvaluationTaskRequest extends $dara.Model {
|
|
|
39
39
|
evaluators?: Evaluator[];
|
|
40
40
|
/**
|
|
41
41
|
* @remarks
|
|
42
|
-
* The new task execution strategies.
|
|
42
|
+
* The new task execution strategies. JSON objects and JSON strings are supported. If the task is in the `Completed`, `Terminated`, or `Failed` state and the new strategy enables backfill or continuous mode, the backend restores the task to the `Pending` state and triggers orchestration.
|
|
43
43
|
*/
|
|
44
44
|
runStrategies?: RunStrategies;
|
|
45
45
|
/**
|
|
46
46
|
* @remarks
|
|
47
|
-
* The task status. Currently the backend only allows users to
|
|
47
|
+
* The task status. Currently, the backend only allows users to manually set this to `Terminated`. Other statuses are managed by the system.
|
|
48
48
|
*
|
|
49
49
|
* @example
|
|
50
50
|
* Terminated
|
|
@@ -60,7 +60,7 @@ export class UpdateEvaluationTaskRequest extends $dara.Model {
|
|
|
60
60
|
tags?: { [key: string]: string };
|
|
61
61
|
/**
|
|
62
62
|
* @remarks
|
|
63
|
-
* The idempotency token. CloudSpec declares this query parameter, but the backend does not currently perform idempotency
|
|
63
|
+
* The idempotency token. CloudSpec declares this query parameter, but the backend does not currently perform idempotency checks.
|
|
64
64
|
*
|
|
65
65
|
* @example
|
|
66
66
|
* a1b2c3d4-1234-5678-90ab-cdef12345678
|