@alicloud/agentloop20260520 2.6.0 → 2.7.0
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 +44 -2
- package/dist/client.js +149 -2
- package/dist/client.js.map +1 -1
- package/dist/models/CreateContextStoreRequest.d.ts +1 -1
- package/dist/models/CreateEvaluationTaskRequest.d.ts +1 -1
- package/dist/models/CreateEvaluatorRequest.d.ts +73 -0
- package/dist/models/CreateEvaluatorRequest.js +59 -1
- package/dist/models/CreateEvaluatorRequest.js.map +1 -1
- package/dist/models/CreateEvaluatorSkillRequest.d.ts +5 -0
- package/dist/models/CreateEvaluatorSkillRequest.js +2 -0
- package/dist/models/CreateEvaluatorSkillRequest.js.map +1 -1
- package/dist/models/CreateExperimentPlanRequest.d.ts +1 -1
- package/dist/models/CreateMultiModalTaskRequest.d.ts +77 -0
- package/dist/models/CreateMultiModalTaskRequest.js +73 -0
- package/dist/models/CreateMultiModalTaskRequest.js.map +1 -0
- package/dist/models/CreateMultiModalTaskResponse.d.ts +19 -0
- package/dist/models/CreateMultiModalTaskResponse.js +69 -0
- package/dist/models/CreateMultiModalTaskResponse.js.map +1 -0
- package/dist/models/CreateMultiModalTaskResponseBody.d.ts +45 -0
- package/dist/models/CreateMultiModalTaskResponseBody.js +64 -0
- package/dist/models/CreateMultiModalTaskResponseBody.js.map +1 -0
- package/dist/models/CreateOptimizeTaskRequest.d.ts +1 -1
- package/dist/models/CreatePipelineRequest.d.ts +3 -3
- package/dist/models/DataFilter.d.ts +1 -1
- package/dist/models/DeleteEvaluatorSkillRequest.d.ts +5 -0
- package/dist/models/DeleteEvaluatorSkillRequest.js +2 -0
- package/dist/models/DeleteEvaluatorSkillRequest.js.map +1 -1
- package/dist/models/Evaluator.d.ts +1 -1
- package/dist/models/GetContextStoreResponseBody.d.ts +1 -1
- package/dist/models/GetEvaluationTaskResponseBody.d.ts +1 -1
- package/dist/models/GetEvaluatorResponseBody.d.ts +67 -0
- package/dist/models/GetEvaluatorResponseBody.js +43 -1
- package/dist/models/GetEvaluatorResponseBody.js.map +1 -1
- package/dist/models/GetEvaluatorSkillRequest.d.ts +5 -0
- package/dist/models/GetEvaluatorSkillRequest.js +2 -0
- package/dist/models/GetEvaluatorSkillRequest.js.map +1 -1
- package/dist/models/GetExperimentPlanResponseBody.d.ts +1 -1
- package/dist/models/GetOptimizeTaskResponseBody.d.ts +1 -1
- package/dist/models/GetPipelineResponseBody.d.ts +3 -3
- package/dist/models/GetPipelineRunResponseBody.d.ts +1 -1
- package/dist/models/ListEvaluatorSkillsRequest.d.ts +5 -0
- package/dist/models/ListEvaluatorSkillsRequest.js +2 -0
- package/dist/models/ListEvaluatorSkillsRequest.js.map +1 -1
- package/dist/models/ListEvaluatorsResponseBody.d.ts +10 -0
- package/dist/models/ListEvaluatorsResponseBody.js +4 -0
- package/dist/models/ListEvaluatorsResponseBody.js.map +1 -1
- package/dist/models/ListExperimentPlansResponseBody.d.ts +1 -1
- package/dist/models/ListOptimizeTasksResponseBody.d.ts +1 -1
- package/dist/models/ListPipelineRunsResponseBody.d.ts +1 -1
- package/dist/models/ListPipelinesResponseBody.d.ts +3 -3
- package/dist/models/ListTagResourcesRequest.d.ts +3 -3
- package/dist/models/ListTagResourcesResponseBody.d.ts +2 -2
- package/dist/models/ListTagResourcesShrinkRequest.d.ts +2 -2
- package/dist/models/ModelParameters.d.ts +2 -2
- package/dist/models/PreviewPipelineRequest.d.ts +2 -2
- package/dist/models/PreviewPipelineResponseBody.d.ts +1 -1
- package/dist/models/SearchContextResponseBody.d.ts +1 -1
- package/dist/models/TagResourcesRequest.d.ts +6 -6
- package/dist/models/UntagResourcesRequest.d.ts +3 -3
- package/dist/models/UntagResourcesShrinkRequest.d.ts +3 -3
- package/dist/models/UpdateContextStoreRequest.d.ts +1 -1
- package/dist/models/UpdateEvaluationTaskRequest.d.ts +1 -1
- package/dist/models/UpdateEvaluatorRequest.d.ts +78 -0
- package/dist/models/UpdateEvaluatorRequest.js +61 -1
- package/dist/models/UpdateEvaluatorRequest.js.map +1 -1
- package/dist/models/UpdateEvaluatorSkillRequest.d.ts +5 -0
- package/dist/models/UpdateEvaluatorSkillRequest.js +2 -0
- package/dist/models/UpdateEvaluatorSkillRequest.js.map +1 -1
- package/dist/models/UpdateEvaluatorVersionStatusRequest.d.ts +49 -0
- package/dist/models/UpdateEvaluatorVersionStatusRequest.js +64 -0
- package/dist/models/UpdateEvaluatorVersionStatusRequest.js.map +1 -0
- package/dist/models/UpdateEvaluatorVersionStatusResponse.d.ts +19 -0
- package/dist/models/UpdateEvaluatorVersionStatusResponse.js +69 -0
- package/dist/models/UpdateEvaluatorVersionStatusResponse.js.map +1 -0
- package/dist/models/UpdateEvaluatorVersionStatusResponseBody.d.ts +21 -0
- package/dist/models/UpdateEvaluatorVersionStatusResponseBody.js +58 -0
- package/dist/models/UpdateEvaluatorVersionStatusResponseBody.js.map +1 -0
- package/dist/models/UpdateOptimizeTaskRequest.d.ts +1 -1
- package/dist/models/UpdatePipelineRequest.d.ts +3 -3
- package/dist/models/model.d.ts +11 -0
- package/dist/models/model.js +40 -18
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +174 -2
- package/src/models/CreateContextStoreRequest.ts +1 -1
- package/src/models/CreateEvaluationTaskRequest.ts +1 -1
- package/src/models/CreateEvaluatorRequest.ts +113 -0
- package/src/models/CreateEvaluatorSkillRequest.ts +7 -0
- package/src/models/CreateExperimentPlanRequest.ts +1 -1
- package/src/models/CreateMultiModalTaskRequest.ts +103 -0
- package/src/models/CreateMultiModalTaskResponse.ts +40 -0
- package/src/models/CreateMultiModalTaskResponseBody.ts +64 -0
- package/src/models/CreateOptimizeTaskRequest.ts +1 -1
- package/src/models/CreatePipelineRequest.ts +3 -3
- package/src/models/DataFilter.ts +1 -1
- package/src/models/DeleteEvaluatorSkillRequest.ts +7 -0
- package/src/models/Evaluator.ts +1 -1
- package/src/models/GetContextStoreResponseBody.ts +1 -1
- package/src/models/GetEvaluationTaskResponseBody.ts +1 -1
- package/src/models/GetEvaluatorResponseBody.ts +100 -0
- package/src/models/GetEvaluatorSkillRequest.ts +7 -0
- package/src/models/GetExperimentPlanResponseBody.ts +1 -1
- package/src/models/GetOptimizeTaskResponseBody.ts +1 -1
- package/src/models/GetPipelineResponseBody.ts +3 -3
- package/src/models/GetPipelineRunResponseBody.ts +1 -1
- package/src/models/ListEvaluatorSkillsRequest.ts +7 -0
- package/src/models/ListEvaluatorsResponseBody.ts +14 -0
- package/src/models/ListExperimentPlansResponseBody.ts +1 -1
- package/src/models/ListOptimizeTasksResponseBody.ts +1 -1
- package/src/models/ListPipelineRunsResponseBody.ts +1 -1
- package/src/models/ListPipelinesResponseBody.ts +3 -3
- package/src/models/ListTagResourcesRequest.ts +3 -3
- package/src/models/ListTagResourcesResponseBody.ts +2 -2
- package/src/models/ListTagResourcesShrinkRequest.ts +2 -2
- package/src/models/ModelParameters.ts +2 -2
- package/src/models/PreviewPipelineRequest.ts +2 -2
- package/src/models/PreviewPipelineResponseBody.ts +1 -1
- package/src/models/SearchContextResponseBody.ts +1 -1
- package/src/models/TagResourcesRequest.ts +6 -6
- package/src/models/UntagResourcesRequest.ts +3 -3
- package/src/models/UntagResourcesShrinkRequest.ts +3 -3
- package/src/models/UpdateContextStoreRequest.ts +1 -1
- package/src/models/UpdateEvaluationTaskRequest.ts +1 -1
- package/src/models/UpdateEvaluatorRequest.ts +120 -0
- package/src/models/UpdateEvaluatorSkillRequest.ts +7 -0
- package/src/models/UpdateEvaluatorVersionStatusRequest.ts +68 -0
- package/src/models/UpdateEvaluatorVersionStatusResponse.ts +40 -0
- package/src/models/UpdateEvaluatorVersionStatusResponseBody.ts +34 -0
- package/src/models/UpdateOptimizeTaskRequest.ts +1 -1
- package/src/models/UpdatePipelineRequest.ts +3 -3
- package/src/models/model.ts +11 -0
|
@@ -506,7 +506,7 @@ export class CreateContextStoreRequestConfigSourceDatasetFilter extends $dara.Mo
|
|
|
506
506
|
* The subset of the pipeline where clause, which is pushed down to SQL.
|
|
507
507
|
*
|
|
508
508
|
* @example
|
|
509
|
-
* appId =
|
|
509
|
+
* appId = \"crm-service\"
|
|
510
510
|
*/
|
|
511
511
|
where?: string;
|
|
512
512
|
static names(): { [key: string]: string } {
|
|
@@ -26,7 +26,7 @@ export class CreateEvaluationTaskRequest extends $dara.Model {
|
|
|
26
26
|
* The evaluation data filter conditions. Supports a JSON object or JSON string. Common fields include `query`, `provided`, `maxRecords`, and `samplingRate`.
|
|
27
27
|
*
|
|
28
28
|
* @example
|
|
29
|
-
* {"query":"serviceName
|
|
29
|
+
* {"query":"serviceName=\"checkout-service\"","maxRecords":10,"samplingRate":100}
|
|
30
30
|
*/
|
|
31
31
|
dataFilter?: string;
|
|
32
32
|
/**
|
|
@@ -2,6 +2,102 @@
|
|
|
2
2
|
import * as $dara from '@darabonba/typescript';
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
export class CreateEvaluatorRequestSkillsFiles extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* ---
|
|
9
|
+
* name: fact-check
|
|
10
|
+
* description: 核对回答中的事实依据
|
|
11
|
+
* ---
|
|
12
|
+
* 逐项核对回答中的事实,并列出依据。
|
|
13
|
+
*/
|
|
14
|
+
content?: string;
|
|
15
|
+
/**
|
|
16
|
+
* @example
|
|
17
|
+
* SKILL.md
|
|
18
|
+
*/
|
|
19
|
+
name?: string;
|
|
20
|
+
static names(): { [key: string]: string } {
|
|
21
|
+
return {
|
|
22
|
+
content: 'content',
|
|
23
|
+
name: 'name',
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
static types(): { [key: string]: any } {
|
|
28
|
+
return {
|
|
29
|
+
content: 'string',
|
|
30
|
+
name: 'string',
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
validate() {
|
|
35
|
+
super.validate();
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
constructor(map?: { [key: string]: any }) {
|
|
39
|
+
super(map);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export class CreateEvaluatorRequestSkills extends $dara.Model {
|
|
44
|
+
/**
|
|
45
|
+
* @example
|
|
46
|
+
* 核对回答中的事实依据
|
|
47
|
+
*/
|
|
48
|
+
description?: string;
|
|
49
|
+
/**
|
|
50
|
+
* @example
|
|
51
|
+
* 事实核查
|
|
52
|
+
*/
|
|
53
|
+
displayName?: string;
|
|
54
|
+
/**
|
|
55
|
+
* @example
|
|
56
|
+
* true
|
|
57
|
+
*/
|
|
58
|
+
enable?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* @example
|
|
61
|
+
* [{"name":"SKILL.md","content":"---\nname: fact-check\ndescription: 核对回答中的事实依据\n---\n逐项核对回答中的事实,并列出依据。"}]
|
|
62
|
+
*/
|
|
63
|
+
files?: CreateEvaluatorRequestSkillsFiles[];
|
|
64
|
+
/**
|
|
65
|
+
* @example
|
|
66
|
+
* fact-check
|
|
67
|
+
*/
|
|
68
|
+
skillName?: string;
|
|
69
|
+
static names(): { [key: string]: string } {
|
|
70
|
+
return {
|
|
71
|
+
description: 'description',
|
|
72
|
+
displayName: 'displayName',
|
|
73
|
+
enable: 'enable',
|
|
74
|
+
files: 'files',
|
|
75
|
+
skillName: 'skillName',
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
static types(): { [key: string]: any } {
|
|
80
|
+
return {
|
|
81
|
+
description: 'string',
|
|
82
|
+
displayName: 'string',
|
|
83
|
+
enable: 'boolean',
|
|
84
|
+
files: { 'type': 'array', 'itemType': CreateEvaluatorRequestSkillsFiles },
|
|
85
|
+
skillName: 'string',
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
validate() {
|
|
90
|
+
if(Array.isArray(this.files)) {
|
|
91
|
+
$dara.Model.validateArray(this.files);
|
|
92
|
+
}
|
|
93
|
+
super.validate();
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
constructor(map?: { [key: string]: any }) {
|
|
97
|
+
super(map);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
5
101
|
export class CreateEvaluatorRequest extends $dara.Model {
|
|
6
102
|
/**
|
|
7
103
|
* @remarks
|
|
@@ -63,6 +159,16 @@ export class CreateEvaluatorRequest extends $dara.Model {
|
|
|
63
159
|
* {"agentEvaluatorMode":"raw_prompt"}
|
|
64
160
|
*/
|
|
65
161
|
properties?: { [key: string]: any };
|
|
162
|
+
/**
|
|
163
|
+
* @example
|
|
164
|
+
* [{"skillName":"fact-check","files":[{"name":"SKILL.md","content":"---\nname: fact-check\ndescription: 核对回答中的事实依据\n---\n逐项核对回答中的事实,并列出依据。"}]}]
|
|
165
|
+
*/
|
|
166
|
+
skills?: CreateEvaluatorRequestSkills[];
|
|
167
|
+
/**
|
|
168
|
+
* @example
|
|
169
|
+
* DRAFT
|
|
170
|
+
*/
|
|
171
|
+
status?: string;
|
|
66
172
|
/**
|
|
67
173
|
* @remarks
|
|
68
174
|
* The evaluator type. Valid values:
|
|
@@ -111,6 +217,8 @@ export class CreateEvaluatorRequest extends $dara.Model {
|
|
|
111
217
|
metricName: 'metricName',
|
|
112
218
|
name: 'name',
|
|
113
219
|
properties: 'properties',
|
|
220
|
+
skills: 'skills',
|
|
221
|
+
status: 'status',
|
|
114
222
|
type: 'type',
|
|
115
223
|
version: 'version',
|
|
116
224
|
versionDescription: 'versionDescription',
|
|
@@ -127,6 +235,8 @@ export class CreateEvaluatorRequest extends $dara.Model {
|
|
|
127
235
|
metricName: 'string',
|
|
128
236
|
name: 'string',
|
|
129
237
|
properties: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
238
|
+
skills: { 'type': 'array', 'itemType': CreateEvaluatorRequestSkills },
|
|
239
|
+
status: 'string',
|
|
130
240
|
type: 'string',
|
|
131
241
|
version: 'string',
|
|
132
242
|
versionDescription: 'string',
|
|
@@ -144,6 +254,9 @@ export class CreateEvaluatorRequest extends $dara.Model {
|
|
|
144
254
|
if(this.properties) {
|
|
145
255
|
$dara.Model.validateMap(this.properties);
|
|
146
256
|
}
|
|
257
|
+
if(Array.isArray(this.skills)) {
|
|
258
|
+
$dara.Model.validateArray(this.skills);
|
|
259
|
+
}
|
|
147
260
|
super.validate();
|
|
148
261
|
}
|
|
149
262
|
|
|
@@ -91,6 +91,11 @@ export class CreateEvaluatorSkillRequest extends $dara.Model {
|
|
|
91
91
|
* true
|
|
92
92
|
*/
|
|
93
93
|
enable?: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* @example
|
|
96
|
+
* v2
|
|
97
|
+
*/
|
|
98
|
+
evaluatorVersion?: string;
|
|
94
99
|
/**
|
|
95
100
|
* @remarks
|
|
96
101
|
* The list of skill files.
|
|
@@ -125,6 +130,7 @@ export class CreateEvaluatorSkillRequest extends $dara.Model {
|
|
|
125
130
|
description: 'description',
|
|
126
131
|
displayName: 'displayName',
|
|
127
132
|
enable: 'enable',
|
|
133
|
+
evaluatorVersion: 'evaluatorVersion',
|
|
128
134
|
files: 'files',
|
|
129
135
|
skillName: 'skillName',
|
|
130
136
|
clientToken: 'clientToken',
|
|
@@ -137,6 +143,7 @@ export class CreateEvaluatorSkillRequest extends $dara.Model {
|
|
|
137
143
|
description: 'string',
|
|
138
144
|
displayName: 'string',
|
|
139
145
|
enable: 'boolean',
|
|
146
|
+
evaluatorVersion: 'string',
|
|
140
147
|
files: { 'type': 'array', 'itemType': CreateEvaluatorSkillRequestFiles },
|
|
141
148
|
skillName: 'string',
|
|
142
149
|
clientToken: 'string',
|
|
@@ -80,7 +80,7 @@ export class CreateExperimentPlanRequest extends $dara.Model {
|
|
|
80
80
|
* The custom query SQL clause in partial dataset mode. This parameter can be used when `selectedItemIds` is empty.
|
|
81
81
|
*
|
|
82
82
|
* @example
|
|
83
|
-
* status
|
|
83
|
+
* status=\"OK\"
|
|
84
84
|
*/
|
|
85
85
|
querySql?: string;
|
|
86
86
|
/**
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CreateMultiModalTaskRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The AgentSpace name. It must be 3 to 63 characters in length and can contain only lowercase letters, digits, and hyphens. It must start and end with a letter or a digit.
|
|
9
|
+
*
|
|
10
|
+
* This parameter is required.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* example-space
|
|
14
|
+
*/
|
|
15
|
+
agentSpace?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @remarks
|
|
18
|
+
* The input parameters for the evaluator. The keys are defined by the evaluator specified by evaluatorRef. Example for national subsidy image inspection: {"imageUrl":"https://example.com/label.jpg"}.
|
|
19
|
+
*
|
|
20
|
+
* This parameter is required.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* {"imageUrl":"https://example-bucket.oss-cn-hangzhou.aliyuncs.com/label.jpg"}
|
|
24
|
+
*/
|
|
25
|
+
args?: { [key: string]: any };
|
|
26
|
+
/**
|
|
27
|
+
* @remarks
|
|
28
|
+
* The ARN of the role used to access OSS or SLS, such as acs:ram::<accountId>:role/<roleName>. It is used to derive the signature region.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* acs:ram::1234567890123456:role/media-reader
|
|
32
|
+
*/
|
|
33
|
+
arn?: string;
|
|
34
|
+
/**
|
|
35
|
+
* @remarks
|
|
36
|
+
* The name of the evaluator registered as a public API. If the evaluator is not registered, not exposed as a public API, or the current version is invalid, a 400 error is returned.
|
|
37
|
+
*
|
|
38
|
+
* This parameter is required.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* Builtin.subsidy_api
|
|
42
|
+
*/
|
|
43
|
+
evaluatorRef?: string;
|
|
44
|
+
/**
|
|
45
|
+
* @remarks
|
|
46
|
+
* The signature region when the media is stored in OSS or SLS, such as cn-hangzhou. This parameter is used only when the region cannot be determined from the URL itself.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* cn-hangzhou
|
|
50
|
+
*/
|
|
51
|
+
ossRegion?: string;
|
|
52
|
+
/**
|
|
53
|
+
* @remarks
|
|
54
|
+
* The evaluation prompt. If omitted, it is processed as an empty string. The maximum length is 2,000 characters, counted by Unicode code points.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* Verify whether the image is complete
|
|
58
|
+
*/
|
|
59
|
+
prompt?: string;
|
|
60
|
+
/**
|
|
61
|
+
* @remarks
|
|
62
|
+
* The task name, used to group multiple calls of the same business line in the console. If omitted or empty, agentloop-media-process is used. The maximum length is 128 characters. Control characters are not allowed.
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* agentloop-media-process
|
|
66
|
+
*/
|
|
67
|
+
taskName?: string;
|
|
68
|
+
static names(): { [key: string]: string } {
|
|
69
|
+
return {
|
|
70
|
+
agentSpace: 'agentSpace',
|
|
71
|
+
args: 'args',
|
|
72
|
+
arn: 'arn',
|
|
73
|
+
evaluatorRef: 'evaluatorRef',
|
|
74
|
+
ossRegion: 'ossRegion',
|
|
75
|
+
prompt: 'prompt',
|
|
76
|
+
taskName: 'taskName',
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
static types(): { [key: string]: any } {
|
|
81
|
+
return {
|
|
82
|
+
agentSpace: 'string',
|
|
83
|
+
args: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
84
|
+
arn: 'string',
|
|
85
|
+
evaluatorRef: 'string',
|
|
86
|
+
ossRegion: 'string',
|
|
87
|
+
prompt: 'string',
|
|
88
|
+
taskName: 'string',
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
validate() {
|
|
93
|
+
if(this.args) {
|
|
94
|
+
$dara.Model.validateMap(this.args);
|
|
95
|
+
}
|
|
96
|
+
super.validate();
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
constructor(map?: { [key: string]: any }) {
|
|
100
|
+
super(map);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { CreateMultiModalTaskResponseBody } from "./CreateMultiModalTaskResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class CreateMultiModalTaskResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: CreateMultiModalTaskResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: CreateMultiModalTaskResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CreateMultiModalTaskResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The evaluation message. It is the description returned by the backend upon success, or the customer-visible error message upon failure.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* The image is complete and the inspection is passed
|
|
12
|
+
*/
|
|
13
|
+
msg?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The score, ranging from 0 to 1. It is null when the evaluation fails. If the backend returns a percentage score greater than 1, it is converted to score/100 and rounded to a maximum of 4 decimal places.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* 1
|
|
20
|
+
*/
|
|
21
|
+
score?: number;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The task ID, in the format of eval-task-<32hex>. It can be used for tracing in the console or query API. It is null if the failure occurs before the task is created.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* eval-task-0123456789abcdef0123456789abcdef
|
|
28
|
+
*/
|
|
29
|
+
taskId?: string;
|
|
30
|
+
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* The task name used for this call. It is also returned upon failure if the request body has been parsed.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* agentloop-media-process
|
|
36
|
+
*/
|
|
37
|
+
taskName?: string;
|
|
38
|
+
static names(): { [key: string]: string } {
|
|
39
|
+
return {
|
|
40
|
+
msg: 'msg',
|
|
41
|
+
score: 'score',
|
|
42
|
+
taskId: 'taskId',
|
|
43
|
+
taskName: 'taskName',
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
static types(): { [key: string]: any } {
|
|
48
|
+
return {
|
|
49
|
+
msg: 'string',
|
|
50
|
+
score: 'number',
|
|
51
|
+
taskId: 'string',
|
|
52
|
+
taskName: 'string',
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
validate() {
|
|
57
|
+
super.validate();
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
constructor(map?: { [key: string]: any }) {
|
|
61
|
+
super(map);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
@@ -8,7 +8,7 @@ export class CreateOptimizeTaskRequest extends $dara.Model {
|
|
|
8
8
|
* The type-specific configurations. Optional prompts for ExperienceMining and SkillOptimize only support inline Markdown. The main text is saved to inputs.prompt.content (non-empty UTF-8, up to 16 KiB).
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
|
-
* {"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
|
|
11
|
+
* {"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"}}
|
|
12
12
|
*/
|
|
13
13
|
config?: { [key: string]: any };
|
|
14
14
|
/**
|
|
@@ -433,7 +433,7 @@ export class CreatePipelineRequestSinkConditionRoutes extends $dara.Model {
|
|
|
433
433
|
* The route expression in Search Processing Language (SPL). Only where, project, and extend are supported.
|
|
434
434
|
*
|
|
435
435
|
* @example
|
|
436
|
-
* * | where intent =
|
|
436
|
+
* * | where intent = \"refund\"
|
|
437
437
|
*/
|
|
438
438
|
expression?: string;
|
|
439
439
|
/**
|
|
@@ -631,7 +631,7 @@ export class CreatePipelineRequestSourceDataset extends $dara.Model {
|
|
|
631
631
|
* The data filter condition for the dataset.
|
|
632
632
|
*
|
|
633
633
|
* @example
|
|
634
|
-
* status =
|
|
634
|
+
* status = \"pending\"
|
|
635
635
|
*/
|
|
636
636
|
filter?: string;
|
|
637
637
|
static names(): { [key: string]: string } {
|
|
@@ -829,7 +829,7 @@ export class CreatePipelineRequestSource extends $dara.Model {
|
|
|
829
829
|
* The Dataset datasource config under the current AgentSpace.
|
|
830
830
|
*
|
|
831
831
|
* @example
|
|
832
|
-
* {"dataset":"my-dataset","filter":"status =
|
|
832
|
+
* {"dataset":"my-dataset","filter":"status = \"pending\""}
|
|
833
833
|
*/
|
|
834
834
|
dataset?: CreatePipelineRequestSourceDataset;
|
|
835
835
|
/**
|
package/src/models/DataFilter.ts
CHANGED
|
@@ -24,7 +24,7 @@ export class DataFilter extends $dara.Model {
|
|
|
24
24
|
* The data query filter conditions that take effect together with the evaluator-level filters.query. For trace scenarios, you can specify filter expressions such as service name, environment, and tags.
|
|
25
25
|
*
|
|
26
26
|
* @example
|
|
27
|
-
* serviceName
|
|
27
|
+
* serviceName=\"checkout-service\"
|
|
28
28
|
*/
|
|
29
29
|
query?: string;
|
|
30
30
|
/**
|
|
@@ -13,15 +13,22 @@ export class DeleteEvaluatorSkillRequest extends $dara.Model {
|
|
|
13
13
|
* prod-agentspace
|
|
14
14
|
*/
|
|
15
15
|
agentSpace?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* v2
|
|
19
|
+
*/
|
|
20
|
+
evaluatorVersion?: string;
|
|
16
21
|
static names(): { [key: string]: string } {
|
|
17
22
|
return {
|
|
18
23
|
agentSpace: 'agentSpace',
|
|
24
|
+
evaluatorVersion: 'evaluatorVersion',
|
|
19
25
|
};
|
|
20
26
|
}
|
|
21
27
|
|
|
22
28
|
static types(): { [key: string]: any } {
|
|
23
29
|
return {
|
|
24
30
|
agentSpace: 'string',
|
|
31
|
+
evaluatorVersion: 'string',
|
|
25
32
|
};
|
|
26
33
|
}
|
|
27
34
|
|
package/src/models/Evaluator.ts
CHANGED
|
@@ -25,7 +25,7 @@ export class Evaluator extends $dara.Model {
|
|
|
25
25
|
* The evaluator-level data filter conditions. These take effect together with the task-level dataFilter.query.
|
|
26
26
|
*
|
|
27
27
|
* @example
|
|
28
|
-
* {"query":"serviceName
|
|
28
|
+
* {"query":"serviceName=\"checkout-service\""}
|
|
29
29
|
*/
|
|
30
30
|
filters?: { [key: string]: any };
|
|
31
31
|
/**
|
|
@@ -698,7 +698,7 @@ export class GetContextStoreResponseBodyConfigSourceDatasetFilter extends $dara.
|
|
|
698
698
|
* The subset of the pipeline where clause, which is pushed down to SQL.
|
|
699
699
|
*
|
|
700
700
|
* @example
|
|
701
|
-
* appId =
|
|
701
|
+
* appId = \"crm-service\"
|
|
702
702
|
*/
|
|
703
703
|
where?: string;
|
|
704
704
|
static names(): { [key: string]: string } {
|
|
@@ -42,7 +42,7 @@ export class GetEvaluationTaskResponseBody extends $dara.Model {
|
|
|
42
42
|
* The filter conditions for evaluation data. The backend returns this value as a JSON string.
|
|
43
43
|
*
|
|
44
44
|
* @example
|
|
45
|
-
* {"query":"serviceName
|
|
45
|
+
* {"query":"serviceName=\"checkout-service\"","maxRecords":10,"samplingRate":100}
|
|
46
46
|
*/
|
|
47
47
|
dataFilter?: string;
|
|
48
48
|
/**
|
|
@@ -2,6 +2,61 @@
|
|
|
2
2
|
import * as $dara from '@darabonba/typescript';
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
export class GetEvaluatorResponseBodyEvaluatorSkills extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 1770386951147366810
|
|
9
|
+
*/
|
|
10
|
+
currentVersion?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* 核对回答中的事实依据
|
|
14
|
+
*/
|
|
15
|
+
description?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* 事实核查
|
|
19
|
+
*/
|
|
20
|
+
displayName?: string;
|
|
21
|
+
/**
|
|
22
|
+
* @example
|
|
23
|
+
* true
|
|
24
|
+
*/
|
|
25
|
+
enable?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* @example
|
|
28
|
+
* fact-check
|
|
29
|
+
*/
|
|
30
|
+
skillName?: string;
|
|
31
|
+
static names(): { [key: string]: string } {
|
|
32
|
+
return {
|
|
33
|
+
currentVersion: 'currentVersion',
|
|
34
|
+
description: 'description',
|
|
35
|
+
displayName: 'displayName',
|
|
36
|
+
enable: 'enable',
|
|
37
|
+
skillName: 'skillName',
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
static types(): { [key: string]: any } {
|
|
42
|
+
return {
|
|
43
|
+
currentVersion: 'string',
|
|
44
|
+
description: 'string',
|
|
45
|
+
displayName: 'string',
|
|
46
|
+
enable: 'boolean',
|
|
47
|
+
skillName: 'string',
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
validate() {
|
|
52
|
+
super.validate();
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
constructor(map?: { [key: string]: any }) {
|
|
56
|
+
super(map);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
5
60
|
export class GetEvaluatorResponseBodyEvaluatorVersions extends $dara.Model {
|
|
6
61
|
/**
|
|
7
62
|
* @remarks
|
|
@@ -11,6 +66,21 @@ export class GetEvaluatorResponseBodyEvaluatorVersions extends $dara.Model {
|
|
|
11
66
|
* 1782816000
|
|
12
67
|
*/
|
|
13
68
|
createdAt?: number;
|
|
69
|
+
/**
|
|
70
|
+
* @example
|
|
71
|
+
* true
|
|
72
|
+
*/
|
|
73
|
+
selectable?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* @example
|
|
76
|
+
* PUBLISHED
|
|
77
|
+
*/
|
|
78
|
+
status?: string;
|
|
79
|
+
/**
|
|
80
|
+
* @example
|
|
81
|
+
* 1795478400
|
|
82
|
+
*/
|
|
83
|
+
updatedAt?: number;
|
|
14
84
|
/**
|
|
15
85
|
* @remarks
|
|
16
86
|
* The version number.
|
|
@@ -30,6 +100,9 @@ export class GetEvaluatorResponseBodyEvaluatorVersions extends $dara.Model {
|
|
|
30
100
|
static names(): { [key: string]: string } {
|
|
31
101
|
return {
|
|
32
102
|
createdAt: 'createdAt',
|
|
103
|
+
selectable: 'selectable',
|
|
104
|
+
status: 'status',
|
|
105
|
+
updatedAt: 'updatedAt',
|
|
33
106
|
version: 'version',
|
|
34
107
|
versionDescription: 'versionDescription',
|
|
35
108
|
};
|
|
@@ -38,6 +111,9 @@ export class GetEvaluatorResponseBodyEvaluatorVersions extends $dara.Model {
|
|
|
38
111
|
static types(): { [key: string]: any } {
|
|
39
112
|
return {
|
|
40
113
|
createdAt: 'number',
|
|
114
|
+
selectable: 'boolean',
|
|
115
|
+
status: 'string',
|
|
116
|
+
updatedAt: 'number',
|
|
41
117
|
version: 'string',
|
|
42
118
|
versionDescription: 'string',
|
|
43
119
|
};
|
|
@@ -141,6 +217,21 @@ export class GetEvaluatorResponseBodyEvaluator extends $dara.Model {
|
|
|
141
217
|
* {"agentEvaluatorMode":"raw_prompt"}
|
|
142
218
|
*/
|
|
143
219
|
properties?: { [key: string]: any };
|
|
220
|
+
/**
|
|
221
|
+
* @example
|
|
222
|
+
* true
|
|
223
|
+
*/
|
|
224
|
+
selectable?: boolean;
|
|
225
|
+
/**
|
|
226
|
+
* @example
|
|
227
|
+
* [{"skillName":"fact-check","displayName":"事实核查","description":"核对回答中的事实依据","enable":true,"currentVersion":"1770386951147366810"}]
|
|
228
|
+
*/
|
|
229
|
+
skills?: GetEvaluatorResponseBodyEvaluatorSkills[];
|
|
230
|
+
/**
|
|
231
|
+
* @example
|
|
232
|
+
* PUBLISHED
|
|
233
|
+
*/
|
|
234
|
+
status?: string;
|
|
144
235
|
/**
|
|
145
236
|
* @remarks
|
|
146
237
|
* The evaluator type.
|
|
@@ -178,6 +269,9 @@ export class GetEvaluatorResponseBodyEvaluator extends $dara.Model {
|
|
|
178
269
|
metricName: 'metricName',
|
|
179
270
|
name: 'name',
|
|
180
271
|
properties: 'properties',
|
|
272
|
+
selectable: 'selectable',
|
|
273
|
+
skills: 'skills',
|
|
274
|
+
status: 'status',
|
|
181
275
|
type: 'type',
|
|
182
276
|
updatedAt: 'updatedAt',
|
|
183
277
|
versions: 'versions',
|
|
@@ -197,6 +291,9 @@ export class GetEvaluatorResponseBodyEvaluator extends $dara.Model {
|
|
|
197
291
|
metricName: 'string',
|
|
198
292
|
name: 'string',
|
|
199
293
|
properties: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
294
|
+
selectable: 'boolean',
|
|
295
|
+
skills: { 'type': 'array', 'itemType': GetEvaluatorResponseBodyEvaluatorSkills },
|
|
296
|
+
status: 'string',
|
|
200
297
|
type: 'string',
|
|
201
298
|
updatedAt: 'number',
|
|
202
299
|
versions: { 'type': 'array', 'itemType': GetEvaluatorResponseBodyEvaluatorVersions },
|
|
@@ -213,6 +310,9 @@ export class GetEvaluatorResponseBodyEvaluator extends $dara.Model {
|
|
|
213
310
|
if(this.properties) {
|
|
214
311
|
$dara.Model.validateMap(this.properties);
|
|
215
312
|
}
|
|
313
|
+
if(Array.isArray(this.skills)) {
|
|
314
|
+
$dara.Model.validateArray(this.skills);
|
|
315
|
+
}
|
|
216
316
|
if(Array.isArray(this.versions)) {
|
|
217
317
|
$dara.Model.validateArray(this.versions);
|
|
218
318
|
}
|