@alicloud/dms20250414 1.14.2 → 1.14.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +22 -22
- package/dist/client.js +39 -23
- package/dist/client.js.map +1 -1
- package/dist/models/CreateDataAgentWorkspaceRequest.d.ts +3 -3
- package/dist/models/CreateDataAgentWorkspaceResponseBody.d.ts +6 -9
- package/dist/models/CreateDataAgentWorkspaceResponseBody.js +2 -0
- package/dist/models/CreateDataAgentWorkspaceResponseBody.js.map +1 -1
- package/dist/models/DescribeDataAgentSessionRequest.d.ts +3 -3
- package/dist/models/DescribeDataAgentSessionResponseBody.d.ts +83 -40
- package/dist/models/DescribeDataAgentSessionResponseBody.js +93 -1
- package/dist/models/DescribeDataAgentSessionResponseBody.js.map +1 -1
- package/dist/models/DmsGatewayOrder.d.ts +23 -0
- package/dist/models/DmsGatewayOrder.js +76 -0
- package/dist/models/DmsGatewayOrder.js.map +1 -0
- package/dist/models/GetDataAgentWorkspaceInfoRequest.d.ts +2 -2
- package/dist/models/GetDataAgentWorkspaceInfoResponseBody.d.ts +9 -12
- package/dist/models/GetDataAgentWorkspaceInfoResponseBody.js +2 -0
- package/dist/models/GetDataAgentWorkspaceInfoResponseBody.js.map +1 -1
- package/dist/models/ListDataAgentWorkspaceRequest.d.ts +6 -6
- package/dist/models/ListDataAgentWorkspaceResponseBody.d.ts +13 -12
- package/dist/models/ListDataAgentWorkspaceResponseBody.js +2 -0
- package/dist/models/ListDataAgentWorkspaceResponseBody.js.map +1 -1
- package/dist/models/SendChatMessageRequest.d.ts +62 -29
- package/dist/models/SendChatMessageRequest.js +59 -1
- package/dist/models/SendChatMessageRequest.js.map +1 -1
- package/dist/models/SendChatMessageResponseBody.d.ts +7 -6
- package/dist/models/SendChatMessageResponseBody.js +2 -0
- package/dist/models/SendChatMessageResponseBody.js.map +1 -1
- package/dist/models/SendChatMessageShrinkRequest.d.ts +12 -11
- package/dist/models/SendChatMessageShrinkRequest.js +2 -0
- package/dist/models/SendChatMessageShrinkRequest.js.map +1 -1
- package/dist/models/model.d.ts +6 -0
- package/dist/models/model.js +28 -16
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +41 -23
- package/src/models/CreateDataAgentWorkspaceRequest.ts +3 -3
- package/src/models/CreateDataAgentWorkspaceResponseBody.ts +8 -9
- package/src/models/DescribeDataAgentSessionRequest.ts +3 -3
- package/src/models/DescribeDataAgentSessionResponseBody.ts +148 -40
- package/src/models/DmsGatewayOrder.ts +54 -0
- package/src/models/GetDataAgentWorkspaceInfoRequest.ts +2 -2
- package/src/models/GetDataAgentWorkspaceInfoResponseBody.ts +11 -12
- package/src/models/ListDataAgentWorkspaceRequest.ts +6 -6
- package/src/models/ListDataAgentWorkspaceResponseBody.ts +15 -12
- package/src/models/SendChatMessageRequest.ts +102 -29
- package/src/models/SendChatMessageResponseBody.ts +9 -6
- package/src/models/SendChatMessageShrinkRequest.ts +14 -11
- package/src/models/model.ts +6 -0
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class SendChatMessageRequestDataSource extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
*
|
|
8
|
+
* Deprecated. You do not need to specify this parameter.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* 123
|
|
@@ -13,7 +13,7 @@ export class SendChatMessageRequestDataSource extends $dara.Model {
|
|
|
13
13
|
dataSourceId?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The data source type. Valid values
|
|
16
|
+
* The data source type. Valid values: `[remote_data_center, database]`, indicating that the analysis is performed on a file or a database respectively.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* remote_data_center
|
|
@@ -21,7 +21,7 @@ export class SendChatMessageRequestDataSource extends $dara.Model {
|
|
|
21
21
|
dataSourceType?: string;
|
|
22
22
|
/**
|
|
23
23
|
* @remarks
|
|
24
|
-
*
|
|
24
|
+
* Deprecated. You do not need to specify this parameter.
|
|
25
25
|
*
|
|
26
26
|
* @example
|
|
27
27
|
* test_db
|
|
@@ -37,7 +37,7 @@ export class SendChatMessageRequestDataSource extends $dara.Model {
|
|
|
37
37
|
dbName?: string;
|
|
38
38
|
/**
|
|
39
39
|
* @remarks
|
|
40
|
-
* The ID of the database in
|
|
40
|
+
* The ID of the database in Data Management.
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
43
|
* 23******
|
|
@@ -45,7 +45,7 @@ export class SendChatMessageRequestDataSource extends $dara.Model {
|
|
|
45
45
|
dmsDatabaseId?: string;
|
|
46
46
|
/**
|
|
47
47
|
* @remarks
|
|
48
|
-
* The ID of the instance in
|
|
48
|
+
* The ID of the instance in Data Management.
|
|
49
49
|
*
|
|
50
50
|
* @example
|
|
51
51
|
* 12******
|
|
@@ -69,7 +69,7 @@ export class SendChatMessageRequestDataSource extends $dara.Model {
|
|
|
69
69
|
fileId?: string;
|
|
70
70
|
/**
|
|
71
71
|
* @remarks
|
|
72
|
-
*
|
|
72
|
+
* Deprecated. You do not need to specify this parameter.
|
|
73
73
|
*
|
|
74
74
|
* @example
|
|
75
75
|
* localhost
|
|
@@ -85,7 +85,7 @@ export class SendChatMessageRequestDataSource extends $dara.Model {
|
|
|
85
85
|
regionId?: string;
|
|
86
86
|
/**
|
|
87
87
|
* @remarks
|
|
88
|
-
*
|
|
88
|
+
* The list of table names to analyze.
|
|
89
89
|
*/
|
|
90
90
|
tables?: string[];
|
|
91
91
|
static names(): { [key: string]: string } {
|
|
@@ -135,7 +135,7 @@ export class SendChatMessageRequestDataSource extends $dara.Model {
|
|
|
135
135
|
export class SendChatMessageRequestDataSources extends $dara.Model {
|
|
136
136
|
/**
|
|
137
137
|
* @remarks
|
|
138
|
-
*
|
|
138
|
+
* Deprecated. You do not need to specify this parameter.
|
|
139
139
|
*
|
|
140
140
|
* @example
|
|
141
141
|
* 123
|
|
@@ -143,7 +143,7 @@ export class SendChatMessageRequestDataSources extends $dara.Model {
|
|
|
143
143
|
dataSourceId?: string;
|
|
144
144
|
/**
|
|
145
145
|
* @remarks
|
|
146
|
-
* The data source type. Valid values
|
|
146
|
+
* The data source type. Valid values: [remote_data_center, database], indicating that the analysis is performed on a file or a database respectively.
|
|
147
147
|
*
|
|
148
148
|
* @example
|
|
149
149
|
* remote_data_center
|
|
@@ -151,7 +151,7 @@ export class SendChatMessageRequestDataSources extends $dara.Model {
|
|
|
151
151
|
dataSourceType?: string;
|
|
152
152
|
/**
|
|
153
153
|
* @remarks
|
|
154
|
-
*
|
|
154
|
+
* Deprecated. You do not need to specify this parameter.
|
|
155
155
|
*
|
|
156
156
|
* @example
|
|
157
157
|
* test_db
|
|
@@ -167,7 +167,7 @@ export class SendChatMessageRequestDataSources extends $dara.Model {
|
|
|
167
167
|
dbName?: string;
|
|
168
168
|
/**
|
|
169
169
|
* @remarks
|
|
170
|
-
* The ID of the database in
|
|
170
|
+
* The ID of the database in Data Management.
|
|
171
171
|
*
|
|
172
172
|
* @example
|
|
173
173
|
* 123****
|
|
@@ -175,7 +175,7 @@ export class SendChatMessageRequestDataSources extends $dara.Model {
|
|
|
175
175
|
dmsDatabaseId?: string;
|
|
176
176
|
/**
|
|
177
177
|
* @remarks
|
|
178
|
-
* The ID of the instance in
|
|
178
|
+
* The ID of the instance in Data Management.
|
|
179
179
|
*
|
|
180
180
|
* @example
|
|
181
181
|
* 248*****
|
|
@@ -199,7 +199,7 @@ export class SendChatMessageRequestDataSources extends $dara.Model {
|
|
|
199
199
|
fileId?: string;
|
|
200
200
|
/**
|
|
201
201
|
* @remarks
|
|
202
|
-
*
|
|
202
|
+
* Deprecated. You do not need to specify this parameter.
|
|
203
203
|
*
|
|
204
204
|
* @example
|
|
205
205
|
* localhost
|
|
@@ -215,7 +215,7 @@ export class SendChatMessageRequestDataSources extends $dara.Model {
|
|
|
215
215
|
regionId?: string;
|
|
216
216
|
/**
|
|
217
217
|
* @remarks
|
|
218
|
-
*
|
|
218
|
+
* The list of table names to analyze.
|
|
219
219
|
*/
|
|
220
220
|
tables?: string[];
|
|
221
221
|
static names(): { [key: string]: string } {
|
|
@@ -265,7 +265,7 @@ export class SendChatMessageRequestDataSources extends $dara.Model {
|
|
|
265
265
|
export class SendChatMessageRequestSessionConfig extends $dara.Model {
|
|
266
266
|
/**
|
|
267
267
|
* @remarks
|
|
268
|
-
*
|
|
268
|
+
* Deprecated. Use the input parameters of CreateAgentSession instead.
|
|
269
269
|
*
|
|
270
270
|
* @example
|
|
271
271
|
* null
|
|
@@ -273,7 +273,7 @@ export class SendChatMessageRequestSessionConfig extends $dara.Model {
|
|
|
273
273
|
customAgentId?: string;
|
|
274
274
|
/**
|
|
275
275
|
* @remarks
|
|
276
|
-
*
|
|
276
|
+
* Deprecated. Use the input parameters of CreateAgentSession instead.
|
|
277
277
|
*
|
|
278
278
|
* @example
|
|
279
279
|
* null
|
|
@@ -281,7 +281,7 @@ export class SendChatMessageRequestSessionConfig extends $dara.Model {
|
|
|
281
281
|
customAgentStage?: string;
|
|
282
282
|
/**
|
|
283
283
|
* @remarks
|
|
284
|
-
*
|
|
284
|
+
* Only Chinese and English are supported. The default value is Chinese. Only uppercase values are supported.
|
|
285
285
|
*
|
|
286
286
|
* @example
|
|
287
287
|
* ENGLISH
|
|
@@ -290,12 +290,16 @@ export class SendChatMessageRequestSessionConfig extends $dara.Model {
|
|
|
290
290
|
mode?: string;
|
|
291
291
|
/**
|
|
292
292
|
* @remarks
|
|
293
|
-
*
|
|
293
|
+
* The text of up to 64 characters that is used as a watermark in the generated PDF report.
|
|
294
294
|
*
|
|
295
295
|
* @example
|
|
296
296
|
* 示例水印
|
|
297
297
|
*/
|
|
298
298
|
reportWaterMark?: string;
|
|
299
|
+
skipAskHuman?: boolean;
|
|
300
|
+
skipPlan?: boolean;
|
|
301
|
+
skipSqlConfirm?: boolean;
|
|
302
|
+
skipWebReportConfirm?: boolean;
|
|
299
303
|
static names(): { [key: string]: string } {
|
|
300
304
|
return {
|
|
301
305
|
customAgentId: 'CustomAgentId',
|
|
@@ -303,6 +307,10 @@ export class SendChatMessageRequestSessionConfig extends $dara.Model {
|
|
|
303
307
|
language: 'Language',
|
|
304
308
|
mode: 'Mode',
|
|
305
309
|
reportWaterMark: 'ReportWaterMark',
|
|
310
|
+
skipAskHuman: 'SkipAskHuman',
|
|
311
|
+
skipPlan: 'SkipPlan',
|
|
312
|
+
skipSqlConfirm: 'SkipSqlConfirm',
|
|
313
|
+
skipWebReportConfirm: 'SkipWebReportConfirm',
|
|
306
314
|
};
|
|
307
315
|
}
|
|
308
316
|
|
|
@@ -313,6 +321,10 @@ export class SendChatMessageRequestSessionConfig extends $dara.Model {
|
|
|
313
321
|
language: 'string',
|
|
314
322
|
mode: 'string',
|
|
315
323
|
reportWaterMark: 'string',
|
|
324
|
+
skipAskHuman: 'boolean',
|
|
325
|
+
skipPlan: 'boolean',
|
|
326
|
+
skipSqlConfirm: 'boolean',
|
|
327
|
+
skipWebReportConfirm: 'boolean',
|
|
316
328
|
};
|
|
317
329
|
}
|
|
318
330
|
|
|
@@ -325,10 +337,65 @@ export class SendChatMessageRequestSessionConfig extends $dara.Model {
|
|
|
325
337
|
}
|
|
326
338
|
}
|
|
327
339
|
|
|
340
|
+
export class SendChatMessageRequestTaskConfigReportConfig extends $dara.Model {
|
|
341
|
+
reportPrompt?: string;
|
|
342
|
+
reportTheme?: string;
|
|
343
|
+
reportType?: string;
|
|
344
|
+
static names(): { [key: string]: string } {
|
|
345
|
+
return {
|
|
346
|
+
reportPrompt: 'ReportPrompt',
|
|
347
|
+
reportTheme: 'ReportTheme',
|
|
348
|
+
reportType: 'ReportType',
|
|
349
|
+
};
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
static types(): { [key: string]: any } {
|
|
353
|
+
return {
|
|
354
|
+
reportPrompt: 'string',
|
|
355
|
+
reportTheme: 'string',
|
|
356
|
+
reportType: 'string',
|
|
357
|
+
};
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
validate() {
|
|
361
|
+
super.validate();
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
constructor(map?: { [key: string]: any }) {
|
|
365
|
+
super(map);
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
export class SendChatMessageRequestTaskConfig extends $dara.Model {
|
|
370
|
+
reportConfig?: SendChatMessageRequestTaskConfigReportConfig;
|
|
371
|
+
static names(): { [key: string]: string } {
|
|
372
|
+
return {
|
|
373
|
+
reportConfig: 'ReportConfig',
|
|
374
|
+
};
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
static types(): { [key: string]: any } {
|
|
378
|
+
return {
|
|
379
|
+
reportConfig: SendChatMessageRequestTaskConfigReportConfig,
|
|
380
|
+
};
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
validate() {
|
|
384
|
+
if(this.reportConfig && typeof (this.reportConfig as any).validate === 'function') {
|
|
385
|
+
(this.reportConfig as any).validate();
|
|
386
|
+
}
|
|
387
|
+
super.validate();
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
constructor(map?: { [key: string]: any }) {
|
|
391
|
+
super(map);
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
|
|
328
395
|
export class SendChatMessageRequest extends $dara.Model {
|
|
329
396
|
/**
|
|
330
397
|
* @remarks
|
|
331
|
-
* The agent ID. This parameter is required. You can obtain
|
|
398
|
+
* The agent ID. This parameter is required. You can obtain the current AgentId from the response of the CreateAgentSession operation. Agent resources have a lifecycle, so the AgentId you need to specify may change with each request.
|
|
332
399
|
*
|
|
333
400
|
* This parameter is required.
|
|
334
401
|
*
|
|
@@ -338,7 +405,7 @@ export class SendChatMessageRequest extends $dara.Model {
|
|
|
338
405
|
agentId?: string;
|
|
339
406
|
/**
|
|
340
407
|
* @remarks
|
|
341
|
-
* The
|
|
408
|
+
* The Data Management unit you are currently in. If you choose to analyze a database, this information is used to correctly connect to your Data Management instance. You can go to the Data Management console to view your current Data Management unit. If you are a user of Alibaba Cloud China Website (www.aliyun.com), set this parameter to ap-southeast-1.
|
|
342
409
|
*
|
|
343
410
|
* @example
|
|
344
411
|
* cn-hangzhou
|
|
@@ -346,17 +413,17 @@ export class SendChatMessageRequest extends $dara.Model {
|
|
|
346
413
|
DMSUnit?: string;
|
|
347
414
|
/**
|
|
348
415
|
* @remarks
|
|
349
|
-
* The data source information.
|
|
416
|
+
* The data source information. This parameter is optional.
|
|
350
417
|
*/
|
|
351
418
|
dataSource?: SendChatMessageRequestDataSource;
|
|
352
419
|
/**
|
|
353
420
|
* @remarks
|
|
354
|
-
*
|
|
421
|
+
* The detailed data source information. This parameter is optional.
|
|
355
422
|
*/
|
|
356
423
|
dataSources?: SendChatMessageRequestDataSources[];
|
|
357
424
|
/**
|
|
358
425
|
* @remarks
|
|
359
|
-
* The content
|
|
426
|
+
* The message content to send to the Agent in this request.
|
|
360
427
|
*
|
|
361
428
|
* This parameter is required.
|
|
362
429
|
*
|
|
@@ -366,7 +433,7 @@ export class SendChatMessageRequest extends $dara.Model {
|
|
|
366
433
|
message?: string;
|
|
367
434
|
/**
|
|
368
435
|
* @remarks
|
|
369
|
-
* The message type.
|
|
436
|
+
* The message type. Default value: `[primary]`. When the message is a response to the Agent\\"s human-in-the-loop question, set this parameter to `[additional]`. When the message is intended to cancel the current session, set this parameter to `[cancel]`.
|
|
370
437
|
*
|
|
371
438
|
* @example
|
|
372
439
|
* primary
|
|
@@ -382,7 +449,7 @@ export class SendChatMessageRequest extends $dara.Model {
|
|
|
382
449
|
parentSessionId?: string;
|
|
383
450
|
/**
|
|
384
451
|
* @remarks
|
|
385
|
-
*
|
|
452
|
+
* The specific question that the Agent asks the user through human-in-the-loop. This parameter is required when the message type is `additional`.
|
|
386
453
|
*
|
|
387
454
|
* @example
|
|
388
455
|
* 请提供计算GMV的口径。
|
|
@@ -390,7 +457,7 @@ export class SendChatMessageRequest extends $dara.Model {
|
|
|
390
457
|
question?: string;
|
|
391
458
|
/**
|
|
392
459
|
* @remarks
|
|
393
|
-
* The quoted content
|
|
460
|
+
* The quoted content, typically used during interaction with the Agent.
|
|
394
461
|
*
|
|
395
462
|
* @example
|
|
396
463
|
* {"version":"v0"}
|
|
@@ -398,7 +465,7 @@ export class SendChatMessageRequest extends $dara.Model {
|
|
|
398
465
|
quotedMessage?: string;
|
|
399
466
|
/**
|
|
400
467
|
* @remarks
|
|
401
|
-
*
|
|
468
|
+
* Indicates which Agent message this message responds to. Set this parameter to the largest Checkpoint sequence number currently received. Set it to 0 for the first message. This field is used for message deduplication in case of occasional network issues or duplicate message delivery.
|
|
402
469
|
*
|
|
403
470
|
* @example
|
|
404
471
|
* 0
|
|
@@ -406,7 +473,7 @@ export class SendChatMessageRequest extends $dara.Model {
|
|
|
406
473
|
replyTo?: string;
|
|
407
474
|
/**
|
|
408
475
|
* @remarks
|
|
409
|
-
*
|
|
476
|
+
* The special configuration for this session. For the same session, only the configuration included in the first SendMessage call takes effect.
|
|
410
477
|
*
|
|
411
478
|
* **if can be null:**
|
|
412
479
|
* true
|
|
@@ -414,7 +481,7 @@ export class SendChatMessageRequest extends $dara.Model {
|
|
|
414
481
|
sessionConfig?: SendChatMessageRequestSessionConfig;
|
|
415
482
|
/**
|
|
416
483
|
* @remarks
|
|
417
|
-
* The session ID. This parameter is required. You can obtain the
|
|
484
|
+
* The session ID. This parameter is required. You can obtain the SessionId by calling the CreateAgentSession operation.
|
|
418
485
|
*
|
|
419
486
|
* This parameter is required.
|
|
420
487
|
*
|
|
@@ -422,6 +489,7 @@ export class SendChatMessageRequest extends $dara.Model {
|
|
|
422
489
|
* sess_***
|
|
423
490
|
*/
|
|
424
491
|
sessionId?: string;
|
|
492
|
+
taskConfig?: SendChatMessageRequestTaskConfig;
|
|
425
493
|
static names(): { [key: string]: string } {
|
|
426
494
|
return {
|
|
427
495
|
agentId: 'AgentId',
|
|
@@ -436,6 +504,7 @@ export class SendChatMessageRequest extends $dara.Model {
|
|
|
436
504
|
replyTo: 'ReplyTo',
|
|
437
505
|
sessionConfig: 'SessionConfig',
|
|
438
506
|
sessionId: 'SessionId',
|
|
507
|
+
taskConfig: 'TaskConfig',
|
|
439
508
|
};
|
|
440
509
|
}
|
|
441
510
|
|
|
@@ -453,6 +522,7 @@ export class SendChatMessageRequest extends $dara.Model {
|
|
|
453
522
|
replyTo: 'string',
|
|
454
523
|
sessionConfig: SendChatMessageRequestSessionConfig,
|
|
455
524
|
sessionId: 'string',
|
|
525
|
+
taskConfig: SendChatMessageRequestTaskConfig,
|
|
456
526
|
};
|
|
457
527
|
}
|
|
458
528
|
|
|
@@ -466,6 +536,9 @@ export class SendChatMessageRequest extends $dara.Model {
|
|
|
466
536
|
if(this.sessionConfig && typeof (this.sessionConfig as any).validate === 'function') {
|
|
467
537
|
(this.sessionConfig as any).validate();
|
|
468
538
|
}
|
|
539
|
+
if(this.taskConfig && typeof (this.taskConfig as any).validate === 'function') {
|
|
540
|
+
(this.taskConfig as any).validate();
|
|
541
|
+
}
|
|
469
542
|
super.validate();
|
|
470
543
|
}
|
|
471
544
|
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class SendChatMessageResponseBodyData extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
*
|
|
8
|
+
* AgentId
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* 3jqqdiuxun******
|
|
@@ -13,15 +13,16 @@ export class SendChatMessageResponseBodyData extends $dara.Model {
|
|
|
13
13
|
agentId?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
*
|
|
16
|
+
* Message
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* success
|
|
20
20
|
*/
|
|
21
21
|
message?: string;
|
|
22
|
+
messageId?: string;
|
|
22
23
|
/**
|
|
23
24
|
* @remarks
|
|
24
|
-
*
|
|
25
|
+
* SessionId
|
|
25
26
|
*
|
|
26
27
|
* @example
|
|
27
28
|
* 6zbqbho********
|
|
@@ -31,6 +32,7 @@ export class SendChatMessageResponseBodyData extends $dara.Model {
|
|
|
31
32
|
return {
|
|
32
33
|
agentId: 'AgentId',
|
|
33
34
|
message: 'Message',
|
|
35
|
+
messageId: 'MessageId',
|
|
34
36
|
sessionId: 'SessionId',
|
|
35
37
|
};
|
|
36
38
|
}
|
|
@@ -39,6 +41,7 @@ export class SendChatMessageResponseBodyData extends $dara.Model {
|
|
|
39
41
|
return {
|
|
40
42
|
agentId: 'string',
|
|
41
43
|
message: 'string',
|
|
44
|
+
messageId: 'string',
|
|
42
45
|
sessionId: 'string',
|
|
43
46
|
};
|
|
44
47
|
}
|
|
@@ -60,7 +63,7 @@ export class SendChatMessageResponseBody extends $dara.Model {
|
|
|
60
63
|
data?: SendChatMessageResponseBodyData;
|
|
61
64
|
/**
|
|
62
65
|
* @remarks
|
|
63
|
-
* The error code.
|
|
66
|
+
* The error code.
|
|
64
67
|
*
|
|
65
68
|
* @example
|
|
66
69
|
* Success
|
|
@@ -68,7 +71,7 @@ export class SendChatMessageResponseBody extends $dara.Model {
|
|
|
68
71
|
errorCode?: string;
|
|
69
72
|
/**
|
|
70
73
|
* @remarks
|
|
71
|
-
* The error message.
|
|
74
|
+
* The error message.
|
|
72
75
|
*
|
|
73
76
|
* @example
|
|
74
77
|
* ""
|
|
@@ -84,7 +87,7 @@ export class SendChatMessageResponseBody extends $dara.Model {
|
|
|
84
87
|
requestId?: string;
|
|
85
88
|
/**
|
|
86
89
|
* @remarks
|
|
87
|
-
*
|
|
90
|
+
* Success
|
|
88
91
|
*
|
|
89
92
|
* @example
|
|
90
93
|
* true
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class SendChatMessageShrinkRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The agent ID. This parameter is required. You can obtain
|
|
8
|
+
* The agent ID. This parameter is required. You can obtain the current AgentId from the response of the CreateAgentSession operation. Agent resources have a lifecycle, so the AgentId you need to specify may change with each request.
|
|
9
9
|
*
|
|
10
10
|
* This parameter is required.
|
|
11
11
|
*
|
|
@@ -15,7 +15,7 @@ export class SendChatMessageShrinkRequest extends $dara.Model {
|
|
|
15
15
|
agentId?: string;
|
|
16
16
|
/**
|
|
17
17
|
* @remarks
|
|
18
|
-
* The
|
|
18
|
+
* The Data Management unit you are currently in. If you choose to analyze a database, this information is used to correctly connect to your Data Management instance. You can go to the Data Management console to view your current Data Management unit. If you are a user of Alibaba Cloud China Website (www.aliyun.com), set this parameter to ap-southeast-1.
|
|
19
19
|
*
|
|
20
20
|
* @example
|
|
21
21
|
* cn-hangzhou
|
|
@@ -23,17 +23,17 @@ export class SendChatMessageShrinkRequest extends $dara.Model {
|
|
|
23
23
|
DMSUnit?: string;
|
|
24
24
|
/**
|
|
25
25
|
* @remarks
|
|
26
|
-
* The data source information.
|
|
26
|
+
* The data source information. This parameter is optional.
|
|
27
27
|
*/
|
|
28
28
|
dataSourceShrink?: string;
|
|
29
29
|
/**
|
|
30
30
|
* @remarks
|
|
31
|
-
*
|
|
31
|
+
* The detailed data source information. This parameter is optional.
|
|
32
32
|
*/
|
|
33
33
|
dataSourcesShrink?: string;
|
|
34
34
|
/**
|
|
35
35
|
* @remarks
|
|
36
|
-
* The content
|
|
36
|
+
* The message content to send to the Agent in this request.
|
|
37
37
|
*
|
|
38
38
|
* This parameter is required.
|
|
39
39
|
*
|
|
@@ -43,7 +43,7 @@ export class SendChatMessageShrinkRequest extends $dara.Model {
|
|
|
43
43
|
message?: string;
|
|
44
44
|
/**
|
|
45
45
|
* @remarks
|
|
46
|
-
* The message type.
|
|
46
|
+
* The message type. Default value: `[primary]`. When the message is a response to the Agent\\"s human-in-the-loop question, set this parameter to `[additional]`. When the message is intended to cancel the current session, set this parameter to `[cancel]`.
|
|
47
47
|
*
|
|
48
48
|
* @example
|
|
49
49
|
* primary
|
|
@@ -59,7 +59,7 @@ export class SendChatMessageShrinkRequest extends $dara.Model {
|
|
|
59
59
|
parentSessionId?: string;
|
|
60
60
|
/**
|
|
61
61
|
* @remarks
|
|
62
|
-
*
|
|
62
|
+
* The specific question that the Agent asks the user through human-in-the-loop. This parameter is required when the message type is `additional`.
|
|
63
63
|
*
|
|
64
64
|
* @example
|
|
65
65
|
* 请提供计算GMV的口径。
|
|
@@ -67,7 +67,7 @@ export class SendChatMessageShrinkRequest extends $dara.Model {
|
|
|
67
67
|
question?: string;
|
|
68
68
|
/**
|
|
69
69
|
* @remarks
|
|
70
|
-
* The quoted content
|
|
70
|
+
* The quoted content, typically used during interaction with the Agent.
|
|
71
71
|
*
|
|
72
72
|
* @example
|
|
73
73
|
* {"version":"v0"}
|
|
@@ -75,7 +75,7 @@ export class SendChatMessageShrinkRequest extends $dara.Model {
|
|
|
75
75
|
quotedMessage?: string;
|
|
76
76
|
/**
|
|
77
77
|
* @remarks
|
|
78
|
-
*
|
|
78
|
+
* Indicates which Agent message this message responds to. Set this parameter to the largest Checkpoint sequence number currently received. Set it to 0 for the first message. This field is used for message deduplication in case of occasional network issues or duplicate message delivery.
|
|
79
79
|
*
|
|
80
80
|
* @example
|
|
81
81
|
* 0
|
|
@@ -83,7 +83,7 @@ export class SendChatMessageShrinkRequest extends $dara.Model {
|
|
|
83
83
|
replyTo?: string;
|
|
84
84
|
/**
|
|
85
85
|
* @remarks
|
|
86
|
-
*
|
|
86
|
+
* The special configuration for this session. For the same session, only the configuration included in the first SendMessage call takes effect.
|
|
87
87
|
*
|
|
88
88
|
* **if can be null:**
|
|
89
89
|
* true
|
|
@@ -91,7 +91,7 @@ export class SendChatMessageShrinkRequest extends $dara.Model {
|
|
|
91
91
|
sessionConfigShrink?: string;
|
|
92
92
|
/**
|
|
93
93
|
* @remarks
|
|
94
|
-
* The session ID. This parameter is required. You can obtain the
|
|
94
|
+
* The session ID. This parameter is required. You can obtain the SessionId by calling the CreateAgentSession operation.
|
|
95
95
|
*
|
|
96
96
|
* This parameter is required.
|
|
97
97
|
*
|
|
@@ -99,6 +99,7 @@ export class SendChatMessageShrinkRequest extends $dara.Model {
|
|
|
99
99
|
* sess_***
|
|
100
100
|
*/
|
|
101
101
|
sessionId?: string;
|
|
102
|
+
taskConfigShrink?: string;
|
|
102
103
|
static names(): { [key: string]: string } {
|
|
103
104
|
return {
|
|
104
105
|
agentId: 'AgentId',
|
|
@@ -113,6 +114,7 @@ export class SendChatMessageShrinkRequest extends $dara.Model {
|
|
|
113
114
|
replyTo: 'ReplyTo',
|
|
114
115
|
sessionConfigShrink: 'SessionConfig',
|
|
115
116
|
sessionId: 'SessionId',
|
|
117
|
+
taskConfigShrink: 'TaskConfig',
|
|
116
118
|
};
|
|
117
119
|
}
|
|
118
120
|
|
|
@@ -130,6 +132,7 @@ export class SendChatMessageShrinkRequest extends $dara.Model {
|
|
|
130
132
|
replyTo: 'string',
|
|
131
133
|
sessionConfigShrink: 'string',
|
|
132
134
|
sessionId: 'string',
|
|
135
|
+
taskConfigShrink: 'string',
|
|
133
136
|
};
|
|
134
137
|
}
|
|
135
138
|
|
package/src/models/model.ts
CHANGED
|
@@ -27,7 +27,10 @@ export { DescribeCustomAgentResponseBodyDataExecutionConfig } from './DescribeCu
|
|
|
27
27
|
export { DescribeCustomAgentResponseBodyDataKnowledgeConfigList } from './DescribeCustomAgentResponseBody';
|
|
28
28
|
export { DescribeCustomAgentResponseBodyDataScheduleTaskConfig } from './DescribeCustomAgentResponseBody';
|
|
29
29
|
export { DescribeCustomAgentResponseBodyData } from './DescribeCustomAgentResponseBody';
|
|
30
|
+
export { DescribeDataAgentSessionResponseBodyDataArtifacts } from './DescribeDataAgentSessionResponseBody';
|
|
30
31
|
export { DescribeDataAgentSessionResponseBodyDataChatHistoryLocations } from './DescribeDataAgentSessionResponseBody';
|
|
32
|
+
export { DescribeDataAgentSessionResponseBodyDataDataSources } from './DescribeDataAgentSessionResponseBody';
|
|
33
|
+
export { DescribeDataAgentSessionResponseBodyDataRecallResults } from './DescribeDataAgentSessionResponseBody';
|
|
31
34
|
export { DescribeDataAgentSessionResponseBodyDataSessionConfig } from './DescribeDataAgentSessionResponseBody';
|
|
32
35
|
export { DescribeDataAgentSessionResponseBodyData } from './DescribeDataAgentSessionResponseBody';
|
|
33
36
|
export { DescribeDocumentResponseBodyData } from './DescribeDocumentResponseBody';
|
|
@@ -78,6 +81,8 @@ export { RetrieveKnowledgeBaseResponseBodyData } from './RetrieveKnowledgeBaseRe
|
|
|
78
81
|
export { SendChatMessageRequestDataSource } from './SendChatMessageRequest';
|
|
79
82
|
export { SendChatMessageRequestDataSources } from './SendChatMessageRequest';
|
|
80
83
|
export { SendChatMessageRequestSessionConfig } from './SendChatMessageRequest';
|
|
84
|
+
export { SendChatMessageRequestTaskConfigReportConfig } from './SendChatMessageRequest';
|
|
85
|
+
export { SendChatMessageRequestTaskConfig } from './SendChatMessageRequest';
|
|
81
86
|
export { SendChatMessageResponseBodyData } from './SendChatMessageResponseBody';
|
|
82
87
|
export { SetWorkspaceQuotaResponseBodyData } from './SetWorkspaceQuotaResponseBody';
|
|
83
88
|
export { UpdateAirflowResponseBodyRoot } from './UpdateAirflowResponseBody';
|
|
@@ -112,6 +117,7 @@ export { DLTable } from './Dltable';
|
|
|
112
117
|
export { DLTableInput } from './DltableInput';
|
|
113
118
|
export { DLTablebaseInfo } from './DltablebaseInfo';
|
|
114
119
|
export { DataMountInfo } from './DataMountInfo';
|
|
120
|
+
export { DmsGatewayOrder } from './DmsGatewayOrder';
|
|
115
121
|
export { DmsKnowledgeSearchOrderInfoDO } from './DmsKnowledgeSearchOrderInfoDo';
|
|
116
122
|
export { ForeignInstance } from './ForeignInstance';
|
|
117
123
|
export { ForeignInstanceCredInfo } from './ForeignInstanceCredInfo';
|