@alicloud/dms20250414 1.17.0 → 1.18.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 (122) hide show
  1. package/dist/client.d.ts +85 -22
  2. package/dist/client.js +256 -22
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AgenticTableBaseInfo.d.ts +1 -0
  5. package/dist/models/AgenticTableBaseInfo.js +2 -0
  6. package/dist/models/AgenticTableBaseInfo.js.map +1 -1
  7. package/dist/models/CheckDataAgentMemoryConfigRequest.d.ts +21 -0
  8. package/dist/models/CheckDataAgentMemoryConfigRequest.js +58 -0
  9. package/dist/models/CheckDataAgentMemoryConfigRequest.js.map +1 -0
  10. package/dist/models/CheckDataAgentMemoryConfigResponse.d.ts +19 -0
  11. package/dist/models/CheckDataAgentMemoryConfigResponse.js +69 -0
  12. package/dist/models/CheckDataAgentMemoryConfigResponse.js.map +1 -0
  13. package/dist/models/CheckDataAgentMemoryConfigResponseBody.d.ts +89 -0
  14. package/dist/models/CheckDataAgentMemoryConfigResponseBody.js +90 -0
  15. package/dist/models/CheckDataAgentMemoryConfigResponseBody.js.map +1 -0
  16. package/dist/models/ConfigDataAgentMemoryRequest.d.ts +28 -0
  17. package/dist/models/ConfigDataAgentMemoryRequest.js +62 -0
  18. package/dist/models/ConfigDataAgentMemoryRequest.js.map +1 -0
  19. package/dist/models/ConfigDataAgentMemoryResponse.d.ts +19 -0
  20. package/dist/models/ConfigDataAgentMemoryResponse.js +69 -0
  21. package/dist/models/ConfigDataAgentMemoryResponse.js.map +1 -0
  22. package/dist/models/ConfigDataAgentMemoryResponseBody.d.ts +56 -0
  23. package/dist/models/ConfigDataAgentMemoryResponseBody.js +90 -0
  24. package/dist/models/ConfigDataAgentMemoryResponseBody.js.map +1 -0
  25. package/dist/models/CreateCustomAgentRequest.d.ts +23 -133
  26. package/dist/models/CreateCustomAgentRequest.js +2 -0
  27. package/dist/models/CreateCustomAgentRequest.js.map +1 -1
  28. package/dist/models/CreateCustomAgentResponseBody.d.ts +33 -58
  29. package/dist/models/CreateCustomAgentResponseBody.js +2 -0
  30. package/dist/models/CreateCustomAgentResponseBody.js.map +1 -1
  31. package/dist/models/CreateCustomAgentShrinkRequest.d.ts +16 -124
  32. package/dist/models/CreateCustomAgentShrinkRequest.js +2 -0
  33. package/dist/models/CreateCustomAgentShrinkRequest.js.map +1 -1
  34. package/dist/models/CreateDataAgentAccuracyTestRequest.d.ts +4 -1
  35. package/dist/models/CreateDataAgentAccuracyTestRequest.js.map +1 -1
  36. package/dist/models/DeleteDataAgentMemoryRequest.d.ts +29 -0
  37. package/dist/models/DeleteDataAgentMemoryRequest.js +60 -0
  38. package/dist/models/DeleteDataAgentMemoryRequest.js.map +1 -0
  39. package/dist/models/DeleteDataAgentMemoryResponse.d.ts +19 -0
  40. package/dist/models/DeleteDataAgentMemoryResponse.js +69 -0
  41. package/dist/models/DeleteDataAgentMemoryResponse.js.map +1 -0
  42. package/dist/models/DeleteDataAgentMemoryResponseBody.d.ts +84 -0
  43. package/dist/models/DeleteDataAgentMemoryResponseBody.js +90 -0
  44. package/dist/models/DeleteDataAgentMemoryResponseBody.js.map +1 -0
  45. package/dist/models/DescribeCustomAgentRequest.d.ts +2 -2
  46. package/dist/models/DescribeCustomAgentResponseBody.d.ts +44 -98
  47. package/dist/models/DescribeCustomAgentResponseBody.js +2 -0
  48. package/dist/models/DescribeCustomAgentResponseBody.js.map +1 -1
  49. package/dist/models/ListCustomAgentResponseBody.d.ts +1 -0
  50. package/dist/models/ListCustomAgentResponseBody.js +2 -0
  51. package/dist/models/ListCustomAgentResponseBody.js.map +1 -1
  52. package/dist/models/ListDataAgentMemoryRequest.d.ts +93 -0
  53. package/dist/models/ListDataAgentMemoryRequest.js +74 -0
  54. package/dist/models/ListDataAgentMemoryRequest.js.map +1 -0
  55. package/dist/models/ListDataAgentMemoryResponse.d.ts +19 -0
  56. package/dist/models/ListDataAgentMemoryResponse.js +69 -0
  57. package/dist/models/ListDataAgentMemoryResponse.js.map +1 -0
  58. package/dist/models/ListDataAgentMemoryResponseBody.d.ts +186 -0
  59. package/dist/models/ListDataAgentMemoryResponseBody.js +134 -0
  60. package/dist/models/ListDataAgentMemoryResponseBody.js.map +1 -0
  61. package/dist/models/ListDataAgentWorkspaceRequest.d.ts +3 -3
  62. package/dist/models/ListDataAgentWorkspaceResponseBody.d.ts +19 -5
  63. package/dist/models/ListDataAgentWorkspaceResponseBody.js.map +1 -1
  64. package/dist/models/ModifyCustomAgentRequest.d.ts +23 -164
  65. package/dist/models/ModifyCustomAgentRequest.js +2 -0
  66. package/dist/models/ModifyCustomAgentRequest.js.map +1 -1
  67. package/dist/models/ModifyCustomAgentResponseBody.d.ts +38 -95
  68. package/dist/models/ModifyCustomAgentResponseBody.js +2 -0
  69. package/dist/models/ModifyCustomAgentResponseBody.js.map +1 -1
  70. package/dist/models/ModifyCustomAgentShrinkRequest.d.ts +16 -131
  71. package/dist/models/ModifyCustomAgentShrinkRequest.js +2 -0
  72. package/dist/models/ModifyCustomAgentShrinkRequest.js.map +1 -1
  73. package/dist/models/SendChatMessageRequest.d.ts +126 -31
  74. package/dist/models/SendChatMessageRequest.js +107 -1
  75. package/dist/models/SendChatMessageRequest.js.map +1 -1
  76. package/dist/models/SendChatMessageShrinkRequest.d.ts +9 -21
  77. package/dist/models/SendChatMessageShrinkRequest.js.map +1 -1
  78. package/dist/models/UpdateDataAgentMemoryRequest.d.ts +58 -0
  79. package/dist/models/UpdateDataAgentMemoryRequest.js +66 -0
  80. package/dist/models/UpdateDataAgentMemoryRequest.js.map +1 -0
  81. package/dist/models/UpdateDataAgentMemoryResponse.d.ts +19 -0
  82. package/dist/models/UpdateDataAgentMemoryResponse.js +69 -0
  83. package/dist/models/UpdateDataAgentMemoryResponse.js.map +1 -0
  84. package/dist/models/UpdateDataAgentMemoryResponseBody.d.ts +84 -0
  85. package/dist/models/UpdateDataAgentMemoryResponseBody.js +90 -0
  86. package/dist/models/UpdateDataAgentMemoryResponseBody.js.map +1 -0
  87. package/dist/models/model.d.ts +25 -0
  88. package/dist/models/model.js +68 -17
  89. package/dist/models/model.js.map +1 -1
  90. package/package.json +1 -1
  91. package/src/client.ts +288 -22
  92. package/src/models/AgenticTableBaseInfo.ts +3 -0
  93. package/src/models/CheckDataAgentMemoryConfigRequest.ts +34 -0
  94. package/src/models/CheckDataAgentMemoryConfigResponse.ts +40 -0
  95. package/src/models/CheckDataAgentMemoryConfigResponseBody.ts +125 -0
  96. package/src/models/ConfigDataAgentMemoryRequest.ts +45 -0
  97. package/src/models/ConfigDataAgentMemoryResponse.ts +40 -0
  98. package/src/models/ConfigDataAgentMemoryResponseBody.ts +92 -0
  99. package/src/models/CreateCustomAgentRequest.ts +25 -133
  100. package/src/models/CreateCustomAgentResponseBody.ts +35 -58
  101. package/src/models/CreateCustomAgentShrinkRequest.ts +18 -124
  102. package/src/models/CreateDataAgentAccuracyTestRequest.ts +4 -1
  103. package/src/models/DeleteDataAgentMemoryRequest.ts +44 -0
  104. package/src/models/DeleteDataAgentMemoryResponse.ts +40 -0
  105. package/src/models/DeleteDataAgentMemoryResponseBody.ts +120 -0
  106. package/src/models/DescribeCustomAgentRequest.ts +2 -2
  107. package/src/models/DescribeCustomAgentResponseBody.ts +47 -99
  108. package/src/models/ListCustomAgentResponseBody.ts +3 -0
  109. package/src/models/ListDataAgentMemoryRequest.ts +122 -0
  110. package/src/models/ListDataAgentMemoryResponse.ts +40 -0
  111. package/src/models/ListDataAgentMemoryResponseBody.ts +257 -0
  112. package/src/models/ListDataAgentWorkspaceRequest.ts +3 -3
  113. package/src/models/ListDataAgentWorkspaceResponseBody.ts +19 -5
  114. package/src/models/ModifyCustomAgentRequest.ts +25 -164
  115. package/src/models/ModifyCustomAgentResponseBody.ts +40 -95
  116. package/src/models/ModifyCustomAgentShrinkRequest.ts +18 -131
  117. package/src/models/SendChatMessageRequest.ts +197 -32
  118. package/src/models/SendChatMessageShrinkRequest.ts +10 -22
  119. package/src/models/UpdateDataAgentMemoryRequest.ts +79 -0
  120. package/src/models/UpdateDataAgentMemoryResponse.ts +40 -0
  121. package/src/models/UpdateDataAgentMemoryResponseBody.ts +120 -0
  122. package/src/models/model.ts +25 -0
package/dist/client.d.ts CHANGED
@@ -68,6 +68,21 @@ export default class Client extends OpenApi {
68
68
  * @returns BatchUpdateDataLakePartitionsResponse
69
69
  */
70
70
  batchUpdateDataLakePartitions(request: $_model.BatchUpdateDataLakePartitionsRequest): Promise<$_model.BatchUpdateDataLakePartitionsResponse>;
71
+ /**
72
+ * CheckDataAgentMemoryConfig - Queries the memory generation and usage configuration of a DataAgent.
73
+ *
74
+ * @param request - CheckDataAgentMemoryConfigRequest
75
+ * @param runtime - runtime options for this request RuntimeOptions
76
+ * @returns CheckDataAgentMemoryConfigResponse
77
+ */
78
+ checkDataAgentMemoryConfigWithOptions(request: $_model.CheckDataAgentMemoryConfigRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CheckDataAgentMemoryConfigResponse>;
79
+ /**
80
+ * CheckDataAgentMemoryConfig - Queries the memory generation and usage configuration of a DataAgent.
81
+ *
82
+ * @param request - CheckDataAgentMemoryConfigRequest
83
+ * @returns CheckDataAgentMemoryConfigResponse
84
+ */
85
+ checkDataAgentMemoryConfig(request: $_model.CheckDataAgentMemoryConfigRequest): Promise<$_model.CheckDataAgentMemoryConfigResponse>;
71
86
  /**
72
87
  * Update an Airflow instance\\"s custom configuration
73
88
  *
@@ -89,6 +104,21 @@ export default class Client extends OpenApi {
89
104
  * @returns ConfigAirflowResponse
90
105
  */
91
106
  configAirflow(request: $_model.ConfigAirflowRequest): Promise<$_model.ConfigAirflowResponse>;
107
+ /**
108
+ * ConfigDataAgentMemory
109
+ *
110
+ * @param request - ConfigDataAgentMemoryRequest
111
+ * @param runtime - runtime options for this request RuntimeOptions
112
+ * @returns ConfigDataAgentMemoryResponse
113
+ */
114
+ configDataAgentMemoryWithOptions(request: $_model.ConfigDataAgentMemoryRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ConfigDataAgentMemoryResponse>;
115
+ /**
116
+ * ConfigDataAgentMemory
117
+ *
118
+ * @param request - ConfigDataAgentMemoryRequest
119
+ * @returns ConfigDataAgentMemoryResponse
120
+ */
121
+ configDataAgentMemory(request: $_model.ConfigDataAgentMemoryRequest): Promise<$_model.ConfigDataAgentMemoryResponse>;
92
122
  /**
93
123
  * Creates an Airflow instance in a workspace.
94
124
  *
@@ -126,7 +156,7 @@ export default class Client extends OpenApi {
126
156
  */
127
157
  createAirflowLoginToken(request: $_model.CreateAirflowLoginTokenRequest): Promise<$_model.CreateAirflowLoginTokenResponse>;
128
158
  /**
129
- * Create a custom agent in your personal space or a workspace.
159
+ * Creates a custom agent in a personal space or workspace.
130
160
  *
131
161
  * @param tmpReq - CreateCustomAgentRequest
132
162
  * @param runtime - runtime options for this request RuntimeOptions
@@ -134,7 +164,7 @@ export default class Client extends OpenApi {
134
164
  */
135
165
  createCustomAgentWithOptions(tmpReq: $_model.CreateCustomAgentRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateCustomAgentResponse>;
136
166
  /**
137
- * Create a custom agent in your personal space or a workspace.
167
+ * Creates a custom agent in a personal space or workspace.
138
168
  *
139
169
  * @param request - CreateCustomAgentRequest
140
170
  * @returns CreateCustomAgentResponse
@@ -341,6 +371,21 @@ export default class Client extends OpenApi {
341
371
  * @returns DeleteDataAgentKnowledgeBaseResponse
342
372
  */
343
373
  deleteDataAgentKnowledgeBase(request: $_model.DeleteDataAgentKnowledgeBaseRequest): Promise<$_model.DeleteDataAgentKnowledgeBaseResponse>;
374
+ /**
375
+ * Deletes the memory of a DataAgent.
376
+ *
377
+ * @param request - DeleteDataAgentMemoryRequest
378
+ * @param runtime - runtime options for this request RuntimeOptions
379
+ * @returns DeleteDataAgentMemoryResponse
380
+ */
381
+ deleteDataAgentMemoryWithOptions(request: $_model.DeleteDataAgentMemoryRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteDataAgentMemoryResponse>;
382
+ /**
383
+ * Deletes the memory of a DataAgent.
384
+ *
385
+ * @param request - DeleteDataAgentMemoryRequest
386
+ * @returns DeleteDataAgentMemoryResponse
387
+ */
388
+ deleteDataAgentMemory(request: $_model.DeleteDataAgentMemoryRequest): Promise<$_model.DeleteDataAgentMemoryResponse>;
344
389
  /**
345
390
  * Deletes a DataAgent workspace.
346
391
  *
@@ -483,7 +528,7 @@ export default class Client extends OpenApi {
483
528
  */
484
529
  deleteWorkspaceCode(request: $_model.DeleteWorkspaceCodeRequest): Promise<$_model.DeleteWorkspaceCodeResponse>;
485
530
  /**
486
- * `DescribeCustomAgent` retrieves the details of a custom agent by its agent ID.
531
+ * Retrieves the details of a custom agent by custom agent ID.
487
532
  *
488
533
  * @param request - DescribeCustomAgentRequest
489
534
  * @param runtime - runtime options for this request RuntimeOptions
@@ -491,7 +536,7 @@ export default class Client extends OpenApi {
491
536
  */
492
537
  describeCustomAgentWithOptions(request: $_model.DescribeCustomAgentRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeCustomAgentResponse>;
493
538
  /**
494
- * `DescribeCustomAgent` retrieves the details of a custom agent by its agent ID.
539
+ * Retrieves the details of a custom agent by custom agent ID.
495
540
  *
496
541
  * @param request - DescribeCustomAgentRequest
497
542
  * @returns DescribeCustomAgentResponse
@@ -997,6 +1042,21 @@ export default class Client extends OpenApi {
997
1042
  * @returns ListDataAgentAccuracyTestTasksResponse
998
1043
  */
999
1044
  listDataAgentAccuracyTestTasks(request: $_model.ListDataAgentAccuracyTestTasksRequest): Promise<$_model.ListDataAgentAccuracyTestTasksResponse>;
1045
+ /**
1046
+ * Retrieves the DataAgent memory list (up to 50 memories per RAM user).
1047
+ *
1048
+ * @param request - ListDataAgentMemoryRequest
1049
+ * @param runtime - runtime options for this request RuntimeOptions
1050
+ * @returns ListDataAgentMemoryResponse
1051
+ */
1052
+ listDataAgentMemoryWithOptions(request: $_model.ListDataAgentMemoryRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListDataAgentMemoryResponse>;
1053
+ /**
1054
+ * Retrieves the DataAgent memory list (up to 50 memories per RAM user).
1055
+ *
1056
+ * @param request - ListDataAgentMemoryRequest
1057
+ * @returns ListDataAgentMemoryResponse
1058
+ */
1059
+ listDataAgentMemory(request: $_model.ListDataAgentMemoryRequest): Promise<$_model.ListDataAgentMemoryResponse>;
1000
1060
  /**
1001
1061
  * Retrieves the list of historical session descriptions for a Data Agent.
1002
1062
  *
@@ -1013,7 +1073,7 @@ export default class Client extends OpenApi {
1013
1073
  */
1014
1074
  listDataAgentSession(request: $_model.ListDataAgentSessionRequest): Promise<$_model.ListDataAgentSessionResponse>;
1015
1075
  /**
1016
- * Retrieves the collaborative workspaces under the primary account with pagination.
1076
+ * Retrieves the workspaces under the primary account with pagination.
1017
1077
  *
1018
1078
  * @param request - ListDataAgentWorkspaceRequest
1019
1079
  * @param runtime - runtime options for this request RuntimeOptions
@@ -1021,7 +1081,7 @@ export default class Client extends OpenApi {
1021
1081
  */
1022
1082
  listDataAgentWorkspaceWithOptions(request: $_model.ListDataAgentWorkspaceRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListDataAgentWorkspaceResponse>;
1023
1083
  /**
1024
- * Retrieves the collaborative workspaces under the primary account with pagination.
1084
+ * Retrieves the workspaces under the primary account with pagination.
1025
1085
  *
1026
1086
  * @param request - ListDataAgentWorkspaceRequest
1027
1087
  * @returns ListDataAgentWorkspaceResponse
@@ -1304,7 +1364,7 @@ export default class Client extends OpenApi {
1304
1364
  */
1305
1365
  listWorkspaceCode(request: $_model.ListWorkspaceCodeRequest): Promise<$_model.ListWorkspaceCodeResponse>;
1306
1366
  /**
1307
- * Modify a custom agent in a personal space or workspace
1367
+ * Modifies a custom agent in a personal space or workspace.
1308
1368
  *
1309
1369
  * @param tmpReq - ModifyCustomAgentRequest
1310
1370
  * @param runtime - runtime options for this request RuntimeOptions
@@ -1312,7 +1372,7 @@ export default class Client extends OpenApi {
1312
1372
  */
1313
1373
  modifyCustomAgentWithOptions(tmpReq: $_model.ModifyCustomAgentRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyCustomAgentResponse>;
1314
1374
  /**
1315
- * Modify a custom agent in a personal space or workspace
1375
+ * Modifies a custom agent in a personal space or workspace.
1316
1376
  *
1317
1377
  * @param request - ModifyCustomAgentRequest
1318
1378
  * @returns ModifyCustomAgentResponse
@@ -1409,13 +1469,7 @@ export default class Client extends OpenApi {
1409
1469
  * Sends a user message to a specified session or cancels a session.
1410
1470
  *
1411
1471
  * @remarks
1412
- * ## Request description
1413
- * - `agent_id` and `session_id` are required fields.
1414
- * - `message_type` defaults to `primary`. Set it to `additional` or `cancel` when you need to append information or cancel a session.
1415
- * - The `reply_to` field indicates which agent message this message is responding to. The default value is `0`.
1416
- * - When `message_type` is `additional`, the `question` field is required.
1417
- * - `quoted_message` can be used to quote the content of a previous user message.
1418
- * - Fields such as `data_source`, `dms_user`, `db_metadata`, and `session_config` are optional but provide more detailed context information.
1472
+ * ## Request description.
1419
1473
  *
1420
1474
  * @param tmpReq - SendChatMessageRequest
1421
1475
  * @param runtime - runtime options for this request RuntimeOptions
@@ -1426,13 +1480,7 @@ export default class Client extends OpenApi {
1426
1480
  * Sends a user message to a specified session or cancels a session.
1427
1481
  *
1428
1482
  * @remarks
1429
- * ## Request description
1430
- * - `agent_id` and `session_id` are required fields.
1431
- * - `message_type` defaults to `primary`. Set it to `additional` or `cancel` when you need to append information or cancel a session.
1432
- * - The `reply_to` field indicates which agent message this message is responding to. The default value is `0`.
1433
- * - When `message_type` is `additional`, the `question` field is required.
1434
- * - `quoted_message` can be used to quote the content of a previous user message.
1435
- * - Fields such as `data_source`, `dms_user`, `db_metadata`, and `session_config` are optional but provide more detailed context information.
1483
+ * ## Request description.
1436
1484
  *
1437
1485
  * @param request - SendChatMessageRequest
1438
1486
  * @returns SendChatMessageResponse
@@ -1558,6 +1606,21 @@ export default class Client extends OpenApi {
1558
1606
  * @returns UpdateDataAgentAccuracyTestResponse
1559
1607
  */
1560
1608
  updateDataAgentAccuracyTest(request: $_model.UpdateDataAgentAccuracyTestRequest): Promise<$_model.UpdateDataAgentAccuracyTestResponse>;
1609
+ /**
1610
+ * Updates the memory of a DataAgent.
1611
+ *
1612
+ * @param request - UpdateDataAgentMemoryRequest
1613
+ * @param runtime - runtime options for this request RuntimeOptions
1614
+ * @returns UpdateDataAgentMemoryResponse
1615
+ */
1616
+ updateDataAgentMemoryWithOptions(request: $_model.UpdateDataAgentMemoryRequest, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateDataAgentMemoryResponse>;
1617
+ /**
1618
+ * Updates the memory of a DataAgent.
1619
+ *
1620
+ * @param request - UpdateDataAgentMemoryRequest
1621
+ * @returns UpdateDataAgentMemoryResponse
1622
+ */
1623
+ updateDataAgentMemory(request: $_model.UpdateDataAgentMemoryRequest): Promise<$_model.UpdateDataAgentMemoryResponse>;
1561
1624
  /**
1562
1625
  * Updates workspace information.
1563
1626
  *
package/dist/client.js CHANGED
@@ -324,6 +324,45 @@ class Client extends openapi_core_1.default {
324
324
  let runtime = new $dara.RuntimeOptions({});
325
325
  return await this.batchUpdateDataLakePartitionsWithOptions(request, runtime);
326
326
  }
327
+ /**
328
+ * CheckDataAgentMemoryConfig - Queries the memory generation and usage configuration of a DataAgent.
329
+ *
330
+ * @param request - CheckDataAgentMemoryConfigRequest
331
+ * @param runtime - runtime options for this request RuntimeOptions
332
+ * @returns CheckDataAgentMemoryConfigResponse
333
+ */
334
+ async checkDataAgentMemoryConfigWithOptions(request, runtime) {
335
+ request.validate();
336
+ let query = {};
337
+ if (!$dara.isNull(request.DMSUnit)) {
338
+ query["DMSUnit"] = request.DMSUnit;
339
+ }
340
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
341
+ query: openapi_core_2.OpenApiUtil.query(query),
342
+ });
343
+ let params = new openapi_core_2.$OpenApiUtil.Params({
344
+ action: "CheckDataAgentMemoryConfig",
345
+ version: "2025-04-14",
346
+ protocol: "HTTPS",
347
+ pathname: "/",
348
+ method: "POST",
349
+ authType: "AK",
350
+ style: "RPC",
351
+ reqBodyType: "formData",
352
+ bodyType: "json",
353
+ });
354
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CheckDataAgentMemoryConfigResponse({}));
355
+ }
356
+ /**
357
+ * CheckDataAgentMemoryConfig - Queries the memory generation and usage configuration of a DataAgent.
358
+ *
359
+ * @param request - CheckDataAgentMemoryConfigRequest
360
+ * @returns CheckDataAgentMemoryConfigResponse
361
+ */
362
+ async checkDataAgentMemoryConfig(request) {
363
+ let runtime = new $dara.RuntimeOptions({});
364
+ return await this.checkDataAgentMemoryConfigWithOptions(request, runtime);
365
+ }
327
366
  /**
328
367
  * Update an Airflow instance\\"s custom configuration
329
368
  *
@@ -380,6 +419,51 @@ class Client extends openapi_core_1.default {
380
419
  let runtime = new $dara.RuntimeOptions({});
381
420
  return await this.configAirflowWithOptions(request, runtime);
382
421
  }
422
+ /**
423
+ * ConfigDataAgentMemory
424
+ *
425
+ * @param request - ConfigDataAgentMemoryRequest
426
+ * @param runtime - runtime options for this request RuntimeOptions
427
+ * @returns ConfigDataAgentMemoryResponse
428
+ */
429
+ async configDataAgentMemoryWithOptions(request, runtime) {
430
+ request.validate();
431
+ let query = {};
432
+ if (!$dara.isNull(request.DMSUnit)) {
433
+ query["DMSUnit"] = request.DMSUnit;
434
+ }
435
+ if (!$dara.isNull(request.enabled)) {
436
+ query["Enabled"] = request.enabled;
437
+ }
438
+ if (!$dara.isNull(request.recallEnabled)) {
439
+ query["RecallEnabled"] = request.recallEnabled;
440
+ }
441
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
442
+ query: openapi_core_2.OpenApiUtil.query(query),
443
+ });
444
+ let params = new openapi_core_2.$OpenApiUtil.Params({
445
+ action: "ConfigDataAgentMemory",
446
+ version: "2025-04-14",
447
+ protocol: "HTTPS",
448
+ pathname: "/",
449
+ method: "POST",
450
+ authType: "AK",
451
+ style: "RPC",
452
+ reqBodyType: "formData",
453
+ bodyType: "json",
454
+ });
455
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ConfigDataAgentMemoryResponse({}));
456
+ }
457
+ /**
458
+ * ConfigDataAgentMemory
459
+ *
460
+ * @param request - ConfigDataAgentMemoryRequest
461
+ * @returns ConfigDataAgentMemoryResponse
462
+ */
463
+ async configDataAgentMemory(request) {
464
+ let runtime = new $dara.RuntimeOptions({});
465
+ return await this.configDataAgentMemoryWithOptions(request, runtime);
466
+ }
383
467
  /**
384
468
  * Creates an Airflow instance in a workspace.
385
469
  *
@@ -527,7 +611,7 @@ class Client extends openapi_core_1.default {
527
611
  return await this.createAirflowLoginTokenWithOptions(request, runtime);
528
612
  }
529
613
  /**
530
- * Create a custom agent in your personal space or a workspace.
614
+ * Creates a custom agent in a personal space or workspace.
531
615
  *
532
616
  * @param tmpReq - CreateCustomAgentRequest
533
617
  * @param runtime - runtime options for this request RuntimeOptions
@@ -589,6 +673,9 @@ class Client extends openapi_core_1.default {
589
673
  if (!$dara.isNull(request.webReportConfig)) {
590
674
  query["WebReportConfig"] = request.webReportConfig;
591
675
  }
676
+ if (!$dara.isNull(request.webReportTheme)) {
677
+ query["WebReportTheme"] = request.webReportTheme;
678
+ }
592
679
  if (!$dara.isNull(request.workspaceId)) {
593
680
  query["WorkspaceId"] = request.workspaceId;
594
681
  }
@@ -609,7 +696,7 @@ class Client extends openapi_core_1.default {
609
696
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateCustomAgentResponse({}));
610
697
  }
611
698
  /**
612
- * Create a custom agent in your personal space or a workspace.
699
+ * Creates a custom agent in a personal space or workspace.
613
700
  *
614
701
  * @param request - CreateCustomAgentRequest
615
702
  * @returns CreateCustomAgentResponse
@@ -1321,6 +1408,48 @@ class Client extends openapi_core_1.default {
1321
1408
  let runtime = new $dara.RuntimeOptions({});
1322
1409
  return await this.deleteDataAgentKnowledgeBaseWithOptions(request, runtime);
1323
1410
  }
1411
+ /**
1412
+ * Deletes the memory of a DataAgent.
1413
+ *
1414
+ * @param request - DeleteDataAgentMemoryRequest
1415
+ * @param runtime - runtime options for this request RuntimeOptions
1416
+ * @returns DeleteDataAgentMemoryResponse
1417
+ */
1418
+ async deleteDataAgentMemoryWithOptions(request, runtime) {
1419
+ request.validate();
1420
+ let query = {};
1421
+ if (!$dara.isNull(request.DMSUnit)) {
1422
+ query["DMSUnit"] = request.DMSUnit;
1423
+ }
1424
+ if (!$dara.isNull(request.uuid)) {
1425
+ query["Uuid"] = request.uuid;
1426
+ }
1427
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1428
+ query: openapi_core_2.OpenApiUtil.query(query),
1429
+ });
1430
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1431
+ action: "DeleteDataAgentMemory",
1432
+ version: "2025-04-14",
1433
+ protocol: "HTTPS",
1434
+ pathname: "/",
1435
+ method: "POST",
1436
+ authType: "AK",
1437
+ style: "RPC",
1438
+ reqBodyType: "formData",
1439
+ bodyType: "json",
1440
+ });
1441
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteDataAgentMemoryResponse({}));
1442
+ }
1443
+ /**
1444
+ * Deletes the memory of a DataAgent.
1445
+ *
1446
+ * @param request - DeleteDataAgentMemoryRequest
1447
+ * @returns DeleteDataAgentMemoryResponse
1448
+ */
1449
+ async deleteDataAgentMemory(request) {
1450
+ let runtime = new $dara.RuntimeOptions({});
1451
+ return await this.deleteDataAgentMemoryWithOptions(request, runtime);
1452
+ }
1324
1453
  /**
1325
1454
  * Deletes a DataAgent workspace.
1326
1455
  *
@@ -1767,7 +1896,7 @@ class Client extends openapi_core_1.default {
1767
1896
  return await this.deleteWorkspaceCodeWithOptions(request, runtime);
1768
1897
  }
1769
1898
  /**
1770
- * `DescribeCustomAgent` retrieves the details of a custom agent by its agent ID.
1899
+ * Retrieves the details of a custom agent by custom agent ID.
1771
1900
  *
1772
1901
  * @param request - DescribeCustomAgentRequest
1773
1902
  * @param runtime - runtime options for this request RuntimeOptions
@@ -1799,7 +1928,7 @@ class Client extends openapi_core_1.default {
1799
1928
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeCustomAgentResponse({}));
1800
1929
  }
1801
1930
  /**
1802
- * `DescribeCustomAgent` retrieves the details of a custom agent by its agent ID.
1931
+ * Retrieves the details of a custom agent by custom agent ID.
1803
1932
  *
1804
1933
  * @param request - DescribeCustomAgentRequest
1805
1934
  * @returns DescribeCustomAgentResponse
@@ -3314,6 +3443,69 @@ class Client extends openapi_core_1.default {
3314
3443
  let runtime = new $dara.RuntimeOptions({});
3315
3444
  return await this.listDataAgentAccuracyTestTasksWithOptions(request, runtime);
3316
3445
  }
3446
+ /**
3447
+ * Retrieves the DataAgent memory list (up to 50 memories per RAM user).
3448
+ *
3449
+ * @param request - ListDataAgentMemoryRequest
3450
+ * @param runtime - runtime options for this request RuntimeOptions
3451
+ * @returns ListDataAgentMemoryResponse
3452
+ */
3453
+ async listDataAgentMemoryWithOptions(request, runtime) {
3454
+ request.validate();
3455
+ let query = {};
3456
+ if (!$dara.isNull(request.contentPattern)) {
3457
+ query["ContentPattern"] = request.contentPattern;
3458
+ }
3459
+ if (!$dara.isNull(request.DMSUnit)) {
3460
+ query["DMSUnit"] = request.DMSUnit;
3461
+ }
3462
+ if (!$dara.isNull(request.fromId)) {
3463
+ query["FromId"] = request.fromId;
3464
+ }
3465
+ if (!$dara.isNull(request.memFrom)) {
3466
+ query["MemFrom"] = request.memFrom;
3467
+ }
3468
+ if (!$dara.isNull(request.order)) {
3469
+ query["Order"] = request.order;
3470
+ }
3471
+ if (!$dara.isNull(request.orderBy)) {
3472
+ query["OrderBy"] = request.orderBy;
3473
+ }
3474
+ if (!$dara.isNull(request.pageNum)) {
3475
+ query["PageNum"] = request.pageNum;
3476
+ }
3477
+ if (!$dara.isNull(request.pageSize)) {
3478
+ query["PageSize"] = request.pageSize;
3479
+ }
3480
+ if (!$dara.isNull(request.queryAll)) {
3481
+ query["QueryAll"] = request.queryAll;
3482
+ }
3483
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3484
+ query: openapi_core_2.OpenApiUtil.query(query),
3485
+ });
3486
+ let params = new openapi_core_2.$OpenApiUtil.Params({
3487
+ action: "ListDataAgentMemory",
3488
+ version: "2025-04-14",
3489
+ protocol: "HTTPS",
3490
+ pathname: "/",
3491
+ method: "POST",
3492
+ authType: "AK",
3493
+ style: "RPC",
3494
+ reqBodyType: "formData",
3495
+ bodyType: "json",
3496
+ });
3497
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListDataAgentMemoryResponse({}));
3498
+ }
3499
+ /**
3500
+ * Retrieves the DataAgent memory list (up to 50 memories per RAM user).
3501
+ *
3502
+ * @param request - ListDataAgentMemoryRequest
3503
+ * @returns ListDataAgentMemoryResponse
3504
+ */
3505
+ async listDataAgentMemory(request) {
3506
+ let runtime = new $dara.RuntimeOptions({});
3507
+ return await this.listDataAgentMemoryWithOptions(request, runtime);
3508
+ }
3317
3509
  /**
3318
3510
  * Retrieves the list of historical session descriptions for a Data Agent.
3319
3511
  *
@@ -3384,7 +3576,7 @@ class Client extends openapi_core_1.default {
3384
3576
  return await this.listDataAgentSessionWithOptions(request, runtime);
3385
3577
  }
3386
3578
  /**
3387
- * Retrieves the collaborative workspaces under the primary account with pagination.
3579
+ * Retrieves the workspaces under the primary account with pagination.
3388
3580
  *
3389
3581
  * @param request - ListDataAgentWorkspaceRequest
3390
3582
  * @param runtime - runtime options for this request RuntimeOptions
@@ -3437,7 +3629,7 @@ class Client extends openapi_core_1.default {
3437
3629
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListDataAgentWorkspaceResponse({}));
3438
3630
  }
3439
3631
  /**
3440
- * Retrieves the collaborative workspaces under the primary account with pagination.
3632
+ * Retrieves the workspaces under the primary account with pagination.
3441
3633
  *
3442
3634
  * @param request - ListDataAgentWorkspaceRequest
3443
3635
  * @returns ListDataAgentWorkspaceResponse
@@ -4488,7 +4680,7 @@ class Client extends openapi_core_1.default {
4488
4680
  return await this.listWorkspaceCodeWithOptions(request, runtime);
4489
4681
  }
4490
4682
  /**
4491
- * Modify a custom agent in a personal space or workspace
4683
+ * Modifies a custom agent in a personal space or workspace.
4492
4684
  *
4493
4685
  * @param tmpReq - ModifyCustomAgentRequest
4494
4686
  * @param runtime - runtime options for this request RuntimeOptions
@@ -4553,6 +4745,9 @@ class Client extends openapi_core_1.default {
4553
4745
  if (!$dara.isNull(request.webReportConfig)) {
4554
4746
  query["WebReportConfig"] = request.webReportConfig;
4555
4747
  }
4748
+ if (!$dara.isNull(request.webReportTheme)) {
4749
+ query["WebReportTheme"] = request.webReportTheme;
4750
+ }
4556
4751
  if (!$dara.isNull(request.workspaceId)) {
4557
4752
  query["WorkspaceId"] = request.workspaceId;
4558
4753
  }
@@ -4573,7 +4768,7 @@ class Client extends openapi_core_1.default {
4573
4768
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ModifyCustomAgentResponse({}));
4574
4769
  }
4575
4770
  /**
4576
- * Modify a custom agent in a personal space or workspace
4771
+ * Modifies a custom agent in a personal space or workspace.
4577
4772
  *
4578
4773
  * @param request - ModifyCustomAgentRequest
4579
4774
  * @returns ModifyCustomAgentResponse
@@ -4864,13 +5059,7 @@ class Client extends openapi_core_1.default {
4864
5059
  * Sends a user message to a specified session or cancels a session.
4865
5060
  *
4866
5061
  * @remarks
4867
- * ## Request description
4868
- * - `agent_id` and `session_id` are required fields.
4869
- * - `message_type` defaults to `primary`. Set it to `additional` or `cancel` when you need to append information or cancel a session.
4870
- * - The `reply_to` field indicates which agent message this message is responding to. The default value is `0`.
4871
- * - When `message_type` is `additional`, the `question` field is required.
4872
- * - `quoted_message` can be used to quote the content of a previous user message.
4873
- * - Fields such as `data_source`, `dms_user`, `db_metadata`, and `session_config` are optional but provide more detailed context information.
5062
+ * ## Request description.
4874
5063
  *
4875
5064
  * @param tmpReq - SendChatMessageRequest
4876
5065
  * @param runtime - runtime options for this request RuntimeOptions
@@ -4958,13 +5147,7 @@ class Client extends openapi_core_1.default {
4958
5147
  * Sends a user message to a specified session or cancels a session.
4959
5148
  *
4960
5149
  * @remarks
4961
- * ## Request description
4962
- * - `agent_id` and `session_id` are required fields.
4963
- * - `message_type` defaults to `primary`. Set it to `additional` or `cancel` when you need to append information or cancel a session.
4964
- * - The `reply_to` field indicates which agent message this message is responding to. The default value is `0`.
4965
- * - When `message_type` is `additional`, the `question` field is required.
4966
- * - `quoted_message` can be used to quote the content of a previous user message.
4967
- * - Fields such as `data_source`, `dms_user`, `db_metadata`, and `session_config` are optional but provide more detailed context information.
5150
+ * ## Request description.
4968
5151
  *
4969
5152
  * @param request - SendChatMessageRequest
4970
5153
  * @returns SendChatMessageResponse
@@ -5355,6 +5538,57 @@ class Client extends openapi_core_1.default {
5355
5538
  let runtime = new $dara.RuntimeOptions({});
5356
5539
  return await this.updateDataAgentAccuracyTestWithOptions(request, runtime);
5357
5540
  }
5541
+ /**
5542
+ * Updates the memory of a DataAgent.
5543
+ *
5544
+ * @param request - UpdateDataAgentMemoryRequest
5545
+ * @param runtime - runtime options for this request RuntimeOptions
5546
+ * @returns UpdateDataAgentMemoryResponse
5547
+ */
5548
+ async updateDataAgentMemoryWithOptions(request, runtime) {
5549
+ request.validate();
5550
+ let query = {};
5551
+ if (!$dara.isNull(request.content)) {
5552
+ query["Content"] = request.content;
5553
+ }
5554
+ if (!$dara.isNull(request.DMSUnit)) {
5555
+ query["DMSUnit"] = request.DMSUnit;
5556
+ }
5557
+ if (!$dara.isNull(request.fromId)) {
5558
+ query["FromId"] = request.fromId;
5559
+ }
5560
+ if (!$dara.isNull(request.memFrom)) {
5561
+ query["MemFrom"] = request.memFrom;
5562
+ }
5563
+ if (!$dara.isNull(request.uuid)) {
5564
+ query["Uuid"] = request.uuid;
5565
+ }
5566
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
5567
+ query: openapi_core_2.OpenApiUtil.query(query),
5568
+ });
5569
+ let params = new openapi_core_2.$OpenApiUtil.Params({
5570
+ action: "UpdateDataAgentMemory",
5571
+ version: "2025-04-14",
5572
+ protocol: "HTTPS",
5573
+ pathname: "/",
5574
+ method: "POST",
5575
+ authType: "AK",
5576
+ style: "RPC",
5577
+ reqBodyType: "formData",
5578
+ bodyType: "json",
5579
+ });
5580
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateDataAgentMemoryResponse({}));
5581
+ }
5582
+ /**
5583
+ * Updates the memory of a DataAgent.
5584
+ *
5585
+ * @param request - UpdateDataAgentMemoryRequest
5586
+ * @returns UpdateDataAgentMemoryResponse
5587
+ */
5588
+ async updateDataAgentMemory(request) {
5589
+ let runtime = new $dara.RuntimeOptions({});
5590
+ return await this.updateDataAgentMemoryWithOptions(request, runtime);
5591
+ }
5358
5592
  /**
5359
5593
  * Updates workspace information.
5360
5594
  *