@alicloud/dms20250414 1.20.2 → 1.21.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 (60) hide show
  1. package/dist/client.d.ts +29 -2
  2. package/dist/client.js +80 -2
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AddDataAgentMemoryRequest.d.ts +43 -0
  5. package/dist/models/AddDataAgentMemoryRequest.js +68 -0
  6. package/dist/models/AddDataAgentMemoryRequest.js.map +1 -0
  7. package/dist/models/AddDataAgentMemoryResponse.d.ts +19 -0
  8. package/dist/models/AddDataAgentMemoryResponse.js +69 -0
  9. package/dist/models/AddDataAgentMemoryResponse.js.map +1 -0
  10. package/dist/models/AddDataAgentMemoryResponseBody.d.ts +56 -0
  11. package/dist/models/AddDataAgentMemoryResponseBody.js +90 -0
  12. package/dist/models/AddDataAgentMemoryResponseBody.js.map +1 -0
  13. package/dist/models/CreateCustomAgentRequest.d.ts +33 -28
  14. package/dist/models/CreateCustomAgentRequest.js +5 -0
  15. package/dist/models/CreateCustomAgentRequest.js.map +1 -1
  16. package/dist/models/CreateCustomAgentResponseBody.d.ts +20 -16
  17. package/dist/models/CreateCustomAgentResponseBody.js +5 -0
  18. package/dist/models/CreateCustomAgentResponseBody.js.map +1 -1
  19. package/dist/models/CreateCustomAgentShrinkRequest.d.ts +30 -27
  20. package/dist/models/CreateCustomAgentShrinkRequest.js +2 -0
  21. package/dist/models/CreateCustomAgentShrinkRequest.js.map +1 -1
  22. package/dist/models/DescribeCustomAgentResponseBody.d.ts +9 -8
  23. package/dist/models/DescribeCustomAgentResponseBody.js +5 -0
  24. package/dist/models/DescribeCustomAgentResponseBody.js.map +1 -1
  25. package/dist/models/ListCustomAgentResponseBody.d.ts +1 -0
  26. package/dist/models/ListCustomAgentResponseBody.js +5 -0
  27. package/dist/models/ListCustomAgentResponseBody.js.map +1 -1
  28. package/dist/models/ModifyCustomAgentRequest.d.ts +1 -0
  29. package/dist/models/ModifyCustomAgentRequest.js +5 -0
  30. package/dist/models/ModifyCustomAgentRequest.js.map +1 -1
  31. package/dist/models/ModifyCustomAgentResponseBody.d.ts +1 -0
  32. package/dist/models/ModifyCustomAgentResponseBody.js +5 -0
  33. package/dist/models/ModifyCustomAgentResponseBody.js.map +1 -1
  34. package/dist/models/ModifyCustomAgentShrinkRequest.d.ts +1 -0
  35. package/dist/models/ModifyCustomAgentShrinkRequest.js +2 -0
  36. package/dist/models/ModifyCustomAgentShrinkRequest.js.map +1 -1
  37. package/dist/models/SendChatMessageRequest.d.ts +53 -37
  38. package/dist/models/SendChatMessageRequest.js +5 -0
  39. package/dist/models/SendChatMessageRequest.js.map +1 -1
  40. package/dist/models/SendChatMessageShrinkRequest.d.ts +21 -9
  41. package/dist/models/SendChatMessageShrinkRequest.js.map +1 -1
  42. package/dist/models/model.d.ts +4 -0
  43. package/dist/models/model.js +20 -12
  44. package/dist/models/model.js.map +1 -1
  45. package/package.json +1 -1
  46. package/src/client.ts +92 -2
  47. package/src/models/AddDataAgentMemoryRequest.ts +66 -0
  48. package/src/models/AddDataAgentMemoryResponse.ts +40 -0
  49. package/src/models/AddDataAgentMemoryResponseBody.ts +92 -0
  50. package/src/models/CreateCustomAgentRequest.ts +38 -28
  51. package/src/models/CreateCustomAgentResponseBody.ts +25 -16
  52. package/src/models/CreateCustomAgentShrinkRequest.ts +32 -27
  53. package/src/models/DescribeCustomAgentResponseBody.ts +14 -8
  54. package/src/models/ListCustomAgentResponseBody.ts +6 -0
  55. package/src/models/ModifyCustomAgentRequest.ts +6 -0
  56. package/src/models/ModifyCustomAgentResponseBody.ts +6 -0
  57. package/src/models/ModifyCustomAgentShrinkRequest.ts +3 -0
  58. package/src/models/SendChatMessageRequest.ts +59 -38
  59. package/src/models/SendChatMessageShrinkRequest.ts +22 -10
  60. package/src/models/model.ts +4 -0
package/dist/client.d.ts CHANGED
@@ -8,6 +8,21 @@ export default class Client extends OpenApi {
8
8
  getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {
9
9
  [key: string]: string;
10
10
  }, endpoint: string): string;
11
+ /**
12
+ * AddDataAgentMemory
13
+ *
14
+ * @param request - AddDataAgentMemoryRequest
15
+ * @param runtime - runtime options for this request RuntimeOptions
16
+ * @returns AddDataAgentMemoryResponse
17
+ */
18
+ addDataAgentMemoryWithOptions(request: $_model.AddDataAgentMemoryRequest, runtime: $dara.RuntimeOptions): Promise<$_model.AddDataAgentMemoryResponse>;
19
+ /**
20
+ * AddDataAgentMemory
21
+ *
22
+ * @param request - AddDataAgentMemoryRequest
23
+ * @returns AddDataAgentMemoryResponse
24
+ */
25
+ addDataAgentMemory(request: $_model.AddDataAgentMemoryRequest): Promise<$_model.AddDataAgentMemoryResponse>;
11
26
  /**
12
27
  * Adds a user to a specified workspace.
13
28
  *
@@ -1628,7 +1643,13 @@ export default class Client extends OpenApi {
1628
1643
  * Sends a user message to a specified session or cancels a session.
1629
1644
  *
1630
1645
  * @remarks
1631
- * ## Request description.
1646
+ * ## Request description
1647
+ * - `agent_id` and `session_id` are required fields.
1648
+ * - `message_type` defaults to `primary`. Set it to `additional` or `cancel` when you need to append information or cancel a session.
1649
+ * - The `reply_to` field indicates which Agent message this message is responding to. The default value is `0`.
1650
+ * - When `message_type` is `additional`, the `question` field is required.
1651
+ * - `quoted_message` can be used to quote the user\\"s previous message content.
1652
+ * - Fields such as `data_source`, `dms_user`, `db_metadata`, and `session_config` are optional but provide more detailed context information.
1632
1653
  *
1633
1654
  * @param tmpReq - SendChatMessageRequest
1634
1655
  * @param runtime - runtime options for this request RuntimeOptions
@@ -1639,7 +1660,13 @@ export default class Client extends OpenApi {
1639
1660
  * Sends a user message to a specified session or cancels a session.
1640
1661
  *
1641
1662
  * @remarks
1642
- * ## Request description.
1663
+ * ## Request description
1664
+ * - `agent_id` and `session_id` are required fields.
1665
+ * - `message_type` defaults to `primary`. Set it to `additional` or `cancel` when you need to append information or cancel a session.
1666
+ * - The `reply_to` field indicates which Agent message this message is responding to. The default value is `0`.
1667
+ * - When `message_type` is `additional`, the `question` field is required.
1668
+ * - `quoted_message` can be used to quote the user\\"s previous message content.
1669
+ * - Fields such as `data_source`, `dms_user`, `db_metadata`, and `session_config` are optional but provide more detailed context information.
1643
1670
  *
1644
1671
  * @param request - SendChatMessageRequest
1645
1672
  * @returns SendChatMessageResponse
package/dist/client.js CHANGED
@@ -91,6 +91,60 @@ class Client extends openapi_core_1.default {
91
91
  }
92
92
  return openapi_core_2.OpenApiUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
93
93
  }
94
+ /**
95
+ * AddDataAgentMemory
96
+ *
97
+ * @param request - AddDataAgentMemoryRequest
98
+ * @param runtime - runtime options for this request RuntimeOptions
99
+ * @returns AddDataAgentMemoryResponse
100
+ */
101
+ async addDataAgentMemoryWithOptions(request, runtime) {
102
+ request.validate();
103
+ let query = {};
104
+ if (!$dara.isNull(request.content)) {
105
+ query["Content"] = request.content;
106
+ }
107
+ if (!$dara.isNull(request.DMSUnit)) {
108
+ query["DMSUnit"] = request.DMSUnit;
109
+ }
110
+ if (!$dara.isNull(request.fromId)) {
111
+ query["FromId"] = request.fromId;
112
+ }
113
+ if (!$dara.isNull(request.label)) {
114
+ query["Label"] = request.label;
115
+ }
116
+ if (!$dara.isNull(request.memFrom)) {
117
+ query["MemFrom"] = request.memFrom;
118
+ }
119
+ if (!$dara.isNull(request.sessionUuid)) {
120
+ query["SessionUuid"] = request.sessionUuid;
121
+ }
122
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
123
+ query: openapi_core_2.OpenApiUtil.query(query),
124
+ });
125
+ let params = new openapi_core_2.$OpenApiUtil.Params({
126
+ action: "AddDataAgentMemory",
127
+ version: "2025-04-14",
128
+ protocol: "HTTPS",
129
+ pathname: "/",
130
+ method: "POST",
131
+ authType: "AK",
132
+ style: "RPC",
133
+ reqBodyType: "formData",
134
+ bodyType: "json",
135
+ });
136
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.AddDataAgentMemoryResponse({}));
137
+ }
138
+ /**
139
+ * AddDataAgentMemory
140
+ *
141
+ * @param request - AddDataAgentMemoryRequest
142
+ * @returns AddDataAgentMemoryResponse
143
+ */
144
+ async addDataAgentMemory(request) {
145
+ let runtime = new $dara.RuntimeOptions({});
146
+ return await this.addDataAgentMemoryWithOptions(request, runtime);
147
+ }
94
148
  /**
95
149
  * Adds a user to a specified workspace.
96
150
  *
@@ -636,6 +690,9 @@ class Client extends openapi_core_1.default {
636
690
  if (!$dara.isNull(tmpReq.scheduleTaskConfig)) {
637
691
  request.scheduleTaskConfigShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.scheduleTaskConfig, "ScheduleTaskConfig", "json");
638
692
  }
693
+ if (!$dara.isNull(tmpReq.userSpecifiedSkillList)) {
694
+ request.userSpecifiedSkillListShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.userSpecifiedSkillList, "UserSpecifiedSkillList", "json");
695
+ }
639
696
  let query = {};
640
697
  if (!$dara.isNull(request.callbackConfigShrink)) {
641
698
  query["CallbackConfig"] = request.callbackConfigShrink;
@@ -676,6 +733,9 @@ class Client extends openapi_core_1.default {
676
733
  if (!$dara.isNull(request.textReportConfig)) {
677
734
  query["TextReportConfig"] = request.textReportConfig;
678
735
  }
736
+ if (!$dara.isNull(request.userSpecifiedSkillListShrink)) {
737
+ query["UserSpecifiedSkillList"] = request.userSpecifiedSkillListShrink;
738
+ }
679
739
  if (!$dara.isNull(request.webReportConfig)) {
680
740
  query["WebReportConfig"] = request.webReportConfig;
681
741
  }
@@ -5139,6 +5199,9 @@ class Client extends openapi_core_1.default {
5139
5199
  if (!$dara.isNull(tmpReq.scheduleTaskConfig)) {
5140
5200
  request.scheduleTaskConfigShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.scheduleTaskConfig, "ScheduleTaskConfig", "json");
5141
5201
  }
5202
+ if (!$dara.isNull(tmpReq.userSpecifiedSkillList)) {
5203
+ request.userSpecifiedSkillListShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.userSpecifiedSkillList, "UserSpecifiedSkillList", "json");
5204
+ }
5142
5205
  let query = {};
5143
5206
  if (!$dara.isNull(request.callbackConfigShrink)) {
5144
5207
  query["CallbackConfig"] = request.callbackConfigShrink;
@@ -5182,6 +5245,9 @@ class Client extends openapi_core_1.default {
5182
5245
  if (!$dara.isNull(request.textReportConfig)) {
5183
5246
  query["TextReportConfig"] = request.textReportConfig;
5184
5247
  }
5248
+ if (!$dara.isNull(request.userSpecifiedSkillListShrink)) {
5249
+ query["UserSpecifiedSkillList"] = request.userSpecifiedSkillListShrink;
5250
+ }
5185
5251
  if (!$dara.isNull(request.webReportConfig)) {
5186
5252
  query["WebReportConfig"] = request.webReportConfig;
5187
5253
  }
@@ -5568,7 +5634,13 @@ class Client extends openapi_core_1.default {
5568
5634
  * Sends a user message to a specified session or cancels a session.
5569
5635
  *
5570
5636
  * @remarks
5571
- * ## Request description.
5637
+ * ## Request description
5638
+ * - `agent_id` and `session_id` are required fields.
5639
+ * - `message_type` defaults to `primary`. Set it to `additional` or `cancel` when you need to append information or cancel a session.
5640
+ * - The `reply_to` field indicates which Agent message this message is responding to. The default value is `0`.
5641
+ * - When `message_type` is `additional`, the `question` field is required.
5642
+ * - `quoted_message` can be used to quote the user\\"s previous message content.
5643
+ * - Fields such as `data_source`, `dms_user`, `db_metadata`, and `session_config` are optional but provide more detailed context information.
5572
5644
  *
5573
5645
  * @param tmpReq - SendChatMessageRequest
5574
5646
  * @param runtime - runtime options for this request RuntimeOptions
@@ -5656,7 +5728,13 @@ class Client extends openapi_core_1.default {
5656
5728
  * Sends a user message to a specified session or cancels a session.
5657
5729
  *
5658
5730
  * @remarks
5659
- * ## Request description.
5731
+ * ## Request description
5732
+ * - `agent_id` and `session_id` are required fields.
5733
+ * - `message_type` defaults to `primary`. Set it to `additional` or `cancel` when you need to append information or cancel a session.
5734
+ * - The `reply_to` field indicates which Agent message this message is responding to. The default value is `0`.
5735
+ * - When `message_type` is `additional`, the `question` field is required.
5736
+ * - `quoted_message` can be used to quote the user\\"s previous message content.
5737
+ * - Fields such as `data_source`, `dms_user`, `db_metadata`, and `session_config` are optional but provide more detailed context information.
5660
5738
  *
5661
5739
  * @param request - SendChatMessageRequest
5662
5740
  * @returns SendChatMessageResponse