@alicloud/dms20250414 1.25.0 → 2.0.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 +12 -6
- package/dist/client.js +12 -16
- package/dist/client.js.map +1 -1
- 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/ListCustomAgentRequest.d.ts +5 -5
- package/dist/models/ListCustomAgentResponseBody.d.ts +42 -50
- package/dist/models/ListCustomAgentResponseBody.js.map +1 -1
- 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/package.json +1 -1
- package/src/client.ts +12 -16
- package/src/models/CreateDataAgentFeedbackRequest.ts +49 -0
- package/src/models/CreateDataAgentFeedbackResponseBody.ts +46 -0
- package/src/models/ListCustomAgentRequest.ts +5 -5
- package/src/models/ListCustomAgentResponseBody.ts +43 -51
- package/src/models/SendChatMessageRequest.ts +67 -36
- package/src/models/SendChatMessageShrinkRequest.ts +13 -13
|
@@ -2,13 +2,21 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class SendChatMessageRequestDataSourcePermissionTables extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
* The list of columns that are allowed
|
|
5
|
+
* 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.
|
|
6
6
|
*/
|
|
7
7
|
allowedColumns?: string[];
|
|
8
|
+
/**
|
|
9
|
+
* @remarks
|
|
10
|
+
* 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.
|
|
11
|
+
*
|
|
12
|
+
* 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.
|
|
13
|
+
*
|
|
14
|
+
* 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.
|
|
15
|
+
*/
|
|
8
16
|
disallowedColumns?: string[];
|
|
9
17
|
/**
|
|
10
18
|
* @remarks
|
|
11
|
-
* The required row filter condition for the current table. If this field is left empty, it is ignored. If
|
|
19
|
+
* 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.
|
|
12
20
|
*
|
|
13
21
|
* @example
|
|
14
22
|
* region = \\"east\\"
|
|
@@ -16,7 +24,7 @@ export declare class SendChatMessageRequestDataSourcePermissionTables extends $d
|
|
|
16
24
|
requiredRowFilter?: string;
|
|
17
25
|
/**
|
|
18
26
|
* @remarks
|
|
19
|
-
* The name
|
|
27
|
+
* The table name to which the permission constraint rule applies.
|
|
20
28
|
*
|
|
21
29
|
* @example
|
|
22
30
|
* sample_table
|
|
@@ -61,7 +69,7 @@ export declare class SendChatMessageRequestDataSource extends $dara.Model {
|
|
|
61
69
|
dataSourceId?: string;
|
|
62
70
|
/**
|
|
63
71
|
* @remarks
|
|
64
|
-
* The data source type. Valid values: `[remote_data_center, database]`,
|
|
72
|
+
* The data source type. Valid values: `[remote_data_center, database]`, indicating that the analysis is performed on a file or a database.
|
|
65
73
|
*
|
|
66
74
|
* @example
|
|
67
75
|
* remote_data_center
|
|
@@ -155,13 +163,21 @@ export declare class SendChatMessageRequestDataSource extends $dara.Model {
|
|
|
155
163
|
export declare class SendChatMessageRequestDataSourcesPermissionTables extends $dara.Model {
|
|
156
164
|
/**
|
|
157
165
|
* @remarks
|
|
158
|
-
* The list of columns that are allowed
|
|
166
|
+
* 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.
|
|
159
167
|
*/
|
|
160
168
|
allowedColumns?: string[];
|
|
169
|
+
/**
|
|
170
|
+
* @remarks
|
|
171
|
+
* 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.
|
|
172
|
+
*
|
|
173
|
+
* 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.
|
|
174
|
+
*
|
|
175
|
+
* 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.
|
|
176
|
+
*/
|
|
161
177
|
disallowedColumns?: string[];
|
|
162
178
|
/**
|
|
163
179
|
* @remarks
|
|
164
|
-
* The required row filter condition for the current table. If this field is left empty, it is ignored. If
|
|
180
|
+
* 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.
|
|
165
181
|
*
|
|
166
182
|
* @example
|
|
167
183
|
* region = \\"east\\"
|
|
@@ -169,7 +185,7 @@ export declare class SendChatMessageRequestDataSourcesPermissionTables extends $
|
|
|
169
185
|
requiredRowFilter?: string;
|
|
170
186
|
/**
|
|
171
187
|
* @remarks
|
|
172
|
-
* The name
|
|
188
|
+
* The table name to which the permission constraint rule applies.
|
|
173
189
|
*
|
|
174
190
|
* @example
|
|
175
191
|
* sample_table
|
|
@@ -214,7 +230,7 @@ export declare class SendChatMessageRequestDataSources extends $dara.Model {
|
|
|
214
230
|
dataSourceId?: string;
|
|
215
231
|
/**
|
|
216
232
|
* @remarks
|
|
217
|
-
* The data source type. Valid values: remote_data_center
|
|
233
|
+
* The data source type. Valid values: remote_data_center, database. These values indicate that the analysis is performed on a file or a database.
|
|
218
234
|
*
|
|
219
235
|
* @example
|
|
220
236
|
* remote_data_center
|
|
@@ -308,9 +324,14 @@ export declare class SendChatMessageRequestDataSources extends $dara.Model {
|
|
|
308
324
|
export declare class SendChatMessageRequestSessionConfigPermissionConfig extends $dara.Model {
|
|
309
325
|
/**
|
|
310
326
|
* @remarks
|
|
311
|
-
* The default
|
|
312
|
-
*
|
|
313
|
-
* -
|
|
327
|
+
* 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.
|
|
328
|
+
*
|
|
329
|
+
* - 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.
|
|
330
|
+
*
|
|
331
|
+
* - 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.
|
|
332
|
+
*
|
|
333
|
+
* @example
|
|
334
|
+
* allow
|
|
314
335
|
*/
|
|
315
336
|
defaultAction?: string;
|
|
316
337
|
static names(): {
|
|
@@ -327,7 +348,7 @@ export declare class SendChatMessageRequestSessionConfigPermissionConfig extends
|
|
|
327
348
|
export declare class SendChatMessageRequestSessionConfig extends $dara.Model {
|
|
328
349
|
/**
|
|
329
350
|
* @remarks
|
|
330
|
-
* The custom
|
|
351
|
+
* 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-`.
|
|
331
352
|
*
|
|
332
353
|
* @example
|
|
333
354
|
* ca-asfkjhqwe***aesrfqa
|
|
@@ -335,7 +356,7 @@ export declare class SendChatMessageRequestSessionConfig extends $dara.Model {
|
|
|
335
356
|
customAgentId?: string;
|
|
336
357
|
/**
|
|
337
358
|
* @remarks
|
|
338
|
-
* The stage of the custom
|
|
359
|
+
* The stage of the custom agent.
|
|
339
360
|
*
|
|
340
361
|
* @example
|
|
341
362
|
* null
|
|
@@ -348,7 +369,7 @@ export declare class SendChatMessageRequestSessionConfig extends $dara.Model {
|
|
|
348
369
|
* @example
|
|
349
370
|
* false
|
|
350
371
|
*/
|
|
351
|
-
enableSearch?:
|
|
372
|
+
enableSearch?: boolean;
|
|
352
373
|
/**
|
|
353
374
|
* @remarks
|
|
354
375
|
* The list of knowledge base IDs.
|
|
@@ -356,7 +377,7 @@ export declare class SendChatMessageRequestSessionConfig extends $dara.Model {
|
|
|
356
377
|
* @example
|
|
357
378
|
* dasd***cc211
|
|
358
379
|
*/
|
|
359
|
-
kbUuidList?: string;
|
|
380
|
+
kbUuidList?: string[];
|
|
360
381
|
/**
|
|
361
382
|
* @remarks
|
|
362
383
|
* Currently only Chinese and English are supported. The default value is Chinese. Only uppercase values are supported.
|
|
@@ -372,7 +393,7 @@ export declare class SendChatMessageRequestSessionConfig extends $dara.Model {
|
|
|
372
393
|
* @example
|
|
373
394
|
* 2q1tu90**********6uttu2nw
|
|
374
395
|
*/
|
|
375
|
-
mcpServerIds?: string;
|
|
396
|
+
mcpServerIds?: string[];
|
|
376
397
|
/**
|
|
377
398
|
* @remarks
|
|
378
399
|
* The mode. Valid values:
|
|
@@ -386,12 +407,12 @@ export declare class SendChatMessageRequestSessionConfig extends $dara.Model {
|
|
|
386
407
|
mode?: string;
|
|
387
408
|
/**
|
|
388
409
|
* @remarks
|
|
389
|
-
* The session
|
|
410
|
+
* 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.
|
|
390
411
|
*/
|
|
391
412
|
permissionConfig?: SendChatMessageRequestSessionConfigPermissionConfig;
|
|
392
413
|
/**
|
|
393
414
|
* @remarks
|
|
394
|
-
* Specifies whether to enable the plan. Valid values: disable, enable,
|
|
415
|
+
* Specifies whether to enable the plan. Valid values: disable, enable, force. Default value: enable.
|
|
395
416
|
*
|
|
396
417
|
* @example
|
|
397
418
|
* disable
|
|
@@ -437,6 +458,10 @@ export declare class SendChatMessageRequestSessionConfig extends $dara.Model {
|
|
|
437
458
|
* True
|
|
438
459
|
*/
|
|
439
460
|
skipWebReportConfirm?: boolean;
|
|
461
|
+
/**
|
|
462
|
+
* @remarks
|
|
463
|
+
* The list of user-specified skills.
|
|
464
|
+
*/
|
|
440
465
|
userSpecifiedSkillList?: string[];
|
|
441
466
|
static names(): {
|
|
442
467
|
[key: string]: string;
|
|
@@ -468,7 +493,7 @@ export declare class SendChatMessageRequestTaskConfigReportConfig extends $dara.
|
|
|
468
493
|
reportTheme?: string;
|
|
469
494
|
/**
|
|
470
495
|
* @remarks
|
|
471
|
-
* 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.
|
|
496
|
+
* 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.
|
|
472
497
|
*
|
|
473
498
|
* @example
|
|
474
499
|
* WebReport
|
|
@@ -488,7 +513,7 @@ export declare class SendChatMessageRequestTaskConfigReportConfig extends $dara.
|
|
|
488
513
|
export declare class SendChatMessageRequestTaskConfig extends $dara.Model {
|
|
489
514
|
/**
|
|
490
515
|
* @remarks
|
|
491
|
-
* The report rule
|
|
516
|
+
* The configuration of the report rule. Only when MesageType is set to REPORT, a report task is executed based on this configuration.
|
|
492
517
|
*/
|
|
493
518
|
reportConfig?: SendChatMessageRequestTaskConfigReportConfig;
|
|
494
519
|
static names(): {
|
|
@@ -505,7 +530,7 @@ export declare class SendChatMessageRequestTaskConfig extends $dara.Model {
|
|
|
505
530
|
export declare class SendChatMessageRequest extends $dara.Model {
|
|
506
531
|
/**
|
|
507
532
|
* @remarks
|
|
508
|
-
* **[
|
|
533
|
+
* **[Optimized]** This field is now automatically obtained by the backend. You do not need to specify this field.
|
|
509
534
|
*
|
|
510
535
|
* @example
|
|
511
536
|
* agent_***
|
|
@@ -513,7 +538,7 @@ export declare class SendChatMessageRequest extends $dara.Model {
|
|
|
513
538
|
agentId?: string;
|
|
514
539
|
/**
|
|
515
540
|
* @remarks
|
|
516
|
-
* **[
|
|
541
|
+
* **[Optimized]** This field is now automatically obtained by the backend. You do not need to specify this field when calling the API.
|
|
517
542
|
*
|
|
518
543
|
* @example
|
|
519
544
|
* cn-hangzhou
|
|
@@ -534,7 +559,7 @@ export declare class SendChatMessageRequest extends $dara.Model {
|
|
|
534
559
|
dataSources?: SendChatMessageRequestDataSources[];
|
|
535
560
|
/**
|
|
536
561
|
* @remarks
|
|
537
|
-
* The content
|
|
562
|
+
* The message content to send to the Agent.
|
|
538
563
|
*
|
|
539
564
|
* This parameter is required.
|
|
540
565
|
*
|
|
@@ -548,11 +573,11 @@ export declare class SendChatMessageRequest extends $dara.Model {
|
|
|
548
573
|
*
|
|
549
574
|
* - For regular interactions with the Agent, set the message type to `[primary]`.
|
|
550
575
|
*
|
|
551
|
-
* - When the message is a response to the Agent\\"s
|
|
576
|
+
* - When the message is a response to the Agent\\"s Human-in-Loop question, set the type to `[additional]`.
|
|
552
577
|
*
|
|
553
|
-
* - When the message
|
|
578
|
+
* - When the message is intended to trigger report generation, set the type to `[report]`.
|
|
554
579
|
*
|
|
555
|
-
* - When the message
|
|
580
|
+
* - When the message is intended to cancel the current session, set the type to `[cancel]`.
|
|
556
581
|
*
|
|
557
582
|
* @example
|
|
558
583
|
* primary
|
|
@@ -568,7 +593,7 @@ export declare class SendChatMessageRequest extends $dara.Model {
|
|
|
568
593
|
parentSessionId?: string;
|
|
569
594
|
/**
|
|
570
595
|
* @remarks
|
|
571
|
-
* This field is required when the message type is `additional`. Specify the specific question that the Agent asks the user through
|
|
596
|
+
* This field is required when the message type is `additional`. Specify the specific question that the Agent asks the user through Human-in-Loop.
|
|
572
597
|
*
|
|
573
598
|
* @example
|
|
574
599
|
* Provide the criteria for calculating GMV
|
|
@@ -586,9 +611,9 @@ export declare class SendChatMessageRequest extends $dara.Model {
|
|
|
586
611
|
* @remarks
|
|
587
612
|
* **Important**
|
|
588
613
|
*
|
|
589
|
-
* 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
|
|
614
|
+
* 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".
|
|
590
615
|
*
|
|
591
|
-
* This field affects how the Agent decides to process the message.
|
|
616
|
+
* This field affects how the Agent decides to process the message. Incorrect values may lead to analysis results that do not meet expectations.
|
|
592
617
|
*
|
|
593
618
|
* @example
|
|
594
619
|
* 0
|
|
@@ -604,10 +629,10 @@ export declare class SendChatMessageRequest extends $dara.Model {
|
|
|
604
629
|
sessionConfig?: SendChatMessageRequestSessionConfig;
|
|
605
630
|
/**
|
|
606
631
|
* @remarks
|
|
607
|
-
* The session ID. This is an optional field used for multi-turn
|
|
608
|
-
* - You can start a session without specifying this field. The response includes the SessionID
|
|
632
|
+
* The session ID. This is an optional field used for multi-turn sessions.
|
|
633
|
+
* - You can start a session without specifying this field. The response includes the SessionID of the current session.
|
|
609
634
|
* - You can also manually create a session ID by calling the CreateDataAgentSession operation and include the ID when initiating a session.
|
|
610
|
-
* -
|
|
635
|
+
* - For multi-turn conversations (such as follow-up questions or confirming execution plans), specify the SessionID returned by the previous SendChatMessage call.
|
|
611
636
|
*
|
|
612
637
|
* @example
|
|
613
638
|
* sess_***
|
|
@@ -620,7 +645,7 @@ export declare class SendChatMessageRequest extends $dara.Model {
|
|
|
620
645
|
taskConfig?: SendChatMessageRequestTaskConfig;
|
|
621
646
|
/**
|
|
622
647
|
* @remarks
|
|
623
|
-
* The OSS bucket of the user. If this
|
|
648
|
+
* The OSS bucket of the user. If this parameter is not specified, the analysis data is securely stored in built-in storage.
|
|
624
649
|
*
|
|
625
650
|
* @example
|
|
626
651
|
* my-bucket
|
|
@@ -279,10 +279,10 @@ class SendChatMessageRequestSessionConfig extends $dara.Model {
|
|
|
279
279
|
return {
|
|
280
280
|
customAgentId: 'string',
|
|
281
281
|
customAgentStage: 'string',
|
|
282
|
-
enableSearch: '
|
|
283
|
-
kbUuidList: 'string',
|
|
282
|
+
enableSearch: 'boolean',
|
|
283
|
+
kbUuidList: { 'type': 'array', 'itemType': 'string' },
|
|
284
284
|
language: 'string',
|
|
285
|
-
mcpServerIds: 'string',
|
|
285
|
+
mcpServerIds: { 'type': 'array', 'itemType': 'string' },
|
|
286
286
|
mode: 'string',
|
|
287
287
|
permissionConfig: SendChatMessageRequestSessionConfigPermissionConfig,
|
|
288
288
|
planMode: 'string',
|
|
@@ -295,6 +295,12 @@ class SendChatMessageRequestSessionConfig extends $dara.Model {
|
|
|
295
295
|
};
|
|
296
296
|
}
|
|
297
297
|
validate() {
|
|
298
|
+
if (Array.isArray(this.kbUuidList)) {
|
|
299
|
+
$dara.Model.validateArray(this.kbUuidList);
|
|
300
|
+
}
|
|
301
|
+
if (Array.isArray(this.mcpServerIds)) {
|
|
302
|
+
$dara.Model.validateArray(this.mcpServerIds);
|
|
303
|
+
}
|
|
298
304
|
if (this.permissionConfig && typeof this.permissionConfig.validate === 'function') {
|
|
299
305
|
this.permissionConfig.validate();
|
|
300
306
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SendChatMessageRequest.js","sourceRoot":"","sources":["../../src/models/SendChatMessageRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,gDAAiD,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"SendChatMessageRequest.js","sourceRoot":"","sources":["../../src/models/SendChatMessageRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,gDAAiD,SAAQ,KAAK,CAAC,KAAK;IA+B/E,MAAM,CAAC,KAAK;QACV,OAAO;YACL,cAAc,EAAE,gBAAgB;YAChC,iBAAiB,EAAE,mBAAmB;YACtC,iBAAiB,EAAE,mBAAmB;YACtC,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,cAAc,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;YACzD,iBAAiB,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;YAC5D,iBAAiB,EAAE,QAAQ;YAC3B,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC,EAAE,CAAC;YACtC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QACjD,CAAC;QACD,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,CAAC,EAAE,CAAC;YACzC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,I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equest extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
* **[
|
|
5
|
+
* **[Optimized]** This field is now automatically obtained by the backend. You do not need to specify this field.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* agent_***
|
|
@@ -10,7 +10,7 @@ export declare class SendChatMessageShrinkRequest extends $dara.Model {
|
|
|
10
10
|
agentId?: string;
|
|
11
11
|
/**
|
|
12
12
|
* @remarks
|
|
13
|
-
* **[
|
|
13
|
+
* **[Optimized]** This field is now automatically obtained by the backend. You do not need to specify this field when calling the API.
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
* cn-hangzhou
|
|
@@ -31,7 +31,7 @@ export declare class SendChatMessageShrinkRequest extends $dara.Model {
|
|
|
31
31
|
dataSourcesShrink?: string;
|
|
32
32
|
/**
|
|
33
33
|
* @remarks
|
|
34
|
-
* The content
|
|
34
|
+
* The message content to send to the Agent.
|
|
35
35
|
*
|
|
36
36
|
* This parameter is required.
|
|
37
37
|
*
|
|
@@ -45,11 +45,11 @@ export declare class SendChatMessageShrinkRequest extends $dara.Model {
|
|
|
45
45
|
*
|
|
46
46
|
* - For regular interactions with the Agent, set the message type to `[primary]`.
|
|
47
47
|
*
|
|
48
|
-
* - When the message is a response to the Agent\\"s
|
|
48
|
+
* - When the message is a response to the Agent\\"s Human-in-Loop question, set the type to `[additional]`.
|
|
49
49
|
*
|
|
50
|
-
* - When the message
|
|
50
|
+
* - When the message is intended to trigger report generation, set the type to `[report]`.
|
|
51
51
|
*
|
|
52
|
-
* - When the message
|
|
52
|
+
* - When the message is intended to cancel the current session, set the type to `[cancel]`.
|
|
53
53
|
*
|
|
54
54
|
* @example
|
|
55
55
|
* primary
|
|
@@ -65,7 +65,7 @@ export declare class SendChatMessageShrinkRequest extends $dara.Model {
|
|
|
65
65
|
parentSessionId?: string;
|
|
66
66
|
/**
|
|
67
67
|
* @remarks
|
|
68
|
-
* This field is required when the message type is `additional`. Specify the specific question that the Agent asks the user through
|
|
68
|
+
* This field is required when the message type is `additional`. Specify the specific question that the Agent asks the user through Human-in-Loop.
|
|
69
69
|
*
|
|
70
70
|
* @example
|
|
71
71
|
* Provide the criteria for calculating GMV
|
|
@@ -83,9 +83,9 @@ export declare class SendChatMessageShrinkRequest extends $dara.Model {
|
|
|
83
83
|
* @remarks
|
|
84
84
|
* **Important**
|
|
85
85
|
*
|
|
86
|
-
* 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
|
|
86
|
+
* 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".
|
|
87
87
|
*
|
|
88
|
-
* This field affects how the Agent decides to process the message.
|
|
88
|
+
* This field affects how the Agent decides to process the message. Incorrect values may lead to analysis results that do not meet expectations.
|
|
89
89
|
*
|
|
90
90
|
* @example
|
|
91
91
|
* 0
|
|
@@ -101,10 +101,10 @@ export declare class SendChatMessageShrinkRequest extends $dara.Model {
|
|
|
101
101
|
sessionConfigShrink?: string;
|
|
102
102
|
/**
|
|
103
103
|
* @remarks
|
|
104
|
-
* The session ID. This is an optional field used for multi-turn
|
|
105
|
-
* - You can start a session without specifying this field. The response includes the SessionID
|
|
104
|
+
* The session ID. This is an optional field used for multi-turn sessions.
|
|
105
|
+
* - You can start a session without specifying this field. The response includes the SessionID of the current session.
|
|
106
106
|
* - You can also manually create a session ID by calling the CreateDataAgentSession operation and include the ID when initiating a session.
|
|
107
|
-
* -
|
|
107
|
+
* - For multi-turn conversations (such as follow-up questions or confirming execution plans), specify the SessionID returned by the previous SendChatMessage call.
|
|
108
108
|
*
|
|
109
109
|
* @example
|
|
110
110
|
* sess_***
|
|
@@ -117,7 +117,7 @@ export declare class SendChatMessageShrinkRequest extends $dara.Model {
|
|
|
117
117
|
taskConfigShrink?: string;
|
|
118
118
|
/**
|
|
119
119
|
* @remarks
|
|
120
|
-
* The OSS bucket of the user. If this
|
|
120
|
+
* The OSS bucket of the user. If this parameter is not specified, the analysis data is securely stored in built-in storage.
|
|
121
121
|
*
|
|
122
122
|
* @example
|
|
123
123
|
* my-bucket
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -12,16 +12,6 @@ export default class Client extends OpenApi {
|
|
|
12
12
|
constructor(config: $OpenApiUtil.Config) {
|
|
13
13
|
super(config);
|
|
14
14
|
this._endpointRule = "regional";
|
|
15
|
-
this._endpointMap = {
|
|
16
|
-
'cn-shenzhen': "dms.cn-shenzhen.aliyuncs.com",
|
|
17
|
-
'cn-beijing': "dms.cn-beijing.aliyuncs.com",
|
|
18
|
-
'cn-shanghai': "dms.cn-shanghai.aliyuncs.com",
|
|
19
|
-
'cn-hongkong': "dms.cn-hongkong.aliyuncs.com",
|
|
20
|
-
'ap-southeast-1': "dms.ap-southeast-1.aliyuncs.com",
|
|
21
|
-
'cn-hangzhou': "dms.cn-hangzhou.aliyuncs.com",
|
|
22
|
-
'us-west-1': "dms.us-west-1.aliyuncs.com",
|
|
23
|
-
'us-east-1': "dms.us-east-1.aliyuncs.com",
|
|
24
|
-
};
|
|
25
15
|
this.checkConfig(config);
|
|
26
16
|
this._endpoint = this.getEndpoint("dms", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
|
|
27
17
|
}
|
|
@@ -922,7 +912,7 @@ export default class Client extends OpenApi {
|
|
|
922
912
|
}
|
|
923
913
|
|
|
924
914
|
/**
|
|
925
|
-
*
|
|
915
|
+
* Creates feedback for a DataAgent.
|
|
926
916
|
*
|
|
927
917
|
* @param request - CreateDataAgentFeedbackRequest
|
|
928
918
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -981,7 +971,7 @@ export default class Client extends OpenApi {
|
|
|
981
971
|
}
|
|
982
972
|
|
|
983
973
|
/**
|
|
984
|
-
*
|
|
974
|
+
* Creates feedback for a DataAgent.
|
|
985
975
|
*
|
|
986
976
|
* @param request - CreateDataAgentFeedbackRequest
|
|
987
977
|
* @returns CreateDataAgentFeedbackResponse
|
|
@@ -4132,6 +4122,9 @@ export default class Client extends OpenApi {
|
|
|
4132
4122
|
/**
|
|
4133
4123
|
* Queries the operation logs of the SQL window.
|
|
4134
4124
|
*
|
|
4125
|
+
* @remarks
|
|
4126
|
+
* When you call this operation, the service endpoint must match the region where the instance resides. Otherwise, the complete SQL window operation logs cannot be retrieved.
|
|
4127
|
+
*
|
|
4135
4128
|
* @param request - GetSqlConsoleOperationLogRequest
|
|
4136
4129
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
4137
4130
|
* @returns GetSqlConsoleOperationLogResponse
|
|
@@ -4191,6 +4184,9 @@ export default class Client extends OpenApi {
|
|
|
4191
4184
|
/**
|
|
4192
4185
|
* Queries the operation logs of the SQL window.
|
|
4193
4186
|
*
|
|
4187
|
+
* @remarks
|
|
4188
|
+
* When you call this operation, the service endpoint must match the region where the instance resides. Otherwise, the complete SQL window operation logs cannot be retrieved.
|
|
4189
|
+
*
|
|
4194
4190
|
* @param request - GetSqlConsoleOperationLogRequest
|
|
4195
4191
|
* @returns GetSqlConsoleOperationLogResponse
|
|
4196
4192
|
*/
|
|
@@ -4658,7 +4654,7 @@ export default class Client extends OpenApi {
|
|
|
4658
4654
|
}
|
|
4659
4655
|
|
|
4660
4656
|
/**
|
|
4661
|
-
*
|
|
4657
|
+
* Lists all custom agents in a personal space or workspace.
|
|
4662
4658
|
*
|
|
4663
4659
|
* @param request - ListCustomAgentRequest
|
|
4664
4660
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -4709,7 +4705,7 @@ export default class Client extends OpenApi {
|
|
|
4709
4705
|
}
|
|
4710
4706
|
|
|
4711
4707
|
/**
|
|
4712
|
-
*
|
|
4708
|
+
* Lists all custom agents in a personal space or workspace.
|
|
4713
4709
|
*
|
|
4714
4710
|
* @param request - ListCustomAgentRequest
|
|
4715
4711
|
* @returns ListCustomAgentResponse
|
|
@@ -7310,7 +7306,7 @@ export default class Client extends OpenApi {
|
|
|
7310
7306
|
*
|
|
7311
7307
|
* @remarks
|
|
7312
7308
|
* ## Request description
|
|
7313
|
-
* - `message_type` defaults to `primary`.
|
|
7309
|
+
* - `message_type` defaults to `primary`. To append information or cancel a session, set it to `additional` or `cancel`.
|
|
7314
7310
|
* - The `reply_to` field indicates which Agent message this message is a response to. The default value is `0`.
|
|
7315
7311
|
* - When `message_type` is `additional`, the `question` field is required.
|
|
7316
7312
|
* - `quoted_message` can be used to quote the content of a previous user message.
|
|
@@ -7422,7 +7418,7 @@ export default class Client extends OpenApi {
|
|
|
7422
7418
|
*
|
|
7423
7419
|
* @remarks
|
|
7424
7420
|
* ## Request description
|
|
7425
|
-
* - `message_type` defaults to `primary`.
|
|
7421
|
+
* - `message_type` defaults to `primary`. To append information or cancel a session, set it to `additional` or `cancel`.
|
|
7426
7422
|
* - The `reply_to` field indicates which Agent message this message is a response to. The default value is `0`.
|
|
7427
7423
|
* - When `message_type` is `additional`, the `question` field is required.
|
|
7428
7424
|
* - `quoted_message` can be used to quote the content of a previous user message.
|
|
@@ -4,41 +4,90 @@ import * as $dara from '@darabonba/typescript';
|
|
|
4
4
|
|
|
5
5
|
export class CreateDataAgentFeedbackRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The current DMS unit.
|
|
9
|
+
*
|
|
7
10
|
* @example
|
|
8
11
|
* cn-hangzhou
|
|
9
12
|
*/
|
|
10
13
|
DMSUnit?: string;
|
|
11
14
|
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The feedback content. You can directly enter the feedback content, or pass a JSON string for the issue report scenario as shown in the example. The feedback_type field corresponds to the issue type, user_feedback corresponds to the issue description, email corresponds to the contact email address, and is_authorized indicates whether to authorize log access for troubleshooting.
|
|
17
|
+
*
|
|
18
|
+
* feedback_type issue types. Valid values:
|
|
19
|
+
*
|
|
20
|
+
* - **ANALYSIS_RESULT_INACCURATE**: Inaccurate analysis result.
|
|
21
|
+
* - **RUNTIME_ERROR**: Runtime error.
|
|
22
|
+
* - **REPORT_EXCEPTION**: Report exception.
|
|
23
|
+
* - **SLOW_RESPONSE**: Slow response.
|
|
24
|
+
* - **PRODUCT_SUGGESTION**: Product suggestion.
|
|
25
|
+
* - **OTHER**: Other.
|
|
26
|
+
*
|
|
12
27
|
* @example
|
|
13
28
|
* {"feedback_type":"PRODUCT_SUGGESTION","user_feedback": "test","email":"yourname@example.com","is_authorized":"Y"}
|
|
14
29
|
*/
|
|
15
30
|
feedbackContent?: string;
|
|
16
31
|
/**
|
|
32
|
+
* @remarks
|
|
33
|
+
* The feedback type. Valid values:
|
|
34
|
+
*
|
|
35
|
+
* - **ISSUE_REPORT**: issue report.
|
|
36
|
+
* - **CANCEL_CHAT**: task cancellation.
|
|
37
|
+
* - **LIKE**: like.
|
|
38
|
+
* - **DISLIKE**: dislike.
|
|
39
|
+
*
|
|
17
40
|
* @example
|
|
18
41
|
* ISSUE_REPORT
|
|
19
42
|
*/
|
|
20
43
|
feedbackType?: string;
|
|
21
44
|
/**
|
|
45
|
+
* @remarks
|
|
46
|
+
* The like value. This parameter is used only for like and dislike scenarios. Do not pass this parameter for other scenarios. Valid values:
|
|
47
|
+
*
|
|
48
|
+
* - **1**: like.
|
|
49
|
+
* - **-1**: dislike.
|
|
50
|
+
*
|
|
22
51
|
* @example
|
|
23
52
|
* 1
|
|
24
53
|
*/
|
|
25
54
|
likeValue?: number;
|
|
26
55
|
/**
|
|
56
|
+
* @remarks
|
|
57
|
+
* The agent session ID.
|
|
58
|
+
*
|
|
27
59
|
* @example
|
|
28
60
|
* h8r********4fch
|
|
29
61
|
*/
|
|
30
62
|
sessionId?: string;
|
|
31
63
|
/**
|
|
64
|
+
* @remarks
|
|
65
|
+
* The feedback target ID.
|
|
66
|
+
*
|
|
67
|
+
* - For issue reports, use SessionId + underscore + random UUID.
|
|
68
|
+
* - For other feedback types, pass the checkpoint of the current SSE message stream.
|
|
69
|
+
*
|
|
32
70
|
* @example
|
|
33
71
|
* h8r********4fch_sdesfews
|
|
34
72
|
*/
|
|
35
73
|
targetId?: string;
|
|
36
74
|
/**
|
|
75
|
+
* @remarks
|
|
76
|
+
* The feedback target. Valid values:
|
|
77
|
+
*
|
|
78
|
+
* - **SESSION**: session (used for issue reports).
|
|
79
|
+
* - **CHAT**: chat (used for task cancellation).
|
|
80
|
+
* - **REPORT**: report.
|
|
81
|
+
* - **PLAN**: execution plan.
|
|
82
|
+
*
|
|
37
83
|
* @example
|
|
38
84
|
* SESSION
|
|
39
85
|
*/
|
|
40
86
|
targetType?: string;
|
|
41
87
|
/**
|
|
88
|
+
* @remarks
|
|
89
|
+
* The workspace ID.
|
|
90
|
+
*
|
|
42
91
|
* @example
|
|
43
92
|
* 56kv1pvl9uvt9**********bb
|
|
44
93
|
*/
|