@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.
- package/dist/client.d.ts +26 -18
- package/dist/client.js +29 -29
- package/dist/client.js.map +1 -1
- 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/ExecuteQueryRequest.d.ts +100 -0
- package/dist/models/ExecuteQueryRequest.js +51 -1
- package/dist/models/ExecuteQueryRequest.js.map +1 -1
- package/dist/models/ExecuteQueryResponseBody.d.ts +13 -1
- package/dist/models/ExecuteQueryResponseBody.js.map +1 -1
- 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 +358 -4
- 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 +29 -0
- package/dist/models/model.js +89 -30
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +30 -29
- 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/ExecuteQueryRequest.ts +132 -0
- package/src/models/ExecuteQueryResponseBody.ts +13 -1
- package/src/models/GetEvaluationTaskResponseBody.ts +3 -3
- package/src/models/GetExperimentPlanResponseBody.ts +8 -4
- package/src/models/GetPipelineResponseBody.ts +488 -4
- 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 +29 -0
|
@@ -2,10 +2,123 @@
|
|
|
2
2
|
import * as $dara from '@darabonba/typescript';
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
export class ExecuteQueryRequestAnnotationFilterConditions extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The annotation key.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* answer_quality
|
|
12
|
+
*/
|
|
13
|
+
key?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The operator.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* eq
|
|
20
|
+
*/
|
|
21
|
+
operator?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The annotation value.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* GOOD
|
|
28
|
+
*/
|
|
29
|
+
value?: any;
|
|
30
|
+
static names(): { [key: string]: string } {
|
|
31
|
+
return {
|
|
32
|
+
key: 'key',
|
|
33
|
+
operator: 'operator',
|
|
34
|
+
value: 'value',
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
static types(): { [key: string]: any } {
|
|
39
|
+
return {
|
|
40
|
+
key: 'string',
|
|
41
|
+
operator: 'string',
|
|
42
|
+
value: 'any',
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
validate() {
|
|
47
|
+
super.validate();
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
constructor(map?: { [key: string]: any }) {
|
|
51
|
+
super(map);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export class ExecuteQueryRequestAnnotationFilter extends $dara.Model {
|
|
56
|
+
/**
|
|
57
|
+
* @remarks
|
|
58
|
+
* The annotation filter conditions.
|
|
59
|
+
*/
|
|
60
|
+
conditions?: ExecuteQueryRequestAnnotationFilterConditions[];
|
|
61
|
+
static names(): { [key: string]: string } {
|
|
62
|
+
return {
|
|
63
|
+
conditions: 'conditions',
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
static types(): { [key: string]: any } {
|
|
68
|
+
return {
|
|
69
|
+
conditions: { 'type': 'array', 'itemType': ExecuteQueryRequestAnnotationFilterConditions },
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
validate() {
|
|
74
|
+
if(Array.isArray(this.conditions)) {
|
|
75
|
+
$dara.Model.validateArray(this.conditions);
|
|
76
|
+
}
|
|
77
|
+
super.validate();
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
constructor(map?: { [key: string]: any }) {
|
|
81
|
+
super(map);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
5
85
|
export class ExecuteQueryRequest extends $dara.Model {
|
|
86
|
+
/**
|
|
87
|
+
* @remarks
|
|
88
|
+
* The annotation filter.
|
|
89
|
+
*/
|
|
90
|
+
annotationFilter?: ExecuteQueryRequestAnnotationFilter;
|
|
91
|
+
/**
|
|
92
|
+
* @remarks
|
|
93
|
+
* The start time of the query.
|
|
94
|
+
*
|
|
95
|
+
* @example
|
|
96
|
+
* 1760925728
|
|
97
|
+
*/
|
|
6
98
|
from?: number;
|
|
99
|
+
/**
|
|
100
|
+
* @remarks
|
|
101
|
+
* The page size.
|
|
102
|
+
*
|
|
103
|
+
* @example
|
|
104
|
+
* 100
|
|
105
|
+
*/
|
|
7
106
|
length?: number;
|
|
107
|
+
/**
|
|
108
|
+
* @remarks
|
|
109
|
+
* The maximum output length.
|
|
110
|
+
*
|
|
111
|
+
* @example
|
|
112
|
+
* 100
|
|
113
|
+
*/
|
|
8
114
|
maxOutputLength?: number;
|
|
115
|
+
/**
|
|
116
|
+
* @remarks
|
|
117
|
+
* The pagination offset.
|
|
118
|
+
*
|
|
119
|
+
* @example
|
|
120
|
+
* 0
|
|
121
|
+
*/
|
|
9
122
|
offset?: number;
|
|
10
123
|
/**
|
|
11
124
|
* @remarks
|
|
@@ -17,6 +130,13 @@ export class ExecuteQueryRequest extends $dara.Model {
|
|
|
17
130
|
* select count(*) from product_faq_dataset
|
|
18
131
|
*/
|
|
19
132
|
query?: string;
|
|
133
|
+
/**
|
|
134
|
+
* @remarks
|
|
135
|
+
* The end time of the query.
|
|
136
|
+
*
|
|
137
|
+
* @example
|
|
138
|
+
* 1760925788
|
|
139
|
+
*/
|
|
20
140
|
to?: number;
|
|
21
141
|
/**
|
|
22
142
|
* @remarks
|
|
@@ -28,9 +148,17 @@ export class ExecuteQueryRequest extends $dara.Model {
|
|
|
28
148
|
* SQL
|
|
29
149
|
*/
|
|
30
150
|
type?: string;
|
|
151
|
+
/**
|
|
152
|
+
* @remarks
|
|
153
|
+
* The dataset version.
|
|
154
|
+
*
|
|
155
|
+
* @example
|
|
156
|
+
* 1.0.0
|
|
157
|
+
*/
|
|
31
158
|
version?: string;
|
|
32
159
|
static names(): { [key: string]: string } {
|
|
33
160
|
return {
|
|
161
|
+
annotationFilter: 'annotationFilter',
|
|
34
162
|
from: 'from',
|
|
35
163
|
length: 'length',
|
|
36
164
|
maxOutputLength: 'maxOutputLength',
|
|
@@ -44,6 +172,7 @@ export class ExecuteQueryRequest extends $dara.Model {
|
|
|
44
172
|
|
|
45
173
|
static types(): { [key: string]: any } {
|
|
46
174
|
return {
|
|
175
|
+
annotationFilter: ExecuteQueryRequestAnnotationFilter,
|
|
47
176
|
from: 'number',
|
|
48
177
|
length: 'number',
|
|
49
178
|
maxOutputLength: 'number',
|
|
@@ -56,6 +185,9 @@ export class ExecuteQueryRequest extends $dara.Model {
|
|
|
56
185
|
}
|
|
57
186
|
|
|
58
187
|
validate() {
|
|
188
|
+
if(this.annotationFilter && typeof (this.annotationFilter as any).validate === 'function') {
|
|
189
|
+
(this.annotationFilter as any).validate();
|
|
190
|
+
}
|
|
59
191
|
super.validate();
|
|
60
192
|
}
|
|
61
193
|
|
|
@@ -3,7 +3,15 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class ExecuteQueryResponseBodyMetaTruncation extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* Indicates whether the result is truncated.
|
|
9
|
+
*/
|
|
6
10
|
truncated?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* The truncation details of result rows.
|
|
14
|
+
*/
|
|
7
15
|
truncatedColumnIndexes?: number[][];
|
|
8
16
|
static names(): { [key: string]: string } {
|
|
9
17
|
return {
|
|
@@ -64,6 +72,10 @@ export class ExecuteQueryResponseBodyMeta extends $dara.Model {
|
|
|
64
72
|
* Complete
|
|
65
73
|
*/
|
|
66
74
|
progress?: string;
|
|
75
|
+
/**
|
|
76
|
+
* @remarks
|
|
77
|
+
* The result truncation details.
|
|
78
|
+
*/
|
|
67
79
|
truncation?: ExecuteQueryResponseBodyMetaTruncation;
|
|
68
80
|
static names(): { [key: string]: string } {
|
|
69
81
|
return {
|
|
@@ -110,7 +122,7 @@ export class ExecuteQueryResponseBody extends $dara.Model {
|
|
|
110
122
|
columns?: string[];
|
|
111
123
|
/**
|
|
112
124
|
* @remarks
|
|
113
|
-
* The metadata of the
|
|
125
|
+
* The metadata of the response.
|
|
114
126
|
*/
|
|
115
127
|
meta?: ExecuteQueryResponseBodyMeta;
|
|
116
128
|
/**
|
|
@@ -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
|
|
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
|
|
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
|
-
*
|
|
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
|
|
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
|
|
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
|
|
119
|
+
* The update time, in millisecond-level UNIX timestamp.
|
|
116
120
|
*
|
|
117
121
|
* @example
|
|
118
122
|
* 1782816600000
|