@alicloud/agentloop20260520 2.3.2 → 2.3.4

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 (69) hide show
  1. package/dist/client.d.ts +26 -18
  2. package/dist/client.js +29 -29
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateEvaluationTaskRequest.d.ts +11 -11
  5. package/dist/models/CreateExperimentPlanRequest.d.ts +10 -6
  6. package/dist/models/CreateExperimentPlanRequest.js.map +1 -1
  7. package/dist/models/CreateExperimentPlanResponseBody.d.ts +2 -2
  8. package/dist/models/CreatePipelineRequest.d.ts +251 -9
  9. package/dist/models/CreatePipelineRequest.js +203 -1
  10. package/dist/models/CreatePipelineRequest.js.map +1 -1
  11. package/dist/models/Evaluator.d.ts +11 -3
  12. package/dist/models/Evaluator.js +6 -0
  13. package/dist/models/Evaluator.js.map +1 -1
  14. package/dist/models/EvaluatorVariableExtractorMappingValue.d.ts +37 -0
  15. package/dist/models/EvaluatorVariableExtractorMappingValue.js +62 -0
  16. package/dist/models/EvaluatorVariableExtractorMappingValue.js.map +1 -0
  17. package/dist/models/ExecuteQueryRequest.d.ts +100 -0
  18. package/dist/models/ExecuteQueryRequest.js +51 -1
  19. package/dist/models/ExecuteQueryRequest.js.map +1 -1
  20. package/dist/models/ExecuteQueryResponseBody.d.ts +13 -1
  21. package/dist/models/ExecuteQueryResponseBody.js.map +1 -1
  22. package/dist/models/GetEvaluationTaskResponseBody.d.ts +3 -3
  23. package/dist/models/GetExperimentPlanResponseBody.d.ts +8 -4
  24. package/dist/models/GetExperimentPlanResponseBody.js.map +1 -1
  25. package/dist/models/GetPipelineResponseBody.d.ts +358 -4
  26. package/dist/models/GetPipelineResponseBody.js +203 -1
  27. package/dist/models/GetPipelineResponseBody.js.map +1 -1
  28. package/dist/models/ListExperimentRunsRequest.d.ts +1 -1
  29. package/dist/models/PreviewPipelineRequest.d.ts +68 -2
  30. package/dist/models/PreviewPipelineRequest.js +53 -1
  31. package/dist/models/PreviewPipelineRequest.js.map +1 -1
  32. package/dist/models/PreviewPipelineResponseBody.d.ts +6 -6
  33. package/dist/models/RunPipelineRequest.d.ts +16 -0
  34. package/dist/models/RunPipelineRequest.js.map +1 -1
  35. package/dist/models/RunPipelineResponseBody.d.ts +15 -0
  36. package/dist/models/RunPipelineResponseBody.js.map +1 -1
  37. package/dist/models/UpdateEvaluationTaskRequest.d.ts +5 -5
  38. package/dist/models/UpdateExperimentPlanRequest.d.ts +10 -6
  39. package/dist/models/UpdateExperimentPlanRequest.js.map +1 -1
  40. package/dist/models/UpdateExperimentPlanResponseBody.d.ts +3 -3
  41. package/dist/models/UpdatePipelineRequest.d.ts +267 -13
  42. package/dist/models/UpdatePipelineRequest.js +205 -1
  43. package/dist/models/UpdatePipelineRequest.js.map +1 -1
  44. package/dist/models/model.d.ts +29 -0
  45. package/dist/models/model.js +89 -30
  46. package/dist/models/model.js.map +1 -1
  47. package/package.json +1 -1
  48. package/src/client.ts +30 -29
  49. package/src/models/CreateEvaluationTaskRequest.ts +11 -11
  50. package/src/models/CreateExperimentPlanRequest.ts +10 -6
  51. package/src/models/CreateExperimentPlanResponseBody.ts +2 -2
  52. package/src/models/CreatePipelineRequest.ts +381 -9
  53. package/src/models/Evaluator.ts +14 -3
  54. package/src/models/EvaluatorVariableExtractorMappingValue.ts +54 -0
  55. package/src/models/ExecuteQueryRequest.ts +132 -0
  56. package/src/models/ExecuteQueryResponseBody.ts +13 -1
  57. package/src/models/GetEvaluationTaskResponseBody.ts +3 -3
  58. package/src/models/GetExperimentPlanResponseBody.ts +8 -4
  59. package/src/models/GetPipelineResponseBody.ts +488 -4
  60. package/src/models/ListExperimentRunsRequest.ts +1 -1
  61. package/src/models/PreviewPipelineRequest.ts +102 -2
  62. package/src/models/PreviewPipelineResponseBody.ts +6 -6
  63. package/src/models/RunPipelineRequest.ts +16 -0
  64. package/src/models/RunPipelineResponseBody.ts +15 -0
  65. package/src/models/UpdateEvaluationTaskRequest.ts +5 -5
  66. package/src/models/UpdateExperimentPlanRequest.ts +10 -6
  67. package/src/models/UpdateExperimentPlanResponseBody.ts +3 -3
  68. package/src/models/UpdatePipelineRequest.ts +399 -13
  69. package/src/models/model.ts +29 -0
@@ -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
  }
@@ -13,7 +13,7 @@ export class PreviewPipelineResponseBodyMeta extends $dara.Model {
13
13
  aggQuery?: string;
14
14
  /**
15
15
  * @remarks
16
- * The `meta.columnTypes` field provides a mapping from column names to data types (string / long / double / json).
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 result rows returned.
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 processed data bytes.
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 column type and aggregation information.
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
- * The `data` field is a collection of sample rows (an array of maps) that contains only the first N rows (up to 5 by default) and does not reflect the complete write plan.
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 condition for evaluation data. A JSON object or JSON string is supported.
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
- * 更新后的链路 Trace 任务完成度评估
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. A JSON object or JSON string is supported. If the task is in `Completed`, `Terminated`, or `Failed` status and the new strategy enables backfill or continuous mode, the backend resets the task to `Pending` and triggers orchestration.
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 explicitly set this to `Terminated`. Other statuses are managed by the system.
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 comparison.
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
@@ -7,7 +7,7 @@ import { ExperimentConfig } from "./ExperimentConfig";
7
7
  export class UpdateExperimentPlanRequest extends $dara.Model {
8
8
  /**
9
9
  * @remarks
10
- * The associated dataset ID.
10
+ * The ID of the associated dataset.
11
11
  *
12
12
  * @example
13
13
  * rca_benckmark_eval
@@ -26,12 +26,12 @@ export class UpdateExperimentPlanRequest extends $dara.Model {
26
26
  * The description.
27
27
  *
28
28
  * @example
29
- * rca_benchmark_eval_experiment offline experiment.
29
+ * rca_benchmark_eval_experiment offline experiment
30
30
  */
31
31
  description?: string;
32
32
  /**
33
33
  * @remarks
34
- * The evaluator list. Omitting this field indicates no modification. Passing an empty array clears the list.
34
+ * The list of evaluators. Omitting this field indicates no modification. Passing an empty array clears the list.
35
35
  *
36
36
  * @example
37
37
  * [{"evaluatorRef": "Builtin.agent_task_completion"}]
@@ -47,7 +47,7 @@ export class UpdateExperimentPlanRequest extends $dara.Model {
47
47
  experimentType?: string;
48
48
  /**
49
49
  * @remarks
50
- * The experiment configuration list. When specified, the entire list is replaced. The number of items must be 1 to 5.
50
+ * The list of experiment configurations. When specified, the entire list is replaced. The number of configurations must be 1 to 5.
51
51
  *
52
52
  * @example
53
53
  * [{"label": "A", "name": "baseline", "modelName": "qwen-max"}]
@@ -58,13 +58,17 @@ export class UpdateExperimentPlanRequest extends $dara.Model {
58
58
  * Optional.
59
59
  *
60
60
  * @example
61
- * {"question": "How do I get a refund?"}
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 parameter is optional. If not specified, the value is not updated. If an empty character string is specified, the association is dissociated. After association, when an experiment under this plan finishes execution and writes results to the experiment result Logstore, the system filters by the traceId of the experiment trace and calls PreviewPipeline. The pipeline-processed results are then written together.
67
+ */
64
68
  pipelineName?: string;
65
69
  /**
66
70
  * @remarks
67
- * The experiment plan name.
71
+ * The name of the experiment plan.
68
72
  *
69
73
  * @example
70
74
  * rca_benchmark_eval_experiment
@@ -8,12 +8,12 @@ export class UpdateExperimentPlanResponseBody extends $dara.Model {
8
8
  * The prompt message.
9
9
  *
10
10
  * @example
11
- * Experiment plan updated successfully.
11
+ * Experiment plan updated successfully
12
12
  */
13
13
  message?: string;
14
14
  /**
15
15
  * @remarks
16
- * The experiment plan ID.
16
+ * The ID of the experiment plan.
17
17
  *
18
18
  * @example
19
19
  * exp-plan-e95bff54685a4ae29ff3a834c1008a71
@@ -29,7 +29,7 @@ export class UpdateExperimentPlanResponseBody extends $dara.Model {
29
29
  requestId?: string;
30
30
  /**
31
31
  * @remarks
32
- * The update result. The value is updated if the operation is successful.
32
+ * The update result. A value of updated indicates success.
33
33
  *
34
34
  * @example
35
35
  * updated