@alicloud/dms20250414 1.14.2 → 1.14.3

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 (49) hide show
  1. package/dist/client.d.ts +22 -22
  2. package/dist/client.js +39 -23
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateDataAgentWorkspaceRequest.d.ts +3 -3
  5. package/dist/models/CreateDataAgentWorkspaceResponseBody.d.ts +6 -9
  6. package/dist/models/CreateDataAgentWorkspaceResponseBody.js +2 -0
  7. package/dist/models/CreateDataAgentWorkspaceResponseBody.js.map +1 -1
  8. package/dist/models/DescribeDataAgentSessionRequest.d.ts +3 -3
  9. package/dist/models/DescribeDataAgentSessionResponseBody.d.ts +83 -40
  10. package/dist/models/DescribeDataAgentSessionResponseBody.js +93 -1
  11. package/dist/models/DescribeDataAgentSessionResponseBody.js.map +1 -1
  12. package/dist/models/DmsGatewayOrder.d.ts +23 -0
  13. package/dist/models/DmsGatewayOrder.js +76 -0
  14. package/dist/models/DmsGatewayOrder.js.map +1 -0
  15. package/dist/models/GetDataAgentWorkspaceInfoRequest.d.ts +2 -2
  16. package/dist/models/GetDataAgentWorkspaceInfoResponseBody.d.ts +9 -12
  17. package/dist/models/GetDataAgentWorkspaceInfoResponseBody.js +2 -0
  18. package/dist/models/GetDataAgentWorkspaceInfoResponseBody.js.map +1 -1
  19. package/dist/models/ListDataAgentWorkspaceRequest.d.ts +6 -6
  20. package/dist/models/ListDataAgentWorkspaceResponseBody.d.ts +13 -12
  21. package/dist/models/ListDataAgentWorkspaceResponseBody.js +2 -0
  22. package/dist/models/ListDataAgentWorkspaceResponseBody.js.map +1 -1
  23. package/dist/models/SendChatMessageRequest.d.ts +62 -29
  24. package/dist/models/SendChatMessageRequest.js +59 -1
  25. package/dist/models/SendChatMessageRequest.js.map +1 -1
  26. package/dist/models/SendChatMessageResponseBody.d.ts +7 -6
  27. package/dist/models/SendChatMessageResponseBody.js +2 -0
  28. package/dist/models/SendChatMessageResponseBody.js.map +1 -1
  29. package/dist/models/SendChatMessageShrinkRequest.d.ts +12 -11
  30. package/dist/models/SendChatMessageShrinkRequest.js +2 -0
  31. package/dist/models/SendChatMessageShrinkRequest.js.map +1 -1
  32. package/dist/models/model.d.ts +6 -0
  33. package/dist/models/model.js +28 -16
  34. package/dist/models/model.js.map +1 -1
  35. package/package.json +1 -1
  36. package/src/client.ts +41 -23
  37. package/src/models/CreateDataAgentWorkspaceRequest.ts +3 -3
  38. package/src/models/CreateDataAgentWorkspaceResponseBody.ts +8 -9
  39. package/src/models/DescribeDataAgentSessionRequest.ts +3 -3
  40. package/src/models/DescribeDataAgentSessionResponseBody.ts +148 -40
  41. package/src/models/DmsGatewayOrder.ts +54 -0
  42. package/src/models/GetDataAgentWorkspaceInfoRequest.ts +2 -2
  43. package/src/models/GetDataAgentWorkspaceInfoResponseBody.ts +11 -12
  44. package/src/models/ListDataAgentWorkspaceRequest.ts +6 -6
  45. package/src/models/ListDataAgentWorkspaceResponseBody.ts +15 -12
  46. package/src/models/SendChatMessageRequest.ts +102 -29
  47. package/src/models/SendChatMessageResponseBody.ts +9 -6
  48. package/src/models/SendChatMessageShrinkRequest.ts +14 -11
  49. package/src/models/model.ts +6 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/dms20250414",
3
- "version": "1.14.2",
3
+ "version": "1.14.3",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -11,7 +11,17 @@ export default class Client extends OpenApi {
11
11
 
12
12
  constructor(config: $OpenApiUtil.Config) {
13
13
  super(config);
14
- this._endpointRule = "";
14
+ this._endpointRule = "regional";
15
+ this._endpointMap = {
16
+ 'us-west-1': "dms.us-west-1.aliyuncs.com",
17
+ 'us-east-1': "dms.us-east-1.aliyuncs.com",
18
+ 'cn-shenzhen': "dms.cn-shenzhen.aliyuncs.com",
19
+ 'cn-shanghai': "dms.cn-shanghai.aliyuncs.com",
20
+ 'cn-hongkong': "dms.cn-hongkong.aliyuncs.com",
21
+ 'cn-hangzhou': "dms.cn-hangzhou.aliyuncs.com",
22
+ 'cn-beijing': "dms.cn-beijing.aliyuncs.com",
23
+ 'ap-southeast-1': "dms.ap-southeast-1.aliyuncs.com",
24
+ };
15
25
  this.checkConfig(config);
16
26
  this._endpoint = this.getEndpoint("dms", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
17
27
  }
@@ -766,7 +776,7 @@ export default class Client extends OpenApi {
766
776
  }
767
777
 
768
778
  /**
769
- * Creates a DataAgent workspace.
779
+ * Creates a DataAgent collaborative workspace.
770
780
  *
771
781
  * @param request - CreateDataAgentWorkspaceRequest
772
782
  * @param runtime - runtime options for this request RuntimeOptions
@@ -809,7 +819,7 @@ export default class Client extends OpenApi {
809
819
  }
810
820
 
811
821
  /**
812
- * Creates a DataAgent workspace.
822
+ * Creates a DataAgent collaborative workspace.
813
823
  *
814
824
  * @param request - CreateDataAgentWorkspaceRequest
815
825
  * @returns CreateDataAgentWorkspaceResponse
@@ -1794,7 +1804,7 @@ export default class Client extends OpenApi {
1794
1804
  }
1795
1805
 
1796
1806
  /**
1797
- * Gets the details of a DataAgent session.
1807
+ * Retrieves the description of a DataAgent session.
1798
1808
  *
1799
1809
  * @param request - DescribeDataAgentSessionRequest
1800
1810
  * @param runtime - runtime options for this request RuntimeOptions
@@ -1833,7 +1843,7 @@ export default class Client extends OpenApi {
1833
1843
  }
1834
1844
 
1835
1845
  /**
1836
- * Gets the details of a DataAgent session.
1846
+ * Retrieves the description of a DataAgent session.
1837
1847
  *
1838
1848
  * @param request - DescribeDataAgentSessionRequest
1839
1849
  * @returns DescribeDataAgentSessionResponse
@@ -2300,7 +2310,7 @@ export default class Client extends OpenApi {
2300
2310
  }
2301
2311
 
2302
2312
  /**
2303
- * Retrieves workspace details.
2313
+ * Retrieves the details of a collaborative workspace.
2304
2314
  *
2305
2315
  * @param request - GetDataAgentWorkspaceInfoRequest
2306
2316
  * @param runtime - runtime options for this request RuntimeOptions
@@ -2335,7 +2345,7 @@ export default class Client extends OpenApi {
2335
2345
  }
2336
2346
 
2337
2347
  /**
2338
- * Retrieves workspace details.
2348
+ * Retrieves the details of a collaborative workspace.
2339
2349
  *
2340
2350
  * @param request - GetDataAgentWorkspaceInfoRequest
2341
2351
  * @returns GetDataAgentWorkspaceInfoResponse
@@ -3142,7 +3152,7 @@ export default class Client extends OpenApi {
3142
3152
  }
3143
3153
 
3144
3154
  /**
3145
- * Retrieves paginated collaboration workspaces for an Alibaba Cloud account.
3155
+ * Retrieves the collaborative workspaces under the primary account with pagination.
3146
3156
  *
3147
3157
  * @param request - ListDataAgentWorkspaceRequest
3148
3158
  * @param runtime - runtime options for this request RuntimeOptions
@@ -3205,7 +3215,7 @@ export default class Client extends OpenApi {
3205
3215
  }
3206
3216
 
3207
3217
  /**
3208
- * Retrieves paginated collaboration workspaces for an Alibaba Cloud account.
3218
+ * Retrieves the collaborative workspaces under the primary account with pagination.
3209
3219
  *
3210
3220
  * @param request - ListDataAgentWorkspaceRequest
3211
3221
  * @returns ListDataAgentWorkspaceResponse
@@ -4848,16 +4858,16 @@ export default class Client extends OpenApi {
4848
4858
  }
4849
4859
 
4850
4860
  /**
4851
- * Sends a user message to a specified session or ends the session.
4861
+ * Sends a user message to a specified session or cancels a session.
4852
4862
  *
4853
4863
  * @remarks
4854
- * ## Request
4855
- * - The `agent_id` and `session_id` fields are required.
4856
- * - The `message_type` field defaults to `primary`. Set it to `additional` to append information or to `cancel` to end the session.
4857
- * - The `reply_to` field specifies which agent message the current message is a response to. It defaults to `0`.
4864
+ * ## Request description
4865
+ * - `agent_id` and `session_id` are required fields.
4866
+ * - `message_type` defaults to `primary`. Set it to `additional` when appending information or `cancel` when canceling a session.
4867
+ * - `reply_to` indicates which Agent message this message responds to. The default value is `0`.
4858
4868
  * - When `message_type` is `additional`, the `question` field is required.
4859
- * - Use the `quoted_message` field to reference a previous user message.
4860
- * - The optional fields `data_source`, `dms_user`, `db_metadata`, and `session_config` provide more detailed context.
4869
+ * - `quoted_message` can be used to quote the content of a previous user message.
4870
+ * - `data_source`, `dms_user`, `db_metadata`, `session_config`, and other fields are optional but provide more detailed context information.
4861
4871
  *
4862
4872
  * @param tmpReq - SendChatMessageRequest
4863
4873
  * @param runtime - runtime options for this request RuntimeOptions
@@ -4879,6 +4889,10 @@ export default class Client extends OpenApi {
4879
4889
  request.sessionConfigShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.sessionConfig, "SessionConfig", "json");
4880
4890
  }
4881
4891
 
4892
+ if (!$dara.isNull(tmpReq.taskConfig)) {
4893
+ request.taskConfigShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.taskConfig, "TaskConfig", "json");
4894
+ }
4895
+
4882
4896
  let query = { };
4883
4897
  if (!$dara.isNull(request.agentId)) {
4884
4898
  query["AgentId"] = request.agentId;
@@ -4928,6 +4942,10 @@ export default class Client extends OpenApi {
4928
4942
  query["SessionId"] = request.sessionId;
4929
4943
  }
4930
4944
 
4945
+ if (!$dara.isNull(request.taskConfigShrink)) {
4946
+ query["TaskConfig"] = request.taskConfigShrink;
4947
+ }
4948
+
4931
4949
  let req = new $OpenApiUtil.OpenApiRequest({
4932
4950
  query: OpenApiUtil.query(query),
4933
4951
  });
@@ -4946,16 +4964,16 @@ export default class Client extends OpenApi {
4946
4964
  }
4947
4965
 
4948
4966
  /**
4949
- * Sends a user message to a specified session or ends the session.
4967
+ * Sends a user message to a specified session or cancels a session.
4950
4968
  *
4951
4969
  * @remarks
4952
- * ## Request
4953
- * - The `agent_id` and `session_id` fields are required.
4954
- * - The `message_type` field defaults to `primary`. Set it to `additional` to append information or to `cancel` to end the session.
4955
- * - The `reply_to` field specifies which agent message the current message is a response to. It defaults to `0`.
4970
+ * ## Request description
4971
+ * - `agent_id` and `session_id` are required fields.
4972
+ * - `message_type` defaults to `primary`. Set it to `additional` when appending information or `cancel` when canceling a session.
4973
+ * - `reply_to` indicates which Agent message this message responds to. The default value is `0`.
4956
4974
  * - When `message_type` is `additional`, the `question` field is required.
4957
- * - Use the `quoted_message` field to reference a previous user message.
4958
- * - The optional fields `data_source`, `dms_user`, `db_metadata`, and `session_config` provide more detailed context.
4975
+ * - `quoted_message` can be used to quote the content of a previous user message.
4976
+ * - `data_source`, `dms_user`, `db_metadata`, `session_config`, and other fields are optional but provide more detailed context information.
4959
4977
  *
4960
4978
  * @param request - SendChatMessageRequest
4961
4979
  * @returns SendChatMessageResponse
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class CreateDataAgentWorkspaceRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The DMS unit.
8
+ * The current DMS unit.
9
9
  *
10
10
  * @example
11
11
  * cn-hangzhou
@@ -14,7 +14,7 @@ export class CreateDataAgentWorkspaceRequest extends $dara.Model {
14
14
  isSessionShareEnabled?: boolean;
15
15
  /**
16
16
  * @remarks
17
- * The description of the workspace.
17
+ * The description of the collaborative workspace.
18
18
  *
19
19
  * @example
20
20
  * Space for test
@@ -22,7 +22,7 @@ export class CreateDataAgentWorkspaceRequest extends $dara.Model {
22
22
  workspaceDesc?: string;
23
23
  /**
24
24
  * @remarks
25
- * The name of the workspace.
25
+ * The name of the collaborative workspace.
26
26
  *
27
27
  * @example
28
28
  * workspaceTest
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class CreateDataAgentWorkspaceResponseBodyData extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The time the workspace was created, as a UNIX timestamp in seconds.
8
+ * The time when the workspace was created. The value is a UNIX timestamp in seconds.
9
9
  *
10
10
  * @example
11
11
  * 1765960516
@@ -13,20 +13,16 @@ export class CreateDataAgentWorkspaceResponseBodyData extends $dara.Model {
13
13
  createTime?: number;
14
14
  /**
15
15
  * @remarks
16
- * The user ID of the workspace creator.
16
+ * The UID of the workspace creator.
17
17
  *
18
18
  * @example
19
19
  * 20282*****7591
20
20
  */
21
21
  creator?: string;
22
- /**
23
- * @remarks
24
- * Indicates whether session sharing is enabled for the workspace.
25
- */
26
22
  isSessionShareEnabled?: boolean;
27
23
  /**
28
24
  * @remarks
29
- * The time the workspace was last modified, as a UNIX timestamp in seconds.
25
+ * The time when the workspace was last modified. The value is a UNIX timestamp in seconds.
30
26
  *
31
27
  * @example
32
28
  * 1765961516
@@ -34,7 +30,7 @@ export class CreateDataAgentWorkspaceResponseBodyData extends $dara.Model {
34
30
  modifyTime?: number;
35
31
  /**
36
32
  * @remarks
37
- * The name of the user\\"s role in the workspace.
33
+ * The role name of the user in the workspace.
38
34
  *
39
35
  * @example
40
36
  * owner
@@ -48,6 +44,7 @@ export class CreateDataAgentWorkspaceResponseBodyData extends $dara.Model {
48
44
  * 11
49
45
  */
50
46
  totalMember?: number;
47
+ type?: string;
51
48
  /**
52
49
  * @remarks
53
50
  * The description of the workspace.
@@ -88,6 +85,7 @@ export class CreateDataAgentWorkspaceResponseBodyData extends $dara.Model {
88
85
  modifyTime: 'ModifyTime',
89
86
  roleName: 'RoleName',
90
87
  totalMember: 'TotalMember',
88
+ type: 'Type',
91
89
  workspaceDesc: 'WorkspaceDesc',
92
90
  workspaceId: 'WorkspaceId',
93
91
  workspaceName: 'WorkspaceName',
@@ -103,6 +101,7 @@ export class CreateDataAgentWorkspaceResponseBodyData extends $dara.Model {
103
101
  modifyTime: 'number',
104
102
  roleName: 'string',
105
103
  totalMember: 'number',
104
+ type: 'string',
106
105
  workspaceDesc: 'string',
107
106
  workspaceId: 'string',
108
107
  workspaceName: 'string',
@@ -122,7 +121,7 @@ export class CreateDataAgentWorkspaceResponseBodyData extends $dara.Model {
122
121
  export class CreateDataAgentWorkspaceResponseBody extends $dara.Model {
123
122
  /**
124
123
  * @remarks
125
- * The returned data structure.
124
+ * The response struct.
126
125
  */
127
126
  data?: CreateDataAgentWorkspaceResponseBodyData;
128
127
  /**
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class DescribeDataAgentSessionRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The ID of the DMS unit.
8
+ * The current Data Management unit.
9
9
  *
10
10
  * @example
11
11
  * cn-hangzhou
@@ -13,7 +13,7 @@ export class DescribeDataAgentSessionRequest extends $dara.Model {
13
13
  DMSUnit?: string;
14
14
  /**
15
15
  * @remarks
16
- * The ID of the agent session.
16
+ * The agent session ID.
17
17
  *
18
18
  * @example
19
19
  * c61n7gm******rj
@@ -21,7 +21,7 @@ export class DescribeDataAgentSessionRequest extends $dara.Model {
21
21
  sessionId?: string;
22
22
  /**
23
23
  * @remarks
24
- * The ID of the workspace.
24
+ * The workspace ID.
25
25
  *
26
26
  * @example
27
27
  * 12****
@@ -2,10 +2,54 @@
2
2
  import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
+ export class DescribeDataAgentSessionResponseBodyDataArtifacts extends $dara.Model {
6
+ description?: string;
7
+ finishTime?: string;
8
+ id?: string;
9
+ name?: string;
10
+ receiveTime?: string;
11
+ startTime?: string;
12
+ status?: string;
13
+ type?: string;
14
+ static names(): { [key: string]: string } {
15
+ return {
16
+ description: 'Description',
17
+ finishTime: 'FinishTime',
18
+ id: 'Id',
19
+ name: 'Name',
20
+ receiveTime: 'ReceiveTime',
21
+ startTime: 'StartTime',
22
+ status: 'Status',
23
+ type: 'Type',
24
+ };
25
+ }
26
+
27
+ static types(): { [key: string]: any } {
28
+ return {
29
+ description: 'string',
30
+ finishTime: 'string',
31
+ id: 'string',
32
+ name: 'string',
33
+ receiveTime: 'string',
34
+ startTime: 'string',
35
+ status: 'string',
36
+ type: 'string',
37
+ };
38
+ }
39
+
40
+ validate() {
41
+ super.validate();
42
+ }
43
+
44
+ constructor(map?: { [key: string]: any }) {
45
+ super(map);
46
+ }
47
+ }
48
+
5
49
  export class DescribeDataAgentSessionResponseBodyDataChatHistoryLocations extends $dara.Model {
6
50
  /**
7
51
  * @remarks
8
- * The key of the session replay history item.
52
+ * The key of the chat replay history.
9
53
  *
10
54
  * @example
11
55
  * testKey1
@@ -13,7 +57,7 @@ export class DescribeDataAgentSessionResponseBodyDataChatHistoryLocations extend
13
57
  key?: string;
14
58
  /**
15
59
  * @remarks
16
- * The OSS download URL for the session replay history item.
60
+ * The OSS download URL of the chat replay history.
17
61
  *
18
62
  * @example
19
63
  * ****
@@ -42,10 +86,65 @@ export class DescribeDataAgentSessionResponseBodyDataChatHistoryLocations extend
42
86
  }
43
87
  }
44
88
 
89
+ export class DescribeDataAgentSessionResponseBodyDataDataSources extends $dara.Model {
90
+ category?: string;
91
+ detail?: string;
92
+ static names(): { [key: string]: string } {
93
+ return {
94
+ category: 'Category',
95
+ detail: 'Detail',
96
+ };
97
+ }
98
+
99
+ static types(): { [key: string]: any } {
100
+ return {
101
+ category: 'string',
102
+ detail: 'string',
103
+ };
104
+ }
105
+
106
+ validate() {
107
+ super.validate();
108
+ }
109
+
110
+ constructor(map?: { [key: string]: any }) {
111
+ super(map);
112
+ }
113
+ }
114
+
115
+ export class DescribeDataAgentSessionResponseBodyDataRecallResults extends $dara.Model {
116
+ content?: string;
117
+ score?: number;
118
+ type?: string;
119
+ static names(): { [key: string]: string } {
120
+ return {
121
+ content: 'Content',
122
+ score: 'Score',
123
+ type: 'Type',
124
+ };
125
+ }
126
+
127
+ static types(): { [key: string]: any } {
128
+ return {
129
+ content: 'string',
130
+ score: 'number',
131
+ type: 'string',
132
+ };
133
+ }
134
+
135
+ validate() {
136
+ super.validate();
137
+ }
138
+
139
+ constructor(map?: { [key: string]: any }) {
140
+ super(map);
141
+ }
142
+ }
143
+
45
144
  export class DescribeDataAgentSessionResponseBodyDataSessionConfig extends $dara.Model {
46
145
  /**
47
146
  * @remarks
48
- * The ID of the custom agent.
147
+ * The custom agent ID.
49
148
  *
50
149
  * @example
51
150
  * ca-e*******ckd
@@ -54,10 +153,8 @@ export class DescribeDataAgentSessionResponseBodyDataSessionConfig extends $dara
54
153
  /**
55
154
  * @remarks
56
155
  * The stage of the custom agent. Valid values:
57
- *
58
- * - **debug**: The test stage.
59
- *
60
- * - **prod**: The production stage.
156
+ * - **debug**: Debug stage.
157
+ * - **prod**: Production stage.
61
158
  *
62
159
  * @example
63
160
  * debug
@@ -65,7 +162,7 @@ export class DescribeDataAgentSessionResponseBodyDataSessionConfig extends $dara
65
162
  customAgentStage?: string;
66
163
  /**
67
164
  * @remarks
68
- * Indicates whether web search is enabled.
165
+ * Specifies whether to enable web search.
69
166
  *
70
167
  * @example
71
168
  * True
@@ -77,10 +174,8 @@ export class DescribeDataAgentSessionResponseBodyDataSessionConfig extends $dara
77
174
  /**
78
175
  * @remarks
79
176
  * The language. Valid values:
80
- *
81
- * - **CHINESE**: Chinese
82
- *
83
- * - **ENGLISH**: English
177
+ * - **CHINESE**: Chinese.
178
+ * - **ENGLISH**: English.
84
179
  *
85
180
  * @example
86
181
  * CHINESE
@@ -88,18 +183,15 @@ export class DescribeDataAgentSessionResponseBodyDataSessionConfig extends $dara
88
183
  language?: string;
89
184
  /**
90
185
  * @remarks
91
- * A list of MCP server IDs.
186
+ * The list of MCP server IDs in the session configuration.
92
187
  */
93
188
  mcpServerIds?: string[];
94
189
  /**
95
190
  * @remarks
96
191
  * The mode. Valid values:
97
- *
98
- * - **ASK_DATA**: quick inquiry mode
99
- *
100
- * - **ANALYSIS**: analysis mode
101
- *
102
- * - **INSIGHT**: insight mode
192
+ * - **ASK_DATA**: Ask data mode.
193
+ * - **ANALYSIS**: Analysis mode.
194
+ * - **INSIGHT**: Insight mode.
103
195
  *
104
196
  * @example
105
197
  * ANALYSIS
@@ -109,9 +201,8 @@ export class DescribeDataAgentSessionResponseBodyDataSessionConfig extends $dara
109
201
  reportWaterMark?: string;
110
202
  /**
111
203
  * @remarks
112
- * The name of the user\\"s OSS bucket.
113
- *
114
- * - The service can upload analysis files and reports to this bucket.
204
+ * The name of the user OSS bucket.
205
+ * - Analysis process files and report artifacts can be uploaded to the user-specified OSS bucket.
115
206
  *
116
207
  * @example
117
208
  * user-oss-bucket
@@ -169,7 +260,7 @@ export class DescribeDataAgentSessionResponseBodyDataSessionConfig extends $dara
169
260
  export class DescribeDataAgentSessionResponseBodyData extends $dara.Model {
170
261
  /**
171
262
  * @remarks
172
- * The ID of the agent.
263
+ * The current agent ID.
173
264
  *
174
265
  * @example
175
266
  * cu0cs*******mf
@@ -177,28 +268,30 @@ export class DescribeDataAgentSessionResponseBodyData extends $dara.Model {
177
268
  agentId?: string;
178
269
  /**
179
270
  * @remarks
180
- * The status of the agent.
271
+ * The current agent status.
181
272
  *
182
273
  * @example
183
274
  * RUNNING
184
275
  */
185
276
  agentStatus?: string;
277
+ artifacts?: DescribeDataAgentSessionResponseBodyDataArtifacts[];
186
278
  /**
187
279
  * @remarks
188
- * The session replay history.
280
+ * The chat replay history.
189
281
  */
190
282
  chatHistoryLocations?: DescribeDataAgentSessionResponseBodyDataChatHistoryLocations[];
191
283
  /**
192
284
  * @remarks
193
- * The timestamp indicating when the session was created.
285
+ * The session creation time.
194
286
  *
195
287
  * @example
196
288
  * 1731645908000
197
289
  */
198
290
  createTime?: number;
291
+ dataSources?: DescribeDataAgentSessionResponseBodyDataDataSources[];
199
292
  /**
200
293
  * @remarks
201
- * Indicates whether the current user has favorited the session in the workspace.
294
+ * Indicates whether the session is saved as a favorite in the workspace by the current logged-in user.
202
295
  *
203
296
  * @example
204
297
  * true
@@ -206,15 +299,16 @@ export class DescribeDataAgentSessionResponseBodyData extends $dara.Model {
206
299
  favoriteInWorkspace?: string;
207
300
  /**
208
301
  * @remarks
209
- * The ID of the file.
302
+ * The file ID.
210
303
  *
211
304
  * @example
212
305
  * f-8*******01m
213
306
  */
214
307
  file?: string;
308
+ recallResults?: DescribeDataAgentSessionResponseBodyDataRecallResults[];
215
309
  /**
216
310
  * @remarks
217
- * Indicates whether the current user has favorited the session.
311
+ * Indicates whether the session is saved as a favorite by the current logged-in user.
218
312
  *
219
313
  * @example
220
314
  * true
@@ -222,12 +316,12 @@ export class DescribeDataAgentSessionResponseBodyData extends $dara.Model {
222
316
  saved?: boolean;
223
317
  /**
224
318
  * @remarks
225
- * The configuration of the session.
319
+ * The session configuration item.
226
320
  */
227
321
  sessionConfig?: DescribeDataAgentSessionResponseBodyDataSessionConfig;
228
322
  /**
229
323
  * @remarks
230
- * The ID of the agent session.
324
+ * The agent session ID.
231
325
  *
232
326
  * @example
233
327
  * 976*********p
@@ -235,7 +329,7 @@ export class DescribeDataAgentSessionResponseBodyData extends $dara.Model {
235
329
  sessionId?: string;
236
330
  /**
237
331
  * @remarks
238
- * The status of the session.
332
+ * The session status.
239
333
  *
240
334
  * @example
241
335
  * RUNNING
@@ -243,7 +337,7 @@ export class DescribeDataAgentSessionResponseBodyData extends $dara.Model {
243
337
  sessionStatus?: string;
244
338
  /**
245
339
  * @remarks
246
- * The title of the session.
340
+ * The title.
247
341
  *
248
342
  * @example
249
343
  * 分析一下这份文件,给出报告。
@@ -261,10 +355,13 @@ export class DescribeDataAgentSessionResponseBodyData extends $dara.Model {
261
355
  return {
262
356
  agentId: 'AgentId',
263
357
  agentStatus: 'AgentStatus',
358
+ artifacts: 'Artifacts',
264
359
  chatHistoryLocations: 'ChatHistoryLocations',
265
360
  createTime: 'CreateTime',
361
+ dataSources: 'DataSources',
266
362
  favoriteInWorkspace: 'FavoriteInWorkspace',
267
363
  file: 'File',
364
+ recallResults: 'RecallResults',
268
365
  saved: 'Saved',
269
366
  sessionConfig: 'SessionConfig',
270
367
  sessionId: 'SessionId',
@@ -278,10 +375,13 @@ export class DescribeDataAgentSessionResponseBodyData extends $dara.Model {
278
375
  return {
279
376
  agentId: 'string',
280
377
  agentStatus: 'string',
378
+ artifacts: { 'type': 'array', 'itemType': DescribeDataAgentSessionResponseBodyDataArtifacts },
281
379
  chatHistoryLocations: { 'type': 'array', 'itemType': DescribeDataAgentSessionResponseBodyDataChatHistoryLocations },
282
380
  createTime: 'number',
381
+ dataSources: { 'type': 'array', 'itemType': DescribeDataAgentSessionResponseBodyDataDataSources },
283
382
  favoriteInWorkspace: 'string',
284
383
  file: 'string',
384
+ recallResults: { 'type': 'array', 'itemType': DescribeDataAgentSessionResponseBodyDataRecallResults },
285
385
  saved: 'boolean',
286
386
  sessionConfig: DescribeDataAgentSessionResponseBodyDataSessionConfig,
287
387
  sessionId: 'string',
@@ -292,9 +392,18 @@ export class DescribeDataAgentSessionResponseBodyData extends $dara.Model {
292
392
  }
293
393
 
294
394
  validate() {
395
+ if(Array.isArray(this.artifacts)) {
396
+ $dara.Model.validateArray(this.artifacts);
397
+ }
295
398
  if(Array.isArray(this.chatHistoryLocations)) {
296
399
  $dara.Model.validateArray(this.chatHistoryLocations);
297
400
  }
401
+ if(Array.isArray(this.dataSources)) {
402
+ $dara.Model.validateArray(this.dataSources);
403
+ }
404
+ if(Array.isArray(this.recallResults)) {
405
+ $dara.Model.validateArray(this.recallResults);
406
+ }
298
407
  if(this.sessionConfig && typeof (this.sessionConfig as any).validate === 'function') {
299
408
  (this.sessionConfig as any).validate();
300
409
  }
@@ -309,7 +418,7 @@ export class DescribeDataAgentSessionResponseBodyData extends $dara.Model {
309
418
  export class DescribeDataAgentSessionResponseBody extends $dara.Model {
310
419
  /**
311
420
  * @remarks
312
- * The response data.
421
+ * The response struct.
313
422
  */
314
423
  data?: DescribeDataAgentSessionResponseBodyData;
315
424
  /**
@@ -322,7 +431,7 @@ export class DescribeDataAgentSessionResponseBody extends $dara.Model {
322
431
  errorCode?: string;
323
432
  /**
324
433
  * @remarks
325
- * The error message returned when the request fails.
434
+ * The error message returned if the call failed.
326
435
  *
327
436
  * @example
328
437
  * UnknownError
@@ -330,7 +439,7 @@ export class DescribeDataAgentSessionResponseBody extends $dara.Model {
330
439
  errorMessage?: string;
331
440
  /**
332
441
  * @remarks
333
- * The request ID.
442
+ * Id of the request
334
443
  *
335
444
  * @example
336
445
  * 18****-*****-*******7A3122F
@@ -338,11 +447,10 @@ export class DescribeDataAgentSessionResponseBody extends $dara.Model {
338
447
  requestId?: string;
339
448
  /**
340
449
  * @remarks
341
- * Indicates whether the request was successful.
342
- *
343
- * - **true**: The request was successful.
450
+ * The return value. Valid values:
344
451
  *
345
- * - **false**: The request failed.
452
+ * - **true**: Succeeded.
453
+ * - **false**: Failed.
346
454
  *
347
455
  * @example
348
456
  * true