@alicloud/agentloop20260520 2.6.1 → 2.7.1

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 (157) hide show
  1. package/dist/client.d.ts +54 -12
  2. package/dist/client.js +165 -12
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateContextStoreRequest.d.ts +1 -1
  5. package/dist/models/CreateEvaluationTaskRequest.d.ts +1 -1
  6. package/dist/models/CreateEvaluatorRequest.d.ts +109 -12
  7. package/dist/models/CreateEvaluatorRequest.js +59 -1
  8. package/dist/models/CreateEvaluatorRequest.js.map +1 -1
  9. package/dist/models/CreateEvaluatorResponseBody.d.ts +2 -2
  10. package/dist/models/CreateEvaluatorSkillRequest.d.ts +15 -7
  11. package/dist/models/CreateEvaluatorSkillRequest.js +2 -0
  12. package/dist/models/CreateEvaluatorSkillRequest.js.map +1 -1
  13. package/dist/models/CreateExperimentPlanRequest.d.ts +1 -1
  14. package/dist/models/CreateMultiModalTaskRequest.d.ts +77 -0
  15. package/dist/models/CreateMultiModalTaskRequest.js +73 -0
  16. package/dist/models/CreateMultiModalTaskRequest.js.map +1 -0
  17. package/dist/models/CreateMultiModalTaskResponse.d.ts +19 -0
  18. package/dist/models/CreateMultiModalTaskResponse.js +69 -0
  19. package/dist/models/CreateMultiModalTaskResponse.js.map +1 -0
  20. package/dist/models/CreateMultiModalTaskResponseBody.d.ts +45 -0
  21. package/dist/models/CreateMultiModalTaskResponseBody.js +64 -0
  22. package/dist/models/CreateMultiModalTaskResponseBody.js.map +1 -0
  23. package/dist/models/CreateOptimizeTaskRequest.d.ts +1 -1
  24. package/dist/models/CreatePipelineRequest.d.ts +44 -36
  25. package/dist/models/CreatePipelineRequest.js +2 -0
  26. package/dist/models/CreatePipelineRequest.js.map +1 -1
  27. package/dist/models/CreatePipelineResponseBody.d.ts +1 -1
  28. package/dist/models/DataFilter.d.ts +1 -1
  29. package/dist/models/DeleteEvaluatorSkillRequest.d.ts +9 -1
  30. package/dist/models/DeleteEvaluatorSkillRequest.js +2 -0
  31. package/dist/models/DeleteEvaluatorSkillRequest.js.map +1 -1
  32. package/dist/models/Evaluator.d.ts +1 -1
  33. package/dist/models/GetContextStoreResponseBody.d.ts +1 -1
  34. package/dist/models/GetEvaluationTaskResponseBody.d.ts +1 -1
  35. package/dist/models/GetEvaluatorResponseBody.d.ts +109 -9
  36. package/dist/models/GetEvaluatorResponseBody.js +43 -1
  37. package/dist/models/GetEvaluatorResponseBody.js.map +1 -1
  38. package/dist/models/GetEvaluatorSkillRequest.d.ts +10 -2
  39. package/dist/models/GetEvaluatorSkillRequest.js +2 -0
  40. package/dist/models/GetEvaluatorSkillRequest.js.map +1 -1
  41. package/dist/models/GetEvaluatorSkillResponseBody.d.ts +8 -8
  42. package/dist/models/GetExperimentPlanResponseBody.d.ts +1 -1
  43. package/dist/models/GetOptimizeTaskResponseBody.d.ts +1 -1
  44. package/dist/models/GetPipelineResponseBody.d.ts +69 -37
  45. package/dist/models/GetPipelineResponseBody.js +8 -0
  46. package/dist/models/GetPipelineResponseBody.js.map +1 -1
  47. package/dist/models/GetPipelineRunResponseBody.d.ts +547 -7
  48. package/dist/models/GetPipelineRunResponseBody.js +244 -1
  49. package/dist/models/GetPipelineRunResponseBody.js.map +1 -1
  50. package/dist/models/ListEvaluatorSkillsRequest.d.ts +9 -1
  51. package/dist/models/ListEvaluatorSkillsRequest.js +2 -0
  52. package/dist/models/ListEvaluatorSkillsRequest.js.map +1 -1
  53. package/dist/models/ListEvaluatorSkillsResponseBody.d.ts +8 -8
  54. package/dist/models/ListEvaluatorsRequest.d.ts +1 -1
  55. package/dist/models/ListEvaluatorsResponseBody.d.ts +20 -4
  56. package/dist/models/ListEvaluatorsResponseBody.js +4 -0
  57. package/dist/models/ListEvaluatorsResponseBody.js.map +1 -1
  58. package/dist/models/ListExperimentPlansResponseBody.d.ts +1 -1
  59. package/dist/models/ListOptimizeTasksResponseBody.d.ts +1 -1
  60. package/dist/models/ListPipelineRunsRequest.d.ts +5 -5
  61. package/dist/models/ListPipelineRunsResponseBody.d.ts +26 -10
  62. package/dist/models/ListPipelineRunsResponseBody.js +4 -0
  63. package/dist/models/ListPipelineRunsResponseBody.js.map +1 -1
  64. package/dist/models/ListPipelinesRequest.d.ts +25 -5
  65. package/dist/models/ListPipelinesRequest.js +2 -0
  66. package/dist/models/ListPipelinesRequest.js.map +1 -1
  67. package/dist/models/ListPipelinesResponseBody.d.ts +156 -40
  68. package/dist/models/ListPipelinesResponseBody.js +68 -1
  69. package/dist/models/ListPipelinesResponseBody.js.map +1 -1
  70. package/dist/models/ListTagResourcesRequest.d.ts +3 -3
  71. package/dist/models/ListTagResourcesResponseBody.d.ts +2 -2
  72. package/dist/models/ListTagResourcesShrinkRequest.d.ts +2 -2
  73. package/dist/models/ModelParameters.d.ts +2 -2
  74. package/dist/models/PreviewPipelineRequest.d.ts +2 -2
  75. package/dist/models/PreviewPipelineResponseBody.d.ts +1 -1
  76. package/dist/models/SearchContextResponseBody.d.ts +1 -1
  77. package/dist/models/TagResourcesRequest.d.ts +6 -6
  78. package/dist/models/UntagResourcesRequest.d.ts +3 -3
  79. package/dist/models/UntagResourcesShrinkRequest.d.ts +3 -3
  80. package/dist/models/UpdateContextStoreRequest.d.ts +1 -1
  81. package/dist/models/UpdateEvaluationTaskRequest.d.ts +1 -1
  82. package/dist/models/UpdateEvaluatorRequest.d.ts +112 -4
  83. package/dist/models/UpdateEvaluatorRequest.js +61 -1
  84. package/dist/models/UpdateEvaluatorRequest.js.map +1 -1
  85. package/dist/models/UpdateEvaluatorSkillRequest.d.ts +12 -4
  86. package/dist/models/UpdateEvaluatorSkillRequest.js +2 -0
  87. package/dist/models/UpdateEvaluatorSkillRequest.js.map +1 -1
  88. package/dist/models/UpdateEvaluatorVersionStatusRequest.d.ts +51 -0
  89. package/dist/models/UpdateEvaluatorVersionStatusRequest.js +64 -0
  90. package/dist/models/UpdateEvaluatorVersionStatusRequest.js.map +1 -0
  91. package/dist/models/UpdateEvaluatorVersionStatusResponse.d.ts +19 -0
  92. package/dist/models/UpdateEvaluatorVersionStatusResponse.js +69 -0
  93. package/dist/models/UpdateEvaluatorVersionStatusResponse.js.map +1 -0
  94. package/dist/models/UpdateEvaluatorVersionStatusResponseBody.d.ts +21 -0
  95. package/dist/models/UpdateEvaluatorVersionStatusResponseBody.js +58 -0
  96. package/dist/models/UpdateEvaluatorVersionStatusResponseBody.js.map +1 -0
  97. package/dist/models/UpdateOptimizeTaskRequest.d.ts +1 -1
  98. package/dist/models/UpdatePipelineRequest.d.ts +3 -3
  99. package/dist/models/model.d.ts +19 -0
  100. package/dist/models/model.js +75 -37
  101. package/dist/models/model.js.map +1 -1
  102. package/package.json +1 -1
  103. package/src/client.ts +192 -12
  104. package/src/models/CreateContextStoreRequest.ts +1 -1
  105. package/src/models/CreateEvaluationTaskRequest.ts +1 -1
  106. package/src/models/CreateEvaluatorRequest.ts +149 -12
  107. package/src/models/CreateEvaluatorResponseBody.ts +2 -2
  108. package/src/models/CreateEvaluatorSkillRequest.ts +17 -7
  109. package/src/models/CreateExperimentPlanRequest.ts +1 -1
  110. package/src/models/CreateMultiModalTaskRequest.ts +103 -0
  111. package/src/models/CreateMultiModalTaskResponse.ts +40 -0
  112. package/src/models/CreateMultiModalTaskResponseBody.ts +64 -0
  113. package/src/models/CreateOptimizeTaskRequest.ts +1 -1
  114. package/src/models/CreatePipelineRequest.ts +46 -36
  115. package/src/models/CreatePipelineResponseBody.ts +1 -1
  116. package/src/models/DataFilter.ts +1 -1
  117. package/src/models/DeleteEvaluatorSkillRequest.ts +11 -1
  118. package/src/models/Evaluator.ts +1 -1
  119. package/src/models/GetContextStoreResponseBody.ts +1 -1
  120. package/src/models/GetEvaluationTaskResponseBody.ts +1 -1
  121. package/src/models/GetEvaluatorResponseBody.ts +142 -9
  122. package/src/models/GetEvaluatorSkillRequest.ts +12 -2
  123. package/src/models/GetEvaluatorSkillResponseBody.ts +8 -8
  124. package/src/models/GetExperimentPlanResponseBody.ts +1 -1
  125. package/src/models/GetOptimizeTaskResponseBody.ts +1 -1
  126. package/src/models/GetPipelineResponseBody.ts +77 -37
  127. package/src/models/GetPipelineRunResponseBody.ts +734 -7
  128. package/src/models/ListEvaluatorSkillsRequest.ts +11 -1
  129. package/src/models/ListEvaluatorSkillsResponseBody.ts +8 -8
  130. package/src/models/ListEvaluatorsRequest.ts +1 -1
  131. package/src/models/ListEvaluatorsResponseBody.ts +24 -4
  132. package/src/models/ListExperimentPlansResponseBody.ts +1 -1
  133. package/src/models/ListOptimizeTasksResponseBody.ts +1 -1
  134. package/src/models/ListPipelineRunsRequest.ts +5 -5
  135. package/src/models/ListPipelineRunsResponseBody.ts +30 -10
  136. package/src/models/ListPipelinesRequest.ts +27 -5
  137. package/src/models/ListPipelinesResponseBody.ts +203 -40
  138. package/src/models/ListTagResourcesRequest.ts +3 -3
  139. package/src/models/ListTagResourcesResponseBody.ts +2 -2
  140. package/src/models/ListTagResourcesShrinkRequest.ts +2 -2
  141. package/src/models/ModelParameters.ts +2 -2
  142. package/src/models/PreviewPipelineRequest.ts +2 -2
  143. package/src/models/PreviewPipelineResponseBody.ts +1 -1
  144. package/src/models/SearchContextResponseBody.ts +1 -1
  145. package/src/models/TagResourcesRequest.ts +6 -6
  146. package/src/models/UntagResourcesRequest.ts +3 -3
  147. package/src/models/UntagResourcesShrinkRequest.ts +3 -3
  148. package/src/models/UpdateContextStoreRequest.ts +1 -1
  149. package/src/models/UpdateEvaluationTaskRequest.ts +1 -1
  150. package/src/models/UpdateEvaluatorRequest.ts +154 -4
  151. package/src/models/UpdateEvaluatorSkillRequest.ts +14 -4
  152. package/src/models/UpdateEvaluatorVersionStatusRequest.ts +70 -0
  153. package/src/models/UpdateEvaluatorVersionStatusResponse.ts +40 -0
  154. package/src/models/UpdateEvaluatorVersionStatusResponseBody.ts +34 -0
  155. package/src/models/UpdateOptimizeTaskRequest.ts +1 -1
  156. package/src/models/UpdatePipelineRequest.ts +3 -3
  157. package/src/models/model.ts +19 -0
@@ -5,11 +5,11 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class TagResourcesRequestTag extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The tag key. Format requirements:
8
+ * The tag key. Format requirements are as follows:
9
9
  *
10
10
  * - The length must be 1 to 128 characters.
11
- * - The key cannot contain "http://" or "https://".
12
- * - The key cannot start with "acs:" or "aliyun".
11
+ * - It cannot contain "http://" or "https://".
12
+ * - It cannot start with "acs:" or "aliyun".
13
13
  *
14
14
  * @example
15
15
  * key1
@@ -17,10 +17,10 @@ export class TagResourcesRequestTag extends $dara.Model {
17
17
  key?: string;
18
18
  /**
19
19
  * @remarks
20
- * The tag value. Format requirements:
20
+ * The tag value. Format requirements are as follows:
21
21
  *
22
22
  * - The length must be 1 to 128 characters.
23
- * - The value cannot contain "http://" or "https://".
23
+ * - It cannot contain "http://" or "https://".
24
24
  *
25
25
  * @example
26
26
  * value1
@@ -72,7 +72,7 @@ export class TagResourcesRequest extends $dara.Model {
72
72
  resourceType?: string;
73
73
  /**
74
74
  * @remarks
75
- * The list of tags. Up to 20 tag key-value pairs are supported at a time.
75
+ * The list of tags. You can specify up to 20 tag key-value pairs at a time.
76
76
  *
77
77
  * @example
78
78
  * [{
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class UntagResourcesRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * Specifies whether to remove all custom tags. Valid values: true, false, and an empty string. If this parameter is not specified or is set to an empty string, the value is treated as false. The value true takes effect only when the tagKey parameter is not specified or is an empty array.
8
+ * Specifies whether to disassociate all user-defined tags. Valid values: true, false, and an empty string. If this parameter is not specified or is set to an empty string, it is treated as false. The value true indicates that all tags are disassociated only when the tagKey parameter is not specified or is an empty array.
9
9
  *
10
10
  * @example
11
11
  * true
@@ -23,7 +23,7 @@ export class UntagResourcesRequest extends $dara.Model {
23
23
  resourceId?: string[];
24
24
  /**
25
25
  * @remarks
26
- * The resource type. Set the value to agentspace.
26
+ * The resource type. The value is fixed to agentspace.
27
27
  *
28
28
  * This parameter is required.
29
29
  *
@@ -33,7 +33,7 @@ export class UntagResourcesRequest extends $dara.Model {
33
33
  resourceType?: string;
34
34
  /**
35
35
  * @remarks
36
- * The list of tag keys to remove. You can specify up to 20 tag keys. The tag keys must be unique. If this parameter is not empty, it takes precedence over the all parameter.
36
+ * The list of tag keys to disassociate. You can specify up to 20 tag keys, and they must be unique. If this parameter is not empty, it takes precedence over the all parameter.
37
37
  *
38
38
  * @example
39
39
  * ["key1", "key2", "key3"]
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class UntagResourcesShrinkRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * Specifies whether to remove all custom tags. Valid values: true, false, and an empty string. If this parameter is not specified or is set to an empty string, the value is treated as false. The value true takes effect only when the tagKey parameter is not specified or is an empty array.
8
+ * Specifies whether to disassociate all user-defined tags. Valid values: true, false, and an empty string. If this parameter is not specified or is set to an empty string, it is treated as false. The value true indicates that all tags are disassociated only when the tagKey parameter is not specified or is an empty array.
9
9
  *
10
10
  * @example
11
11
  * true
@@ -23,7 +23,7 @@ export class UntagResourcesShrinkRequest extends $dara.Model {
23
23
  resourceIdShrink?: string;
24
24
  /**
25
25
  * @remarks
26
- * The resource type. Set the value to agentspace.
26
+ * The resource type. The value is fixed to agentspace.
27
27
  *
28
28
  * This parameter is required.
29
29
  *
@@ -33,7 +33,7 @@ export class UntagResourcesShrinkRequest extends $dara.Model {
33
33
  resourceType?: string;
34
34
  /**
35
35
  * @remarks
36
- * The list of tag keys to remove. You can specify up to 20 tag keys. The tag keys must be unique. If this parameter is not empty, it takes precedence over the all parameter.
36
+ * The list of tag keys to disassociate. You can specify up to 20 tag keys, and they must be unique. If this parameter is not empty, it takes precedence over the all parameter.
37
37
  *
38
38
  * @example
39
39
  * ["key1", "key2", "key3"]
@@ -513,7 +513,7 @@ export class UpdateContextStoreRequestConfigSourceDatasetFilter extends $dara.Mo
513
513
  * The subset of the pipeline where clause, which is pushed down to SQL.
514
514
  *
515
515
  * @example
516
- * appId = \\"crm-service\\"
516
+ * appId = \"crm-service\"
517
517
  */
518
518
  where?: string;
519
519
  static names(): { [key: string]: string } {
@@ -18,7 +18,7 @@ export class UpdateEvaluationTaskRequest extends $dara.Model {
18
18
  * The filter conditions for evaluation data. JSON objects and JSON strings are supported.
19
19
  *
20
20
  * @example
21
- * {"query":"serviceName=\\"checkout-service\\" AND status=\\"OK\\"","maxRecords":10,"samplingRate":50}
21
+ * {"query":"serviceName=\"checkout-service\" AND status=\"OK\"","maxRecords":10,"samplingRate":50}
22
22
  */
23
23
  dataFilter?: string;
24
24
  /**
@@ -2,6 +2,123 @@
2
2
  import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
+ export class UpdateEvaluatorRequestSkillsFiles extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The text content of the file.
9
+ *
10
+ * @example
11
+ * ---
12
+ * name: fact-check
13
+ * description: Verify factual basis in responses
14
+ * ---
15
+ * Verify the facts in the response item by item and list the basis
16
+ */
17
+ content?: string;
18
+ /**
19
+ * @remarks
20
+ * The path of the file relative to the root directory of the skill.
21
+ *
22
+ * @example
23
+ * SKILL.md
24
+ */
25
+ name?: string;
26
+ static names(): { [key: string]: string } {
27
+ return {
28
+ content: 'content',
29
+ name: 'name',
30
+ };
31
+ }
32
+
33
+ static types(): { [key: string]: any } {
34
+ return {
35
+ content: 'string',
36
+ name: 'string',
37
+ };
38
+ }
39
+
40
+ validate() {
41
+ super.validate();
42
+ }
43
+
44
+ constructor(map?: { [key: string]: any }) {
45
+ super(map);
46
+ }
47
+ }
48
+
49
+ export class UpdateEvaluatorRequestSkills extends $dara.Model {
50
+ /**
51
+ * @remarks
52
+ * The description of the skill purpose.
53
+ *
54
+ * @example
55
+ * Verify factual basis in responses
56
+ */
57
+ description?: string;
58
+ /**
59
+ * @remarks
60
+ * The display name of the skill.
61
+ *
62
+ * @example
63
+ * Fact-checking
64
+ */
65
+ displayName?: string;
66
+ /**
67
+ * @remarks
68
+ * Specifies whether to enable the skill. Default value: true.
69
+ *
70
+ * @example
71
+ * true
72
+ */
73
+ enable?: boolean;
74
+ /**
75
+ * @remarks
76
+ * The complete list of files for the skill, which must include SKILL.md in the root directory.
77
+ *
78
+ * @example
79
+ * [{"name":"SKILL.md","content":"---\nname: fact-check\ndescription: Verify factual basis in responses\n---\nVerify the facts in the response item by item and list the basis."}]
80
+ */
81
+ files?: UpdateEvaluatorRequestSkillsFiles[];
82
+ /**
83
+ * @remarks
84
+ * The name of the skill, which must be unique in the list of skills submitted in this request.
85
+ *
86
+ * @example
87
+ * fact-check
88
+ */
89
+ skillName?: string;
90
+ static names(): { [key: string]: string } {
91
+ return {
92
+ description: 'description',
93
+ displayName: 'displayName',
94
+ enable: 'enable',
95
+ files: 'files',
96
+ skillName: 'skillName',
97
+ };
98
+ }
99
+
100
+ static types(): { [key: string]: any } {
101
+ return {
102
+ description: 'string',
103
+ displayName: 'string',
104
+ enable: 'boolean',
105
+ files: { 'type': 'array', 'itemType': UpdateEvaluatorRequestSkillsFiles },
106
+ skillName: 'string',
107
+ };
108
+ }
109
+
110
+ validate() {
111
+ if(Array.isArray(this.files)) {
112
+ $dara.Model.validateArray(this.files);
113
+ }
114
+ super.validate();
115
+ }
116
+
117
+ constructor(map?: { [key: string]: any }) {
118
+ super(map);
119
+ }
120
+ }
121
+
5
122
  export class UpdateEvaluatorRequest extends $dara.Model {
6
123
  /**
7
124
  * @remarks
@@ -13,7 +130,7 @@ export class UpdateEvaluatorRequest extends $dara.Model {
13
130
  annotations?: string[];
14
131
  /**
15
132
  * @remarks
16
- * The configuration of the new version. This parameter is typically required when `version` is specified.
133
+ * The configuration for the new version. This parameter is typically required when version is specified.
17
134
  *
18
135
  * @example
19
136
  * {"prompt":"Evaluate task completion more strictly"}
@@ -21,7 +138,15 @@ export class UpdateEvaluatorRequest extends $dara.Model {
21
138
  config?: { [key: string]: any };
22
139
  /**
23
140
  * @remarks
24
- * The evaluator description.
141
+ * Specifies whether to create a new draft. Set to true to create a new draft, or false to update a specified existing draft. When this parameter is specified, the version status defaults to DRAFT.
142
+ *
143
+ * @example
144
+ * true
145
+ */
146
+ createVersion?: boolean;
147
+ /**
148
+ * @remarks
149
+ * The description of the evaluator.
25
150
  *
26
151
  * @example
27
152
  * Determines whether the agent completes the user task
@@ -32,7 +157,7 @@ export class UpdateEvaluatorRequest extends $dara.Model {
32
157
  * The display name.
33
158
  *
34
159
  * @example
35
- * Task completion of the chain
160
+ * Pipeline task completion
36
161
  */
37
162
  displayName?: string;
38
163
  /**
@@ -43,6 +168,22 @@ export class UpdateEvaluatorRequest extends $dara.Model {
43
168
  * {"agentEvaluatorMode":"raw_prompt"}
44
169
  */
45
170
  properties?: { [key: string]: any };
171
+ /**
172
+ * @remarks
173
+ * The complete list of business skills saved for the standard agent evaluator in this request. Pass an empty array to clear the business skills for this version.
174
+ *
175
+ * @example
176
+ * [{"skillName":"fact-check","files":[{"name":"SKILL.md","content":"---\nname: fact-check\ndescription: Verify factual basis in responses\n---\nVerify the facts in the response item by item and list the basis."}]}]
177
+ */
178
+ skills?: UpdateEvaluatorRequestSkills[];
179
+ /**
180
+ * @remarks
181
+ * The status of the evaluator version to be written. Only DRAFT is supported when explicitly specified. To publish a draft, call UpdateEvaluatorVersionStatus.
182
+ *
183
+ * @example
184
+ * DRAFT
185
+ */
186
+ status?: string;
46
187
  /**
47
188
  * @remarks
48
189
  * The new version number. A new version is created when this parameter is specified.
@@ -61,7 +202,7 @@ export class UpdateEvaluatorRequest extends $dara.Model {
61
202
  versionDescription?: string;
62
203
  /**
63
204
  * @remarks
64
- * The idempotency token. CloudSpec declares this query parameter, but the backend does not currently perform idempotency comparison.
205
+ * The idempotency token. CloudSpec declares this query parameter, but the backend does not currently perform idempotency checks.
65
206
  *
66
207
  * @example
67
208
  * a1b2c3d4-1234-5678-90ab-cdef12345678
@@ -71,9 +212,12 @@ export class UpdateEvaluatorRequest extends $dara.Model {
71
212
  return {
72
213
  annotations: 'annotations',
73
214
  config: 'config',
215
+ createVersion: 'createVersion',
74
216
  description: 'description',
75
217
  displayName: 'displayName',
76
218
  properties: 'properties',
219
+ skills: 'skills',
220
+ status: 'status',
77
221
  version: 'version',
78
222
  versionDescription: 'versionDescription',
79
223
  clientToken: 'clientToken',
@@ -84,9 +228,12 @@ export class UpdateEvaluatorRequest extends $dara.Model {
84
228
  return {
85
229
  annotations: { 'type': 'array', 'itemType': 'string' },
86
230
  config: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
231
+ createVersion: 'boolean',
87
232
  description: 'string',
88
233
  displayName: 'string',
89
234
  properties: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
235
+ skills: { 'type': 'array', 'itemType': UpdateEvaluatorRequestSkills },
236
+ status: 'string',
90
237
  version: 'string',
91
238
  versionDescription: 'string',
92
239
  clientToken: 'string',
@@ -103,6 +250,9 @@ export class UpdateEvaluatorRequest extends $dara.Model {
103
250
  if(this.properties) {
104
251
  $dara.Model.validateMap(this.properties);
105
252
  }
253
+ if(Array.isArray(this.skills)) {
254
+ $dara.Model.validateArray(this.skills);
255
+ }
106
256
  super.validate();
107
257
  }
108
258
 
@@ -28,7 +28,7 @@ export class UpdateEvaluatorSkillRequestFiles extends $dara.Model {
28
28
  * The remark for the file.
29
29
  *
30
30
  * @example
31
- * Primary skill description
31
+ * Main skill description
32
32
  */
33
33
  remark?: string;
34
34
  static names(): { [key: string]: string } {
@@ -80,23 +80,31 @@ export class UpdateEvaluatorSkillRequest extends $dara.Model {
80
80
  * The display name of the skill.
81
81
  *
82
82
  * @example
83
- * Read Trace Context
83
+ * Read trace context
84
84
  */
85
85
  displayName?: string;
86
86
  /**
87
87
  * @remarks
88
- * Specifies whether the skill is enabled.
88
+ * Specifies whether to enable the skill.
89
89
  *
90
90
  * @example
91
91
  * true
92
92
  */
93
93
  enable?: boolean;
94
+ /**
95
+ * @remarks
96
+ * The target evaluator version for updating the skill. If omitted, the latestVersion of the evaluator is used.
97
+ *
98
+ * @example
99
+ * v2
100
+ */
101
+ evaluatorVersion?: string;
94
102
  /**
95
103
  * @remarks
96
104
  * The list of skill files. If specified, the content of the skill files is updated.
97
105
  *
98
106
  * @example
99
- * [{"name":"SKILL.md","content":"# Trace Context Loader","remark":"Primary skill description"}]
107
+ * [{"name":"SKILL.md","content":"# Trace Context Loader","remark":"Main skill description"}]
100
108
  */
101
109
  files?: UpdateEvaluatorSkillRequestFiles[];
102
110
  /**
@@ -113,6 +121,7 @@ export class UpdateEvaluatorSkillRequest extends $dara.Model {
113
121
  description: 'description',
114
122
  displayName: 'displayName',
115
123
  enable: 'enable',
124
+ evaluatorVersion: 'evaluatorVersion',
116
125
  files: 'files',
117
126
  clientToken: 'clientToken',
118
127
  };
@@ -124,6 +133,7 @@ export class UpdateEvaluatorSkillRequest extends $dara.Model {
124
133
  description: 'string',
125
134
  displayName: 'string',
126
135
  enable: 'boolean',
136
+ evaluatorVersion: 'string',
127
137
  files: { 'type': 'array', 'itemType': UpdateEvaluatorSkillRequestFiles },
128
138
  clientToken: 'string',
129
139
  };
@@ -0,0 +1,70 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class UpdateEvaluatorVersionStatusRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The expected current status. Valid values: DRAFT, PUBLISHED, and OFFLINE. If the specified value does not match the actual status, the API returns a 409 error.
9
+ *
10
+ * @example
11
+ * DRAFT
12
+ */
13
+ expectedStatus?: string;
14
+ /**
15
+ * @remarks
16
+ * The target status. Valid values:
17
+ * - PUBLISHED: Publishes a draft for the first time or brings an offline version back online.
18
+ * - OFFLINE: Takes a published version offline.
19
+ *
20
+ * This parameter is required.
21
+ *
22
+ * @example
23
+ * PUBLISHED
24
+ */
25
+ status?: string;
26
+ /**
27
+ * @remarks
28
+ * The version number to update. The maximum length is 64 characters.
29
+ *
30
+ * This parameter is required.
31
+ *
32
+ * @example
33
+ * v3
34
+ */
35
+ version?: string;
36
+ /**
37
+ * @remarks
38
+ * The version description provided when a draft is published for the first time. The maximum length is 256 characters.
39
+ *
40
+ * @example
41
+ * Added scoring rules for answer accuracy
42
+ */
43
+ versionDescription?: string;
44
+ static names(): { [key: string]: string } {
45
+ return {
46
+ expectedStatus: 'expectedStatus',
47
+ status: 'status',
48
+ version: 'version',
49
+ versionDescription: 'versionDescription',
50
+ };
51
+ }
52
+
53
+ static types(): { [key: string]: any } {
54
+ return {
55
+ expectedStatus: 'string',
56
+ status: 'string',
57
+ version: 'string',
58
+ versionDescription: 'string',
59
+ };
60
+ }
61
+
62
+ validate() {
63
+ super.validate();
64
+ }
65
+
66
+ constructor(map?: { [key: string]: any }) {
67
+ super(map);
68
+ }
69
+ }
70
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { UpdateEvaluatorVersionStatusResponseBody } from "./UpdateEvaluatorVersionStatusResponseBody";
4
+
5
+
6
+ export class UpdateEvaluatorVersionStatusResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: UpdateEvaluatorVersionStatusResponseBody;
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: UpdateEvaluatorVersionStatusResponseBody,
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,34 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class UpdateEvaluatorVersionStatusResponseBody extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The unique identifier of the request.
9
+ *
10
+ * @example
11
+ * 3FE4CD1E-FF41-56BE-B590-7A021D9C1524
12
+ */
13
+ requestId?: string;
14
+ static names(): { [key: string]: string } {
15
+ return {
16
+ requestId: 'requestId',
17
+ };
18
+ }
19
+
20
+ static types(): { [key: string]: any } {
21
+ return {
22
+ requestId: 'string',
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ super.validate();
28
+ }
29
+
30
+ constructor(map?: { [key: string]: any }) {
31
+ super(map);
32
+ }
33
+ }
34
+
@@ -8,7 +8,7 @@ export class UpdateOptimizeTaskRequest extends $dara.Model {
8
8
  * The type-related configurations. Optional prompts for ExperienceMining or SkillOptimize support only inline Markdown, and the body 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\\\\nExtract evidence-backed tool contracts."}},"outputs":{"changePlan":{"type":"dataset","dataset":"experience-plans"}},"operators":["tool_contract"],"application":{"mode":"manual"}}
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
  /**
@@ -430,7 +430,7 @@ export class UpdatePipelineRequestSinkConditionRoutes extends $dara.Model {
430
430
  * The route expression in Search Processing Language (SPL). Only where, project, and extend are supported.
431
431
  *
432
432
  * @example
433
- * * | where intent = \\"refund\\"
433
+ * * | where intent = \"refund\"
434
434
  */
435
435
  expression?: string;
436
436
  /**
@@ -628,7 +628,7 @@ export class UpdatePipelineRequestSourceDataset extends $dara.Model {
628
628
  * The data filter condition for the dataset.
629
629
  *
630
630
  * @example
631
- * status = \\"pending\\"
631
+ * status = \"pending\"
632
632
  */
633
633
  filter?: string;
634
634
  static names(): { [key: string]: string } {
@@ -826,7 +826,7 @@ export class UpdatePipelineRequestSource extends $dara.Model {
826
826
  * The dataset datasource config in the current AgentSpace.
827
827
  *
828
828
  * @example
829
- * {"dataset":"my-dataset","filter":"status = \\"pending\\""}
829
+ * {"dataset":"my-dataset","filter":"status = \"pending\""}
830
830
  */
831
831
  dataset?: UpdatePipelineRequestSourceDataset;
832
832
  /**
@@ -19,6 +19,8 @@ export { CreateContextStoreRequestConfigSourceVersionPolicy } from './CreateCont
19
19
  export { CreateContextStoreRequestConfigSource } from './CreateContextStoreRequest';
20
20
  export { CreateContextStoreRequestConfigStoragePolicy } from './CreateContextStoreRequest';
21
21
  export { CreateContextStoreRequestConfig } from './CreateContextStoreRequest';
22
+ export { CreateEvaluatorRequestSkillsFiles } from './CreateEvaluatorRequest';
23
+ export { CreateEvaluatorRequestSkills } from './CreateEvaluatorRequest';
22
24
  export { CreateEvaluatorSkillRequestFiles } from './CreateEvaluatorSkillRequest';
23
25
  export { CreatePipelineRequestExecutePolicyContinuous } from './CreatePipelineRequest';
24
26
  export { CreatePipelineRequestExecutePolicyRunOnce } from './CreatePipelineRequest';
@@ -71,6 +73,7 @@ export { GetContextStoreResponseBodyConfigSourceStatus } from './GetContextStore
71
73
  export { GetContextStoreResponseBodyConfigStoragePolicy } from './GetContextStoreResponseBody';
72
74
  export { GetContextStoreResponseBodyConfig } from './GetContextStoreResponseBody';
73
75
  export { GetEvaluationRunResponseBodyEvaluatorProgress } from './GetEvaluationRunResponseBody';
76
+ export { GetEvaluatorResponseBodyEvaluatorSkills } from './GetEvaluatorResponseBody';
74
77
  export { GetEvaluatorResponseBodyEvaluatorVersions } from './GetEvaluatorResponseBody';
75
78
  export { GetEvaluatorResponseBodyEvaluator } from './GetEvaluatorResponseBody';
76
79
  export { GetEvaluatorSkillResponseBodySkillFiles } from './GetEvaluatorSkillResponseBody';
@@ -96,6 +99,12 @@ export { GetPipelineResponseBodySourceLogstore } from './GetPipelineResponseBody
96
99
  export { GetPipelineResponseBodySourceTrajectoryEnrich } from './GetPipelineResponseBody';
97
100
  export { GetPipelineResponseBodySourceTrajectory } from './GetPipelineResponseBody';
98
101
  export { GetPipelineResponseBodySource } from './GetPipelineResponseBody';
102
+ export { GetPipelineRunResponseBodyAsyncNodes } from './GetPipelineRunResponseBody';
103
+ export { GetPipelineRunResponseBodyNodeExecutionsInputRef } from './GetPipelineRunResponseBody';
104
+ export { GetPipelineRunResponseBodyNodeExecutionsOutputRef } from './GetPipelineRunResponseBody';
105
+ export { GetPipelineRunResponseBodyNodeExecutions } from './GetPipelineRunResponseBody';
106
+ export { GetPipelineRunResponseBodyPipelineSnapshotNodes } from './GetPipelineRunResponseBody';
107
+ export { GetPipelineRunResponseBodyPipelineSnapshot } from './GetPipelineRunResponseBody';
99
108
  export { GetPipelineStatsResponseBodySummary } from './GetPipelineStatsResponseBody';
100
109
  export { GetPipelineStatsResponseBodyTimeSeries } from './GetPipelineStatsResponseBody';
101
110
  export { ListAgentSpacesRequestTag } from './ListAgentSpacesRequest';
@@ -117,6 +126,8 @@ export { ListPipelinesResponseBodyPipelinesExecutePolicyContinuous } from './Lis
117
126
  export { ListPipelinesResponseBodyPipelinesExecutePolicyRunOnce } from './ListPipelinesResponseBody';
118
127
  export { ListPipelinesResponseBodyPipelinesExecutePolicyScheduled } from './ListPipelinesResponseBody';
119
128
  export { ListPipelinesResponseBodyPipelinesExecutePolicy } from './ListPipelinesResponseBody';
129
+ export { ListPipelinesResponseBodyPipelinesPipelineNodes } from './ListPipelinesResponseBody';
130
+ export { ListPipelinesResponseBodyPipelinesPipeline } from './ListPipelinesResponseBody';
120
131
  export { ListPipelinesResponseBodyPipelinesSinkConditionDefaultSinkDataset } from './ListPipelinesResponseBody';
121
132
  export { ListPipelinesResponseBodyPipelinesSinkConditionDefaultSink } from './ListPipelinesResponseBody';
122
133
  export { ListPipelinesResponseBodyPipelinesSinkConditionRoutesSinkDataset } from './ListPipelinesResponseBody';
@@ -164,6 +175,8 @@ export { UpdateContextStoreRequestConfigStoragePolicy } from './UpdateContextSto
164
175
  export { UpdateContextStoreRequestConfig } from './UpdateContextStoreRequest';
165
176
  export { UpdateContextStoreResponseBodyConfig } from './UpdateContextStoreResponseBody';
166
177
  export { UpdateDatasetRequestRenames } from './UpdateDatasetRequest';
178
+ export { UpdateEvaluatorRequestSkillsFiles } from './UpdateEvaluatorRequest';
179
+ export { UpdateEvaluatorRequestSkills } from './UpdateEvaluatorRequest';
167
180
  export { UpdateEvaluatorSkillRequestFiles } from './UpdateEvaluatorSkillRequest';
168
181
  export { UpdatePipelineRequestExecutePolicyContinuous } from './UpdatePipelineRequest';
169
182
  export { UpdatePipelineRequestExecutePolicyRunOnce } from './UpdatePipelineRequest';
@@ -241,6 +254,9 @@ export { CreateExperimentPlanResponse } from './CreateExperimentPlanResponse';
241
254
  export { CreateExperimentRunRequest } from './CreateExperimentRunRequest';
242
255
  export { CreateExperimentRunResponseBody } from './CreateExperimentRunResponseBody';
243
256
  export { CreateExperimentRunResponse } from './CreateExperimentRunResponse';
257
+ export { CreateMultiModalTaskRequest } from './CreateMultiModalTaskRequest';
258
+ export { CreateMultiModalTaskResponseBody } from './CreateMultiModalTaskResponseBody';
259
+ export { CreateMultiModalTaskResponse } from './CreateMultiModalTaskResponse';
244
260
  export { CreateOptimizeRunRequest } from './CreateOptimizeRunRequest';
245
261
  export { CreateOptimizeRunResponseBody } from './CreateOptimizeRunResponseBody';
246
262
  export { CreateOptimizeRunResponse } from './CreateOptimizeRunResponse';
@@ -437,6 +453,9 @@ export { UpdateEvaluatorResponse } from './UpdateEvaluatorResponse';
437
453
  export { UpdateEvaluatorSkillRequest } from './UpdateEvaluatorSkillRequest';
438
454
  export { UpdateEvaluatorSkillResponseBody } from './UpdateEvaluatorSkillResponseBody';
439
455
  export { UpdateEvaluatorSkillResponse } from './UpdateEvaluatorSkillResponse';
456
+ export { UpdateEvaluatorVersionStatusRequest } from './UpdateEvaluatorVersionStatusRequest';
457
+ export { UpdateEvaluatorVersionStatusResponseBody } from './UpdateEvaluatorVersionStatusResponseBody';
458
+ export { UpdateEvaluatorVersionStatusResponse } from './UpdateEvaluatorVersionStatusResponse';
440
459
  export { UpdateExperimentPlanRequest } from './UpdateExperimentPlanRequest';
441
460
  export { UpdateExperimentPlanResponseBody } from './UpdateExperimentPlanResponseBody';
442
461
  export { UpdateExperimentPlanResponse } from './UpdateExperimentPlanResponse';