@alicloud/dms20250414 1.25.0 → 2.1.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.
- package/dist/client.d.ts +33 -12
- package/dist/client.js +72 -22
- package/dist/client.js.map +1 -1
- package/dist/models/CreateAgentRequest.d.ts +21 -0
- package/dist/models/CreateAgentRequest.js +64 -0
- package/dist/models/CreateAgentRequest.js.map +1 -0
- package/dist/models/CreateAgentResponse.d.ts +19 -0
- package/dist/models/CreateAgentResponse.js +69 -0
- package/dist/models/CreateAgentResponse.js.map +1 -0
- package/dist/models/CreateAgentResponseBody.d.ts +66 -0
- package/dist/models/CreateAgentResponseBody.js +154 -0
- package/dist/models/CreateAgentResponseBody.js.map +1 -0
- package/dist/models/CreateDataAgentFeedbackRequest.d.ts +49 -0
- package/dist/models/CreateDataAgentFeedbackRequest.js.map +1 -1
- package/dist/models/CreateDataAgentFeedbackResponseBody.d.ts +46 -0
- package/dist/models/CreateDataAgentFeedbackResponseBody.js.map +1 -1
- package/dist/models/CreateDataAgentSessionRequest.d.ts +42 -18
- package/dist/models/CreateDataAgentSessionRequest.js.map +1 -1
- package/dist/models/CreateDataAgentSessionResponseBody.d.ts +52 -29
- package/dist/models/CreateDataAgentSessionResponseBody.js.map +1 -1
- package/dist/models/CreateDataAgentSessionShrinkRequest.d.ts +2 -2
- package/dist/models/CreateDataAgentThemeRequest.d.ts +16 -8
- package/dist/models/CreateDataAgentThemeRequest.js +2 -0
- package/dist/models/CreateDataAgentThemeRequest.js.map +1 -1
- package/dist/models/CreateDataAgentThemeResponseBody.d.ts +2 -2
- package/dist/models/DescribeDataAgentSessionRequest.d.ts +1 -1
- package/dist/models/DescribeDataAgentSessionResponseBody.d.ts +19 -20
- package/dist/models/DescribeDataAgentSessionResponseBody.js.map +1 -1
- package/dist/models/DescribeDataAgentThemeResponseBody.d.ts +9 -13
- package/dist/models/DescribeDataAgentThemeResponseBody.js.map +1 -1
- package/dist/models/ListCustomAgentRequest.d.ts +5 -5
- package/dist/models/ListCustomAgentResponseBody.d.ts +42 -50
- package/dist/models/ListCustomAgentResponseBody.js.map +1 -1
- package/dist/models/ListDataAgentAccuracyTestInstancesResponseBody.d.ts +9 -2
- package/dist/models/ListDataAgentAccuracyTestInstancesResponseBody.js.map +1 -1
- package/dist/models/ListDataAgentThemeRequest.d.ts +15 -7
- package/dist/models/ListDataAgentThemeRequest.js +2 -0
- package/dist/models/ListDataAgentThemeRequest.js.map +1 -1
- package/dist/models/ListDataAgentThemeResponseBody.d.ts +8 -8
- package/dist/models/SendChatMessageRequest.d.ts +58 -33
- package/dist/models/SendChatMessageRequest.js +9 -3
- package/dist/models/SendChatMessageRequest.js.map +1 -1
- package/dist/models/SendChatMessageShrinkRequest.d.ts +13 -13
- package/dist/models/model.d.ts +5 -0
- package/dist/models/model.js +23 -13
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +80 -22
- package/src/models/CreateAgentRequest.ts +40 -0
- package/src/models/CreateAgentResponse.ts +40 -0
- package/src/models/CreateAgentResponseBody.ts +157 -0
- package/src/models/CreateDataAgentFeedbackRequest.ts +49 -0
- package/src/models/CreateDataAgentFeedbackResponseBody.ts +46 -0
- package/src/models/CreateDataAgentSessionRequest.ts +42 -18
- package/src/models/CreateDataAgentSessionResponseBody.ts +52 -29
- package/src/models/CreateDataAgentSessionShrinkRequest.ts +2 -2
- package/src/models/CreateDataAgentThemeRequest.ts +18 -8
- package/src/models/CreateDataAgentThemeResponseBody.ts +2 -2
- package/src/models/DescribeDataAgentSessionRequest.ts +1 -1
- package/src/models/DescribeDataAgentSessionResponseBody.ts +19 -20
- package/src/models/DescribeDataAgentThemeResponseBody.ts +9 -13
- package/src/models/ListCustomAgentRequest.ts +5 -5
- package/src/models/ListCustomAgentResponseBody.ts +43 -51
- package/src/models/ListDataAgentAccuracyTestInstancesResponseBody.ts +9 -2
- package/src/models/ListDataAgentThemeRequest.ts +17 -7
- package/src/models/ListDataAgentThemeResponseBody.ts +8 -8
- package/src/models/SendChatMessageRequest.ts +67 -36
- package/src/models/SendChatMessageShrinkRequest.ts +13 -13
- package/src/models/model.ts +5 -0
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ListDataAgentThemeRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The common
|
|
8
|
+
* The common scenario of the theme. Valid values: report, infographic, and others.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* report
|
|
@@ -13,7 +13,7 @@ export class ListDataAgentThemeRequest extends $dara.Model {
|
|
|
13
13
|
category?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* **[Not supported]** The page
|
|
16
|
+
* **[Not currently supported]** The maximum number of entries per page. Maximum value: 100.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* 20
|
|
@@ -21,10 +21,10 @@ export class ListDataAgentThemeRequest extends $dara.Model {
|
|
|
21
21
|
maxResults?: number;
|
|
22
22
|
/**
|
|
23
23
|
* @remarks
|
|
24
|
-
* **[Not supported]** The pagination token for the next query. Valid values:
|
|
24
|
+
* **[Not currently supported]** The pagination token for the next query. Valid values:
|
|
25
25
|
*
|
|
26
26
|
* - If **NextToken** is empty, no next query exists.
|
|
27
|
-
* - If **NextToken** has a return value, the value
|
|
27
|
+
* - If **NextToken** has a return value, the value is the token for the next query.
|
|
28
28
|
*
|
|
29
29
|
* @example
|
|
30
30
|
* f056501ada12****
|
|
@@ -40,7 +40,7 @@ export class ListDataAgentThemeRequest extends $dara.Model {
|
|
|
40
40
|
pageNumber?: number;
|
|
41
41
|
/**
|
|
42
42
|
* @remarks
|
|
43
|
-
* The
|
|
43
|
+
* The number of entries per page.
|
|
44
44
|
*
|
|
45
45
|
* @example
|
|
46
46
|
* 10
|
|
@@ -62,13 +62,21 @@ export class ListDataAgentThemeRequest extends $dara.Model {
|
|
|
62
62
|
* @remarks
|
|
63
63
|
* The theme stage. Valid values:
|
|
64
64
|
*
|
|
65
|
-
* - design: contains only design.md.
|
|
66
|
-
* - template: complete and renderable.
|
|
65
|
+
* - design: The theme contains only design.md.
|
|
66
|
+
* - template: The theme is complete and renderable.
|
|
67
67
|
*
|
|
68
68
|
* @example
|
|
69
69
|
* template
|
|
70
70
|
*/
|
|
71
71
|
themeType?: string;
|
|
72
|
+
/**
|
|
73
|
+
* @remarks
|
|
74
|
+
* The workspace context. If this parameter is left empty or set to personal, the personal workspace is used. To query themes in a collaborative workspace, specify the workspace ID.
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* 99fad*******6c0l4nlacu
|
|
78
|
+
*/
|
|
79
|
+
workspaceId?: string;
|
|
72
80
|
static names(): { [key: string]: string } {
|
|
73
81
|
return {
|
|
74
82
|
category: 'Category',
|
|
@@ -78,6 +86,7 @@ export class ListDataAgentThemeRequest extends $dara.Model {
|
|
|
78
86
|
pageSize: 'PageSize',
|
|
79
87
|
themeFrom: 'ThemeFrom',
|
|
80
88
|
themeType: 'ThemeType',
|
|
89
|
+
workspaceId: 'WorkspaceId',
|
|
81
90
|
};
|
|
82
91
|
}
|
|
83
92
|
|
|
@@ -90,6 +99,7 @@ export class ListDataAgentThemeRequest extends $dara.Model {
|
|
|
90
99
|
pageSize: 'number',
|
|
91
100
|
themeFrom: 'string',
|
|
92
101
|
themeType: 'string',
|
|
102
|
+
workspaceId: 'string',
|
|
93
103
|
};
|
|
94
104
|
}
|
|
95
105
|
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ListDataAgentThemeResponseBodyData extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The common
|
|
8
|
+
* The common scenario of the theme. Valid values: report, infographic, and others.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* report
|
|
@@ -37,7 +37,7 @@ export class ListDataAgentThemeResponseBodyData extends $dara.Model {
|
|
|
37
37
|
modifiedAt?: string;
|
|
38
38
|
/**
|
|
39
39
|
* @remarks
|
|
40
|
-
* The
|
|
40
|
+
* The traceability reference that points to the UUID of the source theme.
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
43
|
* 6d1e3f9a-****-****-****-2b8c4e6f0a1d
|
|
@@ -75,8 +75,8 @@ export class ListDataAgentThemeResponseBodyData extends $dara.Model {
|
|
|
75
75
|
* @remarks
|
|
76
76
|
* The theme stage. Valid values:
|
|
77
77
|
*
|
|
78
|
-
* - design: contains only design.md.
|
|
79
|
-
* - template: complete and renderable.
|
|
78
|
+
* - design: The theme contains only design.md.
|
|
79
|
+
* - template: The theme is complete and renderable.
|
|
80
80
|
*
|
|
81
81
|
* @example
|
|
82
82
|
* template
|
|
@@ -127,7 +127,7 @@ export class ListDataAgentThemeResponseBody extends $dara.Model {
|
|
|
127
127
|
data?: ListDataAgentThemeResponseBodyData[];
|
|
128
128
|
/**
|
|
129
129
|
* @remarks
|
|
130
|
-
* The error code returned
|
|
130
|
+
* The error code returned if the request failed.
|
|
131
131
|
*
|
|
132
132
|
* @example
|
|
133
133
|
* UnknownError
|
|
@@ -135,7 +135,7 @@ export class ListDataAgentThemeResponseBody extends $dara.Model {
|
|
|
135
135
|
errorCode?: string;
|
|
136
136
|
/**
|
|
137
137
|
* @remarks
|
|
138
|
-
* The error message returned
|
|
138
|
+
* The error message returned if the request failed.
|
|
139
139
|
*
|
|
140
140
|
* @example
|
|
141
141
|
* UnknownError
|
|
@@ -143,7 +143,7 @@ export class ListDataAgentThemeResponseBody extends $dara.Model {
|
|
|
143
143
|
errorMessage?: string;
|
|
144
144
|
/**
|
|
145
145
|
* @remarks
|
|
146
|
-
* The page
|
|
146
|
+
* The number of entries per page.
|
|
147
147
|
*
|
|
148
148
|
* @example
|
|
149
149
|
* 20
|
|
@@ -167,7 +167,7 @@ export class ListDataAgentThemeResponseBody extends $dara.Model {
|
|
|
167
167
|
pageNumber?: number;
|
|
168
168
|
/**
|
|
169
169
|
* @remarks
|
|
170
|
-
* The
|
|
170
|
+
* The number of entries per page.
|
|
171
171
|
*
|
|
172
172
|
* @example
|
|
173
173
|
* 10
|
|
@@ -5,13 +5,21 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class SendChatMessageRequestDataSourcePermissionTables extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The list of columns that are allowed
|
|
8
|
+
* The list of columns that are allowed for querying in the current table. If this field is left empty, all columns can be queried. If specified, SQL statements that exceed the allowed scope are blocked. For example, syntax such as SELECT * is blocked. To ensure DataAgent analysis effectiveness, avoid specifying columns beyond the allowed scope in the DataAgent prompts, knowledge, or instructions modules. Otherwise, unauthorized SQL statements may be generated and blocked, which reduces DataAgent analysis speed and effectiveness.
|
|
9
9
|
*/
|
|
10
10
|
allowedColumns?: string[];
|
|
11
|
+
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* The list of columns that are not allowed for querying in the current table. If this field is left empty, all columns **can be queried**. If specified, SQL statements that exceed the allowed scope are blocked. For example, syntax such as SELECT * is blocked.
|
|
14
|
+
*
|
|
15
|
+
* If both the disallowed list and the allowed list are configured, the disallowed list takes higher priority. For example, if Table 1 has columns A, B, C, and D, and columns A and B are configured as not queryable while columns B and C are configured as queryable, the final result is that only column C is queryable.
|
|
16
|
+
*
|
|
17
|
+
* To ensure DataAgent analysis effectiveness, avoid specifying columns beyond the allowed scope in the DataAgent prompts, knowledge, or instructions modules. Otherwise, unauthorized SQL statements may be generated and blocked, which reduces DataAgent analysis speed and effectiveness.
|
|
18
|
+
*/
|
|
11
19
|
disallowedColumns?: string[];
|
|
12
20
|
/**
|
|
13
21
|
* @remarks
|
|
14
|
-
* The required row filter condition for the current table. If this field is left empty, it is ignored. If
|
|
22
|
+
* The required row filter condition for the current table. If this field is left empty, it is ignored. If specified, all SQL statements involving this table are validated to check whether they carry the filter field and whether the WHERE condition meets the constraints. SQL statements that do not meet the constraints are rejected. Ensure the validation condition format is correct.
|
|
15
23
|
*
|
|
16
24
|
* @example
|
|
17
25
|
* region = \\"east\\"
|
|
@@ -19,7 +27,7 @@ export class SendChatMessageRequestDataSourcePermissionTables extends $dara.Mode
|
|
|
19
27
|
requiredRowFilter?: string;
|
|
20
28
|
/**
|
|
21
29
|
* @remarks
|
|
22
|
-
* The name
|
|
30
|
+
* The table name to which the permission constraint rule applies.
|
|
23
31
|
*
|
|
24
32
|
* @example
|
|
25
33
|
* sample_table
|
|
@@ -99,7 +107,7 @@ export class SendChatMessageRequestDataSource extends $dara.Model {
|
|
|
99
107
|
dataSourceId?: string;
|
|
100
108
|
/**
|
|
101
109
|
* @remarks
|
|
102
|
-
* The data source type. Valid values: `[remote_data_center, database]`,
|
|
110
|
+
* The data source type. Valid values: `[remote_data_center, database]`, indicating that the analysis is performed on a file or a database.
|
|
103
111
|
*
|
|
104
112
|
* @example
|
|
105
113
|
* remote_data_center
|
|
@@ -231,13 +239,21 @@ export class SendChatMessageRequestDataSource extends $dara.Model {
|
|
|
231
239
|
export class SendChatMessageRequestDataSourcesPermissionTables extends $dara.Model {
|
|
232
240
|
/**
|
|
233
241
|
* @remarks
|
|
234
|
-
* The list of columns that are allowed
|
|
242
|
+
* The list of columns that are allowed for querying in the current table. If this field is left empty, all columns can be queried. If specified, SQL statements that exceed the allowed scope are blocked. For example, syntax such as SELECT * is blocked. To ensure DataAgent analysis effectiveness, avoid specifying columns beyond the allowed scope in the DataAgent prompts, knowledge, or instructions modules. Otherwise, unauthorized SQL statements may be generated and blocked, which reduces DataAgent analysis speed and effectiveness.
|
|
235
243
|
*/
|
|
236
244
|
allowedColumns?: string[];
|
|
245
|
+
/**
|
|
246
|
+
* @remarks
|
|
247
|
+
* The list of columns that are not allowed for querying in the current table. If this field is left empty, all columns **can be queried**. If specified, SQL statements that exceed the allowed scope are blocked. For example, syntax such as SELECT * is blocked.
|
|
248
|
+
*
|
|
249
|
+
* If both the disallowed list and the allowed list are configured, the disallowed list takes higher priority. For example, if Table 1 has columns A, B, C, and D, and columns A and B are configured as not queryable while columns B and C are configured as queryable, the final result is that only column C is queryable.
|
|
250
|
+
*
|
|
251
|
+
* To ensure DataAgent analysis effectiveness, avoid specifying columns beyond the allowed scope in the DataAgent prompts, knowledge, or instructions modules. Otherwise, unauthorized SQL statements may be generated and blocked, which reduces DataAgent analysis speed and effectiveness.
|
|
252
|
+
*/
|
|
237
253
|
disallowedColumns?: string[];
|
|
238
254
|
/**
|
|
239
255
|
* @remarks
|
|
240
|
-
* The required row filter condition for the current table. If this field is left empty, it is ignored. If
|
|
256
|
+
* The required row filter condition for the current table. If this field is left empty, it is ignored. If specified, all SQL statements involving this table are validated to check whether they carry the filter field and whether the WHERE condition meets the constraints. SQL statements that do not meet the constraints are rejected. Ensure the validation condition format is correct.
|
|
241
257
|
*
|
|
242
258
|
* @example
|
|
243
259
|
* region = \\"east\\"
|
|
@@ -245,7 +261,7 @@ export class SendChatMessageRequestDataSourcesPermissionTables extends $dara.Mod
|
|
|
245
261
|
requiredRowFilter?: string;
|
|
246
262
|
/**
|
|
247
263
|
* @remarks
|
|
248
|
-
* The name
|
|
264
|
+
* The table name to which the permission constraint rule applies.
|
|
249
265
|
*
|
|
250
266
|
* @example
|
|
251
267
|
* sample_table
|
|
@@ -325,7 +341,7 @@ export class SendChatMessageRequestDataSources extends $dara.Model {
|
|
|
325
341
|
dataSourceId?: string;
|
|
326
342
|
/**
|
|
327
343
|
* @remarks
|
|
328
|
-
* The data source type. Valid values: remote_data_center
|
|
344
|
+
* The data source type. Valid values: remote_data_center, database. These values indicate that the analysis is performed on a file or a database.
|
|
329
345
|
*
|
|
330
346
|
* @example
|
|
331
347
|
* remote_data_center
|
|
@@ -457,9 +473,14 @@ export class SendChatMessageRequestDataSources extends $dara.Model {
|
|
|
457
473
|
export class SendChatMessageRequestSessionConfigPermissionConfig extends $dara.Model {
|
|
458
474
|
/**
|
|
459
475
|
* @remarks
|
|
460
|
-
* The default
|
|
461
|
-
*
|
|
462
|
-
* -
|
|
476
|
+
* The default action for table-level permissions. This parameter controls whether tables that are not configured in DataSources.[item].Permission can be queried. Valid values: allow, deny.
|
|
477
|
+
*
|
|
478
|
+
* - allow (default): works in blacklist mode. By default, all tables can be queried, and the actual permissions are subject to the permissions configured on the Data Management side. Row-level and column-level permissions are enforced only when you configure **row-level and column-level** permissions in DataSources.[item].Permission.
|
|
479
|
+
*
|
|
480
|
+
* - deny (must be manually specified): works in whitelist mode. By default, no tables can be queried. A table can be queried only when you configure permissions for it in DataSources.[item].Permission. You can grant full access to a table by not configuring any row-level or column-level restrictions.
|
|
481
|
+
*
|
|
482
|
+
* @example
|
|
483
|
+
* allow
|
|
463
484
|
*/
|
|
464
485
|
defaultAction?: string;
|
|
465
486
|
static names(): { [key: string]: string } {
|
|
@@ -486,7 +507,7 @@ export class SendChatMessageRequestSessionConfigPermissionConfig extends $dara.M
|
|
|
486
507
|
export class SendChatMessageRequestSessionConfig extends $dara.Model {
|
|
487
508
|
/**
|
|
488
509
|
* @remarks
|
|
489
|
-
* The custom
|
|
510
|
+
* The custom agent ID. A custom agent is an entity used to customize the analysis process. You can create one in the DataAgent console or by calling the CreateCustomAgent operation. The custom agent ID is a string that starts with `ca-`.
|
|
490
511
|
*
|
|
491
512
|
* @example
|
|
492
513
|
* ca-asfkjhqwe***aesrfqa
|
|
@@ -494,7 +515,7 @@ export class SendChatMessageRequestSessionConfig extends $dara.Model {
|
|
|
494
515
|
customAgentId?: string;
|
|
495
516
|
/**
|
|
496
517
|
* @remarks
|
|
497
|
-
* The stage of the custom
|
|
518
|
+
* The stage of the custom agent.
|
|
498
519
|
*
|
|
499
520
|
* @example
|
|
500
521
|
* null
|
|
@@ -507,7 +528,7 @@ export class SendChatMessageRequestSessionConfig extends $dara.Model {
|
|
|
507
528
|
* @example
|
|
508
529
|
* false
|
|
509
530
|
*/
|
|
510
|
-
enableSearch?:
|
|
531
|
+
enableSearch?: boolean;
|
|
511
532
|
/**
|
|
512
533
|
* @remarks
|
|
513
534
|
* The list of knowledge base IDs.
|
|
@@ -515,7 +536,7 @@ export class SendChatMessageRequestSessionConfig extends $dara.Model {
|
|
|
515
536
|
* @example
|
|
516
537
|
* dasd***cc211
|
|
517
538
|
*/
|
|
518
|
-
kbUuidList?: string;
|
|
539
|
+
kbUuidList?: string[];
|
|
519
540
|
/**
|
|
520
541
|
* @remarks
|
|
521
542
|
* Currently only Chinese and English are supported. The default value is Chinese. Only uppercase values are supported.
|
|
@@ -531,7 +552,7 @@ export class SendChatMessageRequestSessionConfig extends $dara.Model {
|
|
|
531
552
|
* @example
|
|
532
553
|
* 2q1tu90**********6uttu2nw
|
|
533
554
|
*/
|
|
534
|
-
mcpServerIds?: string;
|
|
555
|
+
mcpServerIds?: string[];
|
|
535
556
|
/**
|
|
536
557
|
* @remarks
|
|
537
558
|
* The mode. Valid values:
|
|
@@ -545,12 +566,12 @@ export class SendChatMessageRequestSessionConfig extends $dara.Model {
|
|
|
545
566
|
mode?: string;
|
|
546
567
|
/**
|
|
547
568
|
* @remarks
|
|
548
|
-
* The session
|
|
569
|
+
* The session level data permission settings. If this parameter is set multiple times across multiple turns within the same session, the last setting takes effect.
|
|
549
570
|
*/
|
|
550
571
|
permissionConfig?: SendChatMessageRequestSessionConfigPermissionConfig;
|
|
551
572
|
/**
|
|
552
573
|
* @remarks
|
|
553
|
-
* Specifies whether to enable the plan. Valid values: disable, enable,
|
|
574
|
+
* Specifies whether to enable the plan. Valid values: disable, enable, force. Default value: enable.
|
|
554
575
|
*
|
|
555
576
|
* @example
|
|
556
577
|
* disable
|
|
@@ -596,6 +617,10 @@ export class SendChatMessageRequestSessionConfig extends $dara.Model {
|
|
|
596
617
|
* True
|
|
597
618
|
*/
|
|
598
619
|
skipWebReportConfirm?: boolean;
|
|
620
|
+
/**
|
|
621
|
+
* @remarks
|
|
622
|
+
* The list of user-specified skills.
|
|
623
|
+
*/
|
|
599
624
|
userSpecifiedSkillList?: string[];
|
|
600
625
|
static names(): { [key: string]: string } {
|
|
601
626
|
return {
|
|
@@ -621,10 +646,10 @@ export class SendChatMessageRequestSessionConfig extends $dara.Model {
|
|
|
621
646
|
return {
|
|
622
647
|
customAgentId: 'string',
|
|
623
648
|
customAgentStage: 'string',
|
|
624
|
-
enableSearch: '
|
|
625
|
-
kbUuidList: 'string',
|
|
649
|
+
enableSearch: 'boolean',
|
|
650
|
+
kbUuidList: { 'type': 'array', 'itemType': 'string' },
|
|
626
651
|
language: 'string',
|
|
627
|
-
mcpServerIds: 'string',
|
|
652
|
+
mcpServerIds: { 'type': 'array', 'itemType': 'string' },
|
|
628
653
|
mode: 'string',
|
|
629
654
|
permissionConfig: SendChatMessageRequestSessionConfigPermissionConfig,
|
|
630
655
|
planMode: 'string',
|
|
@@ -638,6 +663,12 @@ export class SendChatMessageRequestSessionConfig extends $dara.Model {
|
|
|
638
663
|
}
|
|
639
664
|
|
|
640
665
|
validate() {
|
|
666
|
+
if(Array.isArray(this.kbUuidList)) {
|
|
667
|
+
$dara.Model.validateArray(this.kbUuidList);
|
|
668
|
+
}
|
|
669
|
+
if(Array.isArray(this.mcpServerIds)) {
|
|
670
|
+
$dara.Model.validateArray(this.mcpServerIds);
|
|
671
|
+
}
|
|
641
672
|
if(this.permissionConfig && typeof (this.permissionConfig as any).validate === 'function') {
|
|
642
673
|
(this.permissionConfig as any).validate();
|
|
643
674
|
}
|
|
@@ -671,7 +702,7 @@ export class SendChatMessageRequestTaskConfigReportConfig extends $dara.Model {
|
|
|
671
702
|
reportTheme?: string;
|
|
672
703
|
/**
|
|
673
704
|
* @remarks
|
|
674
|
-
* The service type. Valid values: TextReport and WebReport, which indicate that the task generates a text report or a web report. Currently only WebReport is supported.
|
|
705
|
+
* The service type. Valid values: TextReport and WebReport, which indicate that the task generates a text report or a web report. Currently, only WebReport is supported.
|
|
675
706
|
*
|
|
676
707
|
* @example
|
|
677
708
|
* WebReport
|
|
@@ -705,7 +736,7 @@ export class SendChatMessageRequestTaskConfigReportConfig extends $dara.Model {
|
|
|
705
736
|
export class SendChatMessageRequestTaskConfig extends $dara.Model {
|
|
706
737
|
/**
|
|
707
738
|
* @remarks
|
|
708
|
-
* The report rule
|
|
739
|
+
* The configuration of the report rule. Only when MesageType is set to REPORT, a report task is executed based on this configuration.
|
|
709
740
|
*/
|
|
710
741
|
reportConfig?: SendChatMessageRequestTaskConfigReportConfig;
|
|
711
742
|
static names(): { [key: string]: string } {
|
|
@@ -735,7 +766,7 @@ export class SendChatMessageRequestTaskConfig extends $dara.Model {
|
|
|
735
766
|
export class SendChatMessageRequest extends $dara.Model {
|
|
736
767
|
/**
|
|
737
768
|
* @remarks
|
|
738
|
-
* **[
|
|
769
|
+
* **[Optimized]** This field is now automatically obtained by the backend. You do not need to specify this field.
|
|
739
770
|
*
|
|
740
771
|
* @example
|
|
741
772
|
* agent_***
|
|
@@ -743,7 +774,7 @@ export class SendChatMessageRequest extends $dara.Model {
|
|
|
743
774
|
agentId?: string;
|
|
744
775
|
/**
|
|
745
776
|
* @remarks
|
|
746
|
-
* **[
|
|
777
|
+
* **[Optimized]** This field is now automatically obtained by the backend. You do not need to specify this field when calling the API.
|
|
747
778
|
*
|
|
748
779
|
* @example
|
|
749
780
|
* cn-hangzhou
|
|
@@ -764,7 +795,7 @@ export class SendChatMessageRequest extends $dara.Model {
|
|
|
764
795
|
dataSources?: SendChatMessageRequestDataSources[];
|
|
765
796
|
/**
|
|
766
797
|
* @remarks
|
|
767
|
-
* The content
|
|
798
|
+
* The message content to send to the Agent.
|
|
768
799
|
*
|
|
769
800
|
* This parameter is required.
|
|
770
801
|
*
|
|
@@ -778,11 +809,11 @@ export class SendChatMessageRequest extends $dara.Model {
|
|
|
778
809
|
*
|
|
779
810
|
* - For regular interactions with the Agent, set the message type to `[primary]`.
|
|
780
811
|
*
|
|
781
|
-
* - When the message is a response to the Agent\\"s
|
|
812
|
+
* - When the message is a response to the Agent\\"s Human-in-Loop question, set the type to `[additional]`.
|
|
782
813
|
*
|
|
783
|
-
* - When the message
|
|
814
|
+
* - When the message is intended to trigger report generation, set the type to `[report]`.
|
|
784
815
|
*
|
|
785
|
-
* - When the message
|
|
816
|
+
* - When the message is intended to cancel the current session, set the type to `[cancel]`.
|
|
786
817
|
*
|
|
787
818
|
* @example
|
|
788
819
|
* primary
|
|
@@ -798,7 +829,7 @@ export class SendChatMessageRequest extends $dara.Model {
|
|
|
798
829
|
parentSessionId?: string;
|
|
799
830
|
/**
|
|
800
831
|
* @remarks
|
|
801
|
-
* This field is required when the message type is `additional`. Specify the specific question that the Agent asks the user through
|
|
832
|
+
* This field is required when the message type is `additional`. Specify the specific question that the Agent asks the user through Human-in-Loop.
|
|
802
833
|
*
|
|
803
834
|
* @example
|
|
804
835
|
* Provide the criteria for calculating GMV
|
|
@@ -816,9 +847,9 @@ export class SendChatMessageRequest extends $dara.Model {
|
|
|
816
847
|
* @remarks
|
|
817
848
|
* **Important**
|
|
818
849
|
*
|
|
819
|
-
* When this message is a reply to an Agent message (for example, the Agent asks a clarifying question through ASK_HUMAN), set reply_to to the exact Checkpoint sequence number carried in that Agent message. If this message is not a targeted reply, such as requesting the Agent to perform further in-depth analysis after
|
|
850
|
+
* When this message is a reply to an Agent message (for example, the Agent asks a clarifying question through ASK_HUMAN), set reply_to to the exact Checkpoint sequence number carried in that Agent message. If this message is not a targeted reply, such as requesting the Agent to perform further in-depth analysis after analysis is complete, you can leave reply_to empty or set it to "0".
|
|
820
851
|
*
|
|
821
|
-
* This field affects how the Agent decides to process the message.
|
|
852
|
+
* This field affects how the Agent decides to process the message. Incorrect values may lead to analysis results that do not meet expectations.
|
|
822
853
|
*
|
|
823
854
|
* @example
|
|
824
855
|
* 0
|
|
@@ -834,10 +865,10 @@ export class SendChatMessageRequest extends $dara.Model {
|
|
|
834
865
|
sessionConfig?: SendChatMessageRequestSessionConfig;
|
|
835
866
|
/**
|
|
836
867
|
* @remarks
|
|
837
|
-
* The session ID. This is an optional field used for multi-turn
|
|
838
|
-
* - You can start a session without specifying this field. The response includes the SessionID
|
|
868
|
+
* The session ID. This is an optional field used for multi-turn sessions.
|
|
869
|
+
* - You can start a session without specifying this field. The response includes the SessionID of the current session.
|
|
839
870
|
* - You can also manually create a session ID by calling the CreateDataAgentSession operation and include the ID when initiating a session.
|
|
840
|
-
* -
|
|
871
|
+
* - For multi-turn conversations (such as follow-up questions or confirming execution plans), specify the SessionID returned by the previous SendChatMessage call.
|
|
841
872
|
*
|
|
842
873
|
* @example
|
|
843
874
|
* sess_***
|
|
@@ -850,7 +881,7 @@ export class SendChatMessageRequest extends $dara.Model {
|
|
|
850
881
|
taskConfig?: SendChatMessageRequestTaskConfig;
|
|
851
882
|
/**
|
|
852
883
|
* @remarks
|
|
853
|
-
* The OSS bucket of the user. If this
|
|
884
|
+
* The OSS bucket of the user. If this parameter is not specified, the analysis data is securely stored in built-in storage.
|
|
854
885
|
*
|
|
855
886
|
* @example
|
|
856
887
|
* my-bucket
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class SendChatMessageShrinkRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* **[
|
|
8
|
+
* **[Optimized]** This field is now automatically obtained by the backend. You do not need to specify this field.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* agent_***
|
|
@@ -13,7 +13,7 @@ export class SendChatMessageShrinkRequest extends $dara.Model {
|
|
|
13
13
|
agentId?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* **[
|
|
16
|
+
* **[Optimized]** This field is now automatically obtained by the backend. You do not need to specify this field when calling the API.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* cn-hangzhou
|
|
@@ -34,7 +34,7 @@ export class SendChatMessageShrinkRequest extends $dara.Model {
|
|
|
34
34
|
dataSourcesShrink?: string;
|
|
35
35
|
/**
|
|
36
36
|
* @remarks
|
|
37
|
-
* The content
|
|
37
|
+
* The message content to send to the Agent.
|
|
38
38
|
*
|
|
39
39
|
* This parameter is required.
|
|
40
40
|
*
|
|
@@ -48,11 +48,11 @@ export class SendChatMessageShrinkRequest extends $dara.Model {
|
|
|
48
48
|
*
|
|
49
49
|
* - For regular interactions with the Agent, set the message type to `[primary]`.
|
|
50
50
|
*
|
|
51
|
-
* - When the message is a response to the Agent\\"s
|
|
51
|
+
* - When the message is a response to the Agent\\"s Human-in-Loop question, set the type to `[additional]`.
|
|
52
52
|
*
|
|
53
|
-
* - When the message
|
|
53
|
+
* - When the message is intended to trigger report generation, set the type to `[report]`.
|
|
54
54
|
*
|
|
55
|
-
* - When the message
|
|
55
|
+
* - When the message is intended to cancel the current session, set the type to `[cancel]`.
|
|
56
56
|
*
|
|
57
57
|
* @example
|
|
58
58
|
* primary
|
|
@@ -68,7 +68,7 @@ export class SendChatMessageShrinkRequest extends $dara.Model {
|
|
|
68
68
|
parentSessionId?: string;
|
|
69
69
|
/**
|
|
70
70
|
* @remarks
|
|
71
|
-
* This field is required when the message type is `additional`. Specify the specific question that the Agent asks the user through
|
|
71
|
+
* This field is required when the message type is `additional`. Specify the specific question that the Agent asks the user through Human-in-Loop.
|
|
72
72
|
*
|
|
73
73
|
* @example
|
|
74
74
|
* Provide the criteria for calculating GMV
|
|
@@ -86,9 +86,9 @@ export class SendChatMessageShrinkRequest extends $dara.Model {
|
|
|
86
86
|
* @remarks
|
|
87
87
|
* **Important**
|
|
88
88
|
*
|
|
89
|
-
* When this message is a reply to an Agent message (for example, the Agent asks a clarifying question through ASK_HUMAN), set reply_to to the exact Checkpoint sequence number carried in that Agent message. If this message is not a targeted reply, such as requesting the Agent to perform further in-depth analysis after
|
|
89
|
+
* When this message is a reply to an Agent message (for example, the Agent asks a clarifying question through ASK_HUMAN), set reply_to to the exact Checkpoint sequence number carried in that Agent message. If this message is not a targeted reply, such as requesting the Agent to perform further in-depth analysis after analysis is complete, you can leave reply_to empty or set it to "0".
|
|
90
90
|
*
|
|
91
|
-
* This field affects how the Agent decides to process the message.
|
|
91
|
+
* This field affects how the Agent decides to process the message. Incorrect values may lead to analysis results that do not meet expectations.
|
|
92
92
|
*
|
|
93
93
|
* @example
|
|
94
94
|
* 0
|
|
@@ -104,10 +104,10 @@ export class SendChatMessageShrinkRequest extends $dara.Model {
|
|
|
104
104
|
sessionConfigShrink?: string;
|
|
105
105
|
/**
|
|
106
106
|
* @remarks
|
|
107
|
-
* The session ID. This is an optional field used for multi-turn
|
|
108
|
-
* - You can start a session without specifying this field. The response includes the SessionID
|
|
107
|
+
* The session ID. This is an optional field used for multi-turn sessions.
|
|
108
|
+
* - You can start a session without specifying this field. The response includes the SessionID of the current session.
|
|
109
109
|
* - You can also manually create a session ID by calling the CreateDataAgentSession operation and include the ID when initiating a session.
|
|
110
|
-
* -
|
|
110
|
+
* - For multi-turn conversations (such as follow-up questions or confirming execution plans), specify the SessionID returned by the previous SendChatMessage call.
|
|
111
111
|
*
|
|
112
112
|
* @example
|
|
113
113
|
* sess_***
|
|
@@ -120,7 +120,7 @@ export class SendChatMessageShrinkRequest extends $dara.Model {
|
|
|
120
120
|
taskConfigShrink?: string;
|
|
121
121
|
/**
|
|
122
122
|
* @remarks
|
|
123
|
-
* The OSS bucket of the user. If this
|
|
123
|
+
* The OSS bucket of the user. If this parameter is not specified, the analysis data is securely stored in built-in storage.
|
|
124
124
|
*
|
|
125
125
|
* @example
|
|
126
126
|
* my-bucket
|
package/src/models/model.ts
CHANGED
|
@@ -5,6 +5,8 @@ export { AddUserToDataAgentWorkspaceResponseBodyData } from './AddUserToDataAgen
|
|
|
5
5
|
export { CheckDataAgentMemoryConfigResponseBodyData } from './CheckDataAgentMemoryConfigResponseBody';
|
|
6
6
|
export { ConfigAirflowResponseBodyRoot } from './ConfigAirflowResponseBody';
|
|
7
7
|
export { ConfigDataAgentMemoryResponseBodyData } from './ConfigDataAgentMemoryResponseBody';
|
|
8
|
+
export { CreateAgentResponseBodyDataApiKey } from './CreateAgentResponseBody';
|
|
9
|
+
export { CreateAgentResponseBodyData } from './CreateAgentResponseBody';
|
|
8
10
|
export { CreateAirflowResponseBodyRoot } from './CreateAirflowResponseBody';
|
|
9
11
|
export { CreateAirflowLoginTokenResponseBodyData } from './CreateAirflowLoginTokenResponseBody';
|
|
10
12
|
export { CreateCustomAgentRequestCallbackConfig } from './CreateCustomAgentRequest';
|
|
@@ -219,6 +221,9 @@ export { ConfigAirflowResponse } from './ConfigAirflowResponse';
|
|
|
219
221
|
export { ConfigDataAgentMemoryRequest } from './ConfigDataAgentMemoryRequest';
|
|
220
222
|
export { ConfigDataAgentMemoryResponseBody } from './ConfigDataAgentMemoryResponseBody';
|
|
221
223
|
export { ConfigDataAgentMemoryResponse } from './ConfigDataAgentMemoryResponse';
|
|
224
|
+
export { CreateAgentRequest } from './CreateAgentRequest';
|
|
225
|
+
export { CreateAgentResponseBody } from './CreateAgentResponseBody';
|
|
226
|
+
export { CreateAgentResponse } from './CreateAgentResponse';
|
|
222
227
|
export { CreateAirflowRequest } from './CreateAirflowRequest';
|
|
223
228
|
export { CreateAirflowShrinkRequest } from './CreateAirflowShrinkRequest';
|
|
224
229
|
export { CreateAirflowResponseBody } from './CreateAirflowResponseBody';
|