@alicloud/dms20250414 4.4.0 → 4.5.1
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 +23 -8
- package/dist/client.js +50 -8
- package/dist/client.js.map +1 -1
- package/dist/models/DescribeDataAgentSkillDownloadRequest.d.ts +29 -0
- package/dist/models/DescribeDataAgentSkillDownloadRequest.js +60 -0
- package/dist/models/DescribeDataAgentSkillDownloadRequest.js.map +1 -0
- package/dist/models/DescribeDataAgentSkillDownloadResponse.d.ts +19 -0
- package/dist/models/DescribeDataAgentSkillDownloadResponse.js +69 -0
- package/dist/models/DescribeDataAgentSkillDownloadResponse.js.map +1 -0
- package/dist/models/DescribeDataAgentSkillDownloadResponseBody.d.ts +97 -0
- package/dist/models/DescribeDataAgentSkillDownloadResponseBody.js +94 -0
- package/dist/models/DescribeDataAgentSkillDownloadResponseBody.js.map +1 -0
- package/dist/models/SendChatMessageRequest.d.ts +63 -49
- package/dist/models/SendChatMessageRequest.js +2 -0
- package/dist/models/SendChatMessageRequest.js.map +1 -1
- package/dist/models/SendChatMessageShrinkRequest.d.ts +17 -14
- package/dist/models/SendChatMessageShrinkRequest.js.map +1 -1
- package/dist/models/model.d.ts +4 -0
- package/dist/models/model.js +20 -12
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +54 -8
- package/src/models/DescribeDataAgentSkillDownloadRequest.ts +44 -0
- package/src/models/DescribeDataAgentSkillDownloadResponse.ts +40 -0
- package/src/models/DescribeDataAgentSkillDownloadResponseBody.ts +137 -0
- package/src/models/SendChatMessageRequest.ts +65 -49
- package/src/models/SendChatMessageShrinkRequest.ts +17 -14
- package/src/models/model.ts +4 -0
|
@@ -5,21 +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
|
|
8
|
+
* The list of columns allowed for querying in the current table. If left empty, all columns can be queried. If specified, SQL statements that exceed the allowed scope, such as `SELECT *`, will be blocked. To ensure optimal analysis results of DataAgent, avoid providing out-of-scope columns in modules such as prompts, knowledge, and instructions. Otherwise, generated SQL statements without permissions will be blocked, which degrades the analysis speed and results of DataAgent.
|
|
9
9
|
*/
|
|
10
10
|
allowedColumns?: string[];
|
|
11
11
|
/**
|
|
12
12
|
* @remarks
|
|
13
|
-
* The list of
|
|
13
|
+
* The list of columns prohibited from querying in the current table. If left empty, all columns **can be queried**. If specified, SQL statements that exceed the allowed scope, such as `SELECT *`, will be blocked.
|
|
14
14
|
*
|
|
15
|
-
* If both the prohibited list and the allowed list are configured, the prohibited list takes
|
|
15
|
+
* If both the prohibited list and the allowed list are configured, the prohibited list takes higher priority. For example, if Table 1 has columns A, B, C, and D, and columns A and B are configured as non-queryable while columns B and C are configured as queryable, only column C is ultimately queryable.
|
|
16
16
|
*
|
|
17
|
-
* To ensure
|
|
17
|
+
* To ensure optimal analysis results of DataAgent, avoid providing out-of-scope columns in modules such as prompts, knowledge, and instructions. Otherwise, generated SQL statements without permissions will be blocked, which degrades the analysis speed and results of DataAgent.
|
|
18
18
|
*/
|
|
19
19
|
disallowedColumns?: string[];
|
|
20
20
|
/**
|
|
21
21
|
* @remarks
|
|
22
|
-
* The row filter condition
|
|
22
|
+
* The required row filter condition for the current table. If left empty, this field is ignored. If specified, the system checks whether all SQL statements involving this table include the filter column and whether the WHERE clause meets the constraints. SQL statements that do not meet the constraints will be rejected. Ensure the correct format of the validation condition.
|
|
23
23
|
*
|
|
24
24
|
* @example
|
|
25
25
|
* region = \\"east\\"
|
|
@@ -99,7 +99,7 @@ export class SendChatMessageRequestDataSourcePermission extends $dara.Model {
|
|
|
99
99
|
export class SendChatMessageRequestDataSource extends $dara.Model {
|
|
100
100
|
/**
|
|
101
101
|
* @remarks
|
|
102
|
-
* **[Deprecated]** You do not need to specify
|
|
102
|
+
* **[Deprecated]** This field is deprecated. You do not need to specify it.
|
|
103
103
|
*
|
|
104
104
|
* @example
|
|
105
105
|
* 123
|
|
@@ -107,7 +107,7 @@ export class SendChatMessageRequestDataSource extends $dara.Model {
|
|
|
107
107
|
dataSourceId?: string;
|
|
108
108
|
/**
|
|
109
109
|
* @remarks
|
|
110
|
-
* The data source type. Valid values: remote_data_center
|
|
110
|
+
* The data source type. Valid values: `[remote_data_center, database]`, which indicate that the current analysis is based on a file or a database, respectively.
|
|
111
111
|
*
|
|
112
112
|
* @example
|
|
113
113
|
* remote_data_center
|
|
@@ -115,7 +115,7 @@ export class SendChatMessageRequestDataSource extends $dara.Model {
|
|
|
115
115
|
dataSourceType?: string;
|
|
116
116
|
/**
|
|
117
117
|
* @remarks
|
|
118
|
-
* **[Deprecated]** You do not need to specify
|
|
118
|
+
* **[Deprecated]** This field is deprecated. You do not need to specify it.
|
|
119
119
|
*
|
|
120
120
|
* @example
|
|
121
121
|
* test_db
|
|
@@ -147,7 +147,7 @@ export class SendChatMessageRequestDataSource extends $dara.Model {
|
|
|
147
147
|
dmsInstanceId?: string;
|
|
148
148
|
/**
|
|
149
149
|
* @remarks
|
|
150
|
-
* The
|
|
150
|
+
* The database engine type.
|
|
151
151
|
*
|
|
152
152
|
* @example
|
|
153
153
|
* mysql
|
|
@@ -163,7 +163,7 @@ export class SendChatMessageRequestDataSource extends $dara.Model {
|
|
|
163
163
|
fileId?: string;
|
|
164
164
|
/**
|
|
165
165
|
* @remarks
|
|
166
|
-
* **[Deprecated]** You do not need to specify
|
|
166
|
+
* **[Deprecated]** This field is deprecated. You do not need to specify it.
|
|
167
167
|
*
|
|
168
168
|
* @example
|
|
169
169
|
* localhost
|
|
@@ -189,7 +189,7 @@ export class SendChatMessageRequestDataSource extends $dara.Model {
|
|
|
189
189
|
tables?: string[];
|
|
190
190
|
/**
|
|
191
191
|
* @remarks
|
|
192
|
-
* The data source
|
|
192
|
+
* The Uniform Resource Identifier (URI) of the data source.
|
|
193
193
|
*
|
|
194
194
|
* @example
|
|
195
195
|
* datalake://abc/def
|
|
@@ -249,21 +249,21 @@ export class SendChatMessageRequestDataSource extends $dara.Model {
|
|
|
249
249
|
export class SendChatMessageRequestDataSourcesPermissionTables extends $dara.Model {
|
|
250
250
|
/**
|
|
251
251
|
* @remarks
|
|
252
|
-
* The list of columns that are allowed to be queried in the current table. If
|
|
252
|
+
* The list of columns that are allowed to be queried in the current table. If this parameter is left empty, all columns can be queried. If this parameter is specified, SQL statements that query columns beyond the allowed scope are blocked. For example, syntax similar to SELECT * is blocked. To ensure the analysis performance of DataAgent, make sure that the prompts, knowledge, and instructions of DataAgent do not include columns beyond the allowed scope. Otherwise, unauthorized SQL statements are generated and blocked, which reduces the analysis speed and effectiveness of DataAgent.
|
|
253
253
|
*/
|
|
254
254
|
allowedColumns?: string[];
|
|
255
255
|
/**
|
|
256
256
|
* @remarks
|
|
257
|
-
* The list of
|
|
257
|
+
* The list of columns prohibited from querying in the current table. If left empty, all columns **can be queried**. If specified, SQL statements that exceed the allowed scope, such as `SELECT *`, will be blocked.
|
|
258
258
|
*
|
|
259
|
-
* If both the prohibited list and the allowed list are configured, the prohibited list takes
|
|
259
|
+
* If both the prohibited list and the allowed list are configured, the prohibited list takes higher priority. For example, if Table 1 has columns A, B, C, and D, and columns A and B are configured as non-queryable while columns B and C are configured as queryable, only column C is ultimately queryable.
|
|
260
260
|
*
|
|
261
|
-
* To ensure
|
|
261
|
+
* To ensure optimal analysis results of DataAgent, avoid providing out-of-scope columns in modules such as prompts, knowledge, and instructions. Otherwise, generated SQL statements without permissions will be blocked, which degrades the analysis speed and results of DataAgent.
|
|
262
262
|
*/
|
|
263
263
|
disallowedColumns?: string[];
|
|
264
264
|
/**
|
|
265
265
|
* @remarks
|
|
266
|
-
* The row filter condition
|
|
266
|
+
* The required row filter condition for the current table. If left empty, this field is ignored. If specified, the system checks whether all SQL statements involving this table include the filter column and whether the WHERE clause meets the constraints. SQL statements that do not meet the constraints will be rejected. Ensure the correct format of the validation condition.
|
|
267
267
|
*
|
|
268
268
|
* @example
|
|
269
269
|
* region = \\"east\\"
|
|
@@ -343,7 +343,7 @@ export class SendChatMessageRequestDataSourcesPermission extends $dara.Model {
|
|
|
343
343
|
export class SendChatMessageRequestDataSources extends $dara.Model {
|
|
344
344
|
/**
|
|
345
345
|
* @remarks
|
|
346
|
-
* **[Deprecated]** You do not need to specify
|
|
346
|
+
* **[Deprecated]** This field is deprecated. You do not need to specify it.
|
|
347
347
|
*
|
|
348
348
|
* @example
|
|
349
349
|
* 123
|
|
@@ -361,7 +361,7 @@ export class SendChatMessageRequestDataSources extends $dara.Model {
|
|
|
361
361
|
dataSourceType?: string;
|
|
362
362
|
/**
|
|
363
363
|
* @remarks
|
|
364
|
-
* **[Deprecated]** You do not need to specify
|
|
364
|
+
* **[Deprecated]** This field is deprecated. You do not need to specify it.
|
|
365
365
|
*
|
|
366
366
|
* @example
|
|
367
367
|
* test_db
|
|
@@ -393,7 +393,7 @@ export class SendChatMessageRequestDataSources extends $dara.Model {
|
|
|
393
393
|
dmsInstanceId?: string;
|
|
394
394
|
/**
|
|
395
395
|
* @remarks
|
|
396
|
-
* The
|
|
396
|
+
* The database engine type.
|
|
397
397
|
*
|
|
398
398
|
* @example
|
|
399
399
|
* mysql
|
|
@@ -409,7 +409,7 @@ export class SendChatMessageRequestDataSources extends $dara.Model {
|
|
|
409
409
|
fileId?: string;
|
|
410
410
|
/**
|
|
411
411
|
* @remarks
|
|
412
|
-
* **[Deprecated]** You do not need to specify
|
|
412
|
+
* **[Deprecated]** This field is deprecated. You do not need to specify it.
|
|
413
413
|
*
|
|
414
414
|
* @example
|
|
415
415
|
* localhost
|
|
@@ -435,7 +435,7 @@ export class SendChatMessageRequestDataSources extends $dara.Model {
|
|
|
435
435
|
tables?: string[];
|
|
436
436
|
/**
|
|
437
437
|
* @remarks
|
|
438
|
-
* The data source
|
|
438
|
+
* The Uniform Resource Identifier (URI) of the data source.
|
|
439
439
|
*
|
|
440
440
|
* @example
|
|
441
441
|
* datalake://abc/def
|
|
@@ -496,8 +496,10 @@ export class SendChatMessageRequestSessionConfigPermissionConfig extends $dara.M
|
|
|
496
496
|
/**
|
|
497
497
|
* @remarks
|
|
498
498
|
* The default behavior for table-level permissions. This parameter controls whether tables not configured in DataSources.[item].Permission can be queried. Valid values:
|
|
499
|
-
*
|
|
500
|
-
* -
|
|
499
|
+
*
|
|
500
|
+
* - allow: Default value. Works in blacklist mode. By default, all tables can be queried, and the actual permissions are subject to the permissions configured in DMS. Row-level and column-level permissions are enforced only when you configure **row-level and column-level** permissions in DataSources.[item].Permission.
|
|
501
|
+
*
|
|
502
|
+
* - deny: Works in whitelist mode. You must manually pass this value. 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.
|
|
501
503
|
*
|
|
502
504
|
* @example
|
|
503
505
|
* allow
|
|
@@ -527,7 +529,7 @@ export class SendChatMessageRequestSessionConfigPermissionConfig extends $dara.M
|
|
|
527
529
|
export class SendChatMessageRequestSessionConfig extends $dara.Model {
|
|
528
530
|
/**
|
|
529
531
|
* @remarks
|
|
530
|
-
* The custom agent ID. A custom agent is an entity used to customize the analysis process. You can create it in the DataAgent console or by calling the CreateCustomAgent operation. A custom agent ID must be a string starting with ca
|
|
532
|
+
* The custom agent ID. A custom agent is an entity used to customize the analysis process. You can create it in the DataAgent console or by calling the CreateCustomAgent operation. A custom agent ID must be a string starting with `ca-`.
|
|
531
533
|
*
|
|
532
534
|
* @example
|
|
533
535
|
* ca-asfkjhqwe***aesrfqa
|
|
@@ -559,7 +561,7 @@ export class SendChatMessageRequestSessionConfig extends $dara.Model {
|
|
|
559
561
|
kbUuidList?: string[];
|
|
560
562
|
/**
|
|
561
563
|
* @remarks
|
|
562
|
-
* The language. Only
|
|
564
|
+
* The language. Only uppercase values are supported. Currently, only Chinese and English are supported. Default value: Chinese.
|
|
563
565
|
*
|
|
564
566
|
* @example
|
|
565
567
|
* ENGLISH
|
|
@@ -576,9 +578,9 @@ export class SendChatMessageRequestSessionConfig extends $dara.Model {
|
|
|
576
578
|
/**
|
|
577
579
|
* @remarks
|
|
578
580
|
* The mode. Valid values:
|
|
579
|
-
*
|
|
580
|
-
*
|
|
581
|
-
*
|
|
581
|
+
* - **ASK_DATA**: Data query mode.
|
|
582
|
+
* - **ANALYSIS**: Analysis mode.
|
|
583
|
+
* - **INSIGHT**: Insight mode.
|
|
582
584
|
*
|
|
583
585
|
* @example
|
|
584
586
|
* ANALYSIS
|
|
@@ -586,12 +588,12 @@ export class SendChatMessageRequestSessionConfig extends $dara.Model {
|
|
|
586
588
|
mode?: string;
|
|
587
589
|
/**
|
|
588
590
|
* @remarks
|
|
589
|
-
* The data permission settings
|
|
591
|
+
* The session level data permission settings. If configured multiple times in multi-turn conversations within the same session, the last configuration prevails.
|
|
590
592
|
*/
|
|
591
593
|
permissionConfig?: SendChatMessageRequestSessionConfigPermissionConfig;
|
|
592
594
|
/**
|
|
593
595
|
* @remarks
|
|
594
|
-
* Specifies whether to enable the plan feature. Valid values: disable, enable,
|
|
596
|
+
* Specifies whether to enable the plan feature. Valid values: `[disable, enable, force]`. Default value: `enable`.
|
|
595
597
|
*
|
|
596
598
|
* @example
|
|
597
599
|
* disable
|
|
@@ -599,7 +601,7 @@ export class SendChatMessageRequestSessionConfig extends $dara.Model {
|
|
|
599
601
|
planMode?: string;
|
|
600
602
|
/**
|
|
601
603
|
* @remarks
|
|
602
|
-
* The text to
|
|
604
|
+
* The text used to add a watermark to the generated PDF report. The text can be up to 64 characters in length.
|
|
603
605
|
*
|
|
604
606
|
* @example
|
|
605
607
|
* sample-watermark
|
|
@@ -650,6 +652,14 @@ export class SendChatMessageRequestSessionConfig extends $dara.Model {
|
|
|
650
652
|
* default
|
|
651
653
|
*/
|
|
652
654
|
webReportTheme?: string;
|
|
655
|
+
/**
|
|
656
|
+
* @remarks
|
|
657
|
+
* 交互模式,可选值 analysis(数据分析,默认)/ chat(聊天)
|
|
658
|
+
*
|
|
659
|
+
* @example
|
|
660
|
+
* ANALYSIS
|
|
661
|
+
*/
|
|
662
|
+
workMode?: string;
|
|
653
663
|
static names(): { [key: string]: string } {
|
|
654
664
|
return {
|
|
655
665
|
customAgentId: 'CustomAgentId',
|
|
@@ -668,6 +678,7 @@ export class SendChatMessageRequestSessionConfig extends $dara.Model {
|
|
|
668
678
|
skipWebReportConfirm: 'SkipWebReportConfirm',
|
|
669
679
|
userSpecifiedSkillList: 'UserSpecifiedSkillList',
|
|
670
680
|
webReportTheme: 'WebReportTheme',
|
|
681
|
+
workMode: 'WorkMode',
|
|
671
682
|
};
|
|
672
683
|
}
|
|
673
684
|
|
|
@@ -689,6 +700,7 @@ export class SendChatMessageRequestSessionConfig extends $dara.Model {
|
|
|
689
700
|
skipWebReportConfirm: 'boolean',
|
|
690
701
|
userSpecifiedSkillList: { 'type': 'array', 'itemType': 'string' },
|
|
691
702
|
webReportTheme: 'string',
|
|
703
|
+
workMode: 'string',
|
|
692
704
|
};
|
|
693
705
|
}
|
|
694
706
|
|
|
@@ -716,7 +728,7 @@ export class SendChatMessageRequestSessionConfig extends $dara.Model {
|
|
|
716
728
|
export class SendChatMessageRequestTaskConfigReportConfig extends $dara.Model {
|
|
717
729
|
/**
|
|
718
730
|
* @remarks
|
|
719
|
-
* The prompt that the current report
|
|
731
|
+
* The prompt that must be followed for the current report.
|
|
720
732
|
*
|
|
721
733
|
* @example
|
|
722
734
|
* generate a report
|
|
@@ -724,7 +736,8 @@ export class SendChatMessageRequestTaskConfigReportConfig extends $dara.Model {
|
|
|
724
736
|
reportPrompt?: string;
|
|
725
737
|
/**
|
|
726
738
|
* @remarks
|
|
727
|
-
* The report theme.
|
|
739
|
+
* The report theme.
|
|
740
|
+
* The system themes include default, journal, legacy, and neobrutalism, which are globally available theme IDs. You can call the ListDataAgentTheme operation to obtain the IDs of other available themes.
|
|
728
741
|
*
|
|
729
742
|
* @example
|
|
730
743
|
* default
|
|
@@ -733,8 +746,8 @@ export class SendChatMessageRequestTaskConfigReportConfig extends $dara.Model {
|
|
|
733
746
|
/**
|
|
734
747
|
* @remarks
|
|
735
748
|
* The service type. Valid values:
|
|
736
|
-
* - TextReport:
|
|
737
|
-
* - WebReport:
|
|
749
|
+
* - TextReport: A text report is generated for the current task.
|
|
750
|
+
* - WebReport: A web report is generated for the current task.
|
|
738
751
|
* Currently, only WebReport is supported.
|
|
739
752
|
*
|
|
740
753
|
* @example
|
|
@@ -815,7 +828,7 @@ export class SendChatMessageRequest extends $dara.Model {
|
|
|
815
828
|
DMSUnit?: string;
|
|
816
829
|
/**
|
|
817
830
|
* @remarks
|
|
818
|
-
* The data source information. This parameter can be left empty. You can
|
|
831
|
+
* The data source information. This parameter can be left empty. You can pass only one data source in this parameter. We recommend that you use the DataSources parameter instead.
|
|
819
832
|
*
|
|
820
833
|
* @example
|
|
821
834
|
* null
|
|
@@ -828,7 +841,7 @@ export class SendChatMessageRequest extends $dara.Model {
|
|
|
828
841
|
dataSources?: SendChatMessageRequestDataSources[];
|
|
829
842
|
/**
|
|
830
843
|
* @remarks
|
|
831
|
-
* The content of the message sent to the agent.
|
|
844
|
+
* The content of the message sent to the agent in the current request.
|
|
832
845
|
*
|
|
833
846
|
* This parameter is required.
|
|
834
847
|
*
|
|
@@ -838,12 +851,15 @@ export class SendChatMessageRequest extends $dara.Model {
|
|
|
838
851
|
message?: string;
|
|
839
852
|
/**
|
|
840
853
|
* @remarks
|
|
841
|
-
* The message type. Default value: primary
|
|
854
|
+
* The message type. Default value: `[primary]`.
|
|
855
|
+
*
|
|
856
|
+
* - For regular interactions with the agent, set the message type to `[primary]`.
|
|
857
|
+
*
|
|
858
|
+
* - If the message responds to a human-in-the-loop question from the agent, set the type to `[additional]`.
|
|
859
|
+
*
|
|
860
|
+
* - If the message triggers report generation, set the type to `[report]`.
|
|
842
861
|
*
|
|
843
|
-
* -
|
|
844
|
-
* - When the message is a response to a human-in-the-loop question from the agent, the type must be additional.
|
|
845
|
-
* - When the message is intended to trigger report generation, the type must be report.
|
|
846
|
-
* - When the message is intended to cancel the current session, the type must be cancel.
|
|
862
|
+
* - If the message cancels the current session, set the type to `[cancel]`.
|
|
847
863
|
*
|
|
848
864
|
* @example
|
|
849
865
|
* primary
|
|
@@ -859,7 +875,7 @@ export class SendChatMessageRequest extends $dara.Model {
|
|
|
859
875
|
parentSessionId?: string;
|
|
860
876
|
/**
|
|
861
877
|
* @remarks
|
|
862
|
-
*
|
|
878
|
+
* The specific question asked by the agent to the user through human-in-the-loop. This field is required when the message type is `additional`.
|
|
863
879
|
*
|
|
864
880
|
* @example
|
|
865
881
|
* Provide the calculation criteria for GMV
|
|
@@ -867,7 +883,7 @@ export class SendChatMessageRequest extends $dara.Model {
|
|
|
867
883
|
question?: string;
|
|
868
884
|
/**
|
|
869
885
|
* @remarks
|
|
870
|
-
* The
|
|
886
|
+
* The quoted content passed in the current request. This is typically used during interactions with the agent.
|
|
871
887
|
*
|
|
872
888
|
* @example
|
|
873
889
|
* {"version":"v0"}
|
|
@@ -877,7 +893,7 @@ export class SendChatMessageRequest extends $dara.Model {
|
|
|
877
893
|
* @remarks
|
|
878
894
|
* **Important**
|
|
879
895
|
*
|
|
880
|
-
*
|
|
896
|
+
* If this message replies to an agent message, such as an agent clarifying a question through ASK_HUMAN, you must accurately pass the checkpoint sequence number carried in that agent message to `reply_to`. If this message is not a targeted reply, such as requesting the agent to perform further in-depth analysis after the initial analysis is complete, you can leave `reply_to` empty or set it to "0".
|
|
881
897
|
*
|
|
882
898
|
* This field affects how the agent decides to process the message. Passing an incorrect value may lead to suboptimal analysis results.
|
|
883
899
|
*
|
|
@@ -887,7 +903,7 @@ export class SendChatMessageRequest extends $dara.Model {
|
|
|
887
903
|
replyTo?: string;
|
|
888
904
|
/**
|
|
889
905
|
* @remarks
|
|
890
|
-
* The special configurations for the current session. For the same session, only the configurations passed
|
|
906
|
+
* The special configurations for the current session. For the same session, only the configurations passed in the first SendMessage request take effect.
|
|
891
907
|
*
|
|
892
908
|
* **if can be null:**
|
|
893
909
|
* true
|
|
@@ -896,9 +912,9 @@ export class SendChatMessageRequest extends $dara.Model {
|
|
|
896
912
|
/**
|
|
897
913
|
* @remarks
|
|
898
914
|
* The session ID. This is an optional field used for multi-turn sessions.
|
|
899
|
-
* - You can start a session without specifying this field
|
|
915
|
+
* - You can start a session without specifying this field. The response will include the session ID for the current session.
|
|
900
916
|
* - You can also manually create a session ID by calling the CreateDataAgentSession operation and include the ID when initiating the session.
|
|
901
|
-
* - If you need multi-turn conversations
|
|
917
|
+
* - If you need multi-turn conversations, such as follow-up questions or confirming execution plans, include the session ID returned by the previous SendChatMessage operation in this request.
|
|
902
918
|
*
|
|
903
919
|
* @example
|
|
904
920
|
* sess_***
|
|
@@ -911,7 +927,7 @@ export class SendChatMessageRequest extends $dara.Model {
|
|
|
911
927
|
taskConfig?: SendChatMessageRequestTaskConfig;
|
|
912
928
|
/**
|
|
913
929
|
* @remarks
|
|
914
|
-
* The Object Storage Service (OSS) bucket of the user. If
|
|
930
|
+
* The Object Storage Service (OSS) bucket of the user. If this parameter is left empty, the analysis process is securely stored in the built-in storage.
|
|
915
931
|
*
|
|
916
932
|
* @example
|
|
917
933
|
* my-bucket
|
|
@@ -21,7 +21,7 @@ export class SendChatMessageShrinkRequest extends $dara.Model {
|
|
|
21
21
|
DMSUnit?: string;
|
|
22
22
|
/**
|
|
23
23
|
* @remarks
|
|
24
|
-
* The data source information. This parameter can be left empty. You can
|
|
24
|
+
* The data source information. This parameter can be left empty. You can pass only one data source in this parameter. We recommend that you use the DataSources parameter instead.
|
|
25
25
|
*
|
|
26
26
|
* @example
|
|
27
27
|
* null
|
|
@@ -34,7 +34,7 @@ export class SendChatMessageShrinkRequest extends $dara.Model {
|
|
|
34
34
|
dataSourcesShrink?: string;
|
|
35
35
|
/**
|
|
36
36
|
* @remarks
|
|
37
|
-
* The content of the message sent to the agent.
|
|
37
|
+
* The content of the message sent to the agent in the current request.
|
|
38
38
|
*
|
|
39
39
|
* This parameter is required.
|
|
40
40
|
*
|
|
@@ -44,12 +44,15 @@ export class SendChatMessageShrinkRequest extends $dara.Model {
|
|
|
44
44
|
message?: string;
|
|
45
45
|
/**
|
|
46
46
|
* @remarks
|
|
47
|
-
* The message type. Default value: primary
|
|
47
|
+
* The message type. Default value: `[primary]`.
|
|
48
48
|
*
|
|
49
|
-
* -
|
|
50
|
-
*
|
|
51
|
-
* -
|
|
52
|
-
*
|
|
49
|
+
* - For regular interactions with the agent, set the message type to `[primary]`.
|
|
50
|
+
*
|
|
51
|
+
* - If the message responds to a human-in-the-loop question from the agent, set the type to `[additional]`.
|
|
52
|
+
*
|
|
53
|
+
* - If the message triggers report generation, set the type to `[report]`.
|
|
54
|
+
*
|
|
55
|
+
* - If the message cancels the current session, set the type to `[cancel]`.
|
|
53
56
|
*
|
|
54
57
|
* @example
|
|
55
58
|
* primary
|
|
@@ -65,7 +68,7 @@ export class SendChatMessageShrinkRequest extends $dara.Model {
|
|
|
65
68
|
parentSessionId?: string;
|
|
66
69
|
/**
|
|
67
70
|
* @remarks
|
|
68
|
-
*
|
|
71
|
+
* The specific question asked by the agent to the user through human-in-the-loop. This field is required when the message type is `additional`.
|
|
69
72
|
*
|
|
70
73
|
* @example
|
|
71
74
|
* Provide the calculation criteria for GMV
|
|
@@ -73,7 +76,7 @@ export class SendChatMessageShrinkRequest extends $dara.Model {
|
|
|
73
76
|
question?: string;
|
|
74
77
|
/**
|
|
75
78
|
* @remarks
|
|
76
|
-
* The
|
|
79
|
+
* The quoted content passed in the current request. This is typically used during interactions with the agent.
|
|
77
80
|
*
|
|
78
81
|
* @example
|
|
79
82
|
* {"version":"v0"}
|
|
@@ -83,7 +86,7 @@ export class SendChatMessageShrinkRequest extends $dara.Model {
|
|
|
83
86
|
* @remarks
|
|
84
87
|
* **Important**
|
|
85
88
|
*
|
|
86
|
-
*
|
|
89
|
+
* If this message replies to an agent message, such as an agent clarifying a question through ASK_HUMAN, you must accurately pass the checkpoint sequence number carried in that agent message to `reply_to`. If this message is not a targeted reply, such as requesting the agent to perform further in-depth analysis after the initial analysis is complete, you can leave `reply_to` empty or set it to "0".
|
|
87
90
|
*
|
|
88
91
|
* This field affects how the agent decides to process the message. Passing an incorrect value may lead to suboptimal analysis results.
|
|
89
92
|
*
|
|
@@ -93,7 +96,7 @@ export class SendChatMessageShrinkRequest extends $dara.Model {
|
|
|
93
96
|
replyTo?: string;
|
|
94
97
|
/**
|
|
95
98
|
* @remarks
|
|
96
|
-
* The special configurations for the current session. For the same session, only the configurations passed
|
|
99
|
+
* The special configurations for the current session. For the same session, only the configurations passed in the first SendMessage request take effect.
|
|
97
100
|
*
|
|
98
101
|
* **if can be null:**
|
|
99
102
|
* true
|
|
@@ -102,9 +105,9 @@ export class SendChatMessageShrinkRequest extends $dara.Model {
|
|
|
102
105
|
/**
|
|
103
106
|
* @remarks
|
|
104
107
|
* The session ID. This is an optional field used for multi-turn sessions.
|
|
105
|
-
* - You can start a session without specifying this field
|
|
108
|
+
* - You can start a session without specifying this field. The response will include the session ID for the current session.
|
|
106
109
|
* - You can also manually create a session ID by calling the CreateDataAgentSession operation and include the ID when initiating the session.
|
|
107
|
-
* - If you need multi-turn conversations
|
|
110
|
+
* - If you need multi-turn conversations, such as follow-up questions or confirming execution plans, include the session ID returned by the previous SendChatMessage operation in this request.
|
|
108
111
|
*
|
|
109
112
|
* @example
|
|
110
113
|
* sess_***
|
|
@@ -117,7 +120,7 @@ export class SendChatMessageShrinkRequest extends $dara.Model {
|
|
|
117
120
|
taskConfigShrink?: string;
|
|
118
121
|
/**
|
|
119
122
|
* @remarks
|
|
120
|
-
* The Object Storage Service (OSS) bucket of the user. If
|
|
123
|
+
* The Object Storage Service (OSS) bucket of the user. If this parameter is left empty, the analysis process is securely stored in the built-in storage.
|
|
121
124
|
*
|
|
122
125
|
* @example
|
|
123
126
|
* my-bucket
|
package/src/models/model.ts
CHANGED
|
@@ -66,6 +66,7 @@ export { DescribeDataAgentSessionResponseBodyDataPreviewCustomAgent } from './De
|
|
|
66
66
|
export { DescribeDataAgentSessionResponseBodyDataRecallResults } from './DescribeDataAgentSessionResponseBody';
|
|
67
67
|
export { DescribeDataAgentSessionResponseBodyDataSessionConfig } from './DescribeDataAgentSessionResponseBody';
|
|
68
68
|
export { DescribeDataAgentSessionResponseBodyData } from './DescribeDataAgentSessionResponseBody';
|
|
69
|
+
export { DescribeDataAgentSkillDownloadResponseBodyData } from './DescribeDataAgentSkillDownloadResponseBody';
|
|
69
70
|
export { DescribeDataAgentThemeResponseBodyData } from './DescribeDataAgentThemeResponseBody';
|
|
70
71
|
export { DescribeDocumentResponseBodyData } from './DescribeDocumentResponseBody';
|
|
71
72
|
export { DescribeFileUploadSignatureResponseBodyData } from './DescribeFileUploadSignatureResponseBody';
|
|
@@ -347,6 +348,9 @@ export { DescribeDataAgentMetricsResponse } from './DescribeDataAgentMetricsResp
|
|
|
347
348
|
export { DescribeDataAgentSessionRequest } from './DescribeDataAgentSessionRequest';
|
|
348
349
|
export { DescribeDataAgentSessionResponseBody } from './DescribeDataAgentSessionResponseBody';
|
|
349
350
|
export { DescribeDataAgentSessionResponse } from './DescribeDataAgentSessionResponse';
|
|
351
|
+
export { DescribeDataAgentSkillDownloadRequest } from './DescribeDataAgentSkillDownloadRequest';
|
|
352
|
+
export { DescribeDataAgentSkillDownloadResponseBody } from './DescribeDataAgentSkillDownloadResponseBody';
|
|
353
|
+
export { DescribeDataAgentSkillDownloadResponse } from './DescribeDataAgentSkillDownloadResponse';
|
|
350
354
|
export { DescribeDataAgentThemeRequest } from './DescribeDataAgentThemeRequest';
|
|
351
355
|
export { DescribeDataAgentThemeResponseBody } from './DescribeDataAgentThemeResponseBody';
|
|
352
356
|
export { DescribeDataAgentThemeResponse } from './DescribeDataAgentThemeResponse';
|