@alicloud/agentloop20260520 2.5.1 → 2.5.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 +36 -24
- package/dist/client.js +36 -24
- package/dist/client.js.map +1 -1
- package/dist/models/CreateDatasetVersionRequest.d.ts +3 -3
- package/dist/models/CreateExperimentPlanRequest.d.ts +11 -8
- package/dist/models/CreateExperimentPlanRequest.js.map +1 -1
- package/dist/models/CreateExperimentPlanResponseBody.d.ts +1 -1
- package/dist/models/CreatePipelineRequest.d.ts +32 -29
- package/dist/models/CreatePipelineRequest.js.map +1 -1
- package/dist/models/CreatePipelineResponseBody.d.ts +1 -1
- package/dist/models/DescribeRegionsRequest.d.ts +1 -1
- package/dist/models/DescribeRegionsResponseBody.d.ts +3 -3
- package/dist/models/GetAgentSpaceResponseBody.d.ts +11 -2
- package/dist/models/GetAgentSpaceResponseBody.js.map +1 -1
- package/dist/models/GetEvaluationRunResponseBody.d.ts +27 -17
- package/dist/models/GetEvaluationRunResponseBody.js +5 -0
- package/dist/models/GetEvaluationRunResponseBody.js.map +1 -1
- package/dist/models/GetEvaluationTaskResponseBody.d.ts +23 -13
- package/dist/models/GetEvaluationTaskResponseBody.js +5 -0
- package/dist/models/GetEvaluationTaskResponseBody.js.map +1 -1
- package/dist/models/GetOptimizeTaskResponseBody.d.ts +14 -5
- package/dist/models/GetOptimizeTaskResponseBody.js.map +1 -1
- package/dist/models/GetPipelineRunResponseBody.d.ts +25 -21
- package/dist/models/GetPipelineRunResponseBody.js.map +1 -1
- package/dist/models/ListAgentSpacesRequest.d.ts +2 -2
- package/dist/models/ListAgentSpacesResponseBody.d.ts +5 -5
- package/dist/models/ListAgentSpacesShrinkRequest.d.ts +2 -2
- package/dist/models/ListDatasetVersionsRequest.d.ts +1 -1
- package/dist/models/ListEvaluatorsRequest.d.ts +2 -2
- package/dist/models/ListEvaluatorsResponseBody.d.ts +7 -7
- package/dist/models/ListExperimentPlansRequest.d.ts +5 -5
- package/dist/models/ListExperimentPlansResponseBody.d.ts +3 -3
- package/dist/models/ListOptimizeRunsRequest.d.ts +6 -6
- package/dist/models/ListOptimizeRunsResponseBody.d.ts +25 -8
- package/dist/models/ListOptimizeRunsResponseBody.js.map +1 -1
- package/dist/models/ListOptimizeTasksRequest.d.ts +2 -2
- package/dist/models/ListOptimizeTasksResponseBody.d.ts +17 -8
- package/dist/models/ListOptimizeTasksResponseBody.js.map +1 -1
- package/dist/models/ListPipelineRunsRequest.d.ts +5 -5
- package/dist/models/ListPipelineRunsResponseBody.d.ts +18 -9
- package/dist/models/ListPipelineRunsResponseBody.js.map +1 -1
- package/dist/models/MetaSchemaValue.d.ts +1 -1
- package/dist/models/PreviewPipelineRequest.d.ts +13 -10
- package/dist/models/PreviewPipelineRequest.js.map +1 -1
- package/dist/models/PreviewPipelineResponseBody.d.ts +12 -12
- package/dist/models/SearchContextRequest.d.ts +10 -10
- package/dist/models/SearchContextResponseBody.d.ts +32 -6
- package/dist/models/SearchContextResponseBody.js.map +1 -1
- package/dist/models/UpdateContextStoreRequest.d.ts +59 -45
- package/dist/models/UpdateContextStoreRequest.js.map +1 -1
- package/dist/models/UpdateContextStoreResponseBody.d.ts +5 -5
- package/dist/models/UpdateEvaluatorSkillRequest.d.ts +11 -11
- package/dist/models/UpdateExperimentPlanRequest.d.ts +7 -4
- package/dist/models/UpdateExperimentPlanRequest.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +36 -24
- package/src/models/CreateDatasetVersionRequest.ts +3 -3
- package/src/models/CreateExperimentPlanRequest.ts +11 -8
- package/src/models/CreateExperimentPlanResponseBody.ts +1 -1
- package/src/models/CreatePipelineRequest.ts +32 -29
- package/src/models/CreatePipelineResponseBody.ts +1 -1
- package/src/models/DescribeRegionsRequest.ts +1 -1
- package/src/models/DescribeRegionsResponseBody.ts +3 -3
- package/src/models/GetAgentSpaceResponseBody.ts +11 -2
- package/src/models/GetEvaluationRunResponseBody.ts +30 -17
- package/src/models/GetEvaluationTaskResponseBody.ts +26 -13
- package/src/models/GetOptimizeTaskResponseBody.ts +14 -5
- package/src/models/GetPipelineRunResponseBody.ts +25 -21
- package/src/models/ListAgentSpacesRequest.ts +2 -2
- package/src/models/ListAgentSpacesResponseBody.ts +5 -5
- package/src/models/ListAgentSpacesShrinkRequest.ts +2 -2
- package/src/models/ListDatasetVersionsRequest.ts +1 -1
- package/src/models/ListEvaluatorsRequest.ts +2 -2
- package/src/models/ListEvaluatorsResponseBody.ts +7 -7
- package/src/models/ListExperimentPlansRequest.ts +5 -5
- package/src/models/ListExperimentPlansResponseBody.ts +3 -3
- package/src/models/ListOptimizeRunsRequest.ts +6 -6
- package/src/models/ListOptimizeRunsResponseBody.ts +25 -8
- package/src/models/ListOptimizeTasksRequest.ts +2 -2
- package/src/models/ListOptimizeTasksResponseBody.ts +17 -8
- package/src/models/ListPipelineRunsRequest.ts +5 -5
- package/src/models/ListPipelineRunsResponseBody.ts +18 -9
- package/src/models/MetaSchemaValue.ts +1 -1
- package/src/models/PreviewPipelineRequest.ts +13 -10
- package/src/models/PreviewPipelineResponseBody.ts +12 -12
- package/src/models/SearchContextRequest.ts +10 -10
- package/src/models/SearchContextResponseBody.ts +32 -6
- package/src/models/UpdateContextStoreRequest.ts +59 -45
- package/src/models/UpdateContextStoreResponseBody.ts +5 -5
- package/src/models/UpdateEvaluatorSkillRequest.ts +11 -11
- package/src/models/UpdateExperimentPlanRequest.ts +7 -4
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class GetEvaluationRunResponseBodyEvaluatorProgress extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The evaluator
|
|
8
|
+
* The name of the evaluator.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* Builtin.agent_task_completion
|
|
@@ -13,7 +13,7 @@ export class GetEvaluationRunResponseBodyEvaluatorProgress extends $dara.Model {
|
|
|
13
13
|
evaluatorName?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The number of failed items for
|
|
16
|
+
* The number of failed items for the evaluator.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* 4
|
|
@@ -21,7 +21,7 @@ export class GetEvaluationRunResponseBodyEvaluatorProgress extends $dara.Model {
|
|
|
21
21
|
failedCount?: number;
|
|
22
22
|
/**
|
|
23
23
|
* @remarks
|
|
24
|
-
* The number of successful items for
|
|
24
|
+
* The number of successful items for the evaluator.
|
|
25
25
|
*
|
|
26
26
|
* @example
|
|
27
27
|
* 96
|
|
@@ -29,7 +29,7 @@ export class GetEvaluationRunResponseBodyEvaluatorProgress extends $dara.Model {
|
|
|
29
29
|
successCount?: number;
|
|
30
30
|
/**
|
|
31
31
|
* @remarks
|
|
32
|
-
* The total number of items for
|
|
32
|
+
* The total number of items for the evaluator.
|
|
33
33
|
*
|
|
34
34
|
* @example
|
|
35
35
|
* 100
|
|
@@ -65,7 +65,7 @@ export class GetEvaluationRunResponseBodyEvaluatorProgress extends $dara.Model {
|
|
|
65
65
|
export class GetEvaluationRunResponseBody extends $dara.Model {
|
|
66
66
|
/**
|
|
67
67
|
* @remarks
|
|
68
|
-
* The creation time
|
|
68
|
+
* The creation time. The value is a UNIX timestamp in seconds.
|
|
69
69
|
*
|
|
70
70
|
* @example
|
|
71
71
|
* 1782816000
|
|
@@ -73,7 +73,7 @@ export class GetEvaluationRunResponseBody extends $dara.Model {
|
|
|
73
73
|
createdAt?: number;
|
|
74
74
|
/**
|
|
75
75
|
* @remarks
|
|
76
|
-
* The end time of the run data window
|
|
76
|
+
* The end time of the run data window. The value is a UNIX timestamp in seconds.
|
|
77
77
|
*
|
|
78
78
|
* @example
|
|
79
79
|
* 1782902400
|
|
@@ -81,7 +81,7 @@ export class GetEvaluationRunResponseBody extends $dara.Model {
|
|
|
81
81
|
dataEndTime?: number;
|
|
82
82
|
/**
|
|
83
83
|
* @remarks
|
|
84
|
-
* The start time of the run data window
|
|
84
|
+
* The start time of the run data window. The value is a UNIX timestamp in seconds.
|
|
85
85
|
*
|
|
86
86
|
* @example
|
|
87
87
|
* 1782816000
|
|
@@ -89,7 +89,7 @@ export class GetEvaluationRunResponseBody extends $dara.Model {
|
|
|
89
89
|
dataStartTime?: number;
|
|
90
90
|
/**
|
|
91
91
|
* @remarks
|
|
92
|
-
* The
|
|
92
|
+
* The progress list by evaluator dimension.
|
|
93
93
|
*
|
|
94
94
|
* @example
|
|
95
95
|
* [{"evaluatorName":"Builtin.agent_task_completion","totalCount":100,"successCount":96,"failedCount":4}]
|
|
@@ -97,7 +97,7 @@ export class GetEvaluationRunResponseBody extends $dara.Model {
|
|
|
97
97
|
evaluatorProgress?: GetEvaluationRunResponseBodyEvaluatorProgress[];
|
|
98
98
|
/**
|
|
99
99
|
* @remarks
|
|
100
|
-
* The snapshot of the evaluator configuration
|
|
100
|
+
* The snapshot of the evaluator configuration when the run is created. The value is a JSON string.
|
|
101
101
|
*
|
|
102
102
|
* @example
|
|
103
103
|
* [{"evaluatorRef":"Builtin.agent_task_completion"}]
|
|
@@ -113,7 +113,15 @@ export class GetEvaluationRunResponseBody extends $dara.Model {
|
|
|
113
113
|
failedCount?: number;
|
|
114
114
|
/**
|
|
115
115
|
* @remarks
|
|
116
|
-
* The
|
|
116
|
+
* The snapshot of the evaluator quality scores and coverage for the current run. This field is empty if the feature is not enabled.
|
|
117
|
+
*
|
|
118
|
+
* @example
|
|
119
|
+
* {}
|
|
120
|
+
*/
|
|
121
|
+
qualityMetrics?: { [key: string]: any };
|
|
122
|
+
/**
|
|
123
|
+
* @remarks
|
|
124
|
+
* The ID of the request.
|
|
117
125
|
*
|
|
118
126
|
* @example
|
|
119
127
|
* 3FE4CD1E-FF41-56BE-B590-7A021D9C1524
|
|
@@ -121,7 +129,7 @@ export class GetEvaluationRunResponseBody extends $dara.Model {
|
|
|
121
129
|
requestId?: string;
|
|
122
130
|
/**
|
|
123
131
|
* @remarks
|
|
124
|
-
* The run
|
|
132
|
+
* The ID of the run.
|
|
125
133
|
*
|
|
126
134
|
* @example
|
|
127
135
|
* eval-run-4fd47f3d7e684e15b1d3d178c6a5b81a
|
|
@@ -129,7 +137,7 @@ export class GetEvaluationRunResponseBody extends $dara.Model {
|
|
|
129
137
|
runId?: string;
|
|
130
138
|
/**
|
|
131
139
|
* @remarks
|
|
132
|
-
* The run
|
|
140
|
+
* The name of the run.
|
|
133
141
|
*
|
|
134
142
|
* @example
|
|
135
143
|
* trace_task_completion_eval-backfill
|
|
@@ -137,7 +145,7 @@ export class GetEvaluationRunResponseBody extends $dara.Model {
|
|
|
137
145
|
runName?: string;
|
|
138
146
|
/**
|
|
139
147
|
* @remarks
|
|
140
|
-
* The run
|
|
148
|
+
* The type of the run.
|
|
141
149
|
*
|
|
142
150
|
* @example
|
|
143
151
|
* backfill
|
|
@@ -145,7 +153,7 @@ export class GetEvaluationRunResponseBody extends $dara.Model {
|
|
|
145
153
|
runType?: string;
|
|
146
154
|
/**
|
|
147
155
|
* @remarks
|
|
148
|
-
* The run
|
|
156
|
+
* The status of the run.
|
|
149
157
|
*
|
|
150
158
|
* @example
|
|
151
159
|
* Running
|
|
@@ -161,7 +169,7 @@ export class GetEvaluationRunResponseBody extends $dara.Model {
|
|
|
161
169
|
successCount?: number;
|
|
162
170
|
/**
|
|
163
171
|
* @remarks
|
|
164
|
-
* The evaluation task
|
|
172
|
+
* The ID of the evaluation task.
|
|
165
173
|
*
|
|
166
174
|
* @example
|
|
167
175
|
* eval-task-8b36f2e2b1f94f9c91ce7a4b0f6d9c25
|
|
@@ -169,7 +177,7 @@ export class GetEvaluationRunResponseBody extends $dara.Model {
|
|
|
169
177
|
taskId?: string;
|
|
170
178
|
/**
|
|
171
179
|
* @remarks
|
|
172
|
-
* The total number of
|
|
180
|
+
* The total number of evaluated items.
|
|
173
181
|
*
|
|
174
182
|
* @example
|
|
175
183
|
* 100
|
|
@@ -177,7 +185,7 @@ export class GetEvaluationRunResponseBody extends $dara.Model {
|
|
|
177
185
|
totalCount?: number;
|
|
178
186
|
/**
|
|
179
187
|
* @remarks
|
|
180
|
-
* The update time
|
|
188
|
+
* The update time. The value is a UNIX timestamp in seconds.
|
|
181
189
|
*
|
|
182
190
|
* @example
|
|
183
191
|
* 1782816600
|
|
@@ -191,6 +199,7 @@ export class GetEvaluationRunResponseBody extends $dara.Model {
|
|
|
191
199
|
evaluatorProgress: 'evaluatorProgress',
|
|
192
200
|
evaluators: 'evaluators',
|
|
193
201
|
failedCount: 'failedCount',
|
|
202
|
+
qualityMetrics: 'qualityMetrics',
|
|
194
203
|
requestId: 'requestId',
|
|
195
204
|
runId: 'runId',
|
|
196
205
|
runName: 'runName',
|
|
@@ -211,6 +220,7 @@ export class GetEvaluationRunResponseBody extends $dara.Model {
|
|
|
211
220
|
evaluatorProgress: { 'type': 'array', 'itemType': GetEvaluationRunResponseBodyEvaluatorProgress },
|
|
212
221
|
evaluators: 'string',
|
|
213
222
|
failedCount: 'number',
|
|
223
|
+
qualityMetrics: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
214
224
|
requestId: 'string',
|
|
215
225
|
runId: 'string',
|
|
216
226
|
runName: 'string',
|
|
@@ -227,6 +237,9 @@ export class GetEvaluationRunResponseBody extends $dara.Model {
|
|
|
227
237
|
if(Array.isArray(this.evaluatorProgress)) {
|
|
228
238
|
$dara.Model.validateArray(this.evaluatorProgress);
|
|
229
239
|
}
|
|
240
|
+
if(this.qualityMetrics) {
|
|
241
|
+
$dara.Model.validateMap(this.qualityMetrics);
|
|
242
|
+
}
|
|
230
243
|
super.validate();
|
|
231
244
|
}
|
|
232
245
|
|
|
@@ -7,7 +7,7 @@ import { RunStrategies } from "./RunStrategies";
|
|
|
7
7
|
export class GetEvaluationTaskResponseBody extends $dara.Model {
|
|
8
8
|
/**
|
|
9
9
|
* @remarks
|
|
10
|
-
* The AgentSpace
|
|
10
|
+
* The name of the AgentSpace.
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* prod-agentspace
|
|
@@ -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
|
|
26
|
+
* The data source and execution configurations. Tasks with `dataType=trace` typically include the `project`, `storeName`, and `dataScope` fields populated by the backend.
|
|
27
27
|
*
|
|
28
28
|
* @example
|
|
29
29
|
* {"project":"agentspace-project","storeName":"logstore-tracing","dataScope":"trace"}
|
|
@@ -31,7 +31,7 @@ export class GetEvaluationTaskResponseBody extends $dara.Model {
|
|
|
31
31
|
config?: { [key: string]: string };
|
|
32
32
|
/**
|
|
33
33
|
* @remarks
|
|
34
|
-
* The creation time,
|
|
34
|
+
* The creation time, represented as a UNIX timestamp in seconds.
|
|
35
35
|
*
|
|
36
36
|
* @example
|
|
37
37
|
* 1782816000
|
|
@@ -39,7 +39,7 @@ export class GetEvaluationTaskResponseBody extends $dara.Model {
|
|
|
39
39
|
createdAt?: number;
|
|
40
40
|
/**
|
|
41
41
|
* @remarks
|
|
42
|
-
* The evaluation data
|
|
42
|
+
* The filter conditions for evaluation data. The backend returns this value 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 description of the evaluation task.
|
|
59
59
|
*
|
|
60
60
|
* @example
|
|
61
|
-
* Evaluate the task completion of
|
|
61
|
+
* Evaluate the task completion rate of online agent workflows
|
|
62
62
|
*/
|
|
63
63
|
description?: string;
|
|
64
64
|
/**
|
|
@@ -69,6 +69,14 @@ export class GetEvaluationTaskResponseBody extends $dara.Model {
|
|
|
69
69
|
* [{"evaluatorRef":"Builtin.agent_task_completion","resultName":"agent_task_completion","resultType":"score","variableMapping":{"input":"trace.input","output":"trace.output","agent_trajectory":"trace.agent_trajectory"}}]
|
|
70
70
|
*/
|
|
71
71
|
evaluators?: Evaluator[];
|
|
72
|
+
/**
|
|
73
|
+
* @remarks
|
|
74
|
+
* The quality score and coverage snapshot of the most recent evaluator run. This field is empty when the feature is not enabled.
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* {}
|
|
78
|
+
*/
|
|
79
|
+
qualityMetrics?: { [key: string]: any };
|
|
72
80
|
/**
|
|
73
81
|
* @remarks
|
|
74
82
|
* The region to which the task belongs.
|
|
@@ -79,7 +87,7 @@ export class GetEvaluationTaskResponseBody extends $dara.Model {
|
|
|
79
87
|
regionId?: string;
|
|
80
88
|
/**
|
|
81
89
|
* @remarks
|
|
82
|
-
* The request
|
|
90
|
+
* The ID of the request.
|
|
83
91
|
*
|
|
84
92
|
* @example
|
|
85
93
|
* 3FE4CD1E-FF41-56BE-B590-7A021D9C1524
|
|
@@ -87,7 +95,7 @@ export class GetEvaluationTaskResponseBody extends $dara.Model {
|
|
|
87
95
|
requestId?: string;
|
|
88
96
|
/**
|
|
89
97
|
* @remarks
|
|
90
|
-
* The structured run strategy
|
|
98
|
+
* The structured configuration of the run strategy, including the parsed backfill strategy and continuous evaluation strategy.
|
|
91
99
|
*
|
|
92
100
|
* @example
|
|
93
101
|
* {"backfill":{"enabled":true,"startTime":1782816000000,"endTime":1782902400000},"continuous":{"enabled":true,"intervalUnit":"HOUR","intervalValue":1,"dataDelayMinutes":5}}
|
|
@@ -95,7 +103,7 @@ export class GetEvaluationTaskResponseBody extends $dara.Model {
|
|
|
95
103
|
runStrategyConfig?: RunStrategies;
|
|
96
104
|
/**
|
|
97
105
|
* @remarks
|
|
98
|
-
* The evaluation task
|
|
106
|
+
* The status of the evaluation task.
|
|
99
107
|
*
|
|
100
108
|
* @example
|
|
101
109
|
* Running
|
|
@@ -103,7 +111,7 @@ export class GetEvaluationTaskResponseBody extends $dara.Model {
|
|
|
103
111
|
status?: string;
|
|
104
112
|
/**
|
|
105
113
|
* @remarks
|
|
106
|
-
* The key-value pairs of task tags.
|
|
114
|
+
* The key-value pairs of task tags. This field is empty when no tags are set.
|
|
107
115
|
*
|
|
108
116
|
* @example
|
|
109
117
|
* {"serviceId":"checkout-service","env":"prod"}
|
|
@@ -111,7 +119,7 @@ export class GetEvaluationTaskResponseBody extends $dara.Model {
|
|
|
111
119
|
tags?: { [key: string]: string };
|
|
112
120
|
/**
|
|
113
121
|
* @remarks
|
|
114
|
-
* The evaluation task
|
|
122
|
+
* The ID of the evaluation task.
|
|
115
123
|
*
|
|
116
124
|
* @example
|
|
117
125
|
* eval-task-8b36f2e2b1f94f9c91ce7a4b0f6d9c25
|
|
@@ -119,7 +127,7 @@ export class GetEvaluationTaskResponseBody extends $dara.Model {
|
|
|
119
127
|
taskId?: string;
|
|
120
128
|
/**
|
|
121
129
|
* @remarks
|
|
122
|
-
* The evaluation task
|
|
130
|
+
* The mode of the evaluation task.
|
|
123
131
|
*
|
|
124
132
|
* @example
|
|
125
133
|
* batch
|
|
@@ -127,7 +135,7 @@ export class GetEvaluationTaskResponseBody extends $dara.Model {
|
|
|
127
135
|
taskMode?: string;
|
|
128
136
|
/**
|
|
129
137
|
* @remarks
|
|
130
|
-
* The task
|
|
138
|
+
* The name of the task.
|
|
131
139
|
*
|
|
132
140
|
* @example
|
|
133
141
|
* trace_task_completion_eval
|
|
@@ -135,7 +143,7 @@ export class GetEvaluationTaskResponseBody extends $dara.Model {
|
|
|
135
143
|
taskName?: string;
|
|
136
144
|
/**
|
|
137
145
|
* @remarks
|
|
138
|
-
* The last update time,
|
|
146
|
+
* The last update time, represented as a UNIX timestamp in seconds.
|
|
139
147
|
*
|
|
140
148
|
* @example
|
|
141
149
|
* 1782816600
|
|
@@ -151,6 +159,7 @@ export class GetEvaluationTaskResponseBody extends $dara.Model {
|
|
|
151
159
|
dataType: 'dataType',
|
|
152
160
|
description: 'description',
|
|
153
161
|
evaluators: 'evaluators',
|
|
162
|
+
qualityMetrics: 'qualityMetrics',
|
|
154
163
|
regionId: 'regionId',
|
|
155
164
|
requestId: 'requestId',
|
|
156
165
|
runStrategyConfig: 'runStrategyConfig',
|
|
@@ -173,6 +182,7 @@ export class GetEvaluationTaskResponseBody extends $dara.Model {
|
|
|
173
182
|
dataType: 'string',
|
|
174
183
|
description: 'string',
|
|
175
184
|
evaluators: { 'type': 'array', 'itemType': Evaluator },
|
|
185
|
+
qualityMetrics: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
176
186
|
regionId: 'string',
|
|
177
187
|
requestId: 'string',
|
|
178
188
|
runStrategyConfig: RunStrategies,
|
|
@@ -192,6 +202,9 @@ export class GetEvaluationTaskResponseBody extends $dara.Model {
|
|
|
192
202
|
if(Array.isArray(this.evaluators)) {
|
|
193
203
|
$dara.Model.validateArray(this.evaluators);
|
|
194
204
|
}
|
|
205
|
+
if(this.qualityMetrics) {
|
|
206
|
+
$dara.Model.validateMap(this.qualityMetrics);
|
|
207
|
+
}
|
|
195
208
|
if(this.runStrategyConfig && typeof (this.runStrategyConfig as any).validate === 'function') {
|
|
196
209
|
(this.runStrategyConfig as any).validate();
|
|
197
210
|
}
|
|
@@ -5,12 +5,21 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class GetOptimizeTaskResponseBody extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The scheduling checkpoint
|
|
8
|
+
* The scheduling checkpoint that stores states such as the general scheduling watermark.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* {
|
|
12
|
+
* "lastWindowEndTime": 1787133600000,
|
|
13
|
+
* "lastScheduleStatus": "Succeeded",
|
|
14
|
+
* "nextWindowStartTime": 1787133600000,
|
|
15
|
+
* "lastScheduleAttemptTime": 1787137386912,
|
|
16
|
+
* "lastScheduleSuccessTime": 1787137386912
|
|
17
|
+
* }
|
|
9
18
|
*/
|
|
10
19
|
checkpoint?: { [key: string]: any };
|
|
11
20
|
/**
|
|
12
21
|
* @remarks
|
|
13
|
-
* The type-specific configuration. Optional prompts for ExperienceMining or SkillOptimize support only inline Markdown. The
|
|
22
|
+
* The type-specific configuration. Optional prompts for ExperienceMining or SkillOptimize support only inline Markdown. The main text is stored in inputs.prompt.content, which must be non-empty UTF-8 and up to 16 KiB in size.
|
|
14
23
|
*
|
|
15
24
|
* @example
|
|
16
25
|
* {"ioVersion":2,"inputs":{"experienceLibrary":{"type":"dataset","dataset":"experiences"},"trajectory":{"type":"sls","project":"my-project","logstore":"agent-trajectory","format":"atif"},"prompt":{"type":"inline","format":"markdown","content":"# Guidance\\\\nExtract evidence-backed tool contracts."}},"outputs":{"changePlan":{"type":"dataset","dataset":"experience-plans"}},"operators":["tool_contract"],"application":{"mode":"manual"}}
|
|
@@ -34,7 +43,7 @@ export class GetOptimizeTaskResponseBody extends $dara.Model {
|
|
|
34
43
|
nextTriggerTime?: string;
|
|
35
44
|
/**
|
|
36
45
|
* @remarks
|
|
37
|
-
* The optimization task
|
|
46
|
+
* The name of the optimization task.
|
|
38
47
|
*
|
|
39
48
|
* @example
|
|
40
49
|
* efficiency-analysis
|
|
@@ -58,7 +67,7 @@ export class GetOptimizeTaskResponseBody extends $dara.Model {
|
|
|
58
67
|
requestId?: string;
|
|
59
68
|
/**
|
|
60
69
|
* @remarks
|
|
61
|
-
* The task status. Valid values: Enabled
|
|
70
|
+
* The task status. Valid values: Enabled and Disabled.
|
|
62
71
|
*
|
|
63
72
|
* @example
|
|
64
73
|
* Enabled
|
|
@@ -66,7 +75,7 @@ export class GetOptimizeTaskResponseBody extends $dara.Model {
|
|
|
66
75
|
status?: string;
|
|
67
76
|
/**
|
|
68
77
|
* @remarks
|
|
69
|
-
* The optimization task
|
|
78
|
+
* The type of the optimization task.
|
|
70
79
|
*
|
|
71
80
|
* @example
|
|
72
81
|
* EfficiencyAnalysis
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class GetPipelineRunResponseBody extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The name of the AgentSpace
|
|
8
|
+
* The name of the AgentSpace.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* my-agent-space
|
|
@@ -13,7 +13,7 @@ export class GetPipelineRunResponseBody extends $dara.Model {
|
|
|
13
13
|
agentSpaceName?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The current
|
|
16
|
+
* The current number of retries.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* 0
|
|
@@ -22,16 +22,22 @@ export class GetPipelineRunResponseBody extends $dara.Model {
|
|
|
22
22
|
/**
|
|
23
23
|
* @remarks
|
|
24
24
|
* The semantic error code.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ExpressionEvaluationError
|
|
25
28
|
*/
|
|
26
29
|
errorCode?: string;
|
|
27
30
|
/**
|
|
28
31
|
* @remarks
|
|
29
32
|
* The error message.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* Failed to evaluate filter expression in node \\"node-1\\": column \\"score\\" does not exist.
|
|
30
36
|
*/
|
|
31
37
|
errorMessage?: string;
|
|
32
38
|
/**
|
|
33
39
|
* @remarks
|
|
34
|
-
* The finish time
|
|
40
|
+
* The finish time in ISO 8601 UTC format.
|
|
35
41
|
*
|
|
36
42
|
* Use the UTC time format: yyyy-MM-ddTHH:mm:ss.SSSZ
|
|
37
43
|
*
|
|
@@ -41,7 +47,7 @@ export class GetPipelineRunResponseBody extends $dara.Model {
|
|
|
41
47
|
finishTime?: string;
|
|
42
48
|
/**
|
|
43
49
|
* @remarks
|
|
44
|
-
* The start of the data window, in UNIX seconds.
|
|
50
|
+
* The start time of the data window, in UNIX seconds.
|
|
45
51
|
*
|
|
46
52
|
* @example
|
|
47
53
|
* 1735660800
|
|
@@ -57,7 +63,7 @@ export class GetPipelineRunResponseBody extends $dara.Model {
|
|
|
57
63
|
maxAttempts?: number;
|
|
58
64
|
/**
|
|
59
65
|
* @remarks
|
|
60
|
-
* The next retry time
|
|
66
|
+
* The next retry time in ISO 8601 UTC format.
|
|
61
67
|
*
|
|
62
68
|
* Use the UTC time format: yyyy-MM-ddTHH:mm:ss.SSSZ
|
|
63
69
|
*
|
|
@@ -75,7 +81,7 @@ export class GetPipelineRunResponseBody extends $dara.Model {
|
|
|
75
81
|
pipelineName?: string;
|
|
76
82
|
/**
|
|
77
83
|
* @remarks
|
|
78
|
-
* The request
|
|
84
|
+
* The ID of the request, which is used to locate the request during troubleshooting.
|
|
79
85
|
*
|
|
80
86
|
* @example
|
|
81
87
|
* 9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M
|
|
@@ -83,7 +89,10 @@ export class GetPipelineRunResponseBody extends $dara.Model {
|
|
|
83
89
|
requestId?: string;
|
|
84
90
|
/**
|
|
85
91
|
* @remarks
|
|
86
|
-
* The inline run results
|
|
92
|
+
* The inline run results, which are returned only when output.inline is set to true during triggering.
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* {"outputRows": 100, "summary": "processed 100 rows, 92 matched", "passed": true}
|
|
87
96
|
*/
|
|
88
97
|
results?: { [key: string]: any };
|
|
89
98
|
/**
|
|
@@ -96,7 +105,7 @@ export class GetPipelineRunResponseBody extends $dara.Model {
|
|
|
96
105
|
runId?: string;
|
|
97
106
|
/**
|
|
98
107
|
* @remarks
|
|
99
|
-
* The execution start time
|
|
108
|
+
* The execution start time in ISO 8601 UTC format.
|
|
100
109
|
*
|
|
101
110
|
* Use the UTC time format: yyyy-MM-ddTHH:mm:ss.SSSZ
|
|
102
111
|
*
|
|
@@ -106,17 +115,15 @@ export class GetPipelineRunResponseBody extends $dara.Model {
|
|
|
106
115
|
startTime?: string;
|
|
107
116
|
/**
|
|
108
117
|
* @remarks
|
|
109
|
-
* The run statistics, including processedRows (number of processed rows), processedBytes (number of processed bytes), outputRows (number of output rows), outputBytes (number of output bytes), elapsedMs (elapsed time in milliseconds), cpuSec (CPU seconds), cpuCores (number of CPU cores), and tokenCount (number of tokens
|
|
118
|
+
* The run statistics, including processedRows (number of processed rows), processedBytes (number of processed bytes), outputRows (number of output rows), outputBytes (number of output bytes), elapsedMs (elapsed time in milliseconds), cpuSec (CPU seconds), cpuCores (number of CPU cores), and tokenCount (number of consumed tokens).
|
|
119
|
+
*
|
|
120
|
+
* @example
|
|
121
|
+
* {"processedRows":1000,"elapsedMs":2500}
|
|
110
122
|
*/
|
|
111
123
|
stats?: { [key: string]: any };
|
|
112
124
|
/**
|
|
113
125
|
* @remarks
|
|
114
|
-
* The run
|
|
115
|
-
* - Pending
|
|
116
|
-
* - Running
|
|
117
|
-
* - Succeeded
|
|
118
|
-
* - Failed
|
|
119
|
-
* - Cancelled
|
|
126
|
+
* The status of the run. Valid values: Pending, Running, Succeeded, Failed, and Cancelled.
|
|
120
127
|
*
|
|
121
128
|
* @example
|
|
122
129
|
* Succeeded
|
|
@@ -124,7 +131,7 @@ export class GetPipelineRunResponseBody extends $dara.Model {
|
|
|
124
131
|
status?: string;
|
|
125
132
|
/**
|
|
126
133
|
* @remarks
|
|
127
|
-
* The end of the data window, in UNIX seconds.
|
|
134
|
+
* The end time of the data window, in UNIX seconds.
|
|
128
135
|
*
|
|
129
136
|
* @example
|
|
130
137
|
* 1735747200
|
|
@@ -132,7 +139,7 @@ export class GetPipelineRunResponseBody extends $dara.Model {
|
|
|
132
139
|
toTime?: number;
|
|
133
140
|
/**
|
|
134
141
|
* @remarks
|
|
135
|
-
* The trigger time
|
|
142
|
+
* The trigger time in ISO 8601 UTC format.
|
|
136
143
|
*
|
|
137
144
|
* Use the UTC time format: yyyy-MM-ddTHH:mm:ss.SSSZ
|
|
138
145
|
*
|
|
@@ -142,10 +149,7 @@ export class GetPipelineRunResponseBody extends $dara.Model {
|
|
|
142
149
|
triggerTime?: string;
|
|
143
150
|
/**
|
|
144
151
|
* @remarks
|
|
145
|
-
* The trigger type. Valid values:
|
|
146
|
-
* - Scheduled
|
|
147
|
-
* - Manual
|
|
148
|
-
* - RunOnce
|
|
152
|
+
* The trigger type. Valid values: Scheduled, Manual, and RunOnce.
|
|
149
153
|
*
|
|
150
154
|
* @example
|
|
151
155
|
* Scheduled
|
|
@@ -77,10 +77,10 @@ export class ListAgentSpacesRequest extends $dara.Model {
|
|
|
77
77
|
regionId?: string;
|
|
78
78
|
/**
|
|
79
79
|
* @remarks
|
|
80
|
-
* Filters only active AgentSpaces in the current region. Multiple conditions
|
|
80
|
+
* Filters only active AgentSpaces in the current region. Multiple conditions are combined with AND, and keys must be unique. Omitting the value matches the existence of the key, and an empty character string is an exact match for an empty value. An empty array is equivalent to not using label filtering and retains the original cross-region resources.
|
|
81
81
|
*
|
|
82
82
|
* @example
|
|
83
|
-
* [{
|
|
83
|
+
* [{"key":"env","value":"test"}]
|
|
84
84
|
*/
|
|
85
85
|
tag?: ListAgentSpacesRequestTag[];
|
|
86
86
|
static names(): { [key: string]: string } {
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ListAgentSpacesResponseBodyAgentSpacesMseNamespace extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The method
|
|
8
|
+
* The attach method for the MSE namespace. AutoCreated indicates automatic creation by AgentLoop. UserSelected indicates that an existing namespace is selected and attached when the AgentSpace is created.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* AutoCreated
|
|
@@ -150,10 +150,10 @@ export class ListAgentSpacesResponseBodyAgentSpaces extends $dara.Model {
|
|
|
150
150
|
slsProject?: string;
|
|
151
151
|
/**
|
|
152
152
|
* @remarks
|
|
153
|
-
* Returns only
|
|
153
|
+
* Returns only AgentSpace tags that are active in the current region and match the local instance. An empty array is returned when it is confirmed that no tags exist. This field is omitted for entries in other regions, inactive entries, or entries that do not match the local instance. Omission of this field does not indicate the absence of tags.
|
|
154
154
|
*
|
|
155
155
|
* @example
|
|
156
|
-
* [{
|
|
156
|
+
* [{"key":"env","value":"test"}]
|
|
157
157
|
*/
|
|
158
158
|
tags?: ListAgentSpacesResponseBodyAgentSpacesTags[];
|
|
159
159
|
/**
|
|
@@ -212,7 +212,7 @@ export class ListAgentSpacesResponseBodyAgentSpaces extends $dara.Model {
|
|
|
212
212
|
export class ListAgentSpacesResponseBody extends $dara.Model {
|
|
213
213
|
/**
|
|
214
214
|
* @remarks
|
|
215
|
-
* The information
|
|
215
|
+
* The AgentSpaces information.
|
|
216
216
|
*/
|
|
217
217
|
agentSpaces?: ListAgentSpacesResponseBodyAgentSpaces[];
|
|
218
218
|
/**
|
|
@@ -225,7 +225,7 @@ export class ListAgentSpacesResponseBody extends $dara.Model {
|
|
|
225
225
|
maxResults?: number;
|
|
226
226
|
/**
|
|
227
227
|
* @remarks
|
|
228
|
-
* The pagination token. This parameter is empty if
|
|
228
|
+
* The pagination token. This parameter is empty if no next page exists.
|
|
229
229
|
*
|
|
230
230
|
* @example
|
|
231
231
|
* b5754ef15c784abc8696d82790d2985c
|
|
@@ -37,10 +37,10 @@ export class ListAgentSpacesShrinkRequest extends $dara.Model {
|
|
|
37
37
|
regionId?: string;
|
|
38
38
|
/**
|
|
39
39
|
* @remarks
|
|
40
|
-
* Filters only active AgentSpaces in the current region. Multiple conditions
|
|
40
|
+
* Filters only active AgentSpaces in the current region. Multiple conditions are combined with AND, and keys must be unique. Omitting the value matches the existence of the key, and an empty character string is an exact match for an empty value. An empty array is equivalent to not using label filtering and retains the original cross-region resources.
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
|
-
* [{
|
|
43
|
+
* [{"key":"env","value":"test"}]
|
|
44
44
|
*/
|
|
45
45
|
tagShrink?: string;
|
|
46
46
|
static names(): { [key: string]: string } {
|
|
@@ -13,7 +13,7 @@ export class ListDatasetVersionsRequest extends $dara.Model {
|
|
|
13
13
|
maxResults?: number;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The pagination token for the next page. Do not specify this parameter in the first request. To query subsequent pages, pass the nextToken value from the previous response as is, and keep the agent
|
|
16
|
+
* The pagination token for the next page. Do not specify this parameter in the first request. To query subsequent pages, pass the nextToken value from the previous response as is, and keep the agent space and dataset name unchanged. The example is for demonstration purposes only. Use the actual token returned by the API operation.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* umaQfI7x758Ns4TgWrj8yA3fYlnk7dJgsfhMrSViRY8=
|
|
@@ -15,7 +15,7 @@ export class ListEvaluatorsRequest extends $dara.Model {
|
|
|
15
15
|
agentSpace?: string;
|
|
16
16
|
/**
|
|
17
17
|
* @remarks
|
|
18
|
-
* The number of entries per page. Default value: 20. Maximum value: 100.
|
|
18
|
+
* The number of entries returned per page. Default value: 20. Maximum value: 100.
|
|
19
19
|
*
|
|
20
20
|
* @example
|
|
21
21
|
* 20
|
|
@@ -23,7 +23,7 @@ export class ListEvaluatorsRequest extends $dara.Model {
|
|
|
23
23
|
maxResults?: number;
|
|
24
24
|
/**
|
|
25
25
|
* @remarks
|
|
26
|
-
* The fuzzy
|
|
26
|
+
* The fuzzy search condition for the evaluator name.
|
|
27
27
|
*
|
|
28
28
|
* @example
|
|
29
29
|
* trace_task_completion
|