@alicloud/agentloop20260520 2.3.1 → 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.
Files changed (77) hide show
  1. package/dist/client.d.ts +18 -18
  2. package/dist/client.js +25 -22
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateAgentSpaceRequest.d.ts +2 -1
  5. package/dist/models/CreateAgentSpaceRequest.js +2 -0
  6. package/dist/models/CreateAgentSpaceRequest.js.map +1 -1
  7. package/dist/models/CreateEvaluationTaskRequest.d.ts +11 -11
  8. package/dist/models/CreateExperimentPlanRequest.d.ts +10 -6
  9. package/dist/models/CreateExperimentPlanRequest.js.map +1 -1
  10. package/dist/models/CreateExperimentPlanResponseBody.d.ts +2 -2
  11. package/dist/models/CreatePipelineRequest.d.ts +251 -9
  12. package/dist/models/CreatePipelineRequest.js +203 -1
  13. package/dist/models/CreatePipelineRequest.js.map +1 -1
  14. package/dist/models/Evaluator.d.ts +11 -3
  15. package/dist/models/Evaluator.js +6 -0
  16. package/dist/models/Evaluator.js.map +1 -1
  17. package/dist/models/EvaluatorVariableExtractorMappingValue.d.ts +37 -0
  18. package/dist/models/EvaluatorVariableExtractorMappingValue.js +62 -0
  19. package/dist/models/EvaluatorVariableExtractorMappingValue.js.map +1 -0
  20. package/dist/models/GetAgentSpaceResponseBody.d.ts +4 -3
  21. package/dist/models/GetAgentSpaceResponseBody.js +2 -0
  22. package/dist/models/GetAgentSpaceResponseBody.js.map +1 -1
  23. package/dist/models/GetEvaluationTaskResponseBody.d.ts +3 -3
  24. package/dist/models/GetExperimentPlanResponseBody.d.ts +8 -4
  25. package/dist/models/GetExperimentPlanResponseBody.js.map +1 -1
  26. package/dist/models/GetPipelineResponseBody.d.ts +172 -3
  27. package/dist/models/GetPipelineResponseBody.js +203 -1
  28. package/dist/models/GetPipelineResponseBody.js.map +1 -1
  29. package/dist/models/ListAgentSpacesResponseBody.d.ts +1 -0
  30. package/dist/models/ListAgentSpacesResponseBody.js +2 -0
  31. package/dist/models/ListAgentSpacesResponseBody.js.map +1 -1
  32. package/dist/models/ListExperimentRunsRequest.d.ts +1 -1
  33. package/dist/models/PreviewPipelineRequest.d.ts +68 -2
  34. package/dist/models/PreviewPipelineRequest.js +53 -1
  35. package/dist/models/PreviewPipelineRequest.js.map +1 -1
  36. package/dist/models/PreviewPipelineResponseBody.d.ts +6 -6
  37. package/dist/models/RunPipelineRequest.d.ts +16 -0
  38. package/dist/models/RunPipelineRequest.js.map +1 -1
  39. package/dist/models/RunPipelineResponseBody.d.ts +15 -0
  40. package/dist/models/RunPipelineResponseBody.js.map +1 -1
  41. package/dist/models/RunStrategies.d.ts +14 -0
  42. package/dist/models/RunStrategies.js.map +1 -1
  43. package/dist/models/UpdateEvaluationTaskRequest.d.ts +5 -5
  44. package/dist/models/UpdateExperimentPlanRequest.d.ts +10 -6
  45. package/dist/models/UpdateExperimentPlanRequest.js.map +1 -1
  46. package/dist/models/UpdateExperimentPlanResponseBody.d.ts +3 -3
  47. package/dist/models/UpdatePipelineRequest.d.ts +267 -13
  48. package/dist/models/UpdatePipelineRequest.js +205 -1
  49. package/dist/models/UpdatePipelineRequest.js.map +1 -1
  50. package/dist/models/model.d.ts +27 -0
  51. package/dist/models/model.js +83 -28
  52. package/dist/models/model.js.map +1 -1
  53. package/package.json +1 -1
  54. package/src/client.ts +26 -22
  55. package/src/models/CreateAgentSpaceRequest.ts +4 -1
  56. package/src/models/CreateEvaluationTaskRequest.ts +11 -11
  57. package/src/models/CreateExperimentPlanRequest.ts +10 -6
  58. package/src/models/CreateExperimentPlanResponseBody.ts +2 -2
  59. package/src/models/CreatePipelineRequest.ts +381 -9
  60. package/src/models/Evaluator.ts +14 -3
  61. package/src/models/EvaluatorVariableExtractorMappingValue.ts +54 -0
  62. package/src/models/GetAgentSpaceResponseBody.ts +6 -3
  63. package/src/models/GetEvaluationTaskResponseBody.ts +3 -3
  64. package/src/models/GetExperimentPlanResponseBody.ts +8 -4
  65. package/src/models/GetPipelineResponseBody.ts +302 -3
  66. package/src/models/ListAgentSpacesResponseBody.ts +3 -0
  67. package/src/models/ListExperimentRunsRequest.ts +1 -1
  68. package/src/models/PreviewPipelineRequest.ts +102 -2
  69. package/src/models/PreviewPipelineResponseBody.ts +6 -6
  70. package/src/models/RunPipelineRequest.ts +16 -0
  71. package/src/models/RunPipelineResponseBody.ts +15 -0
  72. package/src/models/RunStrategies.ts +14 -0
  73. package/src/models/UpdateEvaluationTaskRequest.ts +5 -5
  74. package/src/models/UpdateExperimentPlanRequest.ts +10 -6
  75. package/src/models/UpdateExperimentPlanResponseBody.ts +3 -3
  76. package/src/models/UpdatePipelineRequest.ts +399 -13
  77. package/src/models/model.ts +27 -0
@@ -3,6 +3,7 @@ import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
5
  export class GetAgentSpaceResponseBodyMseNamespace extends $dara.Model {
6
+ bindType?: string;
6
7
  /**
7
8
  * @remarks
8
9
  * The ID of the MSE namespace.
@@ -21,6 +22,7 @@ export class GetAgentSpaceResponseBodyMseNamespace extends $dara.Model {
21
22
  namespaceName?: string;
22
23
  static names(): { [key: string]: string } {
23
24
  return {
25
+ bindType: 'bindType',
24
26
  namespaceId: 'namespaceId',
25
27
  namespaceName: 'namespaceName',
26
28
  };
@@ -28,6 +30,7 @@ export class GetAgentSpaceResponseBodyMseNamespace extends $dara.Model {
28
30
 
29
31
  static types(): { [key: string]: any } {
30
32
  return {
33
+ bindType: 'string',
31
34
  namespaceId: 'string',
32
35
  namespaceName: 'string',
33
36
  };
@@ -69,7 +72,7 @@ export class GetAgentSpaceResponseBody extends $dara.Model {
69
72
  cmsWorkspaceBindType?: string;
70
73
  /**
71
74
  * @remarks
72
- * The time when the AgentSpace was created.
75
+ * The creation time.
73
76
  *
74
77
  * Use the UTC time format: yyyy-MM-ddTHH:mm:ssZ
75
78
  *
@@ -87,7 +90,7 @@ export class GetAgentSpaceResponseBody extends $dara.Model {
87
90
  description?: string;
88
91
  /**
89
92
  * @remarks
90
- * The Microservices Engine (MSE) namespace.
93
+ * The MSE namespace.
91
94
  */
92
95
  mseNamespace?: GetAgentSpaceResponseBodyMseNamespace;
93
96
  /**
@@ -116,7 +119,7 @@ export class GetAgentSpaceResponseBody extends $dara.Model {
116
119
  slsProject?: string;
117
120
  /**
118
121
  * @remarks
119
- * The time when the AgentSpace was last updated.
122
+ * The update time.
120
123
  *
121
124
  * Use the UTC time format: yyyy-MM-ddTHH:mm:ssZ
122
125
  *
@@ -23,7 +23,7 @@ export class GetEvaluationTaskResponseBody extends $dara.Model {
23
23
  channel?: string;
24
24
  /**
25
25
  * @remarks
26
- * The data source and execution configuration. Tasks with `dataType=trace` typically include `project`, `storeName`, and `dataScope` fields populated by the backend.
26
+ * The data source and execution configuration. Tasks with `dataType=trace` typically contain `project`, `storeName`, and `dataScope` fields that are populated by the backend.
27
27
  *
28
28
  * @example
29
29
  * {"project":"agentspace-project","storeName":"logstore-tracing","dataScope":"trace"}
@@ -39,7 +39,7 @@ export class GetEvaluationTaskResponseBody extends $dara.Model {
39
39
  createdAt?: number;
40
40
  /**
41
41
  * @remarks
42
- * The filter conditions for evaluation data, returned by the backend as a JSON string.
42
+ * The evaluation data filter condition, returned by the backend as a JSON string.
43
43
  *
44
44
  * @example
45
45
  * {"query":"serviceName=\\"checkout-service\\"","maxRecords":10,"samplingRate":100}
@@ -58,7 +58,7 @@ export class GetEvaluationTaskResponseBody extends $dara.Model {
58
58
  * The evaluation task description.
59
59
  *
60
60
  * @example
61
- * 评估线上 Agent 链路任务完成度
61
+ * Evaluate the task completion rate of the online Agent pipeline
62
62
  */
63
63
  description?: string;
64
64
  /**
@@ -7,7 +7,7 @@ import { ExperimentConfig } from "./ExperimentConfig";
7
7
  export class GetExperimentPlanResponseBody extends $dara.Model {
8
8
  /**
9
9
  * @remarks
10
- * The creation time. This value is a millisecond-level UNIX timestamp.
10
+ * The creation time, in millisecond-level UNIX timestamp.
11
11
  *
12
12
  * @example
13
13
  * 1782816000000
@@ -26,7 +26,7 @@ export class GetExperimentPlanResponseBody extends $dara.Model {
26
26
  * The description.
27
27
  *
28
28
  * @example
29
- * Compare the checkout Agent baseline with the optimized version.
29
+ * Compare the checkout Agent baseline with the optimized version
30
30
  */
31
31
  description?: string;
32
32
  /**
@@ -61,6 +61,10 @@ export class GetExperimentPlanResponseBody extends $dara.Model {
61
61
  * {"question": "How do I request a refund?"}
62
62
  */
63
63
  input?: { [key: string]: any };
64
+ /**
65
+ * @remarks
66
+ * The name of the associated data processing pipeline. This value is empty if no pipeline is associated.
67
+ */
64
68
  pipelineName?: string;
65
69
  /**
66
70
  * @remarks
@@ -96,7 +100,7 @@ export class GetExperimentPlanResponseBody extends $dara.Model {
96
100
  requestId?: string;
97
101
  /**
98
102
  * @remarks
99
- * The list of selected data item IDs in partial dataset mode.
103
+ * The list of data item IDs selected in partial dataset mode.
100
104
  *
101
105
  * @example
102
106
  * ["019ef4d5-a0f0-7114-832d-5542d771cd8c"]
@@ -112,7 +116,7 @@ export class GetExperimentPlanResponseBody extends $dara.Model {
112
116
  status?: string;
113
117
  /**
114
118
  * @remarks
115
- * The update time. This value is a millisecond-level UNIX timestamp.
119
+ * The update time, in millisecond-level UNIX timestamp.
116
120
  *
117
121
  * @example
118
122
  * 1782816600000
@@ -73,7 +73,7 @@ export class GetPipelineResponseBodyExecutePolicyScheduled extends $dara.Model {
73
73
  export class GetPipelineResponseBodyExecutePolicy extends $dara.Model {
74
74
  /**
75
75
  * @example
76
- * Scheduled
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
- * Dataset
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
- * SLS
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
  }
@@ -3,6 +3,7 @@ import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
5
  export class ListAgentSpacesResponseBodyAgentSpacesMseNamespace extends $dara.Model {
6
+ bindType?: string;
6
7
  /**
7
8
  * @remarks
8
9
  * The MSE namespace ID.
@@ -21,6 +22,7 @@ export class ListAgentSpacesResponseBodyAgentSpacesMseNamespace extends $dara.Mo
21
22
  namespaceName?: string;
22
23
  static names(): { [key: string]: string } {
23
24
  return {
25
+ bindType: 'bindType',
24
26
  namespaceId: 'namespaceId',
25
27
  namespaceName: 'namespaceName',
26
28
  };
@@ -28,6 +30,7 @@ export class ListAgentSpacesResponseBodyAgentSpacesMseNamespace extends $dara.Mo
28
30
 
29
31
  static types(): { [key: string]: any } {
30
32
  return {
33
+ bindType: 'string',
31
34
  namespaceId: 'string',
32
35
  namespaceName: 'string',
33
36
  };
@@ -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 structure. The parameters vary depending on the node type.
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, only Simple Log Service (SLS) is supported.
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
  }