@alicloud/dms20250414 1.15.0 → 1.16.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 (124) hide show
  1. package/dist/client.d.ts +174 -10
  2. package/dist/client.js +528 -10
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateDataAgentAccuracyTestRequest.d.ts +117 -0
  5. package/dist/models/CreateDataAgentAccuracyTestRequest.js +82 -0
  6. package/dist/models/CreateDataAgentAccuracyTestRequest.js.map +1 -0
  7. package/dist/models/CreateDataAgentAccuracyTestResponse.d.ts +19 -0
  8. package/dist/models/CreateDataAgentAccuracyTestResponse.js +69 -0
  9. package/dist/models/CreateDataAgentAccuracyTestResponse.js.map +1 -0
  10. package/dist/models/CreateDataAgentAccuracyTestResponseBody.d.ts +73 -0
  11. package/dist/models/CreateDataAgentAccuracyTestResponseBody.js +88 -0
  12. package/dist/models/CreateDataAgentAccuracyTestResponseBody.js.map +1 -0
  13. package/dist/models/DeleteDataAgentAccuracyTestRequest.d.ts +45 -0
  14. package/dist/models/DeleteDataAgentAccuracyTestRequest.js +64 -0
  15. package/dist/models/DeleteDataAgentAccuracyTestRequest.js.map +1 -0
  16. package/dist/models/DeleteDataAgentAccuracyTestResponse.d.ts +19 -0
  17. package/dist/models/DeleteDataAgentAccuracyTestResponse.js +69 -0
  18. package/dist/models/DeleteDataAgentAccuracyTestResponse.js.map +1 -0
  19. package/dist/models/DeleteDataAgentAccuracyTestResponseBody.d.ts +48 -0
  20. package/dist/models/DeleteDataAgentAccuracyTestResponseBody.js +64 -0
  21. package/dist/models/DeleteDataAgentAccuracyTestResponseBody.js.map +1 -0
  22. package/dist/models/DescribeDataAgentSessionRequest.d.ts +1 -1
  23. package/dist/models/DescribeDataAgentSessionResponseBody.d.ts +20 -19
  24. package/dist/models/DescribeDataAgentSessionResponseBody.js.map +1 -1
  25. package/dist/models/ListDataAgentAccuracyTestInstancesRequest.d.ts +61 -0
  26. package/dist/models/ListDataAgentAccuracyTestInstancesRequest.js +68 -0
  27. package/dist/models/ListDataAgentAccuracyTestInstancesRequest.js.map +1 -0
  28. package/dist/models/ListDataAgentAccuracyTestInstancesResponse.d.ts +19 -0
  29. package/dist/models/ListDataAgentAccuracyTestInstancesResponse.js +69 -0
  30. package/dist/models/ListDataAgentAccuracyTestInstancesResponse.js.map +1 -0
  31. package/dist/models/ListDataAgentAccuracyTestInstancesResponseBody.d.ts +206 -0
  32. package/dist/models/ListDataAgentAccuracyTestInstancesResponseBody.js +122 -0
  33. package/dist/models/ListDataAgentAccuracyTestInstancesResponseBody.js.map +1 -0
  34. package/dist/models/ListDataAgentAccuracyTestResultsRequest.d.ts +93 -0
  35. package/dist/models/ListDataAgentAccuracyTestResultsRequest.js +76 -0
  36. package/dist/models/ListDataAgentAccuracyTestResultsRequest.js.map +1 -0
  37. package/dist/models/ListDataAgentAccuracyTestResultsResponse.d.ts +19 -0
  38. package/dist/models/ListDataAgentAccuracyTestResultsResponse.js +69 -0
  39. package/dist/models/ListDataAgentAccuracyTestResultsResponse.js.map +1 -0
  40. package/dist/models/ListDataAgentAccuracyTestResultsResponseBody.d.ts +234 -0
  41. package/dist/models/ListDataAgentAccuracyTestResultsResponseBody.js +146 -0
  42. package/dist/models/ListDataAgentAccuracyTestResultsResponseBody.js.map +1 -0
  43. package/dist/models/ListDataAgentAccuracyTestTasksRequest.d.ts +69 -0
  44. package/dist/models/ListDataAgentAccuracyTestTasksRequest.js +70 -0
  45. package/dist/models/ListDataAgentAccuracyTestTasksRequest.js.map +1 -0
  46. package/dist/models/ListDataAgentAccuracyTestTasksResponse.d.ts +19 -0
  47. package/dist/models/ListDataAgentAccuracyTestTasksResponse.js +69 -0
  48. package/dist/models/ListDataAgentAccuracyTestTasksResponse.js.map +1 -0
  49. package/dist/models/ListDataAgentAccuracyTestTasksResponseBody.d.ts +185 -0
  50. package/dist/models/ListDataAgentAccuracyTestTasksResponseBody.js +116 -0
  51. package/dist/models/ListDataAgentAccuracyTestTasksResponseBody.js.map +1 -0
  52. package/dist/models/SaveWorkspaceCodeRequest.d.ts +5 -5
  53. package/dist/models/SaveWorkspaceCodeResponseBody.d.ts +8 -8
  54. package/dist/models/SendChatMessageRequest.d.ts +38 -37
  55. package/dist/models/SendChatMessageRequest.js +10 -0
  56. package/dist/models/SendChatMessageRequest.js.map +1 -1
  57. package/dist/models/SendChatMessageResponseBody.d.ts +4 -4
  58. package/dist/models/SendChatMessageShrinkRequest.d.ts +16 -19
  59. package/dist/models/SendChatMessageShrinkRequest.js +2 -0
  60. package/dist/models/SendChatMessageShrinkRequest.js.map +1 -1
  61. package/dist/models/StartDataAgentAccuracyTestTaskRequest.d.ts +53 -0
  62. package/dist/models/StartDataAgentAccuracyTestTaskRequest.js +66 -0
  63. package/dist/models/StartDataAgentAccuracyTestTaskRequest.js.map +1 -0
  64. package/dist/models/StartDataAgentAccuracyTestTaskResponse.d.ts +19 -0
  65. package/dist/models/StartDataAgentAccuracyTestTaskResponse.js +69 -0
  66. package/dist/models/StartDataAgentAccuracyTestTaskResponse.js.map +1 -0
  67. package/dist/models/StartDataAgentAccuracyTestTaskResponseBody.d.ts +73 -0
  68. package/dist/models/StartDataAgentAccuracyTestTaskResponseBody.js +88 -0
  69. package/dist/models/StartDataAgentAccuracyTestTaskResponseBody.js.map +1 -0
  70. package/dist/models/StopDataAgentAccuracyTestTaskRequest.d.ts +37 -0
  71. package/dist/models/StopDataAgentAccuracyTestTaskRequest.js +62 -0
  72. package/dist/models/StopDataAgentAccuracyTestTaskRequest.js.map +1 -0
  73. package/dist/models/StopDataAgentAccuracyTestTaskResponse.d.ts +19 -0
  74. package/dist/models/StopDataAgentAccuracyTestTaskResponse.js +69 -0
  75. package/dist/models/StopDataAgentAccuracyTestTaskResponse.js.map +1 -0
  76. package/dist/models/StopDataAgentAccuracyTestTaskResponseBody.d.ts +48 -0
  77. package/dist/models/StopDataAgentAccuracyTestTaskResponseBody.js +64 -0
  78. package/dist/models/StopDataAgentAccuracyTestTaskResponseBody.js.map +1 -0
  79. package/dist/models/UpdateDataAgentAccuracyTestRequest.d.ts +117 -0
  80. package/dist/models/UpdateDataAgentAccuracyTestRequest.js +82 -0
  81. package/dist/models/UpdateDataAgentAccuracyTestRequest.js.map +1 -0
  82. package/dist/models/UpdateDataAgentAccuracyTestResponse.d.ts +19 -0
  83. package/dist/models/UpdateDataAgentAccuracyTestResponse.js +69 -0
  84. package/dist/models/UpdateDataAgentAccuracyTestResponse.js.map +1 -0
  85. package/dist/models/UpdateDataAgentAccuracyTestResponseBody.d.ts +121 -0
  86. package/dist/models/UpdateDataAgentAccuracyTestResponseBody.js +100 -0
  87. package/dist/models/UpdateDataAgentAccuracyTestResponseBody.js.map +1 -0
  88. package/dist/models/model.d.ts +31 -0
  89. package/dist/models/model.js +72 -9
  90. package/dist/models/model.js.map +1 -1
  91. package/package.json +1 -1
  92. package/src/client.ts +606 -10
  93. package/src/models/CreateDataAgentAccuracyTestRequest.ts +154 -0
  94. package/src/models/CreateDataAgentAccuracyTestResponse.ts +40 -0
  95. package/src/models/CreateDataAgentAccuracyTestResponseBody.ts +107 -0
  96. package/src/models/DeleteDataAgentAccuracyTestRequest.ts +64 -0
  97. package/src/models/DeleteDataAgentAccuracyTestResponse.ts +40 -0
  98. package/src/models/DeleteDataAgentAccuracyTestResponseBody.ts +67 -0
  99. package/src/models/DescribeDataAgentSessionRequest.ts +1 -1
  100. package/src/models/DescribeDataAgentSessionResponseBody.ts +20 -19
  101. package/src/models/ListDataAgentAccuracyTestInstancesRequest.ts +84 -0
  102. package/src/models/ListDataAgentAccuracyTestInstancesResponse.ts +40 -0
  103. package/src/models/ListDataAgentAccuracyTestInstancesResponseBody.ts +274 -0
  104. package/src/models/ListDataAgentAccuracyTestResultsRequest.ts +124 -0
  105. package/src/models/ListDataAgentAccuracyTestResultsResponse.ts +40 -0
  106. package/src/models/ListDataAgentAccuracyTestResultsResponseBody.ts +317 -0
  107. package/src/models/ListDataAgentAccuracyTestTasksRequest.ts +94 -0
  108. package/src/models/ListDataAgentAccuracyTestTasksResponse.ts +40 -0
  109. package/src/models/ListDataAgentAccuracyTestTasksResponseBody.ts +247 -0
  110. package/src/models/SaveWorkspaceCodeRequest.ts +5 -5
  111. package/src/models/SaveWorkspaceCodeResponseBody.ts +8 -8
  112. package/src/models/SendChatMessageRequest.ts +49 -38
  113. package/src/models/SendChatMessageResponseBody.ts +4 -4
  114. package/src/models/SendChatMessageShrinkRequest.ts +19 -20
  115. package/src/models/StartDataAgentAccuracyTestTaskRequest.ts +74 -0
  116. package/src/models/StartDataAgentAccuracyTestTaskResponse.ts +40 -0
  117. package/src/models/StartDataAgentAccuracyTestTaskResponseBody.ts +107 -0
  118. package/src/models/StopDataAgentAccuracyTestTaskRequest.ts +54 -0
  119. package/src/models/StopDataAgentAccuracyTestTaskResponse.ts +40 -0
  120. package/src/models/StopDataAgentAccuracyTestTaskResponseBody.ts +67 -0
  121. package/src/models/UpdateDataAgentAccuracyTestRequest.ts +154 -0
  122. package/src/models/UpdateDataAgentAccuracyTestResponse.ts +40 -0
  123. package/src/models/UpdateDataAgentAccuracyTestResponseBody.ts +167 -0
  124. package/src/models/model.ts +31 -0
package/dist/client.js CHANGED
@@ -618,6 +618,81 @@ class Client extends openapi_core_1.default {
618
618
  let runtime = new $dara.RuntimeOptions({});
619
619
  return await this.createCustomAgentWithOptions(request, runtime);
620
620
  }
621
+ /**
622
+ * Creates an accuracy test instance.
623
+ *
624
+ * @param request - CreateDataAgentAccuracyTestRequest
625
+ * @param runtime - runtime options for this request RuntimeOptions
626
+ * @returns CreateDataAgentAccuracyTestResponse
627
+ */
628
+ async createDataAgentAccuracyTestWithOptions(request, runtime) {
629
+ request.validate();
630
+ let query = {};
631
+ if (!$dara.isNull(request.customAgentId)) {
632
+ query["CustomAgentId"] = request.customAgentId;
633
+ }
634
+ if (!$dara.isNull(request.dataset)) {
635
+ query["Dataset"] = request.dataset;
636
+ }
637
+ if (!$dara.isNull(request.desc)) {
638
+ query["Desc"] = request.desc;
639
+ }
640
+ if (!$dara.isNull(request.dmsUnit)) {
641
+ query["DmsUnit"] = request.dmsUnit;
642
+ }
643
+ if (!$dara.isNull(request.evaluationPrompt)) {
644
+ query["EvaluationPrompt"] = request.evaluationPrompt;
645
+ }
646
+ if (!$dara.isNull(request.fileId)) {
647
+ query["FileId"] = request.fileId;
648
+ }
649
+ if (!$dara.isNull(request.language)) {
650
+ query["Language"] = request.language;
651
+ }
652
+ if (!$dara.isNull(request.maxConcurrent)) {
653
+ query["MaxConcurrent"] = request.maxConcurrent;
654
+ }
655
+ if (!$dara.isNull(request.mode)) {
656
+ query["Mode"] = request.mode;
657
+ }
658
+ if (!$dara.isNull(request.name)) {
659
+ query["Name"] = request.name;
660
+ }
661
+ if (!$dara.isNull(request.needDelete)) {
662
+ query["NeedDelete"] = request.needDelete;
663
+ }
664
+ if (!$dara.isNull(request.regionId)) {
665
+ query["RegionId"] = request.regionId;
666
+ }
667
+ if (!$dara.isNull(request.workspaceId)) {
668
+ query["WorkspaceId"] = request.workspaceId;
669
+ }
670
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
671
+ query: openapi_core_2.OpenApiUtil.query(query),
672
+ });
673
+ let params = new openapi_core_2.$OpenApiUtil.Params({
674
+ action: "CreateDataAgentAccuracyTest",
675
+ version: "2025-04-14",
676
+ protocol: "HTTPS",
677
+ pathname: "/",
678
+ method: "POST",
679
+ authType: "AK",
680
+ style: "RPC",
681
+ reqBodyType: "formData",
682
+ bodyType: "json",
683
+ });
684
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateDataAgentAccuracyTestResponse({}));
685
+ }
686
+ /**
687
+ * Creates an accuracy test instance.
688
+ *
689
+ * @param request - CreateDataAgentAccuracyTestRequest
690
+ * @returns CreateDataAgentAccuracyTestResponse
691
+ */
692
+ async createDataAgentAccuracyTest(request) {
693
+ let runtime = new $dara.RuntimeOptions({});
694
+ return await this.createDataAgentAccuracyTestWithOptions(request, runtime);
695
+ }
621
696
  /**
622
697
  * Creates a DataAgent knowledge base. The knowledge base creator has read and write permissions. Other workspace members have permission to use it.
623
698
  *
@@ -1105,6 +1180,60 @@ class Client extends openapi_core_1.default {
1105
1180
  let runtime = new $dara.RuntimeOptions({});
1106
1181
  return await this.deleteCustomAgentWithOptions(request, runtime);
1107
1182
  }
1183
+ /**
1184
+ * Deletes an accuracy test configuration item.
1185
+ *
1186
+ * @remarks
1187
+ * Deletes an accuracy test item.
1188
+ *
1189
+ * @param request - DeleteDataAgentAccuracyTestRequest
1190
+ * @param runtime - runtime options for this request RuntimeOptions
1191
+ * @returns DeleteDataAgentAccuracyTestResponse
1192
+ */
1193
+ async deleteDataAgentAccuracyTestWithOptions(request, runtime) {
1194
+ request.validate();
1195
+ let query = {};
1196
+ if (!$dara.isNull(request.accuracyTestInsId)) {
1197
+ query["AccuracyTestInsId"] = request.accuracyTestInsId;
1198
+ }
1199
+ if (!$dara.isNull(request.dmsUnit)) {
1200
+ query["DmsUnit"] = request.dmsUnit;
1201
+ }
1202
+ if (!$dara.isNull(request.regionId)) {
1203
+ query["RegionId"] = request.regionId;
1204
+ }
1205
+ if (!$dara.isNull(request.workspaceId)) {
1206
+ query["WorkspaceId"] = request.workspaceId;
1207
+ }
1208
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1209
+ query: openapi_core_2.OpenApiUtil.query(query),
1210
+ });
1211
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1212
+ action: "DeleteDataAgentAccuracyTest",
1213
+ version: "2025-04-14",
1214
+ protocol: "HTTPS",
1215
+ pathname: "/",
1216
+ method: "POST",
1217
+ authType: "AK",
1218
+ style: "RPC",
1219
+ reqBodyType: "formData",
1220
+ bodyType: "json",
1221
+ });
1222
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteDataAgentAccuracyTestResponse({}));
1223
+ }
1224
+ /**
1225
+ * Deletes an accuracy test configuration item.
1226
+ *
1227
+ * @remarks
1228
+ * Deletes an accuracy test item.
1229
+ *
1230
+ * @param request - DeleteDataAgentAccuracyTestRequest
1231
+ * @returns DeleteDataAgentAccuracyTestResponse
1232
+ */
1233
+ async deleteDataAgentAccuracyTest(request) {
1234
+ let runtime = new $dara.RuntimeOptions({});
1235
+ return await this.deleteDataAgentAccuracyTestWithOptions(request, runtime);
1236
+ }
1108
1237
  /**
1109
1238
  * Deletes a DataAgent knowledge base.
1110
1239
  *
@@ -2855,6 +2984,203 @@ class Client extends openapi_core_1.default {
2855
2984
  let runtime = new $dara.RuntimeOptions({});
2856
2985
  return await this.listCustomAgentWithOptions(request, runtime);
2857
2986
  }
2987
+ /**
2988
+ * Lists accuracy test configuration items that meet the specified conditions.
2989
+ *
2990
+ * @remarks
2991
+ * Lists accuracy test configuration items that meet the specified conditions.
2992
+ *
2993
+ * @param request - ListDataAgentAccuracyTestInstancesRequest
2994
+ * @param runtime - runtime options for this request RuntimeOptions
2995
+ * @returns ListDataAgentAccuracyTestInstancesResponse
2996
+ */
2997
+ async listDataAgentAccuracyTestInstancesWithOptions(request, runtime) {
2998
+ request.validate();
2999
+ let query = {};
3000
+ if (!$dara.isNull(request.accuracyTestInsId)) {
3001
+ query["AccuracyTestInsId"] = request.accuracyTestInsId;
3002
+ }
3003
+ if (!$dara.isNull(request.maxResults)) {
3004
+ query["MaxResults"] = request.maxResults;
3005
+ }
3006
+ if (!$dara.isNull(request.nextToken)) {
3007
+ query["NextToken"] = request.nextToken;
3008
+ }
3009
+ if (!$dara.isNull(request.pageNumber)) {
3010
+ query["PageNumber"] = request.pageNumber;
3011
+ }
3012
+ if (!$dara.isNull(request.pageSize)) {
3013
+ query["PageSize"] = request.pageSize;
3014
+ }
3015
+ if (!$dara.isNull(request.workspaceId)) {
3016
+ query["WorkspaceId"] = request.workspaceId;
3017
+ }
3018
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3019
+ query: openapi_core_2.OpenApiUtil.query(query),
3020
+ });
3021
+ let params = new openapi_core_2.$OpenApiUtil.Params({
3022
+ action: "ListDataAgentAccuracyTestInstances",
3023
+ version: "2025-04-14",
3024
+ protocol: "HTTPS",
3025
+ pathname: "/",
3026
+ method: "POST",
3027
+ authType: "AK",
3028
+ style: "RPC",
3029
+ reqBodyType: "formData",
3030
+ bodyType: "json",
3031
+ });
3032
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListDataAgentAccuracyTestInstancesResponse({}));
3033
+ }
3034
+ /**
3035
+ * Lists accuracy test configuration items that meet the specified conditions.
3036
+ *
3037
+ * @remarks
3038
+ * Lists accuracy test configuration items that meet the specified conditions.
3039
+ *
3040
+ * @param request - ListDataAgentAccuracyTestInstancesRequest
3041
+ * @returns ListDataAgentAccuracyTestInstancesResponse
3042
+ */
3043
+ async listDataAgentAccuracyTestInstances(request) {
3044
+ let runtime = new $dara.RuntimeOptions({});
3045
+ return await this.listDataAgentAccuracyTestInstancesWithOptions(request, runtime);
3046
+ }
3047
+ /**
3048
+ * Retrieves the execution results of a self-test task.
3049
+ *
3050
+ * @remarks
3051
+ * Retrieves the execution results of a self-test task.
3052
+ *
3053
+ * @param request - ListDataAgentAccuracyTestResultsRequest
3054
+ * @param runtime - runtime options for this request RuntimeOptions
3055
+ * @returns ListDataAgentAccuracyTestResultsResponse
3056
+ */
3057
+ async listDataAgentAccuracyTestResultsWithOptions(request, runtime) {
3058
+ request.validate();
3059
+ let query = {};
3060
+ if (!$dara.isNull(request.accuracyTestInsId)) {
3061
+ query["AccuracyTestInsId"] = request.accuracyTestInsId;
3062
+ }
3063
+ if (!$dara.isNull(request.accuracyTestResultId)) {
3064
+ query["AccuracyTestResultId"] = request.accuracyTestResultId;
3065
+ }
3066
+ if (!$dara.isNull(request.accuracyTestSubtaskId)) {
3067
+ query["AccuracyTestSubtaskId"] = request.accuracyTestSubtaskId;
3068
+ }
3069
+ if (!$dara.isNull(request.accuracyTestTaskId)) {
3070
+ query["AccuracyTestTaskId"] = request.accuracyTestTaskId;
3071
+ }
3072
+ if (!$dara.isNull(request.maxResults)) {
3073
+ query["MaxResults"] = request.maxResults;
3074
+ }
3075
+ if (!$dara.isNull(request.nextToken)) {
3076
+ query["NextToken"] = request.nextToken;
3077
+ }
3078
+ if (!$dara.isNull(request.pageNumber)) {
3079
+ query["PageNumber"] = request.pageNumber;
3080
+ }
3081
+ if (!$dara.isNull(request.pageSize)) {
3082
+ query["PageSize"] = request.pageSize;
3083
+ }
3084
+ if (!$dara.isNull(request.regionId)) {
3085
+ query["RegionId"] = request.regionId;
3086
+ }
3087
+ if (!$dara.isNull(request.workspaceId)) {
3088
+ query["WorkspaceId"] = request.workspaceId;
3089
+ }
3090
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3091
+ query: openapi_core_2.OpenApiUtil.query(query),
3092
+ });
3093
+ let params = new openapi_core_2.$OpenApiUtil.Params({
3094
+ action: "ListDataAgentAccuracyTestResults",
3095
+ version: "2025-04-14",
3096
+ protocol: "HTTPS",
3097
+ pathname: "/",
3098
+ method: "POST",
3099
+ authType: "AK",
3100
+ style: "RPC",
3101
+ reqBodyType: "formData",
3102
+ bodyType: "json",
3103
+ });
3104
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListDataAgentAccuracyTestResultsResponse({}));
3105
+ }
3106
+ /**
3107
+ * Retrieves the execution results of a self-test task.
3108
+ *
3109
+ * @remarks
3110
+ * Retrieves the execution results of a self-test task.
3111
+ *
3112
+ * @param request - ListDataAgentAccuracyTestResultsRequest
3113
+ * @returns ListDataAgentAccuracyTestResultsResponse
3114
+ */
3115
+ async listDataAgentAccuracyTestResults(request) {
3116
+ let runtime = new $dara.RuntimeOptions({});
3117
+ return await this.listDataAgentAccuracyTestResultsWithOptions(request, runtime);
3118
+ }
3119
+ /**
3120
+ * Queries the running status of self-test tasks by paging.
3121
+ *
3122
+ * @remarks
3123
+ * Queries the running status of self-test tasks by paging.
3124
+ * If AccuracyTestInsId or AccuracyTestTaskId is empty, all test tasks are queried.
3125
+ *
3126
+ * @param request - ListDataAgentAccuracyTestTasksRequest
3127
+ * @param runtime - runtime options for this request RuntimeOptions
3128
+ * @returns ListDataAgentAccuracyTestTasksResponse
3129
+ */
3130
+ async listDataAgentAccuracyTestTasksWithOptions(request, runtime) {
3131
+ request.validate();
3132
+ let query = {};
3133
+ if (!$dara.isNull(request.accuracyTestInsId)) {
3134
+ query["AccuracyTestInsId"] = request.accuracyTestInsId;
3135
+ }
3136
+ if (!$dara.isNull(request.accuracyTestTaskId)) {
3137
+ query["AccuracyTestTaskId"] = request.accuracyTestTaskId;
3138
+ }
3139
+ if (!$dara.isNull(request.maxResults)) {
3140
+ query["MaxResults"] = request.maxResults;
3141
+ }
3142
+ if (!$dara.isNull(request.nextToken)) {
3143
+ query["NextToken"] = request.nextToken;
3144
+ }
3145
+ if (!$dara.isNull(request.pageNumber)) {
3146
+ query["PageNumber"] = request.pageNumber;
3147
+ }
3148
+ if (!$dara.isNull(request.pageSize)) {
3149
+ query["PageSize"] = request.pageSize;
3150
+ }
3151
+ if (!$dara.isNull(request.workspaceId)) {
3152
+ query["WorkspaceId"] = request.workspaceId;
3153
+ }
3154
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3155
+ query: openapi_core_2.OpenApiUtil.query(query),
3156
+ });
3157
+ let params = new openapi_core_2.$OpenApiUtil.Params({
3158
+ action: "ListDataAgentAccuracyTestTasks",
3159
+ version: "2025-04-14",
3160
+ protocol: "HTTPS",
3161
+ pathname: "/",
3162
+ method: "POST",
3163
+ authType: "AK",
3164
+ style: "RPC",
3165
+ reqBodyType: "formData",
3166
+ bodyType: "json",
3167
+ });
3168
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListDataAgentAccuracyTestTasksResponse({}));
3169
+ }
3170
+ /**
3171
+ * Queries the running status of self-test tasks by paging.
3172
+ *
3173
+ * @remarks
3174
+ * Queries the running status of self-test tasks by paging.
3175
+ * If AccuracyTestInsId or AccuracyTestTaskId is empty, all test tasks are queried.
3176
+ *
3177
+ * @param request - ListDataAgentAccuracyTestTasksRequest
3178
+ * @returns ListDataAgentAccuracyTestTasksResponse
3179
+ */
3180
+ async listDataAgentAccuracyTestTasks(request) {
3181
+ let runtime = new $dara.RuntimeOptions({});
3182
+ return await this.listDataAgentAccuracyTestTasksWithOptions(request, runtime);
3183
+ }
2858
3184
  /**
2859
3185
  * Retrieves the list of historical session descriptions for a Data Agent.
2860
3186
  *
@@ -4337,7 +4663,7 @@ class Client extends openapi_core_1.default {
4337
4663
  * Saves workspace code. If the file does not exist, a new file is automatically created.
4338
4664
  *
4339
4665
  * @remarks
4340
- * 发布工作空间的代码
4666
+ * Publishes workspace code.
4341
4667
  *
4342
4668
  * @param request - SaveWorkspaceCodeRequest
4343
4669
  * @param runtime - runtime options for this request RuntimeOptions
@@ -4389,7 +4715,7 @@ class Client extends openapi_core_1.default {
4389
4715
  * Saves workspace code. If the file does not exist, a new file is automatically created.
4390
4716
  *
4391
4717
  * @remarks
4392
- * 发布工作空间的代码
4718
+ * Publishes workspace code.
4393
4719
  *
4394
4720
  * @param request - SaveWorkspaceCodeRequest
4395
4721
  * @returns SaveWorkspaceCodeResponse
@@ -4399,16 +4725,16 @@ class Client extends openapi_core_1.default {
4399
4725
  return await this.saveWorkspaceCodeWithOptions(request, runtime);
4400
4726
  }
4401
4727
  /**
4402
- * Send a user message to a specified session or cancel the session.
4728
+ * Sends a user message to a specified session or cancels a session.
4403
4729
  *
4404
4730
  * @remarks
4405
4731
  * ## Request description
4406
4732
  * - `agent_id` and `session_id` are required fields.
4407
- * - `message_type` defaults to `primary`. When you need to append information or cancel a session, set it to `additional` or `cancel`.
4733
+ * - `message_type` defaults to `primary`. Set it to `additional` or `cancel` when you need to append information or cancel a session.
4408
4734
  * - The `reply_to` field indicates which Agent message this message is responding to. The default value is `0`.
4409
4735
  * - When `message_type` is `additional`, the `question` field is required.
4410
- * - `quoted_message` can be used to quote the content of the user\\"s previous message.
4411
- * - Fields such as `data_source`, `dms_user`, `db_metadata`, and `session_config` are all optional, but provide more detailed context information.
4736
+ * - `quoted_message` can be used to quote the content of a previous user message.
4737
+ * - The `data_source`, `dms_user`, `db_metadata`, and `session_config` fields are optional but provide more detailed context information.
4412
4738
  *
4413
4739
  * @param tmpReq - SendChatMessageRequest
4414
4740
  * @param runtime - runtime options for this request RuntimeOptions
@@ -4470,6 +4796,9 @@ class Client extends openapi_core_1.default {
4470
4796
  if (!$dara.isNull(request.taskConfigShrink)) {
4471
4797
  query["TaskConfig"] = request.taskConfigShrink;
4472
4798
  }
4799
+ if (!$dara.isNull(request.userOssBucket)) {
4800
+ query["UserOssBucket"] = request.userOssBucket;
4801
+ }
4473
4802
  if (!$dara.isNull(request.workspaceId)) {
4474
4803
  query["WorkspaceId"] = request.workspaceId;
4475
4804
  }
@@ -4490,16 +4819,16 @@ class Client extends openapi_core_1.default {
4490
4819
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.SendChatMessageResponse({}));
4491
4820
  }
4492
4821
  /**
4493
- * Send a user message to a specified session or cancel the session.
4822
+ * Sends a user message to a specified session or cancels a session.
4494
4823
  *
4495
4824
  * @remarks
4496
4825
  * ## Request description
4497
4826
  * - `agent_id` and `session_id` are required fields.
4498
- * - `message_type` defaults to `primary`. When you need to append information or cancel a session, set it to `additional` or `cancel`.
4827
+ * - `message_type` defaults to `primary`. Set it to `additional` or `cancel` when you need to append information or cancel a session.
4499
4828
  * - The `reply_to` field indicates which Agent message this message is responding to. The default value is `0`.
4500
4829
  * - When `message_type` is `additional`, the `question` field is required.
4501
- * - `quoted_message` can be used to quote the content of the user\\"s previous message.
4502
- * - Fields such as `data_source`, `dms_user`, `db_metadata`, and `session_config` are all optional, but provide more detailed context information.
4830
+ * - `quoted_message` can be used to quote the content of a previous user message.
4831
+ * - The `data_source`, `dms_user`, `db_metadata`, and `session_config` fields are optional but provide more detailed context information.
4503
4832
  *
4504
4833
  * @param request - SendChatMessageRequest
4505
4834
  * @returns SendChatMessageResponse
@@ -4615,6 +4944,114 @@ class Client extends openapi_core_1.default {
4615
4944
  let runtime = new $dara.RuntimeOptions({});
4616
4945
  return await this.setWorkspaceQuotaWithOptions(request, runtime);
4617
4946
  }
4947
+ /**
4948
+ * Initiates an accuracy self-test task.
4949
+ *
4950
+ * @remarks
4951
+ * Initiates an accuracy self-test task.
4952
+ *
4953
+ * @param request - StartDataAgentAccuracyTestTaskRequest
4954
+ * @param runtime - runtime options for this request RuntimeOptions
4955
+ * @returns StartDataAgentAccuracyTestTaskResponse
4956
+ */
4957
+ async startDataAgentAccuracyTestTaskWithOptions(request, runtime) {
4958
+ request.validate();
4959
+ let query = {};
4960
+ if (!$dara.isNull(request.accuracyTestInsId)) {
4961
+ query["AccuracyTestInsId"] = request.accuracyTestInsId;
4962
+ }
4963
+ if (!$dara.isNull(request.csvFile)) {
4964
+ query["CsvFile"] = request.csvFile;
4965
+ }
4966
+ if (!$dara.isNull(request.dmsUnit)) {
4967
+ query["DmsUnit"] = request.dmsUnit;
4968
+ }
4969
+ if (!$dara.isNull(request.regionId)) {
4970
+ query["RegionId"] = request.regionId;
4971
+ }
4972
+ if (!$dara.isNull(request.workspaceId)) {
4973
+ query["WorkspaceId"] = request.workspaceId;
4974
+ }
4975
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
4976
+ query: openapi_core_2.OpenApiUtil.query(query),
4977
+ });
4978
+ let params = new openapi_core_2.$OpenApiUtil.Params({
4979
+ action: "StartDataAgentAccuracyTestTask",
4980
+ version: "2025-04-14",
4981
+ protocol: "HTTPS",
4982
+ pathname: "/",
4983
+ method: "POST",
4984
+ authType: "AK",
4985
+ style: "RPC",
4986
+ reqBodyType: "formData",
4987
+ bodyType: "json",
4988
+ });
4989
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.StartDataAgentAccuracyTestTaskResponse({}));
4990
+ }
4991
+ /**
4992
+ * Initiates an accuracy self-test task.
4993
+ *
4994
+ * @remarks
4995
+ * Initiates an accuracy self-test task.
4996
+ *
4997
+ * @param request - StartDataAgentAccuracyTestTaskRequest
4998
+ * @returns StartDataAgentAccuracyTestTaskResponse
4999
+ */
5000
+ async startDataAgentAccuracyTestTask(request) {
5001
+ let runtime = new $dara.RuntimeOptions({});
5002
+ return await this.startDataAgentAccuracyTestTaskWithOptions(request, runtime);
5003
+ }
5004
+ /**
5005
+ * Stops an accuracy self-test task.
5006
+ *
5007
+ * @remarks
5008
+ * Stops an accuracy self-test task.
5009
+ *
5010
+ * @param request - StopDataAgentAccuracyTestTaskRequest
5011
+ * @param runtime - runtime options for this request RuntimeOptions
5012
+ * @returns StopDataAgentAccuracyTestTaskResponse
5013
+ */
5014
+ async stopDataAgentAccuracyTestTaskWithOptions(request, runtime) {
5015
+ request.validate();
5016
+ let query = {};
5017
+ if (!$dara.isNull(request.accuracyTestTaskId)) {
5018
+ query["AccuracyTestTaskId"] = request.accuracyTestTaskId;
5019
+ }
5020
+ if (!$dara.isNull(request.regionId)) {
5021
+ query["RegionId"] = request.regionId;
5022
+ }
5023
+ if (!$dara.isNull(request.workspaceId)) {
5024
+ query["WorkspaceId"] = request.workspaceId;
5025
+ }
5026
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
5027
+ query: openapi_core_2.OpenApiUtil.query(query),
5028
+ });
5029
+ let params = new openapi_core_2.$OpenApiUtil.Params({
5030
+ action: "StopDataAgentAccuracyTestTask",
5031
+ version: "2025-04-14",
5032
+ protocol: "HTTPS",
5033
+ pathname: "/",
5034
+ method: "POST",
5035
+ authType: "AK",
5036
+ style: "RPC",
5037
+ reqBodyType: "formData",
5038
+ bodyType: "json",
5039
+ });
5040
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.StopDataAgentAccuracyTestTaskResponse({}));
5041
+ }
5042
+ /**
5043
+ * Stops an accuracy self-test task.
5044
+ *
5045
+ * @remarks
5046
+ * Stops an accuracy self-test task.
5047
+ *
5048
+ * @param request - StopDataAgentAccuracyTestTaskRequest
5049
+ * @returns StopDataAgentAccuracyTestTaskResponse
5050
+ */
5051
+ async stopDataAgentAccuracyTestTask(request) {
5052
+ let runtime = new $dara.RuntimeOptions({});
5053
+ return await this.stopDataAgentAccuracyTestTaskWithOptions(request, runtime);
5054
+ }
4618
5055
  /**
4619
5056
  * Updates the properties of an Airflow instance.
4620
5057
  *
@@ -4698,6 +5135,87 @@ class Client extends openapi_core_1.default {
4698
5135
  let runtime = new $dara.RuntimeOptions({});
4699
5136
  return await this.updateAirflowWithOptions(request, runtime);
4700
5137
  }
5138
+ /**
5139
+ * Updates the content of an accuracy test item.
5140
+ *
5141
+ * @remarks
5142
+ * Updates the content of an accuracy test item.
5143
+ *
5144
+ * @param request - UpdateDataAgentAccuracyTestRequest
5145
+ * @param runtime - runtime options for this request RuntimeOptions
5146
+ * @returns UpdateDataAgentAccuracyTestResponse
5147
+ */
5148
+ async updateDataAgentAccuracyTestWithOptions(request, runtime) {
5149
+ request.validate();
5150
+ let query = {};
5151
+ if (!$dara.isNull(request.accuracyTestInsId)) {
5152
+ query["AccuracyTestInsId"] = request.accuracyTestInsId;
5153
+ }
5154
+ if (!$dara.isNull(request.customerAgentId)) {
5155
+ query["CustomerAgentId"] = request.customerAgentId;
5156
+ }
5157
+ if (!$dara.isNull(request.dataset)) {
5158
+ query["Dataset"] = request.dataset;
5159
+ }
5160
+ if (!$dara.isNull(request.desc)) {
5161
+ query["Desc"] = request.desc;
5162
+ }
5163
+ if (!$dara.isNull(request.dmsUnit)) {
5164
+ query["DmsUnit"] = request.dmsUnit;
5165
+ }
5166
+ if (!$dara.isNull(request.evaluationPrompt)) {
5167
+ query["EvaluationPrompt"] = request.evaluationPrompt;
5168
+ }
5169
+ if (!$dara.isNull(request.fileId)) {
5170
+ query["FileId"] = request.fileId;
5171
+ }
5172
+ if (!$dara.isNull(request.maxConcurrent)) {
5173
+ query["MaxConcurrent"] = request.maxConcurrent;
5174
+ }
5175
+ if (!$dara.isNull(request.mode)) {
5176
+ query["Mode"] = request.mode;
5177
+ }
5178
+ if (!$dara.isNull(request.name)) {
5179
+ query["Name"] = request.name;
5180
+ }
5181
+ if (!$dara.isNull(request.needDelete)) {
5182
+ query["NeedDelete"] = request.needDelete;
5183
+ }
5184
+ if (!$dara.isNull(request.regionId)) {
5185
+ query["RegionId"] = request.regionId;
5186
+ }
5187
+ if (!$dara.isNull(request.workspaceId)) {
5188
+ query["WorkspaceId"] = request.workspaceId;
5189
+ }
5190
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
5191
+ query: openapi_core_2.OpenApiUtil.query(query),
5192
+ });
5193
+ let params = new openapi_core_2.$OpenApiUtil.Params({
5194
+ action: "UpdateDataAgentAccuracyTest",
5195
+ version: "2025-04-14",
5196
+ protocol: "HTTPS",
5197
+ pathname: "/",
5198
+ method: "POST",
5199
+ authType: "AK",
5200
+ style: "RPC",
5201
+ reqBodyType: "formData",
5202
+ bodyType: "json",
5203
+ });
5204
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateDataAgentAccuracyTestResponse({}));
5205
+ }
5206
+ /**
5207
+ * Updates the content of an accuracy test item.
5208
+ *
5209
+ * @remarks
5210
+ * Updates the content of an accuracy test item.
5211
+ *
5212
+ * @param request - UpdateDataAgentAccuracyTestRequest
5213
+ * @returns UpdateDataAgentAccuracyTestResponse
5214
+ */
5215
+ async updateDataAgentAccuracyTest(request) {
5216
+ let runtime = new $dara.RuntimeOptions({});
5217
+ return await this.updateDataAgentAccuracyTestWithOptions(request, runtime);
5218
+ }
4701
5219
  /**
4702
5220
  * Updates workspace information.
4703
5221
  *