@alicloud/dms20250414 1.14.3 → 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 (157) hide show
  1. package/dist/client.d.ts +201 -22
  2. package/dist/client.js +606 -22
  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/DataAgentBillingInstance.d.ts +28 -0
  14. package/dist/models/DataAgentBillingInstance.js +89 -0
  15. package/dist/models/DataAgentBillingInstance.js.map +1 -0
  16. package/dist/models/DeleteDataAgentAccuracyTestRequest.d.ts +45 -0
  17. package/dist/models/DeleteDataAgentAccuracyTestRequest.js +64 -0
  18. package/dist/models/DeleteDataAgentAccuracyTestRequest.js.map +1 -0
  19. package/dist/models/DeleteDataAgentAccuracyTestResponse.d.ts +19 -0
  20. package/dist/models/DeleteDataAgentAccuracyTestResponse.js +69 -0
  21. package/dist/models/DeleteDataAgentAccuracyTestResponse.js.map +1 -0
  22. package/dist/models/DeleteDataAgentAccuracyTestResponseBody.d.ts +48 -0
  23. package/dist/models/DeleteDataAgentAccuracyTestResponseBody.js +64 -0
  24. package/dist/models/DeleteDataAgentAccuracyTestResponseBody.js.map +1 -0
  25. package/dist/models/DescribeDataAgentSessionRequest.d.ts +1 -1
  26. package/dist/models/DescribeDataAgentSessionResponseBody.d.ts +156 -7
  27. package/dist/models/DescribeDataAgentSessionResponseBody.js.map +1 -1
  28. package/dist/models/GetChatContentRequest.d.ts +2 -2
  29. package/dist/models/GetChatContentResponseBody.d.ts +11 -4
  30. package/dist/models/GetChatContentResponseBody.js.map +1 -1
  31. package/dist/models/GetSqlConsoleOperationLogRequest.d.ts +85 -0
  32. package/dist/models/GetSqlConsoleOperationLogRequest.js +72 -0
  33. package/dist/models/GetSqlConsoleOperationLogRequest.js.map +1 -0
  34. package/dist/models/GetSqlConsoleOperationLogResponse.d.ts +19 -0
  35. package/dist/models/GetSqlConsoleOperationLogResponse.js +69 -0
  36. package/dist/models/GetSqlConsoleOperationLogResponse.js.map +1 -0
  37. package/dist/models/GetSqlConsoleOperationLogResponseBody.d.ts +150 -0
  38. package/dist/models/GetSqlConsoleOperationLogResponseBody.js +108 -0
  39. package/dist/models/GetSqlConsoleOperationLogResponseBody.js.map +1 -0
  40. package/dist/models/ListDataAgentAccuracyTestInstancesRequest.d.ts +61 -0
  41. package/dist/models/ListDataAgentAccuracyTestInstancesRequest.js +68 -0
  42. package/dist/models/ListDataAgentAccuracyTestInstancesRequest.js.map +1 -0
  43. package/dist/models/ListDataAgentAccuracyTestInstancesResponse.d.ts +19 -0
  44. package/dist/models/ListDataAgentAccuracyTestInstancesResponse.js +69 -0
  45. package/dist/models/ListDataAgentAccuracyTestInstancesResponse.js.map +1 -0
  46. package/dist/models/ListDataAgentAccuracyTestInstancesResponseBody.d.ts +206 -0
  47. package/dist/models/ListDataAgentAccuracyTestInstancesResponseBody.js +122 -0
  48. package/dist/models/ListDataAgentAccuracyTestInstancesResponseBody.js.map +1 -0
  49. package/dist/models/ListDataAgentAccuracyTestResultsRequest.d.ts +93 -0
  50. package/dist/models/ListDataAgentAccuracyTestResultsRequest.js +76 -0
  51. package/dist/models/ListDataAgentAccuracyTestResultsRequest.js.map +1 -0
  52. package/dist/models/ListDataAgentAccuracyTestResultsResponse.d.ts +19 -0
  53. package/dist/models/ListDataAgentAccuracyTestResultsResponse.js +69 -0
  54. package/dist/models/ListDataAgentAccuracyTestResultsResponse.js.map +1 -0
  55. package/dist/models/ListDataAgentAccuracyTestResultsResponseBody.d.ts +234 -0
  56. package/dist/models/ListDataAgentAccuracyTestResultsResponseBody.js +146 -0
  57. package/dist/models/ListDataAgentAccuracyTestResultsResponseBody.js.map +1 -0
  58. package/dist/models/ListDataAgentAccuracyTestTasksRequest.d.ts +69 -0
  59. package/dist/models/ListDataAgentAccuracyTestTasksRequest.js +70 -0
  60. package/dist/models/ListDataAgentAccuracyTestTasksRequest.js.map +1 -0
  61. package/dist/models/ListDataAgentAccuracyTestTasksResponse.d.ts +19 -0
  62. package/dist/models/ListDataAgentAccuracyTestTasksResponse.js +69 -0
  63. package/dist/models/ListDataAgentAccuracyTestTasksResponse.js.map +1 -0
  64. package/dist/models/ListDataAgentAccuracyTestTasksResponseBody.d.ts +185 -0
  65. package/dist/models/ListDataAgentAccuracyTestTasksResponseBody.js +116 -0
  66. package/dist/models/ListDataAgentAccuracyTestTasksResponseBody.js.map +1 -0
  67. package/dist/models/ListDataAgentSessionRequest.d.ts +11 -10
  68. package/dist/models/ListDataAgentSessionRequest.js +2 -0
  69. package/dist/models/ListDataAgentSessionRequest.js.map +1 -1
  70. package/dist/models/ListDataAgentSessionResponseBody.d.ts +36 -44
  71. package/dist/models/ListDataAgentSessionResponseBody.js.map +1 -1
  72. package/dist/models/MdbAgentInstanceVo.d.ts +28 -0
  73. package/dist/models/MdbAgentInstanceVo.js +86 -0
  74. package/dist/models/MdbAgentInstanceVo.js.map +1 -0
  75. package/dist/models/SaveWorkspaceCodeRequest.d.ts +5 -5
  76. package/dist/models/SaveWorkspaceCodeResponseBody.d.ts +8 -8
  77. package/dist/models/SendChatMessageRequest.d.ts +101 -17
  78. package/dist/models/SendChatMessageRequest.js +12 -0
  79. package/dist/models/SendChatMessageRequest.js.map +1 -1
  80. package/dist/models/SendChatMessageResponseBody.d.ts +7 -0
  81. package/dist/models/SendChatMessageResponseBody.js.map +1 -1
  82. package/dist/models/SendChatMessageShrinkRequest.d.ts +29 -12
  83. package/dist/models/SendChatMessageShrinkRequest.js +4 -0
  84. package/dist/models/SendChatMessageShrinkRequest.js.map +1 -1
  85. package/dist/models/StartDataAgentAccuracyTestTaskRequest.d.ts +53 -0
  86. package/dist/models/StartDataAgentAccuracyTestTaskRequest.js +66 -0
  87. package/dist/models/StartDataAgentAccuracyTestTaskRequest.js.map +1 -0
  88. package/dist/models/StartDataAgentAccuracyTestTaskResponse.d.ts +19 -0
  89. package/dist/models/StartDataAgentAccuracyTestTaskResponse.js +69 -0
  90. package/dist/models/StartDataAgentAccuracyTestTaskResponse.js.map +1 -0
  91. package/dist/models/StartDataAgentAccuracyTestTaskResponseBody.d.ts +73 -0
  92. package/dist/models/StartDataAgentAccuracyTestTaskResponseBody.js +88 -0
  93. package/dist/models/StartDataAgentAccuracyTestTaskResponseBody.js.map +1 -0
  94. package/dist/models/StopDataAgentAccuracyTestTaskRequest.d.ts +37 -0
  95. package/dist/models/StopDataAgentAccuracyTestTaskRequest.js +62 -0
  96. package/dist/models/StopDataAgentAccuracyTestTaskRequest.js.map +1 -0
  97. package/dist/models/StopDataAgentAccuracyTestTaskResponse.d.ts +19 -0
  98. package/dist/models/StopDataAgentAccuracyTestTaskResponse.js +69 -0
  99. package/dist/models/StopDataAgentAccuracyTestTaskResponse.js.map +1 -0
  100. package/dist/models/StopDataAgentAccuracyTestTaskResponseBody.d.ts +48 -0
  101. package/dist/models/StopDataAgentAccuracyTestTaskResponseBody.js +64 -0
  102. package/dist/models/StopDataAgentAccuracyTestTaskResponseBody.js.map +1 -0
  103. package/dist/models/UpdateDataAgentAccuracyTestRequest.d.ts +117 -0
  104. package/dist/models/UpdateDataAgentAccuracyTestRequest.js +82 -0
  105. package/dist/models/UpdateDataAgentAccuracyTestRequest.js.map +1 -0
  106. package/dist/models/UpdateDataAgentAccuracyTestResponse.d.ts +19 -0
  107. package/dist/models/UpdateDataAgentAccuracyTestResponse.js +69 -0
  108. package/dist/models/UpdateDataAgentAccuracyTestResponse.js.map +1 -0
  109. package/dist/models/UpdateDataAgentAccuracyTestResponseBody.d.ts +121 -0
  110. package/dist/models/UpdateDataAgentAccuracyTestResponseBody.js +100 -0
  111. package/dist/models/UpdateDataAgentAccuracyTestResponseBody.js.map +1 -0
  112. package/dist/models/model.d.ts +37 -0
  113. package/dist/models/model.js +84 -9
  114. package/dist/models/model.js.map +1 -1
  115. package/package.json +1 -1
  116. package/src/client.ts +696 -22
  117. package/src/models/CreateDataAgentAccuracyTestRequest.ts +154 -0
  118. package/src/models/CreateDataAgentAccuracyTestResponse.ts +40 -0
  119. package/src/models/CreateDataAgentAccuracyTestResponseBody.ts +107 -0
  120. package/src/models/DataAgentBillingInstance.ts +72 -0
  121. package/src/models/DeleteDataAgentAccuracyTestRequest.ts +64 -0
  122. package/src/models/DeleteDataAgentAccuracyTestResponse.ts +40 -0
  123. package/src/models/DeleteDataAgentAccuracyTestResponseBody.ts +67 -0
  124. package/src/models/DescribeDataAgentSessionRequest.ts +1 -1
  125. package/src/models/DescribeDataAgentSessionResponseBody.ts +156 -7
  126. package/src/models/GetChatContentRequest.ts +2 -2
  127. package/src/models/GetChatContentResponseBody.ts +11 -4
  128. package/src/models/GetSqlConsoleOperationLogRequest.ts +112 -0
  129. package/src/models/GetSqlConsoleOperationLogResponse.ts +40 -0
  130. package/src/models/GetSqlConsoleOperationLogResponseBody.ts +204 -0
  131. package/src/models/ListDataAgentAccuracyTestInstancesRequest.ts +84 -0
  132. package/src/models/ListDataAgentAccuracyTestInstancesResponse.ts +40 -0
  133. package/src/models/ListDataAgentAccuracyTestInstancesResponseBody.ts +274 -0
  134. package/src/models/ListDataAgentAccuracyTestResultsRequest.ts +124 -0
  135. package/src/models/ListDataAgentAccuracyTestResultsResponse.ts +40 -0
  136. package/src/models/ListDataAgentAccuracyTestResultsResponseBody.ts +317 -0
  137. package/src/models/ListDataAgentAccuracyTestTasksRequest.ts +94 -0
  138. package/src/models/ListDataAgentAccuracyTestTasksResponse.ts +40 -0
  139. package/src/models/ListDataAgentAccuracyTestTasksResponseBody.ts +247 -0
  140. package/src/models/ListDataAgentSessionRequest.ts +13 -10
  141. package/src/models/ListDataAgentSessionResponseBody.ts +36 -44
  142. package/src/models/MdbAgentInstanceVo.ts +69 -0
  143. package/src/models/SaveWorkspaceCodeRequest.ts +5 -5
  144. package/src/models/SaveWorkspaceCodeResponseBody.ts +8 -8
  145. package/src/models/SendChatMessageRequest.ts +113 -17
  146. package/src/models/SendChatMessageResponseBody.ts +7 -0
  147. package/src/models/SendChatMessageShrinkRequest.ts +33 -12
  148. package/src/models/StartDataAgentAccuracyTestTaskRequest.ts +74 -0
  149. package/src/models/StartDataAgentAccuracyTestTaskResponse.ts +40 -0
  150. package/src/models/StartDataAgentAccuracyTestTaskResponseBody.ts +107 -0
  151. package/src/models/StopDataAgentAccuracyTestTaskRequest.ts +54 -0
  152. package/src/models/StopDataAgentAccuracyTestTaskResponse.ts +40 -0
  153. package/src/models/StopDataAgentAccuracyTestTaskResponseBody.ts +67 -0
  154. package/src/models/UpdateDataAgentAccuracyTestRequest.ts +154 -0
  155. package/src/models/UpdateDataAgentAccuracyTestResponse.ts +40 -0
  156. package/src/models/UpdateDataAgentAccuracyTestResponseBody.ts +167 -0
  157. package/src/models/model.ts +37 -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
  *
@@ -1941,12 +2070,12 @@ class Client extends openapi_core_1.default {
1941
2070
  return await this.getAirflowWithOptions(request, runtime);
1942
2071
  }
1943
2072
  /**
1944
- * Retrieves chat content from a specific checkpoint by specifying a session ID and an agent ID.
2073
+ * Retrieves chat content from a specific checkpoint by specifying the session ID and AgentId.
1945
2074
  *
1946
2075
  * @remarks
1947
- * ## Request
1948
- * - The response is an SSE stream. Each event follows the`SSEEvent` schema and includes metadata, such as the message level.
1949
- * - The `content` field contains either message text or a JSON object, as determined by the `content_type` field.
2076
+ * ## Request Description
2077
+ * - The response is returned as an SSE stream, where each event follows the `SSEEvent` schema and contains meta-information such as the message level.
2078
+ * - The `content` field in each SSE event may carry actual message text or a JSON object, depending on the value of `content_type`.
1950
2079
  *
1951
2080
  * @param request - GetChatContentRequest
1952
2081
  * @param runtime - runtime options for this request RuntimeOptions
@@ -2011,12 +2140,12 @@ class Client extends openapi_core_1.default {
2011
2140
  });
2012
2141
  }
2013
2142
  /**
2014
- * Retrieves chat content from a specific checkpoint by specifying a session ID and an agent ID.
2143
+ * Retrieves chat content from a specific checkpoint by specifying the session ID and AgentId.
2015
2144
  *
2016
2145
  * @remarks
2017
- * ## Request
2018
- * - The response is an SSE stream. Each event follows the`SSEEvent` schema and includes metadata, such as the message level.
2019
- * - The `content` field contains either message text or a JSON object, as determined by the `content_type` field.
2146
+ * ## Request Description
2147
+ * - The response is returned as an SSE stream, where each event follows the `SSEEvent` schema and contains meta-information such as the message level.
2148
+ * - The `content` field in each SSE event may carry actual message text or a JSON object, depending on the value of `content_type`.
2020
2149
  *
2021
2150
  * @param request - GetChatContentRequest
2022
2151
  * @param runtime - runtime options for this request RuntimeOptions
@@ -2054,12 +2183,12 @@ class Client extends openapi_core_1.default {
2054
2183
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetChatContentResponse({}));
2055
2184
  }
2056
2185
  /**
2057
- * Retrieves chat content from a specific checkpoint by specifying a session ID and an agent ID.
2186
+ * Retrieves chat content from a specific checkpoint by specifying the session ID and AgentId.
2058
2187
  *
2059
2188
  * @remarks
2060
- * ## Request
2061
- * - The response is an SSE stream. Each event follows the`SSEEvent` schema and includes metadata, such as the message level.
2062
- * - The `content` field contains either message text or a JSON object, as determined by the `content_type` field.
2189
+ * ## Request Description
2190
+ * - The response is returned as an SSE stream, where each event follows the `SSEEvent` schema and contains meta-information such as the message level.
2191
+ * - The `content` field in each SSE event may carry actual message text or a JSON object, depending on the value of `content_type`.
2063
2192
  *
2064
2193
  * @param request - GetChatContentRequest
2065
2194
  * @returns GetChatContentResponse
@@ -2504,6 +2633,66 @@ class Client extends openapi_core_1.default {
2504
2633
  let runtime = new $dara.RuntimeOptions({});
2505
2634
  return await this.getNotebookTaskStatusWithOptions(request, runtime);
2506
2635
  }
2636
+ /**
2637
+ * Queries the operation logs of the SQL window.
2638
+ *
2639
+ * @param request - GetSqlConsoleOperationLogRequest
2640
+ * @param runtime - runtime options for this request RuntimeOptions
2641
+ * @returns GetSqlConsoleOperationLogResponse
2642
+ */
2643
+ async getSqlConsoleOperationLogWithOptions(request, runtime) {
2644
+ request.validate();
2645
+ let query = {};
2646
+ if (!$dara.isNull(request.endTime)) {
2647
+ query["EndTime"] = request.endTime;
2648
+ }
2649
+ if (!$dara.isNull(request.instanceId)) {
2650
+ query["InstanceId"] = request.instanceId;
2651
+ }
2652
+ if (!$dara.isNull(request.pageNumber)) {
2653
+ query["PageNumber"] = request.pageNumber;
2654
+ }
2655
+ if (!$dara.isNull(request.pageSize)) {
2656
+ query["PageSize"] = request.pageSize;
2657
+ }
2658
+ if (!$dara.isNull(request.schema)) {
2659
+ query["Schema"] = request.schema;
2660
+ }
2661
+ if (!$dara.isNull(request.sqlType)) {
2662
+ query["SqlType"] = request.sqlType;
2663
+ }
2664
+ if (!$dara.isNull(request.startTime)) {
2665
+ query["StartTime"] = request.startTime;
2666
+ }
2667
+ if (!$dara.isNull(request.username)) {
2668
+ query["Username"] = request.username;
2669
+ }
2670
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2671
+ query: openapi_core_2.OpenApiUtil.query(query),
2672
+ });
2673
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2674
+ action: "GetSqlConsoleOperationLog",
2675
+ version: "2025-04-14",
2676
+ protocol: "HTTPS",
2677
+ pathname: "/",
2678
+ method: "POST",
2679
+ authType: "AK",
2680
+ style: "RPC",
2681
+ reqBodyType: "formData",
2682
+ bodyType: "json",
2683
+ });
2684
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetSqlConsoleOperationLogResponse({}));
2685
+ }
2686
+ /**
2687
+ * Queries the operation logs of the SQL window.
2688
+ *
2689
+ * @param request - GetSqlConsoleOperationLogRequest
2690
+ * @returns GetSqlConsoleOperationLogResponse
2691
+ */
2692
+ async getSqlConsoleOperationLog(request) {
2693
+ let runtime = new $dara.RuntimeOptions({});
2694
+ return await this.getSqlConsoleOperationLogWithOptions(request, runtime);
2695
+ }
2507
2696
  /**
2508
2697
  * Reads the content of a code file in the workspace and returns the file content along with mtime (in the header).
2509
2698
  *
@@ -2796,7 +2985,204 @@ class Client extends openapi_core_1.default {
2796
2985
  return await this.listCustomAgentWithOptions(request, runtime);
2797
2986
  }
2798
2987
  /**
2799
- * Retrieve a list of Data Agent session descriptions.
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
+ }
3184
+ /**
3185
+ * Retrieves the list of historical session descriptions for a Data Agent.
2800
3186
  *
2801
3187
  * @param request - ListDataAgentSessionRequest
2802
3188
  * @param runtime - runtime options for this request RuntimeOptions
@@ -2820,6 +3206,9 @@ class Client extends openapi_core_1.default {
2820
3206
  if (!$dara.isNull(request.isSaved)) {
2821
3207
  query["IsSaved"] = request.isSaved;
2822
3208
  }
3209
+ if (!$dara.isNull(request.mode)) {
3210
+ query["Mode"] = request.mode;
3211
+ }
2823
3212
  if (!$dara.isNull(request.pageNumber)) {
2824
3213
  query["PageNumber"] = request.pageNumber;
2825
3214
  }
@@ -2852,7 +3241,7 @@ class Client extends openapi_core_1.default {
2852
3241
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListDataAgentSessionResponse({}));
2853
3242
  }
2854
3243
  /**
2855
- * Retrieve a list of Data Agent session descriptions.
3244
+ * Retrieves the list of historical session descriptions for a Data Agent.
2856
3245
  *
2857
3246
  * @param request - ListDataAgentSessionRequest
2858
3247
  * @returns ListDataAgentSessionResponse
@@ -4274,7 +4663,7 @@ class Client extends openapi_core_1.default {
4274
4663
  * Saves workspace code. If the file does not exist, a new file is automatically created.
4275
4664
  *
4276
4665
  * @remarks
4277
- * 发布工作空间的代码
4666
+ * Publishes workspace code.
4278
4667
  *
4279
4668
  * @param request - SaveWorkspaceCodeRequest
4280
4669
  * @param runtime - runtime options for this request RuntimeOptions
@@ -4326,7 +4715,7 @@ class Client extends openapi_core_1.default {
4326
4715
  * Saves workspace code. If the file does not exist, a new file is automatically created.
4327
4716
  *
4328
4717
  * @remarks
4329
- * 发布工作空间的代码
4718
+ * Publishes workspace code.
4330
4719
  *
4331
4720
  * @param request - SaveWorkspaceCodeRequest
4332
4721
  * @returns SaveWorkspaceCodeResponse
@@ -4341,11 +4730,11 @@ class Client extends openapi_core_1.default {
4341
4730
  * @remarks
4342
4731
  * ## Request description
4343
4732
  * - `agent_id` and `session_id` are required fields.
4344
- * - `message_type` defaults to `primary`. Set it to `additional` when appending information or `cancel` when canceling a session.
4345
- * - `reply_to` indicates which Agent message this message responds to. The default value is `0`.
4733
+ * - `message_type` defaults to `primary`. Set it to `additional` or `cancel` when you need to append information or cancel a session.
4734
+ * - The `reply_to` field indicates which Agent message this message is responding to. The default value is `0`.
4346
4735
  * - When `message_type` is `additional`, the `question` field is required.
4347
4736
  * - `quoted_message` can be used to quote the content of a previous user message.
4348
- * - `data_source`, `dms_user`, `db_metadata`, `session_config`, and other fields are optional but provide more detailed context information.
4737
+ * - The `data_source`, `dms_user`, `db_metadata`, and `session_config` fields are optional but provide more detailed context information.
4349
4738
  *
4350
4739
  * @param tmpReq - SendChatMessageRequest
4351
4740
  * @param runtime - runtime options for this request RuntimeOptions
@@ -4407,6 +4796,12 @@ class Client extends openapi_core_1.default {
4407
4796
  if (!$dara.isNull(request.taskConfigShrink)) {
4408
4797
  query["TaskConfig"] = request.taskConfigShrink;
4409
4798
  }
4799
+ if (!$dara.isNull(request.userOssBucket)) {
4800
+ query["UserOssBucket"] = request.userOssBucket;
4801
+ }
4802
+ if (!$dara.isNull(request.workspaceId)) {
4803
+ query["WorkspaceId"] = request.workspaceId;
4804
+ }
4410
4805
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
4411
4806
  query: openapi_core_2.OpenApiUtil.query(query),
4412
4807
  });
@@ -4429,11 +4824,11 @@ class Client extends openapi_core_1.default {
4429
4824
  * @remarks
4430
4825
  * ## Request description
4431
4826
  * - `agent_id` and `session_id` are required fields.
4432
- * - `message_type` defaults to `primary`. Set it to `additional` when appending information or `cancel` when canceling a session.
4433
- * - `reply_to` indicates which Agent message this message responds to. The default value is `0`.
4827
+ * - `message_type` defaults to `primary`. Set it to `additional` or `cancel` when you need to append information or cancel a session.
4828
+ * - The `reply_to` field indicates which Agent message this message is responding to. The default value is `0`.
4434
4829
  * - When `message_type` is `additional`, the `question` field is required.
4435
4830
  * - `quoted_message` can be used to quote the content of a previous user message.
4436
- * - `data_source`, `dms_user`, `db_metadata`, `session_config`, and other fields are optional but provide more detailed context information.
4831
+ * - The `data_source`, `dms_user`, `db_metadata`, and `session_config` fields are optional but provide more detailed context information.
4437
4832
  *
4438
4833
  * @param request - SendChatMessageRequest
4439
4834
  * @returns SendChatMessageResponse
@@ -4549,6 +4944,114 @@ class Client extends openapi_core_1.default {
4549
4944
  let runtime = new $dara.RuntimeOptions({});
4550
4945
  return await this.setWorkspaceQuotaWithOptions(request, runtime);
4551
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
+ }
4552
5055
  /**
4553
5056
  * Updates the properties of an Airflow instance.
4554
5057
  *
@@ -4632,6 +5135,87 @@ class Client extends openapi_core_1.default {
4632
5135
  let runtime = new $dara.RuntimeOptions({});
4633
5136
  return await this.updateAirflowWithOptions(request, runtime);
4634
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
+ }
4635
5219
  /**
4636
5220
  * Updates workspace information.
4637
5221
  *