@alicloud/agentloop20260520 2.6.1 → 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.
Files changed (131) hide show
  1. package/dist/client.d.ts +44 -2
  2. package/dist/client.js +149 -2
  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 +73 -0
  7. package/dist/models/CreateEvaluatorRequest.js +59 -1
  8. package/dist/models/CreateEvaluatorRequest.js.map +1 -1
  9. package/dist/models/CreateEvaluatorSkillRequest.d.ts +5 -0
  10. package/dist/models/CreateEvaluatorSkillRequest.js +2 -0
  11. package/dist/models/CreateEvaluatorSkillRequest.js.map +1 -1
  12. package/dist/models/CreateExperimentPlanRequest.d.ts +1 -1
  13. package/dist/models/CreateMultiModalTaskRequest.d.ts +77 -0
  14. package/dist/models/CreateMultiModalTaskRequest.js +73 -0
  15. package/dist/models/CreateMultiModalTaskRequest.js.map +1 -0
  16. package/dist/models/CreateMultiModalTaskResponse.d.ts +19 -0
  17. package/dist/models/CreateMultiModalTaskResponse.js +69 -0
  18. package/dist/models/CreateMultiModalTaskResponse.js.map +1 -0
  19. package/dist/models/CreateMultiModalTaskResponseBody.d.ts +45 -0
  20. package/dist/models/CreateMultiModalTaskResponseBody.js +64 -0
  21. package/dist/models/CreateMultiModalTaskResponseBody.js.map +1 -0
  22. package/dist/models/CreateOptimizeTaskRequest.d.ts +1 -1
  23. package/dist/models/CreatePipelineRequest.d.ts +3 -3
  24. package/dist/models/DataFilter.d.ts +1 -1
  25. package/dist/models/DeleteEvaluatorSkillRequest.d.ts +5 -0
  26. package/dist/models/DeleteEvaluatorSkillRequest.js +2 -0
  27. package/dist/models/DeleteEvaluatorSkillRequest.js.map +1 -1
  28. package/dist/models/Evaluator.d.ts +1 -1
  29. package/dist/models/GetContextStoreResponseBody.d.ts +1 -1
  30. package/dist/models/GetEvaluationTaskResponseBody.d.ts +1 -1
  31. package/dist/models/GetEvaluatorResponseBody.d.ts +67 -0
  32. package/dist/models/GetEvaluatorResponseBody.js +43 -1
  33. package/dist/models/GetEvaluatorResponseBody.js.map +1 -1
  34. package/dist/models/GetEvaluatorSkillRequest.d.ts +5 -0
  35. package/dist/models/GetEvaluatorSkillRequest.js +2 -0
  36. package/dist/models/GetEvaluatorSkillRequest.js.map +1 -1
  37. package/dist/models/GetExperimentPlanResponseBody.d.ts +1 -1
  38. package/dist/models/GetOptimizeTaskResponseBody.d.ts +1 -1
  39. package/dist/models/GetPipelineResponseBody.d.ts +3 -3
  40. package/dist/models/GetPipelineRunResponseBody.d.ts +1 -1
  41. package/dist/models/ListEvaluatorSkillsRequest.d.ts +5 -0
  42. package/dist/models/ListEvaluatorSkillsRequest.js +2 -0
  43. package/dist/models/ListEvaluatorSkillsRequest.js.map +1 -1
  44. package/dist/models/ListEvaluatorsResponseBody.d.ts +10 -0
  45. package/dist/models/ListEvaluatorsResponseBody.js +4 -0
  46. package/dist/models/ListEvaluatorsResponseBody.js.map +1 -1
  47. package/dist/models/ListExperimentPlansResponseBody.d.ts +1 -1
  48. package/dist/models/ListOptimizeTasksResponseBody.d.ts +1 -1
  49. package/dist/models/ListPipelineRunsResponseBody.d.ts +1 -1
  50. package/dist/models/ListPipelinesResponseBody.d.ts +3 -3
  51. package/dist/models/ListTagResourcesRequest.d.ts +3 -3
  52. package/dist/models/ListTagResourcesResponseBody.d.ts +2 -2
  53. package/dist/models/ListTagResourcesShrinkRequest.d.ts +2 -2
  54. package/dist/models/ModelParameters.d.ts +2 -2
  55. package/dist/models/PreviewPipelineRequest.d.ts +2 -2
  56. package/dist/models/PreviewPipelineResponseBody.d.ts +1 -1
  57. package/dist/models/SearchContextResponseBody.d.ts +1 -1
  58. package/dist/models/TagResourcesRequest.d.ts +6 -6
  59. package/dist/models/UntagResourcesRequest.d.ts +3 -3
  60. package/dist/models/UntagResourcesShrinkRequest.d.ts +3 -3
  61. package/dist/models/UpdateContextStoreRequest.d.ts +1 -1
  62. package/dist/models/UpdateEvaluationTaskRequest.d.ts +1 -1
  63. package/dist/models/UpdateEvaluatorRequest.d.ts +78 -0
  64. package/dist/models/UpdateEvaluatorRequest.js +61 -1
  65. package/dist/models/UpdateEvaluatorRequest.js.map +1 -1
  66. package/dist/models/UpdateEvaluatorSkillRequest.d.ts +5 -0
  67. package/dist/models/UpdateEvaluatorSkillRequest.js +2 -0
  68. package/dist/models/UpdateEvaluatorSkillRequest.js.map +1 -1
  69. package/dist/models/UpdateEvaluatorVersionStatusRequest.d.ts +49 -0
  70. package/dist/models/UpdateEvaluatorVersionStatusRequest.js +64 -0
  71. package/dist/models/UpdateEvaluatorVersionStatusRequest.js.map +1 -0
  72. package/dist/models/UpdateEvaluatorVersionStatusResponse.d.ts +19 -0
  73. package/dist/models/UpdateEvaluatorVersionStatusResponse.js +69 -0
  74. package/dist/models/UpdateEvaluatorVersionStatusResponse.js.map +1 -0
  75. package/dist/models/UpdateEvaluatorVersionStatusResponseBody.d.ts +21 -0
  76. package/dist/models/UpdateEvaluatorVersionStatusResponseBody.js +58 -0
  77. package/dist/models/UpdateEvaluatorVersionStatusResponseBody.js.map +1 -0
  78. package/dist/models/UpdateOptimizeTaskRequest.d.ts +1 -1
  79. package/dist/models/UpdatePipelineRequest.d.ts +3 -3
  80. package/dist/models/model.d.ts +11 -0
  81. package/dist/models/model.js +40 -18
  82. package/dist/models/model.js.map +1 -1
  83. package/package.json +1 -1
  84. package/src/client.ts +174 -2
  85. package/src/models/CreateContextStoreRequest.ts +1 -1
  86. package/src/models/CreateEvaluationTaskRequest.ts +1 -1
  87. package/src/models/CreateEvaluatorRequest.ts +113 -0
  88. package/src/models/CreateEvaluatorSkillRequest.ts +7 -0
  89. package/src/models/CreateExperimentPlanRequest.ts +1 -1
  90. package/src/models/CreateMultiModalTaskRequest.ts +103 -0
  91. package/src/models/CreateMultiModalTaskResponse.ts +40 -0
  92. package/src/models/CreateMultiModalTaskResponseBody.ts +64 -0
  93. package/src/models/CreateOptimizeTaskRequest.ts +1 -1
  94. package/src/models/CreatePipelineRequest.ts +3 -3
  95. package/src/models/DataFilter.ts +1 -1
  96. package/src/models/DeleteEvaluatorSkillRequest.ts +7 -0
  97. package/src/models/Evaluator.ts +1 -1
  98. package/src/models/GetContextStoreResponseBody.ts +1 -1
  99. package/src/models/GetEvaluationTaskResponseBody.ts +1 -1
  100. package/src/models/GetEvaluatorResponseBody.ts +100 -0
  101. package/src/models/GetEvaluatorSkillRequest.ts +7 -0
  102. package/src/models/GetExperimentPlanResponseBody.ts +1 -1
  103. package/src/models/GetOptimizeTaskResponseBody.ts +1 -1
  104. package/src/models/GetPipelineResponseBody.ts +3 -3
  105. package/src/models/GetPipelineRunResponseBody.ts +1 -1
  106. package/src/models/ListEvaluatorSkillsRequest.ts +7 -0
  107. package/src/models/ListEvaluatorsResponseBody.ts +14 -0
  108. package/src/models/ListExperimentPlansResponseBody.ts +1 -1
  109. package/src/models/ListOptimizeTasksResponseBody.ts +1 -1
  110. package/src/models/ListPipelineRunsResponseBody.ts +1 -1
  111. package/src/models/ListPipelinesResponseBody.ts +3 -3
  112. package/src/models/ListTagResourcesRequest.ts +3 -3
  113. package/src/models/ListTagResourcesResponseBody.ts +2 -2
  114. package/src/models/ListTagResourcesShrinkRequest.ts +2 -2
  115. package/src/models/ModelParameters.ts +2 -2
  116. package/src/models/PreviewPipelineRequest.ts +2 -2
  117. package/src/models/PreviewPipelineResponseBody.ts +1 -1
  118. package/src/models/SearchContextResponseBody.ts +1 -1
  119. package/src/models/TagResourcesRequest.ts +6 -6
  120. package/src/models/UntagResourcesRequest.ts +3 -3
  121. package/src/models/UntagResourcesShrinkRequest.ts +3 -3
  122. package/src/models/UpdateContextStoreRequest.ts +1 -1
  123. package/src/models/UpdateEvaluationTaskRequest.ts +1 -1
  124. package/src/models/UpdateEvaluatorRequest.ts +120 -0
  125. package/src/models/UpdateEvaluatorSkillRequest.ts +7 -0
  126. package/src/models/UpdateEvaluatorVersionStatusRequest.ts +68 -0
  127. package/src/models/UpdateEvaluatorVersionStatusResponse.ts +40 -0
  128. package/src/models/UpdateEvaluatorVersionStatusResponseBody.ts +34 -0
  129. package/src/models/UpdateOptimizeTaskRequest.ts +1 -1
  130. package/src/models/UpdatePipelineRequest.ts +3 -3
  131. package/src/models/model.ts +11 -0
@@ -13,6 +13,11 @@ export class GetEvaluatorSkillRequest extends $dara.Model {
13
13
  * prod-agentspace
14
14
  */
15
15
  agentSpace?: string;
16
+ /**
17
+ * @example
18
+ * v2
19
+ */
20
+ evaluatorVersion?: string;
16
21
  /**
17
22
  * @remarks
18
23
  * The skill version.
@@ -24,6 +29,7 @@ export class GetEvaluatorSkillRequest extends $dara.Model {
24
29
  static names(): { [key: string]: string } {
25
30
  return {
26
31
  agentSpace: 'agentSpace',
32
+ evaluatorVersion: 'evaluatorVersion',
27
33
  version: 'version',
28
34
  };
29
35
  }
@@ -31,6 +37,7 @@ export class GetEvaluatorSkillRequest extends $dara.Model {
31
37
  static types(): { [key: string]: any } {
32
38
  return {
33
39
  agentSpace: 'string',
40
+ evaluatorVersion: 'string',
34
41
  version: 'string',
35
42
  };
36
43
  }
@@ -90,7 +90,7 @@ export class GetExperimentPlanResponseBody extends $dara.Model {
90
90
  * The custom query SQL clause in partial dataset mode.
91
91
  *
92
92
  * @example
93
- * status=\\"OK\\"
93
+ * status=\"OK\"
94
94
  */
95
95
  querySql?: string;
96
96
  /**
@@ -22,7 +22,7 @@ export class GetOptimizeTaskResponseBody extends $dara.Model {
22
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.
23
23
  *
24
24
  * @example
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"}}
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"}}
26
26
  */
27
27
  config?: { [key: string]: any };
28
28
  /**
@@ -430,7 +430,7 @@ export class GetPipelineResponseBodySinkConditionRoutes 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 GetPipelineResponseBodySourceDataset 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 GetPipelineResponseBodySource 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?: GetPipelineResponseBodySourceDataset;
832
832
  /**
@@ -32,7 +32,7 @@ export class GetPipelineRunResponseBody extends $dara.Model {
32
32
  * The error message.
33
33
  *
34
34
  * @example
35
- * Failed to evaluate filter expression in node \\"node-1\\": column \\"score\\" does not exist.
35
+ * Failed to evaluate filter expression in node \"node-1\": column \"score\" does not exist.
36
36
  */
37
37
  errorMessage?: string;
38
38
  /**
@@ -13,6 +13,11 @@ export class ListEvaluatorSkillsRequest extends $dara.Model {
13
13
  * prod-agentspace
14
14
  */
15
15
  agentSpace?: string;
16
+ /**
17
+ * @example
18
+ * v2
19
+ */
20
+ evaluatorVersion?: string;
16
21
  /**
17
22
  * @remarks
18
23
  * The number of entries per page.
@@ -32,6 +37,7 @@ export class ListEvaluatorSkillsRequest extends $dara.Model {
32
37
  static names(): { [key: string]: string } {
33
38
  return {
34
39
  agentSpace: 'agentSpace',
40
+ evaluatorVersion: 'evaluatorVersion',
35
41
  maxResults: 'maxResults',
36
42
  nextToken: 'nextToken',
37
43
  };
@@ -40,6 +46,7 @@ export class ListEvaluatorSkillsRequest extends $dara.Model {
40
46
  static types(): { [key: string]: any } {
41
47
  return {
42
48
  agentSpace: 'string',
49
+ evaluatorVersion: 'string',
43
50
  maxResults: 'number',
44
51
  nextToken: 'string',
45
52
  };
@@ -67,6 +67,16 @@ export class ListEvaluatorsResponseBodyEvaluators extends $dara.Model {
67
67
  * {"agentEvaluatorMode":"raw_prompt"}
68
68
  */
69
69
  properties?: { [key: string]: any };
70
+ /**
71
+ * @example
72
+ * true
73
+ */
74
+ selectable?: boolean;
75
+ /**
76
+ * @example
77
+ * PUBLISHED
78
+ */
79
+ status?: string;
70
80
  /**
71
81
  * @remarks
72
82
  * The evaluator type.
@@ -93,6 +103,8 @@ export class ListEvaluatorsResponseBodyEvaluators extends $dara.Model {
93
103
  metricName: 'metricName',
94
104
  name: 'name',
95
105
  properties: 'properties',
106
+ selectable: 'selectable',
107
+ status: 'status',
96
108
  type: 'type',
97
109
  updatedAt: 'updatedAt',
98
110
  };
@@ -108,6 +120,8 @@ export class ListEvaluatorsResponseBodyEvaluators extends $dara.Model {
108
120
  metricName: 'string',
109
121
  name: 'string',
110
122
  properties: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
123
+ selectable: 'boolean',
124
+ status: 'string',
111
125
  type: 'string',
112
126
  updatedAt: 'number',
113
127
  };
@@ -41,7 +41,7 @@ export class ListExperimentPlansResponseBody extends $dara.Model {
41
41
  * The list of experiment plan summaries.
42
42
  *
43
43
  * @example
44
- * [{"planId": "exp-plan-e95bff54685a4ae29ff3a834c1008a71", "planName": "rca_benchmark_eval_experiment", "experimentType": "offline", "description": "", "status": "pending", "datasetId": "rca_benckmark_eval", "querySql": "", "experimentCount": 5, "createdAt": 1784612365000, "updatedAt": 1784619562000}, {"planId": "exp-plan-0242d983f5d340fd8479cf2c19eb279e", "planName": "arms_agent_experiment", "experimentType": "online", "description": "", "status": "stopped", "datasetId": "arms_customer_agent_level1", "querySql": "", "experimentCount": 4, "createdAt": 1784257858000, "updatedAt": 1784721811000}, {"planId": "b7f0ad3d-3765-446a-a744-ab64ab8bf386", "planName": "arms_customer_agent_plan", "experimentType": "offline", "description": "", "status": "stopped", "datasetId": "arms_customer_agent_level1", "querySql": "where \\"input\\" LIKE \\"%probe%\\"", "experimentCount": 65, "createdAt": 1782310430000, "updatedAt": 1784692254000}]
44
+ * [{"planId": "exp-plan-e95bff54685a4ae29ff3a834c1008a71", "planName": "rca_benchmark_eval_experiment", "experimentType": "offline", "description": "", "status": "pending", "datasetId": "rca_benckmark_eval", "querySql": "", "experimentCount": 5, "createdAt": 1784612365000, "updatedAt": 1784619562000}, {"planId": "exp-plan-0242d983f5d340fd8479cf2c19eb279e", "planName": "arms_agent_experiment", "experimentType": "online", "description": "", "status": "stopped", "datasetId": "arms_customer_agent_level1", "querySql": "", "experimentCount": 4, "createdAt": 1784257858000, "updatedAt": 1784721811000}, {"planId": "b7f0ad3d-3765-446a-a744-ab64ab8bf386", "planName": "arms_customer_agent_plan", "experimentType": "offline", "description": "", "status": "stopped", "datasetId": "arms_customer_agent_level1", "querySql": "where \"input\" LIKE \"%probe%\"", "experimentCount": 65, "createdAt": 1782310430000, "updatedAt": 1784692254000}]
45
45
  */
46
46
  plans?: ExperimentPlanData[];
47
47
  /**
@@ -22,7 +22,7 @@ export class ListOptimizeTasksResponseBodyOptimizeTasks extends $dara.Model {
22
22
  * The type-specific configuration. For ExperienceMining and SkillOptimize, optional prompts support only inline Markdown, and the body is stored in inputs.prompt.content (non-empty UTF-8, up to 16 KiB).
23
23
  *
24
24
  * @example
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"}}
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"}}
26
26
  */
27
27
  config?: { [key: string]: any };
28
28
  /**
@@ -32,7 +32,7 @@ export class ListPipelineRunsResponseBodyRuns extends $dara.Model {
32
32
  * The error message.
33
33
  *
34
34
  * @example
35
- * Failed to evaluate filter expression in node \\"node-1\\": column \\"score\\" does not exist.
35
+ * Failed to evaluate filter expression in node \"node-1\": column \"score\" does not exist.
36
36
  */
37
37
  errorMessage?: string;
38
38
  /**
@@ -347,7 +347,7 @@ export class ListPipelinesResponseBodyPipelinesSinkConditionRoutes extends $dara
347
347
  * The route expression in Search Processing Language (SPL). Only where, project, and extend are supported.
348
348
  *
349
349
  * @example
350
- * * | where intent = \\"refund\\"
350
+ * * | where intent = \"refund\"
351
351
  */
352
352
  expression?: string;
353
353
  /**
@@ -545,7 +545,7 @@ export class ListPipelinesResponseBodyPipelinesSourceDataset extends $dara.Model
545
545
  * The data filter condition for the dataset.
546
546
  *
547
547
  * @example
548
- * status = \\"pending\\"
548
+ * status = \"pending\"
549
549
  */
550
550
  filter?: string;
551
551
  static names(): { [key: string]: string } {
@@ -743,7 +743,7 @@ export class ListPipelinesResponseBodyPipelinesSource extends $dara.Model {
743
743
  * The dataset datasource config in the current AgentSpace.
744
744
  *
745
745
  * @example
746
- * {"dataset":"my-dataset","filter":"status = \\"pending\\""}
746
+ * {"dataset":"my-dataset","filter":"status = \"pending\""}
747
747
  */
748
748
  dataset?: ListPipelinesResponseBodyPipelinesSourceDataset;
749
749
  /**
@@ -13,7 +13,7 @@ export class ListTagResourcesRequestTag extends $dara.Model {
13
13
  key?: string;
14
14
  /**
15
15
  * @remarks
16
- * The tag value.
16
+ * The tag value. If this parameter is omitted, the system matches resources that have the specified key. An empty string exactly matches an empty value. Null values are not allowed.
17
17
  *
18
18
  * @example
19
19
  * value1
@@ -45,7 +45,7 @@ export class ListTagResourcesRequestTag extends $dara.Model {
45
45
  export class ListTagResourcesRequest extends $dara.Model {
46
46
  /**
47
47
  * @remarks
48
- * The pagination token. An empty value indicates that no additional pages exist.
48
+ * The pagination token. If no next page exists, this value is empty.
49
49
  *
50
50
  * @example
51
51
  * eyJuZXh0IjoiNDAifQ==
@@ -71,7 +71,7 @@ export class ListTagResourcesRequest extends $dara.Model {
71
71
  resourceType?: string;
72
72
  /**
73
73
  * @remarks
74
- * The tag filter conditions. Multiple conditions are combined with the AND operator. At least one of resourceId and tag must be specified.
74
+ * The tag filter conditions. Multiple conditions are combined by using the AND operator. At least one of resourceId and tag must be specified.
75
75
  */
76
76
  tag?: ListTagResourcesRequestTag[];
77
77
  static names(): { [key: string]: string } {
@@ -29,7 +29,7 @@ export class ListTagResourcesResponseBodyTagResources extends $dara.Model {
29
29
  tagKey?: string;
30
30
  /**
31
31
  * @remarks
32
- * The tag value.
32
+ * The tag value. If this parameter is omitted, the system matches resources that have the specified key. An empty string exactly matches an empty value. Null values are not allowed.
33
33
  *
34
34
  * @example
35
35
  * value1
@@ -65,7 +65,7 @@ export class ListTagResourcesResponseBodyTagResources extends $dara.Model {
65
65
  export class ListTagResourcesResponseBody extends $dara.Model {
66
66
  /**
67
67
  * @remarks
68
- * The pagination token. An empty value indicates that no additional pages exist.
68
+ * The pagination token. If no next page exists, this value is empty.
69
69
  *
70
70
  * @example
71
71
  * eyJsYXN0SWQiOjEyMH0=
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class ListTagResourcesShrinkRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The pagination token. An empty value indicates that no additional pages exist.
8
+ * The pagination token. If no next page exists, this value is empty.
9
9
  *
10
10
  * @example
11
11
  * eyJuZXh0IjoiNDAifQ==
@@ -31,7 +31,7 @@ export class ListTagResourcesShrinkRequest extends $dara.Model {
31
31
  resourceType?: string;
32
32
  /**
33
33
  * @remarks
34
- * The tag filter conditions. Multiple conditions are combined with the AND operator. At least one of resourceId and tag must be specified.
34
+ * The tag filter conditions. Multiple conditions are combined by using the AND operator. At least one of resourceId and tag must be specified.
35
35
  */
36
36
  tagShrink?: string;
37
37
  static names(): { [key: string]: string } {
@@ -58,7 +58,7 @@ export class ModelParametersResponseFormat extends $dara.Model {
58
58
  * The JSON Schema constraint, which is required when the type is json_schema.
59
59
  *
60
60
  * @example
61
- * {"name":"answer","strict":true,"schema":"{\\"type\\":\\"object\\",\\"properties\\":{\\"answer\\":{\\"type\\":\\"string\\"}},\\"required\\":[\\"answer\\"]}"}
61
+ * {"name":"answer","strict":true,"schema":"{\"type\":\"object\",\"properties\":{\"answer\":{\"type\":\"string\"}},\"required\":[\"answer\"]}"}
62
62
  */
63
63
  jsonSchema?: ModelParametersResponseFormatJsonSchema;
64
64
  /**
@@ -173,7 +173,7 @@ export class ModelParameters extends $dara.Model {
173
173
  * The response content format, which defaults to text if not specified.
174
174
  *
175
175
  * @example
176
- * {"type":"json_schema","jsonSchema":{"name":"answer","strict":true,"schema":"{\\"type\\":\\"object\\",\\"properties\\":{\\"answer\\":{\\"type\\":\\"string\\"}},\\"required\\":[\\"answer\\"]}"}}
176
+ * {"type":"json_schema","jsonSchema":{"name":"answer","strict":true,"schema":"{\"type\":\"object\",\"properties\":{\"answer\":{\"type\":\"string\"}},\"required\":[\"answer\"]}"}}
177
177
  */
178
178
  responseFormat?: ModelParametersResponseFormat;
179
179
  /**
@@ -102,7 +102,7 @@ export class PreviewPipelineRequestSourceDataset extends $dara.Model {
102
102
  * The data filter condition for the dataset.
103
103
  *
104
104
  * @example
105
- * status = \\"pending\\"
105
+ * status = \"pending\"
106
106
  */
107
107
  filter?: string;
108
108
  static names(): { [key: string]: string } {
@@ -300,7 +300,7 @@ export class PreviewPipelineRequestSource extends $dara.Model {
300
300
  * The dataset datasource config in the current AgentSpace.
301
301
  *
302
302
  * @example
303
- * {"dataset":"my-dataset","filter":"status = \\"pending\\""}
303
+ * {"dataset":"my-dataset","filter":"status = \"pending\""}
304
304
  */
305
305
  dataset?: PreviewPipelineRequestSourceDataset;
306
306
  /**
@@ -221,7 +221,7 @@ export class PreviewPipelineResponseBody extends $dara.Model {
221
221
  * The collection of sample rows. This array of maps includes only the first N rows (up to 5 rows by default) and does not reflect the complete write plan.
222
222
  *
223
223
  * @example
224
- * [{\\"type\\": \\"saturation\\", \\"value\\": 0}, {\\"type\\": \\"load\\", \\"value\\": 0}, {\\"type\\": \\"latency\\", \\"value\\": 1}, {\\"type\\": \\"error\\", \\"value\\": 0}]
224
+ * [{\"type\": \"saturation\", \"value\": 0}, {\"type\": \"load\", \"value\": 0}, {\"type\": \"latency\", \"value\": 1}, {\"type\": \"error\", \"value\": 0}]
225
225
  */
226
226
  data?: { [key: string]: string }[];
227
227
  /**
@@ -78,7 +78,7 @@ export class SearchContextResponseBody extends $dara.Model {
78
78
  * The list of retrieval results, sorted by similarity in descending order. Each item contains contextId, context, metadata, score, rank, revision, strategyVersion, and strategyId.
79
79
  *
80
80
  * @example
81
- * [{"contextId":"01a1cf08-c368-7c83******","strategyId":"default","context":"The assistant recommends steamed seafood because it is fresh and not spicy, which aligns with the user\\"s preference for seafood and constraint against spicy food.","metadata":{"contextType":"memory","memoryType":"long","userId":"test_user_002","agentId":"95273000000000","appId":"mm_480d961******","runId":"jr-80ded1d6******","strategyId":"default","category":"recommendation","kind":"state","sourceKind":"api","sourceId":"addctx:75395808-cb81-54cd******","revision":1,"reviewStatus":"unreviewed","sourceState":"active","factKey":"assistant:recommendation:dish******","sessionId":"test_session_001"},"score":0.6617179,"rank":1,"revision":1,"strategyVersion":1}]
81
+ * [{"contextId":"01a1cf08-c368-7c83******","strategyId":"default","context":"The assistant recommends steamed seafood because it is fresh and not spicy, which aligns with the user\"s preference for seafood and constraint against spicy food.","metadata":{"contextType":"memory","memoryType":"long","userId":"test_user_002","agentId":"95273000000000","appId":"mm_480d961******","runId":"jr-80ded1d6******","strategyId":"default","category":"recommendation","kind":"state","sourceKind":"api","sourceId":"addctx:75395808-cb81-54cd******","revision":1,"reviewStatus":"unreviewed","sourceState":"active","factKey":"assistant:recommendation:dish******","sessionId":"test_session_001"},"score":0.6617179,"rank":1,"revision":1,"strategyVersion":1}]
82
82
  */
83
83
  results?: { [key: string]: any }[];
84
84
  /**
@@ -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,102 @@
2
2
  import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
+ export class UpdateEvaluatorRequestSkillsFiles 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 UpdateEvaluatorRequestSkills 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?: UpdateEvaluatorRequestSkillsFiles[];
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': UpdateEvaluatorRequestSkillsFiles },
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 UpdateEvaluatorRequest extends $dara.Model {
6
102
  /**
7
103
  * @remarks
@@ -19,6 +115,11 @@ export class UpdateEvaluatorRequest extends $dara.Model {
19
115
  * {"prompt":"Evaluate task completion more strictly"}
20
116
  */
21
117
  config?: { [key: string]: any };
118
+ /**
119
+ * @example
120
+ * true
121
+ */
122
+ createVersion?: boolean;
22
123
  /**
23
124
  * @remarks
24
125
  * The evaluator description.
@@ -43,6 +144,16 @@ export class UpdateEvaluatorRequest extends $dara.Model {
43
144
  * {"agentEvaluatorMode":"raw_prompt"}
44
145
  */
45
146
  properties?: { [key: string]: any };
147
+ /**
148
+ * @example
149
+ * [{"skillName":"fact-check","files":[{"name":"SKILL.md","content":"---\nname: fact-check\ndescription: 核对回答中的事实依据\n---\n逐项核对回答中的事实,并列出依据。"}]}]
150
+ */
151
+ skills?: UpdateEvaluatorRequestSkills[];
152
+ /**
153
+ * @example
154
+ * DRAFT
155
+ */
156
+ status?: string;
46
157
  /**
47
158
  * @remarks
48
159
  * The new version number. A new version is created when this parameter is specified.
@@ -71,9 +182,12 @@ export class UpdateEvaluatorRequest extends $dara.Model {
71
182
  return {
72
183
  annotations: 'annotations',
73
184
  config: 'config',
185
+ createVersion: 'createVersion',
74
186
  description: 'description',
75
187
  displayName: 'displayName',
76
188
  properties: 'properties',
189
+ skills: 'skills',
190
+ status: 'status',
77
191
  version: 'version',
78
192
  versionDescription: 'versionDescription',
79
193
  clientToken: 'clientToken',
@@ -84,9 +198,12 @@ export class UpdateEvaluatorRequest extends $dara.Model {
84
198
  return {
85
199
  annotations: { 'type': 'array', 'itemType': 'string' },
86
200
  config: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
201
+ createVersion: 'boolean',
87
202
  description: 'string',
88
203
  displayName: 'string',
89
204
  properties: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
205
+ skills: { 'type': 'array', 'itemType': UpdateEvaluatorRequestSkills },
206
+ status: 'string',
90
207
  version: 'string',
91
208
  versionDescription: 'string',
92
209
  clientToken: 'string',
@@ -103,6 +220,9 @@ export class UpdateEvaluatorRequest extends $dara.Model {
103
220
  if(this.properties) {
104
221
  $dara.Model.validateMap(this.properties);
105
222
  }
223
+ if(Array.isArray(this.skills)) {
224
+ $dara.Model.validateArray(this.skills);
225
+ }
106
226
  super.validate();
107
227
  }
108
228
 
@@ -91,6 +91,11 @@ export class UpdateEvaluatorSkillRequest 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. If specified, the content of the skill files is updated.
@@ -113,6 +118,7 @@ export class UpdateEvaluatorSkillRequest extends $dara.Model {
113
118
  description: 'description',
114
119
  displayName: 'displayName',
115
120
  enable: 'enable',
121
+ evaluatorVersion: 'evaluatorVersion',
116
122
  files: 'files',
117
123
  clientToken: 'clientToken',
118
124
  };
@@ -124,6 +130,7 @@ export class UpdateEvaluatorSkillRequest extends $dara.Model {
124
130
  description: 'string',
125
131
  displayName: 'string',
126
132
  enable: 'boolean',
133
+ evaluatorVersion: 'string',
127
134
  files: { 'type': 'array', 'itemType': UpdateEvaluatorSkillRequestFiles },
128
135
  clientToken: 'string',
129
136
  };