@alicloud/dianjin20240628 1.6.4 → 1.7.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/src/client.ts CHANGED
@@ -2,7 +2,6 @@
2
2
  /**
3
3
  */
4
4
  import Util, * as $Util from '@alicloud/tea-util';
5
- import GatewayClient from '@alicloud/gateway-pop';
6
5
  import OSS, * as $OSS from '@alicloud/oss-client';
7
6
  import OpenPlatform, * as $OpenPlatform from '@alicloud/openplatform20191219';
8
7
  import OSSUtil, * as $OSSUtil from '@alicloud/oss-util';
@@ -160,6 +159,161 @@ export class CreateAnnualDocSummaryTaskResponse extends $tea.Model {
160
159
  }
161
160
  }
162
161
 
162
+ export class CreateDialogRequest extends $tea.Model {
163
+ /**
164
+ * @remarks
165
+ * This parameter is required.
166
+ *
167
+ * @example
168
+ * taobao
169
+ */
170
+ channel?: string;
171
+ enableLibrary?: boolean;
172
+ /**
173
+ * @example
174
+ * null
175
+ */
176
+ metaData?: { [key: string]: any };
177
+ /**
178
+ * @remarks
179
+ * This parameter is required.
180
+ *
181
+ * @example
182
+ * live_broadcast_qa
183
+ */
184
+ playCode?: string;
185
+ qaLibraryList?: string[];
186
+ /**
187
+ * @remarks
188
+ * This parameter is required.
189
+ *
190
+ * @example
191
+ * ebf83826-dc1c-46f8-9759-0fb6da4c8xxx
192
+ */
193
+ requestId?: string;
194
+ selfDirected?: boolean;
195
+ static names(): { [key: string]: string } {
196
+ return {
197
+ channel: 'channel',
198
+ enableLibrary: 'enableLibrary',
199
+ metaData: 'metaData',
200
+ playCode: 'playCode',
201
+ qaLibraryList: 'qaLibraryList',
202
+ requestId: 'requestId',
203
+ selfDirected: 'selfDirected',
204
+ };
205
+ }
206
+
207
+ static types(): { [key: string]: any } {
208
+ return {
209
+ channel: 'string',
210
+ enableLibrary: 'boolean',
211
+ metaData: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
212
+ playCode: 'string',
213
+ qaLibraryList: { 'type': 'array', 'itemType': 'string' },
214
+ requestId: 'string',
215
+ selfDirected: 'boolean',
216
+ };
217
+ }
218
+
219
+ constructor(map?: { [key: string]: any }) {
220
+ super(map);
221
+ }
222
+ }
223
+
224
+ export class CreateDialogResponseBody extends $tea.Model {
225
+ /**
226
+ * @example
227
+ * null
228
+ */
229
+ cost?: number;
230
+ data?: CreateDialogResponseBodyData;
231
+ /**
232
+ * @example
233
+ * null
234
+ */
235
+ dataType?: string;
236
+ /**
237
+ * @example
238
+ * 0
239
+ */
240
+ errCode?: string;
241
+ /**
242
+ * @example
243
+ * ok
244
+ */
245
+ message?: string;
246
+ /**
247
+ * @example
248
+ * 003D019A-1BB3-53EC-A0D2-CE76DA5D73B1
249
+ */
250
+ requestId?: string;
251
+ /**
252
+ * @example
253
+ * true
254
+ */
255
+ success?: boolean;
256
+ /**
257
+ * @example
258
+ * 2024-01-01 00:00:00
259
+ */
260
+ time?: string;
261
+ static names(): { [key: string]: string } {
262
+ return {
263
+ cost: 'cost',
264
+ data: 'data',
265
+ dataType: 'dataType',
266
+ errCode: 'errCode',
267
+ message: 'message',
268
+ requestId: 'requestId',
269
+ success: 'success',
270
+ time: 'time',
271
+ };
272
+ }
273
+
274
+ static types(): { [key: string]: any } {
275
+ return {
276
+ cost: 'number',
277
+ data: CreateDialogResponseBodyData,
278
+ dataType: 'string',
279
+ errCode: 'string',
280
+ message: 'string',
281
+ requestId: 'string',
282
+ success: 'boolean',
283
+ time: 'string',
284
+ };
285
+ }
286
+
287
+ constructor(map?: { [key: string]: any }) {
288
+ super(map);
289
+ }
290
+ }
291
+
292
+ export class CreateDialogResponse extends $tea.Model {
293
+ headers?: { [key: string]: string };
294
+ statusCode?: number;
295
+ body?: CreateDialogResponseBody;
296
+ static names(): { [key: string]: string } {
297
+ return {
298
+ headers: 'headers',
299
+ statusCode: 'statusCode',
300
+ body: 'body',
301
+ };
302
+ }
303
+
304
+ static types(): { [key: string]: any } {
305
+ return {
306
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
307
+ statusCode: 'number',
308
+ body: CreateDialogResponseBody,
309
+ };
310
+ }
311
+
312
+ constructor(map?: { [key: string]: any }) {
313
+ super(map);
314
+ }
315
+ }
316
+
163
317
  export class CreateDocsSummaryTaskRequest extends $tea.Model {
164
318
  /**
165
319
  * @remarks
@@ -1389,13 +1543,59 @@ export class EvictTaskResponse extends $tea.Model {
1389
1543
  }
1390
1544
  }
1391
1545
 
1392
- export class GetAppConfigResponseBody extends $tea.Model {
1546
+ export class GenDocQaResultRequest extends $tea.Model {
1547
+ /**
1548
+ * @remarks
1549
+ * This parameter is required.
1550
+ *
1551
+ * @example
1552
+ * 182364872346
1553
+ */
1554
+ docId?: string;
1555
+ /**
1556
+ * @remarks
1557
+ * This parameter is required.
1558
+ *
1559
+ * @example
1560
+ * sjdgdsfg
1561
+ */
1562
+ libraryId?: string;
1563
+ /**
1564
+ * @remarks
1565
+ * This parameter is required.
1566
+ *
1567
+ * @example
1568
+ * 0FC6636E-380A-5369-AE01-D1C15BB9B254
1569
+ */
1570
+ requestId?: string;
1571
+ static names(): { [key: string]: string } {
1572
+ return {
1573
+ docId: 'docId',
1574
+ libraryId: 'libraryId',
1575
+ requestId: 'requestId',
1576
+ };
1577
+ }
1578
+
1579
+ static types(): { [key: string]: any } {
1580
+ return {
1581
+ docId: 'string',
1582
+ libraryId: 'string',
1583
+ requestId: 'string',
1584
+ };
1585
+ }
1586
+
1587
+ constructor(map?: { [key: string]: any }) {
1588
+ super(map);
1589
+ }
1590
+ }
1591
+
1592
+ export class GenDocQaResultResponseBody extends $tea.Model {
1393
1593
  /**
1394
1594
  * @example
1395
1595
  * null
1396
1596
  */
1397
1597
  cost?: number;
1398
- data?: GetAppConfigResponseBodyData;
1598
+ data?: GenDocQaResultResponseBodyData;
1399
1599
  /**
1400
1600
  * @example
1401
1601
  * null
@@ -1408,17 +1608,17 @@ export class GetAppConfigResponseBody extends $tea.Model {
1408
1608
  errCode?: string;
1409
1609
  /**
1410
1610
  * @example
1411
- * None
1611
+ * ok
1412
1612
  */
1413
1613
  message?: string;
1414
1614
  /**
1415
1615
  * @example
1416
- * EF4B5C9B-3BC8-5171-A47B-4C5CF3DC3258
1616
+ * 44BD277A-87F9-5310-8D63-3E6645F1DA85
1417
1617
  */
1418
1618
  requestId?: string;
1419
1619
  /**
1420
1620
  * @example
1421
- * True
1621
+ * true
1422
1622
  */
1423
1623
  success?: boolean;
1424
1624
  /**
@@ -1442,7 +1642,7 @@ export class GetAppConfigResponseBody extends $tea.Model {
1442
1642
  static types(): { [key: string]: any } {
1443
1643
  return {
1444
1644
  cost: 'number',
1445
- data: GetAppConfigResponseBodyData,
1645
+ data: GenDocQaResultResponseBodyData,
1446
1646
  dataType: 'string',
1447
1647
  errCode: 'string',
1448
1648
  message: 'string',
@@ -1457,10 +1657,10 @@ export class GetAppConfigResponseBody extends $tea.Model {
1457
1657
  }
1458
1658
  }
1459
1659
 
1460
- export class GetAppConfigResponse extends $tea.Model {
1660
+ export class GenDocQaResultResponse extends $tea.Model {
1461
1661
  headers?: { [key: string]: string };
1462
1662
  statusCode?: number;
1463
- body?: GetAppConfigResponseBody;
1663
+ body?: GenDocQaResultResponseBody;
1464
1664
  static names(): { [key: string]: string } {
1465
1665
  return {
1466
1666
  headers: 'headers',
@@ -1473,7 +1673,7 @@ export class GetAppConfigResponse extends $tea.Model {
1473
1673
  return {
1474
1674
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1475
1675
  statusCode: 'number',
1476
- body: GetAppConfigResponseBody,
1676
+ body: GenDocQaResultResponseBody,
1477
1677
  };
1478
1678
  }
1479
1679
 
@@ -1482,72 +1682,66 @@ export class GetAppConfigResponse extends $tea.Model {
1482
1682
  }
1483
1683
  }
1484
1684
 
1485
- export class GetDocumentChunkListRequest extends $tea.Model {
1486
- chunkIdList?: string[];
1685
+ export class GetAppConfigResponseBody extends $tea.Model {
1487
1686
  /**
1488
- * @remarks
1489
- * This parameter is required.
1490
- *
1491
1687
  * @example
1492
- * 182364872346
1688
+ * null
1493
1689
  */
1494
- docId?: string;
1690
+ cost?: number;
1691
+ data?: GetAppConfigResponseBodyData;
1495
1692
  /**
1496
- * @remarks
1497
- * This parameter is required.
1498
- *
1499
1693
  * @example
1500
- * dsjgfdjgfxxx
1694
+ * null
1501
1695
  */
1502
- libraryId?: string;
1696
+ dataType?: string;
1503
1697
  /**
1504
1698
  * @example
1505
- * desc
1699
+ * 0
1506
1700
  */
1507
- order?: string;
1701
+ errCode?: string;
1508
1702
  /**
1509
1703
  * @example
1510
- * gmtCreate
1704
+ * None
1511
1705
  */
1512
- orderBy?: string;
1706
+ message?: string;
1513
1707
  /**
1514
1708
  * @example
1515
- * 1
1709
+ * EF4B5C9B-3BC8-5171-A47B-4C5CF3DC3258
1516
1710
  */
1517
- page?: number;
1711
+ requestId?: string;
1518
1712
  /**
1519
1713
  * @example
1520
- * 10
1714
+ * True
1521
1715
  */
1522
- pageSize?: number;
1716
+ success?: boolean;
1523
1717
  /**
1524
1718
  * @example
1525
- * test
1719
+ * 2024-04-24 11:54:34
1526
1720
  */
1527
- searchQuery?: string;
1721
+ time?: string;
1528
1722
  static names(): { [key: string]: string } {
1529
1723
  return {
1530
- chunkIdList: 'chunkIdList',
1531
- docId: 'docId',
1532
- libraryId: 'libraryId',
1533
- order: 'order',
1534
- orderBy: 'orderBy',
1535
- page: 'page',
1536
- pageSize: 'pageSize',
1537
- searchQuery: 'searchQuery',
1724
+ cost: 'cost',
1725
+ data: 'data',
1726
+ dataType: 'dataType',
1727
+ errCode: 'errCode',
1728
+ message: 'message',
1729
+ requestId: 'requestId',
1730
+ success: 'success',
1731
+ time: 'time',
1538
1732
  };
1539
1733
  }
1540
1734
 
1541
1735
  static types(): { [key: string]: any } {
1542
1736
  return {
1543
- chunkIdList: { 'type': 'array', 'itemType': 'string' },
1544
- docId: 'string',
1545
- libraryId: 'string',
1546
- order: 'string',
1547
- orderBy: 'string',
1548
- page: 'number',
1549
- pageSize: 'number',
1550
- searchQuery: 'string',
1737
+ cost: 'number',
1738
+ data: GetAppConfigResponseBodyData,
1739
+ dataType: 'string',
1740
+ errCode: 'string',
1741
+ message: 'string',
1742
+ requestId: 'string',
1743
+ success: 'boolean',
1744
+ time: 'string',
1551
1745
  };
1552
1746
  }
1553
1747
 
@@ -1556,7 +1750,235 @@ export class GetDocumentChunkListRequest extends $tea.Model {
1556
1750
  }
1557
1751
  }
1558
1752
 
1559
- export class GetDocumentChunkListResponseBody extends $tea.Model {
1753
+ export class GetAppConfigResponse extends $tea.Model {
1754
+ headers?: { [key: string]: string };
1755
+ statusCode?: number;
1756
+ body?: GetAppConfigResponseBody;
1757
+ static names(): { [key: string]: string } {
1758
+ return {
1759
+ headers: 'headers',
1760
+ statusCode: 'statusCode',
1761
+ body: 'body',
1762
+ };
1763
+ }
1764
+
1765
+ static types(): { [key: string]: any } {
1766
+ return {
1767
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1768
+ statusCode: 'number',
1769
+ body: GetAppConfigResponseBody,
1770
+ };
1771
+ }
1772
+
1773
+ constructor(map?: { [key: string]: any }) {
1774
+ super(map);
1775
+ }
1776
+ }
1777
+
1778
+ export class GetChatQuestionRespRequest extends $tea.Model {
1779
+ /**
1780
+ * @remarks
1781
+ * This parameter is required.
1782
+ *
1783
+ * @example
1784
+ * 1869307330227937280
1785
+ */
1786
+ batchId?: string;
1787
+ /**
1788
+ * @remarks
1789
+ * This parameter is required.
1790
+ *
1791
+ * @example
1792
+ * 237645726354
1793
+ */
1794
+ sessionId?: string;
1795
+ static names(): { [key: string]: string } {
1796
+ return {
1797
+ batchId: 'batchId',
1798
+ sessionId: 'sessionId',
1799
+ };
1800
+ }
1801
+
1802
+ static types(): { [key: string]: any } {
1803
+ return {
1804
+ batchId: 'string',
1805
+ sessionId: 'string',
1806
+ };
1807
+ }
1808
+
1809
+ constructor(map?: { [key: string]: any }) {
1810
+ super(map);
1811
+ }
1812
+ }
1813
+
1814
+ export class GetChatQuestionRespResponseBody extends $tea.Model {
1815
+ /**
1816
+ * @example
1817
+ * null
1818
+ */
1819
+ cost?: number;
1820
+ data?: GetChatQuestionRespResponseBodyData;
1821
+ /**
1822
+ * @example
1823
+ * null
1824
+ */
1825
+ dataType?: string;
1826
+ /**
1827
+ * @example
1828
+ * 0
1829
+ */
1830
+ errCode?: string;
1831
+ /**
1832
+ * @example
1833
+ * ok
1834
+ */
1835
+ message?: string;
1836
+ /**
1837
+ * @example
1838
+ * 44BD277A-87F9-5310-8D63-3E6645F1DA85
1839
+ */
1840
+ requestId?: string;
1841
+ /**
1842
+ * @example
1843
+ * true
1844
+ */
1845
+ success?: boolean;
1846
+ /**
1847
+ * @example
1848
+ * 2024-01-01 00:00:00
1849
+ */
1850
+ time?: string;
1851
+ static names(): { [key: string]: string } {
1852
+ return {
1853
+ cost: 'cost',
1854
+ data: 'data',
1855
+ dataType: 'dataType',
1856
+ errCode: 'errCode',
1857
+ message: 'message',
1858
+ requestId: 'requestId',
1859
+ success: 'success',
1860
+ time: 'time',
1861
+ };
1862
+ }
1863
+
1864
+ static types(): { [key: string]: any } {
1865
+ return {
1866
+ cost: 'number',
1867
+ data: GetChatQuestionRespResponseBodyData,
1868
+ dataType: 'string',
1869
+ errCode: 'string',
1870
+ message: 'string',
1871
+ requestId: 'string',
1872
+ success: 'boolean',
1873
+ time: 'string',
1874
+ };
1875
+ }
1876
+
1877
+ constructor(map?: { [key: string]: any }) {
1878
+ super(map);
1879
+ }
1880
+ }
1881
+
1882
+ export class GetChatQuestionRespResponse extends $tea.Model {
1883
+ headers?: { [key: string]: string };
1884
+ statusCode?: number;
1885
+ body?: GetChatQuestionRespResponseBody;
1886
+ static names(): { [key: string]: string } {
1887
+ return {
1888
+ headers: 'headers',
1889
+ statusCode: 'statusCode',
1890
+ body: 'body',
1891
+ };
1892
+ }
1893
+
1894
+ static types(): { [key: string]: any } {
1895
+ return {
1896
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1897
+ statusCode: 'number',
1898
+ body: GetChatQuestionRespResponseBody,
1899
+ };
1900
+ }
1901
+
1902
+ constructor(map?: { [key: string]: any }) {
1903
+ super(map);
1904
+ }
1905
+ }
1906
+
1907
+ export class GetDocumentChunkListRequest extends $tea.Model {
1908
+ chunkIdList?: string[];
1909
+ /**
1910
+ * @remarks
1911
+ * This parameter is required.
1912
+ *
1913
+ * @example
1914
+ * 182364872346
1915
+ */
1916
+ docId?: string;
1917
+ /**
1918
+ * @remarks
1919
+ * This parameter is required.
1920
+ *
1921
+ * @example
1922
+ * dsjgfdjgfxxx
1923
+ */
1924
+ libraryId?: string;
1925
+ /**
1926
+ * @example
1927
+ * desc
1928
+ */
1929
+ order?: string;
1930
+ /**
1931
+ * @example
1932
+ * gmtCreate
1933
+ */
1934
+ orderBy?: string;
1935
+ /**
1936
+ * @example
1937
+ * 1
1938
+ */
1939
+ page?: number;
1940
+ /**
1941
+ * @example
1942
+ * 10
1943
+ */
1944
+ pageSize?: number;
1945
+ /**
1946
+ * @example
1947
+ * test
1948
+ */
1949
+ searchQuery?: string;
1950
+ static names(): { [key: string]: string } {
1951
+ return {
1952
+ chunkIdList: 'chunkIdList',
1953
+ docId: 'docId',
1954
+ libraryId: 'libraryId',
1955
+ order: 'order',
1956
+ orderBy: 'orderBy',
1957
+ page: 'page',
1958
+ pageSize: 'pageSize',
1959
+ searchQuery: 'searchQuery',
1960
+ };
1961
+ }
1962
+
1963
+ static types(): { [key: string]: any } {
1964
+ return {
1965
+ chunkIdList: { 'type': 'array', 'itemType': 'string' },
1966
+ docId: 'string',
1967
+ libraryId: 'string',
1968
+ order: 'string',
1969
+ orderBy: 'string',
1970
+ page: 'number',
1971
+ pageSize: 'number',
1972
+ searchQuery: 'string',
1973
+ };
1974
+ }
1975
+
1976
+ constructor(map?: { [key: string]: any }) {
1977
+ super(map);
1978
+ }
1979
+ }
1980
+
1981
+ export class GetDocumentChunkListResponseBody extends $tea.Model {
1560
1982
  /**
1561
1983
  * @example
1562
1984
  * null
@@ -3389,49 +3811,192 @@ export class ReIndexResponse extends $tea.Model {
3389
3811
  }
3390
3812
  }
3391
3813
 
3392
- export class RebuildTaskRequest extends $tea.Model {
3814
+ export class RealTimeDialogRequest extends $tea.Model {
3393
3815
  /**
3394
- * @remarks
3395
- * This parameter is required.
3816
+ * @example
3817
+ * false
3396
3818
  */
3397
- taskIds?: string[];
3398
- static names(): { [key: string]: string } {
3399
- return {
3400
- taskIds: 'taskIds',
3401
- };
3402
- }
3403
-
3404
- static types(): { [key: string]: any } {
3405
- return {
3406
- taskIds: { 'type': 'array', 'itemType': 'string' },
3407
- };
3408
- }
3409
-
3410
- constructor(map?: { [key: string]: any }) {
3411
- super(map);
3412
- }
3413
- }
3414
-
3415
- export class RebuildTaskResponseBody extends $tea.Model {
3819
+ analysis?: boolean;
3416
3820
  /**
3417
3821
  * @example
3418
- * null
3822
+ * mixIntentChat
3419
3823
  */
3420
- cost?: number;
3421
- data?: { [key: string]: any }[];
3824
+ bizType?: string;
3422
3825
  /**
3423
- * @example
3424
- * null
3826
+ * @remarks
3827
+ * This parameter is required.
3425
3828
  */
3426
- dataType?: string;
3829
+ conversationModel?: RealTimeDialogRequestConversationModel[];
3427
3830
  /**
3428
3831
  * @example
3429
- * 0
3832
+ * 3
3430
3833
  */
3431
- errCode?: string;
3834
+ dialogMemoryTurns?: number;
3835
+ metaData?: { [key: string]: any };
3432
3836
  /**
3433
3837
  * @example
3434
- * ok
3838
+ * false
3839
+ */
3840
+ recommend?: boolean;
3841
+ /**
3842
+ * @remarks
3843
+ * This parameter is required.
3844
+ *
3845
+ * @example
3846
+ * 237645726354
3847
+ */
3848
+ sessionId?: string;
3849
+ /**
3850
+ * @example
3851
+ * false
3852
+ */
3853
+ stream?: boolean;
3854
+ static names(): { [key: string]: string } {
3855
+ return {
3856
+ analysis: 'analysis',
3857
+ bizType: 'bizType',
3858
+ conversationModel: 'conversationModel',
3859
+ dialogMemoryTurns: 'dialogMemoryTurns',
3860
+ metaData: 'metaData',
3861
+ recommend: 'recommend',
3862
+ sessionId: 'sessionId',
3863
+ stream: 'stream',
3864
+ };
3865
+ }
3866
+
3867
+ static types(): { [key: string]: any } {
3868
+ return {
3869
+ analysis: 'boolean',
3870
+ bizType: 'string',
3871
+ conversationModel: { 'type': 'array', 'itemType': RealTimeDialogRequestConversationModel },
3872
+ dialogMemoryTurns: 'number',
3873
+ metaData: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
3874
+ recommend: 'boolean',
3875
+ sessionId: 'string',
3876
+ stream: 'boolean',
3877
+ };
3878
+ }
3879
+
3880
+ constructor(map?: { [key: string]: any }) {
3881
+ super(map);
3882
+ }
3883
+ }
3884
+
3885
+ export class RealTimeDialogResponseBody extends $tea.Model {
3886
+ choices?: RealTimeDialogResponseBodyChoices[];
3887
+ /**
3888
+ * @example
3889
+ * 1735139569523
3890
+ */
3891
+ created?: string;
3892
+ /**
3893
+ * @example
3894
+ * eb2b6139-ddf1-91a0-a47f-df7617ae9032
3895
+ */
3896
+ id?: string;
3897
+ /**
3898
+ * @example
3899
+ * 5E3FBAF1-17AF-53B7-AF0A-CDCEEB6DE658
3900
+ */
3901
+ requestId?: string;
3902
+ /**
3903
+ * @example
3904
+ * true
3905
+ */
3906
+ success?: boolean;
3907
+ static names(): { [key: string]: string } {
3908
+ return {
3909
+ choices: 'choices',
3910
+ created: 'created',
3911
+ id: 'id',
3912
+ requestId: 'requestId',
3913
+ success: 'success',
3914
+ };
3915
+ }
3916
+
3917
+ static types(): { [key: string]: any } {
3918
+ return {
3919
+ choices: { 'type': 'array', 'itemType': RealTimeDialogResponseBodyChoices },
3920
+ created: 'string',
3921
+ id: 'string',
3922
+ requestId: 'string',
3923
+ success: 'boolean',
3924
+ };
3925
+ }
3926
+
3927
+ constructor(map?: { [key: string]: any }) {
3928
+ super(map);
3929
+ }
3930
+ }
3931
+
3932
+ export class RealTimeDialogResponse extends $tea.Model {
3933
+ headers?: { [key: string]: string };
3934
+ statusCode?: number;
3935
+ body?: RealTimeDialogResponseBody;
3936
+ static names(): { [key: string]: string } {
3937
+ return {
3938
+ headers: 'headers',
3939
+ statusCode: 'statusCode',
3940
+ body: 'body',
3941
+ };
3942
+ }
3943
+
3944
+ static types(): { [key: string]: any } {
3945
+ return {
3946
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3947
+ statusCode: 'number',
3948
+ body: RealTimeDialogResponseBody,
3949
+ };
3950
+ }
3951
+
3952
+ constructor(map?: { [key: string]: any }) {
3953
+ super(map);
3954
+ }
3955
+ }
3956
+
3957
+ export class RebuildTaskRequest extends $tea.Model {
3958
+ /**
3959
+ * @remarks
3960
+ * This parameter is required.
3961
+ */
3962
+ taskIds?: string[];
3963
+ static names(): { [key: string]: string } {
3964
+ return {
3965
+ taskIds: 'taskIds',
3966
+ };
3967
+ }
3968
+
3969
+ static types(): { [key: string]: any } {
3970
+ return {
3971
+ taskIds: { 'type': 'array', 'itemType': 'string' },
3972
+ };
3973
+ }
3974
+
3975
+ constructor(map?: { [key: string]: any }) {
3976
+ super(map);
3977
+ }
3978
+ }
3979
+
3980
+ export class RebuildTaskResponseBody extends $tea.Model {
3981
+ /**
3982
+ * @example
3983
+ * null
3984
+ */
3985
+ cost?: number;
3986
+ data?: { [key: string]: any }[];
3987
+ /**
3988
+ * @example
3989
+ * null
3990
+ */
3991
+ dataType?: string;
3992
+ /**
3993
+ * @example
3994
+ * 0
3995
+ */
3996
+ errCode?: string;
3997
+ /**
3998
+ * @example
3999
+ * ok
3435
4000
  */
3436
4001
  message?: string;
3437
4002
  /**
@@ -4167,50 +4732,65 @@ export class RunLibraryChatGenerationResponse extends $tea.Model {
4167
4732
  }
4168
4733
  }
4169
4734
 
4170
- export class UpdateDocumentRequest extends $tea.Model {
4735
+ export class SubmitChatQuestionRequest extends $tea.Model {
4171
4736
  /**
4172
4737
  * @remarks
4173
4738
  * This parameter is required.
4174
4739
  *
4175
4740
  * @example
4176
- * 123
4741
+ * 2024-09-27 11:23:20
4177
4742
  */
4178
- docId?: string;
4743
+ gmtService?: string;
4179
4744
  /**
4180
4745
  * @remarks
4181
4746
  * This parameter is required.
4182
- *
4747
+ */
4748
+ liveScriptContent?: string;
4749
+ /**
4183
4750
  * @example
4184
- * abc123
4751
+ * true
4185
4752
  */
4186
- libraryId?: string;
4753
+ openSmallTalk?: boolean;
4754
+ /**
4755
+ * @remarks
4756
+ * This parameter is required.
4757
+ */
4758
+ questionList?: SubmitChatQuestionRequestQuestionList[];
4187
4759
  /**
4760
+ * @remarks
4761
+ * This parameter is required.
4762
+ *
4188
4763
  * @example
4189
- * {
4190
- * "businessId": "12321"
4191
- * }
4764
+ * 0FC6636E-380A-5369-AE01-D1C15BB9B254
4192
4765
  */
4193
- meta?: { [key: string]: any };
4766
+ requestId?: string;
4194
4767
  /**
4768
+ * @remarks
4769
+ * This parameter is required.
4770
+ *
4195
4771
  * @example
4196
- * test
4772
+ * 237645726354
4197
4773
  */
4198
- title?: string;
4774
+ sessionId?: string;
4199
4775
  static names(): { [key: string]: string } {
4200
4776
  return {
4201
- docId: 'docId',
4202
- libraryId: 'libraryId',
4203
- meta: 'meta',
4204
- title: 'title',
4777
+ gmtService: 'gmtService',
4778
+ liveScriptContent: 'liveScriptContent',
4779
+ openSmallTalk: 'openSmallTalk',
4780
+ questionList: 'questionList',
4781
+ requestId: 'requestId',
4782
+ sessionId: 'sessionId',
4205
4783
  };
4206
4784
  }
4207
4785
 
4208
4786
  static types(): { [key: string]: any } {
4209
4787
  return {
4210
- docId: 'string',
4211
- libraryId: 'string',
4212
- meta: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
4213
- title: 'string',
4788
+ gmtService: 'string',
4789
+ liveScriptContent: 'string',
4790
+ openSmallTalk: 'boolean',
4791
+ questionList: { 'type': 'array', 'itemType': SubmitChatQuestionRequestQuestionList },
4792
+ requestId: 'string',
4793
+ sessionId: 'string',
4214
4794
  };
4215
4795
  }
4216
4796
 
@@ -4219,17 +4799,13 @@ export class UpdateDocumentRequest extends $tea.Model {
4219
4799
  }
4220
4800
  }
4221
4801
 
4222
- export class UpdateDocumentResponseBody extends $tea.Model {
4802
+ export class SubmitChatQuestionResponseBody extends $tea.Model {
4223
4803
  /**
4224
4804
  * @example
4225
4805
  * null
4226
4806
  */
4227
4807
  cost?: number;
4228
- /**
4229
- * @example
4230
- * null
4231
- */
4232
- data?: string;
4808
+ data?: SubmitChatQuestionResponseBodyData;
4233
4809
  /**
4234
4810
  * @example
4235
4811
  * null
@@ -4247,7 +4823,7 @@ export class UpdateDocumentResponseBody extends $tea.Model {
4247
4823
  message?: string;
4248
4824
  /**
4249
4825
  * @example
4250
- * eb2b6139-ddf1-91a0-a47f-df7617ae9032
4826
+ * 915AAAB9-4908-5224-9E53-9E9D7D0AA94B
4251
4827
  */
4252
4828
  requestId?: string;
4253
4829
  /**
@@ -4276,7 +4852,7 @@ export class UpdateDocumentResponseBody extends $tea.Model {
4276
4852
  static types(): { [key: string]: any } {
4277
4853
  return {
4278
4854
  cost: 'number',
4279
- data: 'string',
4855
+ data: SubmitChatQuestionResponseBodyData,
4280
4856
  dataType: 'string',
4281
4857
  errCode: 'string',
4282
4858
  message: 'string',
@@ -4291,10 +4867,10 @@ export class UpdateDocumentResponseBody extends $tea.Model {
4291
4867
  }
4292
4868
  }
4293
4869
 
4294
- export class UpdateDocumentResponse extends $tea.Model {
4870
+ export class SubmitChatQuestionResponse extends $tea.Model {
4295
4871
  headers?: { [key: string]: string };
4296
4872
  statusCode?: number;
4297
- body?: UpdateDocumentResponseBody;
4873
+ body?: SubmitChatQuestionResponseBody;
4298
4874
  static names(): { [key: string]: string } {
4299
4875
  return {
4300
4876
  headers: 'headers',
@@ -4307,7 +4883,7 @@ export class UpdateDocumentResponse extends $tea.Model {
4307
4883
  return {
4308
4884
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
4309
4885
  statusCode: 'number',
4310
- body: UpdateDocumentResponseBody,
4886
+ body: SubmitChatQuestionResponseBody,
4311
4887
  };
4312
4888
  }
4313
4889
 
@@ -4316,33 +4892,50 @@ export class UpdateDocumentResponse extends $tea.Model {
4316
4892
  }
4317
4893
  }
4318
4894
 
4319
- export class UpdateLibraryRequest extends $tea.Model {
4320
- description?: string;
4321
- indexSetting?: UpdateLibraryRequestIndexSetting;
4895
+ export class UpdateDocumentRequest extends $tea.Model {
4322
4896
  /**
4323
4897
  * @remarks
4324
4898
  * This parameter is required.
4325
4899
  *
4326
4900
  * @example
4327
- * dsfbashdbb
4901
+ * 123
4902
+ */
4903
+ docId?: string;
4904
+ /**
4905
+ * @remarks
4906
+ * This parameter is required.
4907
+ *
4908
+ * @example
4909
+ * abc123
4328
4910
  */
4329
4911
  libraryId?: string;
4330
- libraryName?: string;
4912
+ /**
4913
+ * @example
4914
+ * {
4915
+ * "businessId": "12321"
4916
+ * }
4917
+ */
4918
+ meta?: { [key: string]: any };
4919
+ /**
4920
+ * @example
4921
+ * test
4922
+ */
4923
+ title?: string;
4331
4924
  static names(): { [key: string]: string } {
4332
4925
  return {
4333
- description: 'description',
4334
- indexSetting: 'indexSetting',
4926
+ docId: 'docId',
4335
4927
  libraryId: 'libraryId',
4336
- libraryName: 'libraryName',
4928
+ meta: 'meta',
4929
+ title: 'title',
4337
4930
  };
4338
4931
  }
4339
4932
 
4340
4933
  static types(): { [key: string]: any } {
4341
4934
  return {
4342
- description: 'string',
4343
- indexSetting: UpdateLibraryRequestIndexSetting,
4935
+ docId: 'string',
4344
4936
  libraryId: 'string',
4345
- libraryName: 'string',
4937
+ meta: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
4938
+ title: 'string',
4346
4939
  };
4347
4940
  }
4348
4941
 
@@ -4351,7 +4944,7 @@ export class UpdateLibraryRequest extends $tea.Model {
4351
4944
  }
4352
4945
  }
4353
4946
 
4354
- export class UpdateLibraryResponseBody extends $tea.Model {
4947
+ export class UpdateDocumentResponseBody extends $tea.Model {
4355
4948
  /**
4356
4949
  * @example
4357
4950
  * null
@@ -4423,10 +5016,10 @@ export class UpdateLibraryResponseBody extends $tea.Model {
4423
5016
  }
4424
5017
  }
4425
5018
 
4426
- export class UpdateLibraryResponse extends $tea.Model {
5019
+ export class UpdateDocumentResponse extends $tea.Model {
4427
5020
  headers?: { [key: string]: string };
4428
5021
  statusCode?: number;
4429
- body?: UpdateLibraryResponseBody;
5022
+ body?: UpdateDocumentResponseBody;
4430
5023
  static names(): { [key: string]: string } {
4431
5024
  return {
4432
5025
  headers: 'headers',
@@ -4439,7 +5032,7 @@ export class UpdateLibraryResponse extends $tea.Model {
4439
5032
  return {
4440
5033
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
4441
5034
  statusCode: 'number',
4442
- body: UpdateLibraryResponseBody,
5035
+ body: UpdateDocumentResponseBody,
4443
5036
  };
4444
5037
  }
4445
5038
 
@@ -4448,8 +5041,273 @@ export class UpdateLibraryResponse extends $tea.Model {
4448
5041
  }
4449
5042
  }
4450
5043
 
4451
- export class UploadDocumentRequest extends $tea.Model {
4452
- data?: string;
5044
+ export class UpdateLibraryRequest extends $tea.Model {
5045
+ description?: string;
5046
+ indexSetting?: UpdateLibraryRequestIndexSetting;
5047
+ /**
5048
+ * @remarks
5049
+ * This parameter is required.
5050
+ *
5051
+ * @example
5052
+ * dsfbashdbb
5053
+ */
5054
+ libraryId?: string;
5055
+ libraryName?: string;
5056
+ static names(): { [key: string]: string } {
5057
+ return {
5058
+ description: 'description',
5059
+ indexSetting: 'indexSetting',
5060
+ libraryId: 'libraryId',
5061
+ libraryName: 'libraryName',
5062
+ };
5063
+ }
5064
+
5065
+ static types(): { [key: string]: any } {
5066
+ return {
5067
+ description: 'string',
5068
+ indexSetting: UpdateLibraryRequestIndexSetting,
5069
+ libraryId: 'string',
5070
+ libraryName: 'string',
5071
+ };
5072
+ }
5073
+
5074
+ constructor(map?: { [key: string]: any }) {
5075
+ super(map);
5076
+ }
5077
+ }
5078
+
5079
+ export class UpdateLibraryResponseBody extends $tea.Model {
5080
+ /**
5081
+ * @example
5082
+ * null
5083
+ */
5084
+ cost?: number;
5085
+ /**
5086
+ * @example
5087
+ * null
5088
+ */
5089
+ data?: string;
5090
+ /**
5091
+ * @example
5092
+ * null
5093
+ */
5094
+ dataType?: string;
5095
+ /**
5096
+ * @example
5097
+ * 0
5098
+ */
5099
+ errCode?: string;
5100
+ /**
5101
+ * @example
5102
+ * ok
5103
+ */
5104
+ message?: string;
5105
+ /**
5106
+ * @example
5107
+ * eb2b6139-ddf1-91a0-a47f-df7617ae9032
5108
+ */
5109
+ requestId?: string;
5110
+ /**
5111
+ * @example
5112
+ * true
5113
+ */
5114
+ success?: boolean;
5115
+ /**
5116
+ * @example
5117
+ * 2024-04-24 11:54:34
5118
+ */
5119
+ time?: string;
5120
+ static names(): { [key: string]: string } {
5121
+ return {
5122
+ cost: 'cost',
5123
+ data: 'data',
5124
+ dataType: 'dataType',
5125
+ errCode: 'errCode',
5126
+ message: 'message',
5127
+ requestId: 'requestId',
5128
+ success: 'success',
5129
+ time: 'time',
5130
+ };
5131
+ }
5132
+
5133
+ static types(): { [key: string]: any } {
5134
+ return {
5135
+ cost: 'number',
5136
+ data: 'string',
5137
+ dataType: 'string',
5138
+ errCode: 'string',
5139
+ message: 'string',
5140
+ requestId: 'string',
5141
+ success: 'boolean',
5142
+ time: 'string',
5143
+ };
5144
+ }
5145
+
5146
+ constructor(map?: { [key: string]: any }) {
5147
+ super(map);
5148
+ }
5149
+ }
5150
+
5151
+ export class UpdateLibraryResponse extends $tea.Model {
5152
+ headers?: { [key: string]: string };
5153
+ statusCode?: number;
5154
+ body?: UpdateLibraryResponseBody;
5155
+ static names(): { [key: string]: string } {
5156
+ return {
5157
+ headers: 'headers',
5158
+ statusCode: 'statusCode',
5159
+ body: 'body',
5160
+ };
5161
+ }
5162
+
5163
+ static types(): { [key: string]: any } {
5164
+ return {
5165
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
5166
+ statusCode: 'number',
5167
+ body: UpdateLibraryResponseBody,
5168
+ };
5169
+ }
5170
+
5171
+ constructor(map?: { [key: string]: any }) {
5172
+ super(map);
5173
+ }
5174
+ }
5175
+
5176
+ export class UpdateQaLibraryRequest extends $tea.Model {
5177
+ /**
5178
+ * @remarks
5179
+ * This parameter is required.
5180
+ */
5181
+ parseQaResults?: UpdateQaLibraryRequestParseQaResults[];
5182
+ /**
5183
+ * @example
5184
+ * 6jh378d
5185
+ */
5186
+ qaLibraryId?: string;
5187
+ /**
5188
+ * @remarks
5189
+ * This parameter is required.
5190
+ *
5191
+ * @example
5192
+ * 0FC6636E-380A-5369-AE01-D1C15BB9B254
5193
+ */
5194
+ requestId?: string;
5195
+ static names(): { [key: string]: string } {
5196
+ return {
5197
+ parseQaResults: 'parseQaResults',
5198
+ qaLibraryId: 'qaLibraryId',
5199
+ requestId: 'requestId',
5200
+ };
5201
+ }
5202
+
5203
+ static types(): { [key: string]: any } {
5204
+ return {
5205
+ parseQaResults: { 'type': 'array', 'itemType': UpdateQaLibraryRequestParseQaResults },
5206
+ qaLibraryId: 'string',
5207
+ requestId: 'string',
5208
+ };
5209
+ }
5210
+
5211
+ constructor(map?: { [key: string]: any }) {
5212
+ super(map);
5213
+ }
5214
+ }
5215
+
5216
+ export class UpdateQaLibraryResponseBody extends $tea.Model {
5217
+ /**
5218
+ * @example
5219
+ * null
5220
+ */
5221
+ cost?: number;
5222
+ data?: UpdateQaLibraryResponseBodyData;
5223
+ /**
5224
+ * @example
5225
+ * null
5226
+ */
5227
+ dataType?: string;
5228
+ /**
5229
+ * @example
5230
+ * 0
5231
+ */
5232
+ errCode?: string;
5233
+ /**
5234
+ * @example
5235
+ * ok
5236
+ */
5237
+ message?: string;
5238
+ /**
5239
+ * @example
5240
+ * EF4B5C9B-3BC8-5171-A47B-4C5CF3DC3258
5241
+ */
5242
+ requestId?: string;
5243
+ /**
5244
+ * @example
5245
+ * true
5246
+ */
5247
+ success?: boolean;
5248
+ /**
5249
+ * @example
5250
+ * 2024-04-24 11:54:34
5251
+ */
5252
+ time?: string;
5253
+ static names(): { [key: string]: string } {
5254
+ return {
5255
+ cost: 'cost',
5256
+ data: 'data',
5257
+ dataType: 'dataType',
5258
+ errCode: 'errCode',
5259
+ message: 'message',
5260
+ requestId: 'requestId',
5261
+ success: 'success',
5262
+ time: 'time',
5263
+ };
5264
+ }
5265
+
5266
+ static types(): { [key: string]: any } {
5267
+ return {
5268
+ cost: 'number',
5269
+ data: UpdateQaLibraryResponseBodyData,
5270
+ dataType: 'string',
5271
+ errCode: 'string',
5272
+ message: 'string',
5273
+ requestId: 'string',
5274
+ success: 'boolean',
5275
+ time: 'string',
5276
+ };
5277
+ }
5278
+
5279
+ constructor(map?: { [key: string]: any }) {
5280
+ super(map);
5281
+ }
5282
+ }
5283
+
5284
+ export class UpdateQaLibraryResponse extends $tea.Model {
5285
+ headers?: { [key: string]: string };
5286
+ statusCode?: number;
5287
+ body?: UpdateQaLibraryResponseBody;
5288
+ static names(): { [key: string]: string } {
5289
+ return {
5290
+ headers: 'headers',
5291
+ statusCode: 'statusCode',
5292
+ body: 'body',
5293
+ };
5294
+ }
5295
+
5296
+ static types(): { [key: string]: any } {
5297
+ return {
5298
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
5299
+ statusCode: 'number',
5300
+ body: UpdateQaLibraryResponseBody,
5301
+ };
5302
+ }
5303
+
5304
+ constructor(map?: { [key: string]: any }) {
5305
+ super(map);
5306
+ }
5307
+ }
5308
+
5309
+ export class UploadDocumentRequest extends $tea.Model {
5310
+ data?: string;
4453
5311
  /**
4454
5312
  * @remarks
4455
5313
  * This parameter is required.
@@ -4703,6 +5561,32 @@ export class CreateAnnualDocSummaryTaskRequestDocInfos extends $tea.Model {
4703
5561
  }
4704
5562
  }
4705
5563
 
5564
+ export class CreateDialogResponseBodyData extends $tea.Model {
5565
+ openingRemarks?: string;
5566
+ /**
5567
+ * @example
5568
+ * 1728545917713234
5569
+ */
5570
+ sessionId?: string;
5571
+ static names(): { [key: string]: string } {
5572
+ return {
5573
+ openingRemarks: 'openingRemarks',
5574
+ sessionId: 'sessionId',
5575
+ };
5576
+ }
5577
+
5578
+ static types(): { [key: string]: any } {
5579
+ return {
5580
+ openingRemarks: 'string',
5581
+ sessionId: 'string',
5582
+ };
5583
+ }
5584
+
5585
+ constructor(map?: { [key: string]: any }) {
5586
+ super(map);
5587
+ }
5588
+ }
5589
+
4706
5590
  export class CreateDocsSummaryTaskRequestDocInfos extends $tea.Model {
4707
5591
  /**
4708
5592
  * @remarks
@@ -5297,16 +6181,78 @@ export class CreateQualityCheckTaskResponseBodyData extends $tea.Model {
5297
6181
  * @example
5298
6182
  * 172373500521
5299
6183
  */
5300
- taskId?: string;
6184
+ taskId?: string;
6185
+ static names(): { [key: string]: string } {
6186
+ return {
6187
+ taskId: 'taskId',
6188
+ };
6189
+ }
6190
+
6191
+ static types(): { [key: string]: any } {
6192
+ return {
6193
+ taskId: 'string',
6194
+ };
6195
+ }
6196
+
6197
+ constructor(map?: { [key: string]: any }) {
6198
+ super(map);
6199
+ }
6200
+ }
6201
+
6202
+ export class GenDocQaResultResponseBodyDataParseQaResults extends $tea.Model {
6203
+ answer?: string;
6204
+ question?: string;
6205
+ static names(): { [key: string]: string } {
6206
+ return {
6207
+ answer: 'answer',
6208
+ question: 'question',
6209
+ };
6210
+ }
6211
+
6212
+ static types(): { [key: string]: any } {
6213
+ return {
6214
+ answer: 'string',
6215
+ question: 'string',
6216
+ };
6217
+ }
6218
+
6219
+ constructor(map?: { [key: string]: any }) {
6220
+ super(map);
6221
+ }
6222
+ }
6223
+
6224
+ export class GenDocQaResultResponseBodyData extends $tea.Model {
6225
+ /**
6226
+ * @example
6227
+ * PROCESSING
6228
+ */
6229
+ currentStatus?: string;
6230
+ /**
6231
+ * @example
6232
+ * 873648346573245
6233
+ */
6234
+ docId?: string;
6235
+ /**
6236
+ * @example
6237
+ * 7wxwrjpabj
6238
+ */
6239
+ libraryId?: string;
6240
+ parseQaResults?: GenDocQaResultResponseBodyDataParseQaResults[];
5301
6241
  static names(): { [key: string]: string } {
5302
6242
  return {
5303
- taskId: 'taskId',
6243
+ currentStatus: 'currentStatus',
6244
+ docId: 'docId',
6245
+ libraryId: 'libraryId',
6246
+ parseQaResults: 'parseQaResults',
5304
6247
  };
5305
6248
  }
5306
6249
 
5307
6250
  static types(): { [key: string]: any } {
5308
6251
  return {
5309
- taskId: 'string',
6252
+ currentStatus: 'string',
6253
+ docId: 'string',
6254
+ libraryId: 'string',
6255
+ parseQaResults: { 'type': 'array', 'itemType': GenDocQaResultResponseBodyDataParseQaResults },
5310
6256
  };
5311
6257
  }
5312
6258
 
@@ -5349,6 +6295,85 @@ export class GetAppConfigResponseBodyData extends $tea.Model {
5349
6295
  }
5350
6296
  }
5351
6297
 
6298
+ export class GetChatQuestionRespResponseBodyDataQuestionList extends $tea.Model {
6299
+ content?: string;
6300
+ /**
6301
+ * @example
6302
+ * 2024-11-17 10:05:00
6303
+ */
6304
+ gmtCreate?: string;
6305
+ reply?: string;
6306
+ /**
6307
+ * @example
6308
+ * 1732846760323001
6309
+ */
6310
+ sessionId?: string;
6311
+ /**
6312
+ * @example
6313
+ * PRODUCT_QA
6314
+ */
6315
+ type?: string;
6316
+ /**
6317
+ * @example
6318
+ * 39847834568436
6319
+ */
6320
+ userId?: string;
6321
+ userName?: string;
6322
+ static names(): { [key: string]: string } {
6323
+ return {
6324
+ content: 'content',
6325
+ gmtCreate: 'gmtCreate',
6326
+ reply: 'reply',
6327
+ sessionId: 'sessionId',
6328
+ type: 'type',
6329
+ userId: 'userId',
6330
+ userName: 'userName',
6331
+ };
6332
+ }
6333
+
6334
+ static types(): { [key: string]: any } {
6335
+ return {
6336
+ content: 'string',
6337
+ gmtCreate: 'string',
6338
+ reply: 'string',
6339
+ sessionId: 'string',
6340
+ type: 'string',
6341
+ userId: 'string',
6342
+ userName: 'string',
6343
+ };
6344
+ }
6345
+
6346
+ constructor(map?: { [key: string]: any }) {
6347
+ super(map);
6348
+ }
6349
+ }
6350
+
6351
+ export class GetChatQuestionRespResponseBodyData extends $tea.Model {
6352
+ /**
6353
+ * @example
6354
+ * PROCESSING
6355
+ */
6356
+ currentState?: string;
6357
+ questionList?: GetChatQuestionRespResponseBodyDataQuestionList[];
6358
+ static names(): { [key: string]: string } {
6359
+ return {
6360
+ currentState: 'currentState',
6361
+ questionList: 'questionList',
6362
+ };
6363
+ }
6364
+
6365
+ static types(): { [key: string]: any } {
6366
+ return {
6367
+ currentState: 'string',
6368
+ questionList: { 'type': 'array', 'itemType': GetChatQuestionRespResponseBodyDataQuestionList },
6369
+ };
6370
+ }
6371
+
6372
+ constructor(map?: { [key: string]: any }) {
6373
+ super(map);
6374
+ }
6375
+ }
6376
+
5352
6377
  export class GetDocumentChunkListResponseBodyDataRecordsPos extends $tea.Model {
5353
6378
  axisArray?: number[];
5354
6379
  /**
@@ -7290,31 +8315,275 @@ export class GetSummaryTaskResultResponseBodyDataChoicesMessage extends $tea.Mod
7290
8315
  }
7291
8316
  }
7292
8317
 
7293
- export class GetSummaryTaskResultResponseBodyDataChoices extends $tea.Model {
8318
+ export class GetSummaryTaskResultResponseBodyDataChoices extends $tea.Model {
8319
+ /**
8320
+ * @example
8321
+ * stop
8322
+ */
8323
+ finishReason?: string;
8324
+ /**
8325
+ * @example
8326
+ * 0
8327
+ */
8328
+ index?: number;
8329
+ message?: GetSummaryTaskResultResponseBodyDataChoicesMessage;
8330
+ static names(): { [key: string]: string } {
8331
+ return {
8332
+ finishReason: 'finishReason',
8333
+ index: 'index',
8334
+ message: 'message',
8335
+ };
8336
+ }
8337
+
8338
+ static types(): { [key: string]: any } {
8339
+ return {
8340
+ finishReason: 'string',
8341
+ index: 'number',
8342
+ message: GetSummaryTaskResultResponseBodyDataChoicesMessage,
8343
+ };
8344
+ }
8345
+
8346
+ constructor(map?: { [key: string]: any }) {
8347
+ super(map);
8348
+ }
8349
+ }
8350
+
8351
+ export class GetSummaryTaskResultResponseBodyDataUsage extends $tea.Model {
8352
+ /**
8353
+ * @example
8354
+ * 0
8355
+ */
8356
+ imageCount?: number;
8357
+ /**
8358
+ * @example
8359
+ * 0
8360
+ */
8361
+ imageTokens?: number;
8362
+ /**
8363
+ * @example
8364
+ * 100
8365
+ */
8366
+ inputTokens?: number;
8367
+ /**
8368
+ * @example
8369
+ * 200
8370
+ */
8371
+ outputTokens?: number;
8372
+ /**
8373
+ * @example
8374
+ * 300
8375
+ */
8376
+ totalTokens?: number;
8377
+ static names(): { [key: string]: string } {
8378
+ return {
8379
+ imageCount: 'imageCount',
8380
+ imageTokens: 'imageTokens',
8381
+ inputTokens: 'inputTokens',
8382
+ outputTokens: 'outputTokens',
8383
+ totalTokens: 'totalTokens',
8384
+ };
8385
+ }
8386
+
8387
+ static types(): { [key: string]: any } {
8388
+ return {
8389
+ imageCount: 'number',
8390
+ imageTokens: 'number',
8391
+ inputTokens: 'number',
8392
+ outputTokens: 'number',
8393
+ totalTokens: 'number',
8394
+ };
8395
+ }
8396
+
8397
+ constructor(map?: { [key: string]: any }) {
8398
+ super(map);
8399
+ }
8400
+ }
8401
+
8402
+ export class GetSummaryTaskResultResponseBodyData extends $tea.Model {
8403
+ choices?: GetSummaryTaskResultResponseBodyDataChoices[];
8404
+ /**
8405
+ * @example
8406
+ * 1726285125915
8407
+ */
8408
+ created?: number;
8409
+ /**
8410
+ * @example
8411
+ * 1202
8412
+ */
8413
+ id?: string;
8414
+ /**
8415
+ * @example
8416
+ * qwen-max
8417
+ */
8418
+ modelId?: string;
8419
+ /**
8420
+ * @example
8421
+ * 0bc13a9517168617617186457e401f
8422
+ */
8423
+ requestId?: string;
8424
+ /**
8425
+ * @example
8426
+ * 2024-04-24 11:54:34
8427
+ */
8428
+ time?: string;
8429
+ /**
8430
+ * @example
8431
+ * 300
8432
+ */
8433
+ totalTokens?: number;
8434
+ usage?: GetSummaryTaskResultResponseBodyDataUsage;
8435
+ static names(): { [key: string]: string } {
8436
+ return {
8437
+ choices: 'choices',
8438
+ created: 'created',
8439
+ id: 'id',
8440
+ modelId: 'modelId',
8441
+ requestId: 'requestId',
8442
+ time: 'time',
8443
+ totalTokens: 'totalTokens',
8444
+ usage: 'usage',
8445
+ };
8446
+ }
8447
+
8448
+ static types(): { [key: string]: any } {
8449
+ return {
8450
+ choices: { 'type': 'array', 'itemType': GetSummaryTaskResultResponseBodyDataChoices },
8451
+ created: 'number',
8452
+ id: 'string',
8453
+ modelId: 'string',
8454
+ requestId: 'string',
8455
+ time: 'string',
8456
+ totalTokens: 'number',
8457
+ usage: GetSummaryTaskResultResponseBodyDataUsage,
8458
+ };
8459
+ }
8460
+
8461
+ constructor(map?: { [key: string]: any }) {
8462
+ super(map);
8463
+ }
8464
+ }
8465
+
8466
+ export class PreviewDocumentResponseBodyData extends $tea.Model {
8467
+ /**
8468
+ * @example
8469
+ * pdf
8470
+ */
8471
+ previewType?: string;
8472
+ /**
8473
+ * @example
8474
+ * test
8475
+ */
8476
+ title?: string;
8477
+ /**
8478
+ * @example
8479
+ * 2024-01-01 00:00:00
8480
+ */
8481
+ uploadTime?: string;
8482
+ /**
8483
+ * @example
8484
+ * https://agi.alicdn.com/user/d0o/d3c1f50d-a6c2-49b3-b0c8-3e613c3f20ee_16872_3236784461.png
8485
+ */
8486
+ url?: string;
8487
+ static names(): { [key: string]: string } {
8488
+ return {
8489
+ previewType: 'previewType',
8490
+ title: 'title',
8491
+ uploadTime: 'uploadTime',
8492
+ url: 'url',
8493
+ };
8494
+ }
8495
+
8496
+ static types(): { [key: string]: any } {
8497
+ return {
8498
+ previewType: 'string',
8499
+ title: 'string',
8500
+ uploadTime: 'string',
8501
+ url: 'string',
8502
+ };
8503
+ }
8504
+
8505
+ constructor(map?: { [key: string]: any }) {
8506
+ super(map);
8507
+ }
8508
+ }
8509
+
8510
+ export class RealTimeDialogRequestConversationModel extends $tea.Model {
7294
8511
  /**
7295
8512
  * @example
7296
- * stop
8513
+ * 5
7297
8514
  */
7298
- finishReason?: string;
8515
+ begin?: number;
8516
+ /**
8517
+ * @example
8518
+ * 2024-11-08 09:51:16
8519
+ */
8520
+ beginTime?: string;
8521
+ /**
8522
+ * @remarks
8523
+ * This parameter is required.
8524
+ */
8525
+ content?: string;
8526
+ /**
8527
+ * @example
8528
+ * 98457834685635
8529
+ */
8530
+ customerId?: string;
8531
+ /**
8532
+ * @example
8533
+ * 1374683645635
8534
+ */
8535
+ customerServiceId?: string;
7299
8536
  /**
7300
8537
  * @example
7301
8538
  * 0
7302
8539
  */
7303
- index?: number;
7304
- message?: GetSummaryTaskResultResponseBodyDataChoicesMessage;
8540
+ customerServiceType?: string;
8541
+ /**
8542
+ * @example
8543
+ * 10
8544
+ */
8545
+ end?: number;
8546
+ /**
8547
+ * @remarks
8548
+ * This parameter is required.
8549
+ *
8550
+ * @example
8551
+ * 0
8552
+ */
8553
+ role?: number;
8554
+ /**
8555
+ * @remarks
8556
+ * This parameter is required.
8557
+ *
8558
+ * @example
8559
+ * audio
8560
+ */
8561
+ type?: string;
7305
8562
  static names(): { [key: string]: string } {
7306
8563
  return {
7307
- finishReason: 'finishReason',
7308
- index: 'index',
7309
- message: 'message',
8564
+ begin: 'begin',
8565
+ beginTime: 'beginTime',
8566
+ content: 'content',
8567
+ customerId: 'customerId',
8568
+ customerServiceId: 'customerServiceId',
8569
+ customerServiceType: 'customerServiceType',
8570
+ end: 'end',
8571
+ role: 'role',
8572
+ type: 'type',
7310
8573
  };
7311
8574
  }
7312
8575
 
7313
8576
  static types(): { [key: string]: any } {
7314
8577
  return {
7315
- finishReason: 'string',
7316
- index: 'number',
7317
- message: GetSummaryTaskResultResponseBodyDataChoicesMessage,
8578
+ begin: 'number',
8579
+ beginTime: 'string',
8580
+ content: 'string',
8581
+ customerId: 'string',
8582
+ customerServiceId: 'string',
8583
+ customerServiceType: 'string',
8584
+ end: 'number',
8585
+ role: 'number',
8586
+ type: 'string',
7318
8587
  };
7319
8588
  }
7320
8589
 
@@ -7323,49 +8592,71 @@ export class GetSummaryTaskResultResponseBodyDataChoices extends $tea.Model {
7323
8592
  }
7324
8593
  }
7325
8594
 
7326
- export class GetSummaryTaskResultResponseBodyDataUsage extends $tea.Model {
8595
+ export class RealTimeDialogResponseBodyChoicesDelta extends $tea.Model {
7327
8596
  /**
7328
8597
  * @example
7329
- * 0
8598
+ * null
7330
8599
  */
7331
- imageCount?: number;
8600
+ analysisProcess?: string;
7332
8601
  /**
8602
+ * @remarks
8603
+ * time
8604
+ *
7333
8605
  * @example
7334
- * 0
8606
+ * null
7335
8607
  */
7336
- imageTokens?: number;
8608
+ callTime?: string;
7337
8609
  /**
7338
8610
  * @example
7339
- * 100
8611
+ * false
7340
8612
  */
7341
- inputTokens?: number;
8613
+ hangUpDialog?: boolean;
7342
8614
  /**
7343
8615
  * @example
7344
- * 200
8616
+ * 1853360771162058752
7345
8617
  */
7346
- outputTokens?: number;
8618
+ intentionCode?: string;
8619
+ intentionName?: string;
8620
+ intentionScript?: string;
7347
8621
  /**
7348
8622
  * @example
7349
- * 300
8623
+ * null
7350
8624
  */
7351
- totalTokens?: number;
8625
+ recommendIntention?: string;
8626
+ /**
8627
+ * @example
8628
+ * null
8629
+ */
8630
+ recommendScript?: string;
8631
+ selfDirectedScript?: string;
8632
+ selfDirectedScriptFullContent?: string;
7352
8633
  static names(): { [key: string]: string } {
7353
8634
  return {
7354
- imageCount: 'imageCount',
7355
- imageTokens: 'imageTokens',
7356
- inputTokens: 'inputTokens',
7357
- outputTokens: 'outputTokens',
7358
- totalTokens: 'totalTokens',
8635
+ analysisProcess: 'analysisProcess',
8636
+ callTime: 'callTime',
8637
+ hangUpDialog: 'hangUpDialog',
8638
+ intentionCode: 'intentionCode',
8639
+ intentionName: 'intentionName',
8640
+ intentionScript: 'intentionScript',
8641
+ recommendIntention: 'recommendIntention',
8642
+ recommendScript: 'recommendScript',
8643
+ selfDirectedScript: 'selfDirectedScript',
8644
+ selfDirectedScriptFullContent: 'selfDirectedScriptFullContent',
7359
8645
  };
7360
8646
  }
7361
8647
 
7362
8648
  static types(): { [key: string]: any } {
7363
8649
  return {
7364
- imageCount: 'number',
7365
- imageTokens: 'number',
7366
- inputTokens: 'number',
7367
- outputTokens: 'number',
7368
- totalTokens: 'number',
8650
+ analysisProcess: 'string',
8651
+ callTime: 'string',
8652
+ hangUpDialog: 'boolean',
8653
+ intentionCode: 'string',
8654
+ intentionName: 'string',
8655
+ intentionScript: 'string',
8656
+ recommendIntention: 'string',
8657
+ recommendScript: 'string',
8658
+ selfDirectedScript: 'string',
8659
+ selfDirectedScriptFullContent: 'string',
7369
8660
  };
7370
8661
  }
7371
8662
 
@@ -7374,62 +8665,75 @@ export class GetSummaryTaskResultResponseBodyDataUsage extends $tea.Model {
7374
8665
  }
7375
8666
  }
7376
8667
 
7377
- export class GetSummaryTaskResultResponseBodyData extends $tea.Model {
7378
- choices?: GetSummaryTaskResultResponseBodyDataChoices[];
8668
+ export class RealTimeDialogResponseBodyChoicesMessage extends $tea.Model {
7379
8669
  /**
7380
8670
  * @example
7381
- * 1726285125915
8671
+ * null
7382
8672
  */
7383
- created?: number;
8673
+ analysisProcess?: string;
7384
8674
  /**
8675
+ * @remarks
8676
+ * time
8677
+ *
7385
8678
  * @example
7386
- * 1202
8679
+ * 1735139569523
7387
8680
  */
7388
- id?: string;
8681
+ callTime?: string;
7389
8682
  /**
7390
8683
  * @example
7391
- * qwen-max
8684
+ * false
7392
8685
  */
7393
- modelId?: string;
8686
+ hangUpDialog?: boolean;
7394
8687
  /**
7395
8688
  * @example
7396
- * 0bc13a9517168617617186457e401f
8689
+ * 1853360771162058752
7397
8690
  */
7398
- requestId?: string;
8691
+ intentionCode?: string;
8692
+ intentionName?: string;
8693
+ intentionScript?: string;
7399
8694
  /**
7400
8695
  * @example
7401
- * 2024-04-24 11:54:34
8696
+ * null
7402
8697
  */
7403
- time?: string;
8698
+ recommendIntention?: string;
7404
8699
  /**
7405
8700
  * @example
7406
- * 300
8701
+ * null
7407
8702
  */
7408
- totalTokens?: number;
7409
- usage?: GetSummaryTaskResultResponseBodyDataUsage;
8703
+ recommendScript?: string;
8704
+ /**
8705
+ * @example
8706
+ * null
8707
+ */
8708
+ selfDirectedScript?: string;
8709
+ selfDirectedScriptFullContent?: string;
7410
8710
  static names(): { [key: string]: string } {
7411
8711
  return {
7412
- choices: 'choices',
7413
- created: 'created',
7414
- id: 'id',
7415
- modelId: 'modelId',
7416
- requestId: 'requestId',
7417
- time: 'time',
7418
- totalTokens: 'totalTokens',
7419
- usage: 'usage',
8712
+ analysisProcess: 'analysisProcess',
8713
+ callTime: 'callTime',
8714
+ hangUpDialog: 'hangUpDialog',
8715
+ intentionCode: 'intentionCode',
8716
+ intentionName: 'intentionName',
8717
+ intentionScript: 'intentionScript',
8718
+ recommendIntention: 'recommendIntention',
8719
+ recommendScript: 'recommendScript',
8720
+ selfDirectedScript: 'selfDirectedScript',
8721
+ selfDirectedScriptFullContent: 'selfDirectedScriptFullContent',
7420
8722
  };
7421
8723
  }
7422
8724
 
7423
8725
  static types(): { [key: string]: any } {
7424
8726
  return {
7425
- choices: { 'type': 'array', 'itemType': GetSummaryTaskResultResponseBodyDataChoices },
7426
- created: 'number',
7427
- id: 'string',
7428
- modelId: 'string',
7429
- requestId: 'string',
7430
- time: 'string',
7431
- totalTokens: 'number',
7432
- usage: GetSummaryTaskResultResponseBodyDataUsage,
8727
+ analysisProcess: 'string',
8728
+ callTime: 'string',
8729
+ hangUpDialog: 'boolean',
8730
+ intentionCode: 'string',
8731
+ intentionName: 'string',
8732
+ intentionScript: 'string',
8733
+ recommendIntention: 'string',
8734
+ recommendScript: 'string',
8735
+ selfDirectedScript: 'string',
8736
+ selfDirectedScriptFullContent: 'string',
7433
8737
  };
7434
8738
  }
7435
8739
 
@@ -7438,42 +8742,34 @@ export class GetSummaryTaskResultResponseBodyData extends $tea.Model {
7438
8742
  }
7439
8743
  }
7440
8744
 
7441
- export class PreviewDocumentResponseBodyData extends $tea.Model {
8745
+ export class RealTimeDialogResponseBodyChoices extends $tea.Model {
8746
+ delta?: RealTimeDialogResponseBodyChoicesDelta;
7442
8747
  /**
7443
8748
  * @example
7444
- * pdf
7445
- */
7446
- previewType?: string;
7447
- /**
7448
- * @example
7449
- * test
7450
- */
7451
- title?: string;
7452
- /**
7453
- * @example
7454
- * 2024-01-01 00:00:00
8749
+ * stop
7455
8750
  */
7456
- uploadTime?: string;
8751
+ finishReason?: string;
7457
8752
  /**
7458
8753
  * @example
7459
- * https://agi.alicdn.com/user/d0o/d3c1f50d-a6c2-49b3-b0c8-3e613c3f20ee_16872_3236784461.png
8754
+ * 0
7460
8755
  */
7461
- url?: string;
8756
+ index?: number;
8757
+ message?: RealTimeDialogResponseBodyChoicesMessage;
7462
8758
  static names(): { [key: string]: string } {
7463
8759
  return {
7464
- previewType: 'previewType',
7465
- title: 'title',
7466
- uploadTime: 'uploadTime',
7467
- url: 'url',
8760
+ delta: 'delta',
8761
+ finishReason: 'finishReason',
8762
+ index: 'index',
8763
+ message: 'message',
7468
8764
  };
7469
8765
  }
7470
8766
 
7471
8767
  static types(): { [key: string]: any } {
7472
8768
  return {
7473
- previewType: 'string',
7474
- title: 'string',
7475
- uploadTime: 'string',
7476
- url: 'string',
8769
+ delta: RealTimeDialogResponseBodyChoicesDelta,
8770
+ finishReason: 'string',
8771
+ index: 'number',
8772
+ message: RealTimeDialogResponseBodyChoicesMessage,
7477
8773
  };
7478
8774
  }
7479
8775
 
@@ -8712,15 +10008,68 @@ export class RunLibraryChatGenerationRequestQueryCriteria extends $tea.Model {
8712
10008
  or?: RunLibraryChatGenerationRequestQueryCriteriaOr[];
8713
10009
  static names(): { [key: string]: string } {
8714
10010
  return {
8715
- and: 'and',
8716
- or: 'or',
10011
+ and: 'and',
10012
+ or: 'or',
10013
+ };
10014
+ }
10015
+
10016
+ static types(): { [key: string]: any } {
10017
+ return {
10018
+ and: { 'type': 'array', 'itemType': RunLibraryChatGenerationRequestQueryCriteriaAnd },
10019
+ or: { 'type': 'array', 'itemType': RunLibraryChatGenerationRequestQueryCriteriaOr },
10020
+ };
10021
+ }
10022
+
10023
+ constructor(map?: { [key: string]: any }) {
10024
+ super(map);
10025
+ }
10026
+ }
10027
+
10028
+ export class RunLibraryChatGenerationRequestTextSearchParameter extends $tea.Model {
10029
+ /**
10030
+ * @example
10031
+ * 10
10032
+ */
10033
+ limit?: number;
10034
+ /**
10035
+ * @example
10036
+ * IkMaxWord
10037
+ */
10038
+ searchAnalyzerType?: string;
10039
+ static names(): { [key: string]: string } {
10040
+ return {
10041
+ limit: 'limit',
10042
+ searchAnalyzerType: 'searchAnalyzerType',
10043
+ };
10044
+ }
10045
+
10046
+ static types(): { [key: string]: any } {
10047
+ return {
10048
+ limit: 'number',
10049
+ searchAnalyzerType: 'string',
10050
+ };
10051
+ }
10052
+
10053
+ constructor(map?: { [key: string]: any }) {
10054
+ super(map);
10055
+ }
10056
+ }
10057
+
10058
+ export class RunLibraryChatGenerationRequestVectorSearchParameter extends $tea.Model {
10059
+ /**
10060
+ * @example
10061
+ * 10
10062
+ */
10063
+ limit?: number;
10064
+ static names(): { [key: string]: string } {
10065
+ return {
10066
+ limit: 'limit',
8717
10067
  };
8718
10068
  }
8719
10069
 
8720
10070
  static types(): { [key: string]: any } {
8721
10071
  return {
8722
- and: { 'type': 'array', 'itemType': RunLibraryChatGenerationRequestQueryCriteriaAnd },
8723
- or: { 'type': 'array', 'itemType': RunLibraryChatGenerationRequestQueryCriteriaOr },
10072
+ limit: 'number',
8724
10073
  };
8725
10074
  }
8726
10075
 
@@ -8729,28 +10078,68 @@ export class RunLibraryChatGenerationRequestQueryCriteria extends $tea.Model {
8729
10078
  }
8730
10079
  }
8731
10080
 
8732
- export class RunLibraryChatGenerationRequestTextSearchParameter extends $tea.Model {
10081
+ export class SubmitChatQuestionRequestQuestionList extends $tea.Model {
10082
+ /**
10083
+ * @remarks
10084
+ * This parameter is required.
10085
+ */
10086
+ content?: string;
8733
10087
  /**
10088
+ * @remarks
10089
+ * This parameter is required.
10090
+ *
8734
10091
  * @example
8735
- * 10
10092
+ * 2024-11-17 10:05:00
8736
10093
  */
8737
- limit?: number;
10094
+ gmtCreate?: string;
10095
+ reply?: string;
8738
10096
  /**
10097
+ * @remarks
10098
+ * This parameter is required.
10099
+ *
8739
10100
  * @example
8740
- * IkMaxWord
10101
+ * 1869300950603128834
8741
10102
  */
8742
- searchAnalyzerType?: string;
10103
+ sessionId?: string;
10104
+ /**
10105
+ * @example
10106
+ * PRODUCT_QA
10107
+ */
10108
+ type?: string;
10109
+ /**
10110
+ * @remarks
10111
+ * This parameter is required.
10112
+ *
10113
+ * @example
10114
+ * 39485783475638465
10115
+ */
10116
+ userId?: string;
10117
+ /**
10118
+ * @remarks
10119
+ * This parameter is required.
10120
+ */
10121
+ userName?: string;
8743
10122
  static names(): { [key: string]: string } {
8744
10123
  return {
8745
- limit: 'limit',
8746
- searchAnalyzerType: 'searchAnalyzerType',
10124
+ content: 'content',
10125
+ gmtCreate: 'gmtCreate',
10126
+ reply: 'reply',
10127
+ sessionId: 'sessionId',
10128
+ type: 'type',
10129
+ userId: 'userId',
10130
+ userName: 'userName',
8747
10131
  };
8748
10132
  }
8749
10133
 
8750
10134
  static types(): { [key: string]: any } {
8751
10135
  return {
8752
- limit: 'number',
8753
- searchAnalyzerType: 'string',
10136
+ content: 'string',
10137
+ gmtCreate: 'string',
10138
+ reply: 'string',
10139
+ sessionId: 'string',
10140
+ type: 'string',
10141
+ userId: 'string',
10142
+ userName: 'string',
8754
10143
  };
8755
10144
  }
8756
10145
 
@@ -8759,21 +10148,21 @@ export class RunLibraryChatGenerationRequestTextSearchParameter extends $tea.Mod
8759
10148
  }
8760
10149
  }
8761
10150
 
8762
- export class RunLibraryChatGenerationRequestVectorSearchParameter extends $tea.Model {
10151
+ export class SubmitChatQuestionResponseBodyData extends $tea.Model {
8763
10152
  /**
8764
10153
  * @example
8765
- * 10
10154
+ * 1869307330227937280
8766
10155
  */
8767
- limit?: number;
10156
+ batchId?: string;
8768
10157
  static names(): { [key: string]: string } {
8769
10158
  return {
8770
- limit: 'limit',
10159
+ batchId: 'batchId',
8771
10160
  };
8772
10161
  }
8773
10162
 
8774
10163
  static types(): { [key: string]: any } {
8775
10164
  return {
8776
- limit: 'number',
10165
+ batchId: 'string',
8777
10166
  };
8778
10167
  }
8779
10168
 
@@ -9135,14 +10524,64 @@ export class UpdateLibraryRequestIndexSetting extends $tea.Model {
9135
10524
  }
9136
10525
  }
9137
10526
 
10527
+ export class UpdateQaLibraryRequestParseQaResults extends $tea.Model {
10528
+ /**
10529
+ * @remarks
10530
+ * This parameter is required.
10531
+ */
10532
+ answer?: string;
10533
+ /**
10534
+ * @remarks
10535
+ * This parameter is required.
10536
+ */
10537
+ question?: string;
10538
+ static names(): { [key: string]: string } {
10539
+ return {
10540
+ answer: 'answer',
10541
+ question: 'question',
10542
+ };
10543
+ }
10544
+
10545
+ static types(): { [key: string]: any } {
10546
+ return {
10547
+ answer: 'string',
10548
+ question: 'string',
10549
+ };
10550
+ }
10551
+
10552
+ constructor(map?: { [key: string]: any }) {
10553
+ super(map);
10554
+ }
10555
+ }
10556
+
10557
+ export class UpdateQaLibraryResponseBodyData extends $tea.Model {
10558
+ /**
10559
+ * @example
10560
+ * 6jh378d
10561
+ */
10562
+ qaLibraryId?: string;
10563
+ static names(): { [key: string]: string } {
10564
+ return {
10565
+ qaLibraryId: 'qaLibraryId',
10566
+ };
10567
+ }
10568
+
10569
+ static types(): { [key: string]: any } {
10570
+ return {
10571
+ qaLibraryId: 'string',
10572
+ };
10573
+ }
10574
+
10575
+ constructor(map?: { [key: string]: any }) {
10576
+ super(map);
10577
+ }
10578
+ }
10579
+
9138
10580
 
9139
10581
  export default class Client extends OpenApi {
9140
10582
 
9141
10583
  constructor(config: $OpenApi.Config) {
9142
10584
  super(config);
9143
- this._productId = "DianJin";
9144
- let gatewayClient = new GatewayClient();
9145
- this._spi = gatewayClient;
9146
10585
  this._endpointRule = "";
9147
10586
  this.checkConfig(config);
9148
10587
  this._endpoint = this.getEndpoint("dianjin", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
@@ -9207,12 +10646,7 @@ export default class Client extends OpenApi {
9207
10646
  reqBodyType: "json",
9208
10647
  bodyType: "json",
9209
10648
  });
9210
- if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
9211
- return $tea.cast<CreateAnnualDocSummaryTaskResponse>(await this.callApi(params, req, runtime), new CreateAnnualDocSummaryTaskResponse({}));
9212
- } else {
9213
- return $tea.cast<CreateAnnualDocSummaryTaskResponse>(await this.execute(params, req, runtime), new CreateAnnualDocSummaryTaskResponse({}));
9214
- }
9215
-
10649
+ return $tea.cast<CreateAnnualDocSummaryTaskResponse>(await this.callApi(params, req, runtime), new CreateAnnualDocSummaryTaskResponse({}));
9216
10650
  }
9217
10651
 
9218
10652
  /**
@@ -9227,6 +10661,75 @@ export default class Client extends OpenApi {
9227
10661
  return await this.createAnnualDocSummaryTaskWithOptions(workspaceId, request, headers, runtime);
9228
10662
  }
9229
10663
 
10664
+ /**
10665
+ * 创建外呼会话
10666
+ *
10667
+ * @param request - CreateDialogRequest
10668
+ * @param headers - map
10669
+ * @param runtime - runtime options for this request RuntimeOptions
10670
+ * @returns CreateDialogResponse
10671
+ */
10672
+ async createDialogWithOptions(workspaceId: string, request: CreateDialogRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateDialogResponse> {
10673
+ Util.validateModel(request);
10674
+ let body : {[key: string ]: any} = { };
10675
+ if (!Util.isUnset(request.channel)) {
10676
+ body["channel"] = request.channel;
10677
+ }
10678
+
10679
+ if (!Util.isUnset(request.enableLibrary)) {
10680
+ body["enableLibrary"] = request.enableLibrary;
10681
+ }
10682
+
10683
+ if (!Util.isUnset(request.metaData)) {
10684
+ body["metaData"] = request.metaData;
10685
+ }
10686
+
10687
+ if (!Util.isUnset(request.playCode)) {
10688
+ body["playCode"] = request.playCode;
10689
+ }
10690
+
10691
+ if (!Util.isUnset(request.qaLibraryList)) {
10692
+ body["qaLibraryList"] = request.qaLibraryList;
10693
+ }
10694
+
10695
+ if (!Util.isUnset(request.requestId)) {
10696
+ body["requestId"] = request.requestId;
10697
+ }
10698
+
10699
+ if (!Util.isUnset(request.selfDirected)) {
10700
+ body["selfDirected"] = request.selfDirected;
10701
+ }
10702
+
10703
+ let req = new $OpenApi.OpenApiRequest({
10704
+ headers: headers,
10705
+ body: OpenApiUtil.parseToMap(body),
10706
+ });
10707
+ let params = new $OpenApi.Params({
10708
+ action: "CreateDialog",
10709
+ version: "2024-06-28",
10710
+ protocol: "HTTPS",
10711
+ pathname: `/${OpenApiUtil.getEncodeParam(workspaceId)}/api/virtualHuman/dialog/create`,
10712
+ method: "POST",
10713
+ authType: "AK",
10714
+ style: "ROA",
10715
+ reqBodyType: "json",
10716
+ bodyType: "json",
10717
+ });
10718
+ return $tea.cast<CreateDialogResponse>(await this.callApi(params, req, runtime), new CreateDialogResponse({}));
10719
+ }
10720
+
10721
+ /**
10722
+ * 创建外呼会话
10723
+ *
10724
+ * @param request - CreateDialogRequest
10725
+ * @returns CreateDialogResponse
10726
+ */
10727
+ async createDialog(workspaceId: string, request: CreateDialogRequest): Promise<CreateDialogResponse> {
10728
+ let runtime = new $Util.RuntimeOptions({ });
10729
+ let headers : {[key: string ]: string} = { };
10730
+ return await this.createDialogWithOptions(workspaceId, request, headers, runtime);
10731
+ }
10732
+
9230
10733
  /**
9231
10734
  * 创建财报总结任务
9232
10735
  *
@@ -9269,12 +10772,7 @@ export default class Client extends OpenApi {
9269
10772
  reqBodyType: "json",
9270
10773
  bodyType: "json",
9271
10774
  });
9272
- if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
9273
- return $tea.cast<CreateDocsSummaryTaskResponse>(await this.callApi(params, req, runtime), new CreateDocsSummaryTaskResponse({}));
9274
- } else {
9275
- return $tea.cast<CreateDocsSummaryTaskResponse>(await this.execute(params, req, runtime), new CreateDocsSummaryTaskResponse({}));
9276
- }
9277
-
10775
+ return $tea.cast<CreateDocsSummaryTaskResponse>(await this.callApi(params, req, runtime), new CreateDocsSummaryTaskResponse({}));
9278
10776
  }
9279
10777
 
9280
10778
  /**
@@ -9347,12 +10845,7 @@ export default class Client extends OpenApi {
9347
10845
  reqBodyType: "json",
9348
10846
  bodyType: "json",
9349
10847
  });
9350
- if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
9351
- return $tea.cast<CreateFinReportSummaryTaskResponse>(await this.callApi(params, req, runtime), new CreateFinReportSummaryTaskResponse({}));
9352
- } else {
9353
- return $tea.cast<CreateFinReportSummaryTaskResponse>(await this.execute(params, req, runtime), new CreateFinReportSummaryTaskResponse({}));
9354
- }
9355
-
10848
+ return $tea.cast<CreateFinReportSummaryTaskResponse>(await this.callApi(params, req, runtime), new CreateFinReportSummaryTaskResponse({}));
9356
10849
  }
9357
10850
 
9358
10851
  /**
@@ -9405,12 +10898,7 @@ export default class Client extends OpenApi {
9405
10898
  reqBodyType: "json",
9406
10899
  bodyType: "json",
9407
10900
  });
9408
- if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
9409
- return $tea.cast<CreateLibraryResponse>(await this.callApi(params, req, runtime), new CreateLibraryResponse({}));
9410
- } else {
9411
- return $tea.cast<CreateLibraryResponse>(await this.execute(params, req, runtime), new CreateLibraryResponse({}));
9412
- }
9413
-
10901
+ return $tea.cast<CreateLibraryResponse>(await this.callApi(params, req, runtime), new CreateLibraryResponse({}));
9414
10902
  }
9415
10903
 
9416
10904
  /**
@@ -9471,12 +10959,7 @@ export default class Client extends OpenApi {
9471
10959
  reqBodyType: "json",
9472
10960
  bodyType: "json",
9473
10961
  });
9474
- if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
9475
- return $tea.cast<CreatePdfTranslateTaskResponse>(await this.callApi(params, req, runtime), new CreatePdfTranslateTaskResponse({}));
9476
- } else {
9477
- return $tea.cast<CreatePdfTranslateTaskResponse>(await this.execute(params, req, runtime), new CreatePdfTranslateTaskResponse({}));
9478
- }
9479
-
10962
+ return $tea.cast<CreatePdfTranslateTaskResponse>(await this.callApi(params, req, runtime), new CreatePdfTranslateTaskResponse({}));
9480
10963
  }
9481
10964
 
9482
10965
  /**
@@ -9533,12 +11016,7 @@ export default class Client extends OpenApi {
9533
11016
  reqBodyType: "json",
9534
11017
  bodyType: "json",
9535
11018
  });
9536
- if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
9537
- return $tea.cast<CreatePredefinedDocumentResponse>(await this.callApi(params, req, runtime), new CreatePredefinedDocumentResponse({}));
9538
- } else {
9539
- return $tea.cast<CreatePredefinedDocumentResponse>(await this.execute(params, req, runtime), new CreatePredefinedDocumentResponse({}));
9540
- }
9541
-
11019
+ return $tea.cast<CreatePredefinedDocumentResponse>(await this.callApi(params, req, runtime), new CreatePredefinedDocumentResponse({}));
9542
11020
  }
9543
11021
 
9544
11022
  /**
@@ -9603,12 +11081,7 @@ export default class Client extends OpenApi {
9603
11081
  reqBodyType: "json",
9604
11082
  bodyType: "json",
9605
11083
  });
9606
- if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
9607
- return $tea.cast<CreateQualityCheckTaskResponse>(await this.callApi(params, req, runtime), new CreateQualityCheckTaskResponse({}));
9608
- } else {
9609
- return $tea.cast<CreateQualityCheckTaskResponse>(await this.execute(params, req, runtime), new CreateQualityCheckTaskResponse({}));
9610
- }
9611
-
11084
+ return $tea.cast<CreateQualityCheckTaskResponse>(await this.callApi(params, req, runtime), new CreateQualityCheckTaskResponse({}));
9612
11085
  }
9613
11086
 
9614
11087
  /**
@@ -9657,12 +11130,7 @@ export default class Client extends OpenApi {
9657
11130
  reqBodyType: "json",
9658
11131
  bodyType: "json",
9659
11132
  });
9660
- if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
9661
- return $tea.cast<DeleteDocumentResponse>(await this.callApi(params, req, runtime), new DeleteDocumentResponse({}));
9662
- } else {
9663
- return $tea.cast<DeleteDocumentResponse>(await this.execute(params, req, runtime), new DeleteDocumentResponse({}));
9664
- }
9665
-
11133
+ return $tea.cast<DeleteDocumentResponse>(await this.callApi(params, req, runtime), new DeleteDocumentResponse({}));
9666
11134
  }
9667
11135
 
9668
11136
  /**
@@ -9694,127 +11162,214 @@ export default class Client extends OpenApi {
9694
11162
 
9695
11163
  let req = new $OpenApi.OpenApiRequest({
9696
11164
  headers: headers,
9697
- query: OpenApiUtil.query(query),
11165
+ query: OpenApiUtil.query(query),
11166
+ });
11167
+ let params = new $OpenApi.Params({
11168
+ action: "DeleteLibrary",
11169
+ version: "2024-06-28",
11170
+ protocol: "HTTPS",
11171
+ pathname: `/${OpenApiUtil.getEncodeParam(workspaceId)}/api/library/delete`,
11172
+ method: "DELETE",
11173
+ authType: "AK",
11174
+ style: "ROA",
11175
+ reqBodyType: "json",
11176
+ bodyType: "json",
11177
+ });
11178
+ return $tea.cast<DeleteLibraryResponse>(await this.callApi(params, req, runtime), new DeleteLibraryResponse({}));
11179
+ }
11180
+
11181
+ /**
11182
+ * 删除文档库
11183
+ *
11184
+ * @param request - DeleteLibraryRequest
11185
+ * @returns DeleteLibraryResponse
11186
+ */
11187
+ async deleteLibrary(workspaceId: string, request: DeleteLibraryRequest): Promise<DeleteLibraryResponse> {
11188
+ let runtime = new $Util.RuntimeOptions({ });
11189
+ let headers : {[key: string ]: string} = { };
11190
+ return await this.deleteLibraryWithOptions(workspaceId, request, headers, runtime);
11191
+ }
11192
+
11193
+ /**
11194
+ * 中断任务
11195
+ *
11196
+ * @param request - EvictTaskRequest
11197
+ * @param headers - map
11198
+ * @param runtime - runtime options for this request RuntimeOptions
11199
+ * @returns EvictTaskResponse
11200
+ */
11201
+ async evictTaskWithOptions(workspaceId: string, request: EvictTaskRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<EvictTaskResponse> {
11202
+ Util.validateModel(request);
11203
+ let query : {[key: string ]: any} = { };
11204
+ if (!Util.isUnset(request.taskId)) {
11205
+ query["taskId"] = request.taskId;
11206
+ }
11207
+
11208
+ let req = new $OpenApi.OpenApiRequest({
11209
+ headers: headers,
11210
+ query: OpenApiUtil.query(query),
11211
+ });
11212
+ let params = new $OpenApi.Params({
11213
+ action: "EvictTask",
11214
+ version: "2024-06-28",
11215
+ protocol: "HTTPS",
11216
+ pathname: `/${OpenApiUtil.getEncodeParam(workspaceId)}/api/task/evict`,
11217
+ method: "POST",
11218
+ authType: "AK",
11219
+ style: "ROA",
11220
+ reqBodyType: "json",
11221
+ bodyType: "json",
11222
+ });
11223
+ return $tea.cast<EvictTaskResponse>(await this.callApi(params, req, runtime), new EvictTaskResponse({}));
11224
+ }
11225
+
11226
+ /**
11227
+ * 中断任务
11228
+ *
11229
+ * @param request - EvictTaskRequest
11230
+ * @returns EvictTaskResponse
11231
+ */
11232
+ async evictTask(workspaceId: string, request: EvictTaskRequest): Promise<EvictTaskResponse> {
11233
+ let runtime = new $Util.RuntimeOptions({ });
11234
+ let headers : {[key: string ]: string} = { };
11235
+ return await this.evictTaskWithOptions(workspaceId, request, headers, runtime);
11236
+ }
11237
+
11238
+ /**
11239
+ * 根据文档解析问答QA
11240
+ *
11241
+ * @param request - GenDocQaResultRequest
11242
+ * @param headers - map
11243
+ * @param runtime - runtime options for this request RuntimeOptions
11244
+ * @returns GenDocQaResultResponse
11245
+ */
11246
+ async genDocQaResultWithOptions(workspaceId: string, request: GenDocQaResultRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<GenDocQaResultResponse> {
11247
+ Util.validateModel(request);
11248
+ let body : {[key: string ]: any} = { };
11249
+ if (!Util.isUnset(request.docId)) {
11250
+ body["docId"] = request.docId;
11251
+ }
11252
+
11253
+ if (!Util.isUnset(request.libraryId)) {
11254
+ body["libraryId"] = request.libraryId;
11255
+ }
11256
+
11257
+ if (!Util.isUnset(request.requestId)) {
11258
+ body["requestId"] = request.requestId;
11259
+ }
11260
+
11261
+ let req = new $OpenApi.OpenApiRequest({
11262
+ headers: headers,
11263
+ body: OpenApiUtil.parseToMap(body),
9698
11264
  });
9699
11265
  let params = new $OpenApi.Params({
9700
- action: "DeleteLibrary",
11266
+ action: "GenDocQaResult",
9701
11267
  version: "2024-06-28",
9702
11268
  protocol: "HTTPS",
9703
- pathname: `/${OpenApiUtil.getEncodeParam(workspaceId)}/api/library/delete`,
9704
- method: "DELETE",
11269
+ pathname: `/${OpenApiUtil.getEncodeParam(workspaceId)}/api/virtualHuman/qa/parse`,
11270
+ method: "POST",
9705
11271
  authType: "AK",
9706
11272
  style: "ROA",
9707
11273
  reqBodyType: "json",
9708
11274
  bodyType: "json",
9709
11275
  });
9710
- if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
9711
- return $tea.cast<DeleteLibraryResponse>(await this.callApi(params, req, runtime), new DeleteLibraryResponse({}));
9712
- } else {
9713
- return $tea.cast<DeleteLibraryResponse>(await this.execute(params, req, runtime), new DeleteLibraryResponse({}));
9714
- }
9715
-
11276
+ return $tea.cast<GenDocQaResultResponse>(await this.callApi(params, req, runtime), new GenDocQaResultResponse({}));
9716
11277
  }
9717
11278
 
9718
11279
  /**
9719
- * 删除文档库
11280
+ * 根据文档解析问答QA
9720
11281
  *
9721
- * @param request - DeleteLibraryRequest
9722
- * @returns DeleteLibraryResponse
11282
+ * @param request - GenDocQaResultRequest
11283
+ * @returns GenDocQaResultResponse
9723
11284
  */
9724
- async deleteLibrary(workspaceId: string, request: DeleteLibraryRequest): Promise<DeleteLibraryResponse> {
11285
+ async genDocQaResult(workspaceId: string, request: GenDocQaResultRequest): Promise<GenDocQaResultResponse> {
9725
11286
  let runtime = new $Util.RuntimeOptions({ });
9726
11287
  let headers : {[key: string ]: string} = { };
9727
- return await this.deleteLibraryWithOptions(workspaceId, request, headers, runtime);
11288
+ return await this.genDocQaResultWithOptions(workspaceId, request, headers, runtime);
9728
11289
  }
9729
11290
 
9730
11291
  /**
9731
- * 中断任务
11292
+ * 获取app配置
9732
11293
  *
9733
- * @param request - EvictTaskRequest
9734
11294
  * @param headers - map
9735
11295
  * @param runtime - runtime options for this request RuntimeOptions
9736
- * @returns EvictTaskResponse
11296
+ * @returns GetAppConfigResponse
9737
11297
  */
9738
- async evictTaskWithOptions(workspaceId: string, request: EvictTaskRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<EvictTaskResponse> {
9739
- Util.validateModel(request);
9740
- let query : {[key: string ]: any} = { };
9741
- if (!Util.isUnset(request.taskId)) {
9742
- query["taskId"] = request.taskId;
9743
- }
9744
-
11298
+ async getAppConfigWithOptions(workspaceId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<GetAppConfigResponse> {
9745
11299
  let req = new $OpenApi.OpenApiRequest({
9746
11300
  headers: headers,
9747
- query: OpenApiUtil.query(query),
9748
11301
  });
9749
11302
  let params = new $OpenApi.Params({
9750
- action: "EvictTask",
11303
+ action: "GetAppConfig",
9751
11304
  version: "2024-06-28",
9752
11305
  protocol: "HTTPS",
9753
- pathname: `/${OpenApiUtil.getEncodeParam(workspaceId)}/api/task/evict`,
9754
- method: "POST",
11306
+ pathname: `/${OpenApiUtil.getEncodeParam(workspaceId)}/api/app/config`,
11307
+ method: "GET",
9755
11308
  authType: "AK",
9756
11309
  style: "ROA",
9757
11310
  reqBodyType: "json",
9758
11311
  bodyType: "json",
9759
11312
  });
9760
- if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
9761
- return $tea.cast<EvictTaskResponse>(await this.callApi(params, req, runtime), new EvictTaskResponse({}));
9762
- } else {
9763
- return $tea.cast<EvictTaskResponse>(await this.execute(params, req, runtime), new EvictTaskResponse({}));
9764
- }
9765
-
11313
+ return $tea.cast<GetAppConfigResponse>(await this.callApi(params, req, runtime), new GetAppConfigResponse({}));
9766
11314
  }
9767
11315
 
9768
11316
  /**
9769
- * 中断任务
9770
- *
9771
- * @param request - EvictTaskRequest
9772
- * @returns EvictTaskResponse
11317
+ * 获取app配置
11318
+ * @returns GetAppConfigResponse
9773
11319
  */
9774
- async evictTask(workspaceId: string, request: EvictTaskRequest): Promise<EvictTaskResponse> {
11320
+ async getAppConfig(workspaceId: string): Promise<GetAppConfigResponse> {
9775
11321
  let runtime = new $Util.RuntimeOptions({ });
9776
11322
  let headers : {[key: string ]: string} = { };
9777
- return await this.evictTaskWithOptions(workspaceId, request, headers, runtime);
11323
+ return await this.getAppConfigWithOptions(workspaceId, headers, runtime);
9778
11324
  }
9779
11325
 
9780
11326
  /**
9781
- * 获取app配置
11327
+ * 获取问答结果
9782
11328
  *
11329
+ * @param request - GetChatQuestionRespRequest
9783
11330
  * @param headers - map
9784
11331
  * @param runtime - runtime options for this request RuntimeOptions
9785
- * @returns GetAppConfigResponse
11332
+ * @returns GetChatQuestionRespResponse
9786
11333
  */
9787
- async getAppConfigWithOptions(workspaceId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<GetAppConfigResponse> {
11334
+ async getChatQuestionRespWithOptions(workspaceId: string, request: GetChatQuestionRespRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<GetChatQuestionRespResponse> {
11335
+ Util.validateModel(request);
11336
+ let body : {[key: string ]: any} = { };
11337
+ if (!Util.isUnset(request.batchId)) {
11338
+ body["batchId"] = request.batchId;
11339
+ }
11340
+
11341
+ if (!Util.isUnset(request.sessionId)) {
11342
+ body["sessionId"] = request.sessionId;
11343
+ }
11344
+
9788
11345
  let req = new $OpenApi.OpenApiRequest({
9789
11346
  headers: headers,
11347
+ body: OpenApiUtil.parseToMap(body),
9790
11348
  });
9791
11349
  let params = new $OpenApi.Params({
9792
- action: "GetAppConfig",
11350
+ action: "GetChatQuestionResp",
9793
11351
  version: "2024-06-28",
9794
11352
  protocol: "HTTPS",
9795
- pathname: `/${OpenApiUtil.getEncodeParam(workspaceId)}/api/app/config`,
9796
- method: "GET",
11353
+ pathname: `/${OpenApiUtil.getEncodeParam(workspaceId)}/api/virtualHuman/chat/query`,
11354
+ method: "POST",
9797
11355
  authType: "AK",
9798
11356
  style: "ROA",
9799
11357
  reqBodyType: "json",
9800
11358
  bodyType: "json",
9801
11359
  });
9802
- if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
9803
- return $tea.cast<GetAppConfigResponse>(await this.callApi(params, req, runtime), new GetAppConfigResponse({}));
9804
- } else {
9805
- return $tea.cast<GetAppConfigResponse>(await this.execute(params, req, runtime), new GetAppConfigResponse({}));
9806
- }
9807
-
11360
+ return $tea.cast<GetChatQuestionRespResponse>(await this.callApi(params, req, runtime), new GetChatQuestionRespResponse({}));
9808
11361
  }
9809
11362
 
9810
11363
  /**
9811
- * 获取app配置
9812
- * @returns GetAppConfigResponse
11364
+ * 获取问答结果
11365
+ *
11366
+ * @param request - GetChatQuestionRespRequest
11367
+ * @returns GetChatQuestionRespResponse
9813
11368
  */
9814
- async getAppConfig(workspaceId: string): Promise<GetAppConfigResponse> {
11369
+ async getChatQuestionResp(workspaceId: string, request: GetChatQuestionRespRequest): Promise<GetChatQuestionRespResponse> {
9815
11370
  let runtime = new $Util.RuntimeOptions({ });
9816
11371
  let headers : {[key: string ]: string} = { };
9817
- return await this.getAppConfigWithOptions(workspaceId, headers, runtime);
11372
+ return await this.getChatQuestionRespWithOptions(workspaceId, request, headers, runtime);
9818
11373
  }
9819
11374
 
9820
11375
  /**
@@ -9875,12 +11430,7 @@ export default class Client extends OpenApi {
9875
11430
  reqBodyType: "json",
9876
11431
  bodyType: "json",
9877
11432
  });
9878
- if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
9879
- return $tea.cast<GetDocumentChunkListResponse>(await this.callApi(params, req, runtime), new GetDocumentChunkListResponse({}));
9880
- } else {
9881
- return $tea.cast<GetDocumentChunkListResponse>(await this.execute(params, req, runtime), new GetDocumentChunkListResponse({}));
9882
- }
9883
-
11433
+ return $tea.cast<GetDocumentChunkListResponse>(await this.callApi(params, req, runtime), new GetDocumentChunkListResponse({}));
9884
11434
  }
9885
11435
 
9886
11436
  /**
@@ -9937,12 +11487,7 @@ export default class Client extends OpenApi {
9937
11487
  reqBodyType: "json",
9938
11488
  bodyType: "json",
9939
11489
  });
9940
- if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
9941
- return $tea.cast<GetDocumentListResponse>(await this.callApi(params, req, runtime), new GetDocumentListResponse({}));
9942
- } else {
9943
- return $tea.cast<GetDocumentListResponse>(await this.execute(params, req, runtime), new GetDocumentListResponse({}));
9944
- }
9945
-
11490
+ return $tea.cast<GetDocumentListResponse>(await this.callApi(params, req, runtime), new GetDocumentListResponse({}));
9946
11491
  }
9947
11492
 
9948
11493
  /**
@@ -9987,12 +11532,7 @@ export default class Client extends OpenApi {
9987
11532
  reqBodyType: "json",
9988
11533
  bodyType: "json",
9989
11534
  });
9990
- if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
9991
- return $tea.cast<GetDocumentUrlResponse>(await this.callApi(params, req, runtime), new GetDocumentUrlResponse({}));
9992
- } else {
9993
- return $tea.cast<GetDocumentUrlResponse>(await this.execute(params, req, runtime), new GetDocumentUrlResponse({}));
9994
- }
9995
-
11535
+ return $tea.cast<GetDocumentUrlResponse>(await this.callApi(params, req, runtime), new GetDocumentUrlResponse({}));
9996
11536
  }
9997
11537
 
9998
11538
  /**
@@ -10061,12 +11601,7 @@ export default class Client extends OpenApi {
10061
11601
  reqBodyType: "json",
10062
11602
  bodyType: "json",
10063
11603
  });
10064
- if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
10065
- return $tea.cast<GetFilterDocumentListResponse>(await this.callApi(params, req, runtime), new GetFilterDocumentListResponse({}));
10066
- } else {
10067
- return $tea.cast<GetFilterDocumentListResponse>(await this.execute(params, req, runtime), new GetFilterDocumentListResponse({}));
10068
- }
10069
-
11604
+ return $tea.cast<GetFilterDocumentListResponse>(await this.callApi(params, req, runtime), new GetFilterDocumentListResponse({}));
10070
11605
  }
10071
11606
 
10072
11607
  /**
@@ -10123,12 +11658,7 @@ export default class Client extends OpenApi {
10123
11658
  reqBodyType: "json",
10124
11659
  bodyType: "json",
10125
11660
  });
10126
- if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
10127
- return $tea.cast<GetHistoryListByBizTypeResponse>(await this.callApi(params, req, runtime), new GetHistoryListByBizTypeResponse({}));
10128
- } else {
10129
- return $tea.cast<GetHistoryListByBizTypeResponse>(await this.execute(params, req, runtime), new GetHistoryListByBizTypeResponse({}));
10130
- }
10131
-
11661
+ return $tea.cast<GetHistoryListByBizTypeResponse>(await this.callApi(params, req, runtime), new GetHistoryListByBizTypeResponse({}));
10132
11662
  }
10133
11663
 
10134
11664
  /**
@@ -10173,12 +11703,7 @@ export default class Client extends OpenApi {
10173
11703
  reqBodyType: "json",
10174
11704
  bodyType: "json",
10175
11705
  });
10176
- if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
10177
- return $tea.cast<GetLibraryResponse>(await this.callApi(params, req, runtime), new GetLibraryResponse({}));
10178
- } else {
10179
- return $tea.cast<GetLibraryResponse>(await this.execute(params, req, runtime), new GetLibraryResponse({}));
10180
- }
10181
-
11706
+ return $tea.cast<GetLibraryResponse>(await this.callApi(params, req, runtime), new GetLibraryResponse({}));
10182
11707
  }
10183
11708
 
10184
11709
  /**
@@ -10231,12 +11756,7 @@ export default class Client extends OpenApi {
10231
11756
  reqBodyType: "json",
10232
11757
  bodyType: "json",
10233
11758
  });
10234
- if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
10235
- return $tea.cast<GetLibraryListResponse>(await this.callApi(params, req, runtime), new GetLibraryListResponse({}));
10236
- } else {
10237
- return $tea.cast<GetLibraryListResponse>(await this.execute(params, req, runtime), new GetLibraryListResponse({}));
10238
- }
10239
-
11759
+ return $tea.cast<GetLibraryListResponse>(await this.callApi(params, req, runtime), new GetLibraryListResponse({}));
10240
11760
  }
10241
11761
 
10242
11762
  /**
@@ -10289,12 +11809,7 @@ export default class Client extends OpenApi {
10289
11809
  reqBodyType: "json",
10290
11810
  bodyType: "json",
10291
11811
  });
10292
- if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
10293
- return $tea.cast<GetParseResultResponse>(await this.callApi(params, req, runtime), new GetParseResultResponse({}));
10294
- } else {
10295
- return $tea.cast<GetParseResultResponse>(await this.execute(params, req, runtime), new GetParseResultResponse({}));
10296
- }
10297
-
11812
+ return $tea.cast<GetParseResultResponse>(await this.callApi(params, req, runtime), new GetParseResultResponse({}));
10298
11813
  }
10299
11814
 
10300
11815
  /**
@@ -10339,12 +11854,7 @@ export default class Client extends OpenApi {
10339
11854
  reqBodyType: "json",
10340
11855
  bodyType: "json",
10341
11856
  });
10342
- if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
10343
- return $tea.cast<GetQualityCheckTaskResultResponse>(await this.callApi(params, req, runtime), new GetQualityCheckTaskResultResponse({}));
10344
- } else {
10345
- return $tea.cast<GetQualityCheckTaskResultResponse>(await this.execute(params, req, runtime), new GetQualityCheckTaskResultResponse({}));
10346
- }
10347
-
11857
+ return $tea.cast<GetQualityCheckTaskResultResponse>(await this.callApi(params, req, runtime), new GetQualityCheckTaskResultResponse({}));
10348
11858
  }
10349
11859
 
10350
11860
  /**
@@ -10389,12 +11899,7 @@ export default class Client extends OpenApi {
10389
11899
  reqBodyType: "json",
10390
11900
  bodyType: "json",
10391
11901
  });
10392
- if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
10393
- return $tea.cast<GetSummaryTaskResultResponse>(await this.callApi(params, req, runtime), new GetSummaryTaskResultResponse({}));
10394
- } else {
10395
- return $tea.cast<GetSummaryTaskResultResponse>(await this.execute(params, req, runtime), new GetSummaryTaskResultResponse({}));
10396
- }
10397
-
11902
+ return $tea.cast<GetSummaryTaskResultResponse>(await this.callApi(params, req, runtime), new GetSummaryTaskResultResponse({}));
10398
11903
  }
10399
11904
 
10400
11905
  /**
@@ -10439,12 +11944,7 @@ export default class Client extends OpenApi {
10439
11944
  reqBodyType: "json",
10440
11945
  bodyType: "json",
10441
11946
  });
10442
- if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
10443
- return $tea.cast<GetTaskResultResponse>(await this.callApi(params, req, runtime), new GetTaskResultResponse({}));
10444
- } else {
10445
- return $tea.cast<GetTaskResultResponse>(await this.execute(params, req, runtime), new GetTaskResultResponse({}));
10446
- }
10447
-
11947
+ return $tea.cast<GetTaskResultResponse>(await this.callApi(params, req, runtime), new GetTaskResultResponse({}));
10448
11948
  }
10449
11949
 
10450
11950
  /**
@@ -10489,12 +11989,7 @@ export default class Client extends OpenApi {
10489
11989
  reqBodyType: "json",
10490
11990
  bodyType: "json",
10491
11991
  });
10492
- if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
10493
- return $tea.cast<GetTaskStatusResponse>(await this.callApi(params, req, runtime), new GetTaskStatusResponse({}));
10494
- } else {
10495
- return $tea.cast<GetTaskStatusResponse>(await this.execute(params, req, runtime), new GetTaskStatusResponse({}));
10496
- }
10497
-
11992
+ return $tea.cast<GetTaskStatusResponse>(await this.callApi(params, req, runtime), new GetTaskStatusResponse({}));
10498
11993
  }
10499
11994
 
10500
11995
  /**
@@ -10543,12 +12038,7 @@ export default class Client extends OpenApi {
10543
12038
  reqBodyType: "json",
10544
12039
  bodyType: "json",
10545
12040
  });
10546
- if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
10547
- return $tea.cast<InvokePluginResponse>(await this.callApi(params, req, runtime), new InvokePluginResponse({}));
10548
- } else {
10549
- return $tea.cast<InvokePluginResponse>(await this.execute(params, req, runtime), new InvokePluginResponse({}));
10550
- }
10551
-
12041
+ return $tea.cast<InvokePluginResponse>(await this.callApi(params, req, runtime), new InvokePluginResponse({}));
10552
12042
  }
10553
12043
 
10554
12044
  /**
@@ -10593,12 +12083,7 @@ export default class Client extends OpenApi {
10593
12083
  reqBodyType: "json",
10594
12084
  bodyType: "json",
10595
12085
  });
10596
- if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
10597
- return $tea.cast<PreviewDocumentResponse>(await this.callApi(params, req, runtime), new PreviewDocumentResponse({}));
10598
- } else {
10599
- return $tea.cast<PreviewDocumentResponse>(await this.execute(params, req, runtime), new PreviewDocumentResponse({}));
10600
- }
10601
-
12086
+ return $tea.cast<PreviewDocumentResponse>(await this.callApi(params, req, runtime), new PreviewDocumentResponse({}));
10602
12087
  }
10603
12088
 
10604
12089
  /**
@@ -10643,12 +12128,7 @@ export default class Client extends OpenApi {
10643
12128
  reqBodyType: "json",
10644
12129
  bodyType: "json",
10645
12130
  });
10646
- if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
10647
- return $tea.cast<ReIndexResponse>(await this.callApi(params, req, runtime), new ReIndexResponse({}));
10648
- } else {
10649
- return $tea.cast<ReIndexResponse>(await this.execute(params, req, runtime), new ReIndexResponse({}));
10650
- }
10651
-
12131
+ return $tea.cast<ReIndexResponse>(await this.callApi(params, req, runtime), new ReIndexResponse({}));
10652
12132
  }
10653
12133
 
10654
12134
  /**
@@ -10663,6 +12143,79 @@ export default class Client extends OpenApi {
10663
12143
  return await this.reIndexWithOptions(workspaceId, request, headers, runtime);
10664
12144
  }
10665
12145
 
12146
+ /**
12147
+ * 实时对话
12148
+ *
12149
+ * @param request - RealTimeDialogRequest
12150
+ * @param headers - map
12151
+ * @param runtime - runtime options for this request RuntimeOptions
12152
+ * @returns RealTimeDialogResponse
12153
+ */
12154
+ async realTimeDialogWithOptions(workspaceId: string, request: RealTimeDialogRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<RealTimeDialogResponse> {
12155
+ Util.validateModel(request);
12156
+ let body : {[key: string ]: any} = { };
12157
+ if (!Util.isUnset(request.analysis)) {
12158
+ body["analysis"] = request.analysis;
12159
+ }
12160
+
12161
+ if (!Util.isUnset(request.bizType)) {
12162
+ body["bizType"] = request.bizType;
12163
+ }
12164
+
12165
+ if (!Util.isUnset(request.conversationModel)) {
12166
+ body["conversationModel"] = request.conversationModel;
12167
+ }
12168
+
12169
+ if (!Util.isUnset(request.dialogMemoryTurns)) {
12170
+ body["dialogMemoryTurns"] = request.dialogMemoryTurns;
12171
+ }
12172
+
12173
+ if (!Util.isUnset(request.metaData)) {
12174
+ body["metaData"] = request.metaData;
12175
+ }
12176
+
12177
+ if (!Util.isUnset(request.recommend)) {
12178
+ body["recommend"] = request.recommend;
12179
+ }
12180
+
12181
+ if (!Util.isUnset(request.sessionId)) {
12182
+ body["sessionId"] = request.sessionId;
12183
+ }
12184
+
12185
+ if (!Util.isUnset(request.stream)) {
12186
+ body["stream"] = request.stream;
12187
+ }
12188
+
12189
+ let req = new $OpenApi.OpenApiRequest({
12190
+ headers: headers,
12191
+ body: OpenApiUtil.parseToMap(body),
12192
+ });
12193
+ let params = new $OpenApi.Params({
12194
+ action: "RealTimeDialog",
12195
+ version: "2024-06-28",
12196
+ protocol: "HTTPS",
12197
+ pathname: `/${OpenApiUtil.getEncodeParam(workspaceId)}/api/realtime/dialog/chat`,
12198
+ method: "POST",
12199
+ authType: "AK",
12200
+ style: "ROA",
12201
+ reqBodyType: "json",
12202
+ bodyType: "json",
12203
+ });
12204
+ return $tea.cast<RealTimeDialogResponse>(await this.callApi(params, req, runtime), new RealTimeDialogResponse({}));
12205
+ }
12206
+
12207
+ /**
12208
+ * 实时对话
12209
+ *
12210
+ * @param request - RealTimeDialogRequest
12211
+ * @returns RealTimeDialogResponse
12212
+ */
12213
+ async realTimeDialog(workspaceId: string, request: RealTimeDialogRequest): Promise<RealTimeDialogResponse> {
12214
+ let runtime = new $Util.RuntimeOptions({ });
12215
+ let headers : {[key: string ]: string} = { };
12216
+ return await this.realTimeDialogWithOptions(workspaceId, request, headers, runtime);
12217
+ }
12218
+
10666
12219
  /**
10667
12220
  * 重建任务
10668
12221
  *
@@ -10693,12 +12246,7 @@ export default class Client extends OpenApi {
10693
12246
  reqBodyType: "json",
10694
12247
  bodyType: "json",
10695
12248
  });
10696
- if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
10697
- return $tea.cast<RebuildTaskResponse>(await this.callApi(params, req, runtime), new RebuildTaskResponse({}));
10698
- } else {
10699
- return $tea.cast<RebuildTaskResponse>(await this.execute(params, req, runtime), new RebuildTaskResponse({}));
10700
- }
10701
-
12249
+ return $tea.cast<RebuildTaskResponse>(await this.callApi(params, req, runtime), new RebuildTaskResponse({}));
10702
12250
  }
10703
12251
 
10704
12252
  /**
@@ -10755,12 +12303,7 @@ export default class Client extends OpenApi {
10755
12303
  reqBodyType: "json",
10756
12304
  bodyType: "json",
10757
12305
  });
10758
- if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
10759
- return $tea.cast<RecallDocumentResponse>(await this.callApi(params, req, runtime), new RecallDocumentResponse({}));
10760
- } else {
10761
- return $tea.cast<RecallDocumentResponse>(await this.execute(params, req, runtime), new RecallDocumentResponse({}));
10762
- }
10763
-
12306
+ return $tea.cast<RecallDocumentResponse>(await this.callApi(params, req, runtime), new RecallDocumentResponse({}));
10764
12307
  }
10765
12308
 
10766
12309
  /**
@@ -10837,12 +12380,7 @@ export default class Client extends OpenApi {
10837
12380
  reqBodyType: "json",
10838
12381
  bodyType: "json",
10839
12382
  });
10840
- if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
10841
- return $tea.cast<RecognizeIntentionResponse>(await this.callApi(params, req, runtime), new RecognizeIntentionResponse({}));
10842
- } else {
10843
- return $tea.cast<RecognizeIntentionResponse>(await this.execute(params, req, runtime), new RecognizeIntentionResponse({}));
10844
- }
10845
-
12383
+ return $tea.cast<RecognizeIntentionResponse>(await this.callApi(params, req, runtime), new RecognizeIntentionResponse({}));
10846
12384
  }
10847
12385
 
10848
12386
  /**
@@ -10907,12 +12445,7 @@ export default class Client extends OpenApi {
10907
12445
  reqBodyType: "json",
10908
12446
  bodyType: "json",
10909
12447
  });
10910
- if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
10911
- return $tea.cast<RunChatResultGenerationResponse>(await this.callApi(params, req, runtime), new RunChatResultGenerationResponse({}));
10912
- } else {
10913
- return $tea.cast<RunChatResultGenerationResponse>(await this.execute(params, req, runtime), new RunChatResultGenerationResponse({}));
10914
- }
10915
-
12448
+ return $tea.cast<RunChatResultGenerationResponse>(await this.callApi(params, req, runtime), new RunChatResultGenerationResponse({}));
10916
12449
  }
10917
12450
 
10918
12451
  /**
@@ -11025,12 +12558,7 @@ export default class Client extends OpenApi {
11025
12558
  reqBodyType: "json",
11026
12559
  bodyType: "json",
11027
12560
  });
11028
- if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
11029
- return $tea.cast<RunLibraryChatGenerationResponse>(await this.callApi(params, req, runtime), new RunLibraryChatGenerationResponse({}));
11030
- } else {
11031
- return $tea.cast<RunLibraryChatGenerationResponse>(await this.execute(params, req, runtime), new RunLibraryChatGenerationResponse({}));
11032
- }
11033
-
12561
+ return $tea.cast<RunLibraryChatGenerationResponse>(await this.callApi(params, req, runtime), new RunLibraryChatGenerationResponse({}));
11034
12562
  }
11035
12563
 
11036
12564
  /**
@@ -11045,6 +12573,71 @@ export default class Client extends OpenApi {
11045
12573
  return await this.runLibraryChatGenerationWithOptions(workspaceId, request, headers, runtime);
11046
12574
  }
11047
12575
 
12576
+ /**
12577
+ * 提交问题列表
12578
+ *
12579
+ * @param request - SubmitChatQuestionRequest
12580
+ * @param headers - map
12581
+ * @param runtime - runtime options for this request RuntimeOptions
12582
+ * @returns SubmitChatQuestionResponse
12583
+ */
12584
+ async submitChatQuestionWithOptions(workspaceId: string, request: SubmitChatQuestionRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<SubmitChatQuestionResponse> {
12585
+ Util.validateModel(request);
12586
+ let body : {[key: string ]: any} = { };
12587
+ if (!Util.isUnset(request.gmtService)) {
12588
+ body["gmtService"] = request.gmtService;
12589
+ }
12590
+
12591
+ if (!Util.isUnset(request.liveScriptContent)) {
12592
+ body["liveScriptContent"] = request.liveScriptContent;
12593
+ }
12594
+
12595
+ if (!Util.isUnset(request.openSmallTalk)) {
12596
+ body["openSmallTalk"] = request.openSmallTalk;
12597
+ }
12598
+
12599
+ if (!Util.isUnset(request.questionList)) {
12600
+ body["questionList"] = request.questionList;
12601
+ }
12602
+
12603
+ if (!Util.isUnset(request.requestId)) {
12604
+ body["requestId"] = request.requestId;
12605
+ }
12606
+
12607
+ if (!Util.isUnset(request.sessionId)) {
12608
+ body["sessionId"] = request.sessionId;
12609
+ }
12610
+
12611
+ let req = new $OpenApi.OpenApiRequest({
12612
+ headers: headers,
12613
+ body: OpenApiUtil.parseToMap(body),
12614
+ });
12615
+ let params = new $OpenApi.Params({
12616
+ action: "SubmitChatQuestion",
12617
+ version: "2024-06-28",
12618
+ protocol: "HTTPS",
12619
+ pathname: `/${OpenApiUtil.getEncodeParam(workspaceId)}/api/virtualHuman/chat/submit`,
12620
+ method: "POST",
12621
+ authType: "AK",
12622
+ style: "ROA",
12623
+ reqBodyType: "json",
12624
+ bodyType: "json",
12625
+ });
12626
+ return $tea.cast<SubmitChatQuestionResponse>(await this.callApi(params, req, runtime), new SubmitChatQuestionResponse({}));
12627
+ }
12628
+
12629
+ /**
12630
+ * 提交问题列表
12631
+ *
12632
+ * @param request - SubmitChatQuestionRequest
12633
+ * @returns SubmitChatQuestionResponse
12634
+ */
12635
+ async submitChatQuestion(workspaceId: string, request: SubmitChatQuestionRequest): Promise<SubmitChatQuestionResponse> {
12636
+ let runtime = new $Util.RuntimeOptions({ });
12637
+ let headers : {[key: string ]: string} = { };
12638
+ return await this.submitChatQuestionWithOptions(workspaceId, request, headers, runtime);
12639
+ }
12640
+
11048
12641
  /**
11049
12642
  * 更新文档
11050
12643
  *
@@ -11087,12 +12680,7 @@ export default class Client extends OpenApi {
11087
12680
  reqBodyType: "json",
11088
12681
  bodyType: "json",
11089
12682
  });
11090
- if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
11091
- return $tea.cast<UpdateDocumentResponse>(await this.callApi(params, req, runtime), new UpdateDocumentResponse({}));
11092
- } else {
11093
- return $tea.cast<UpdateDocumentResponse>(await this.execute(params, req, runtime), new UpdateDocumentResponse({}));
11094
- }
11095
-
12683
+ return $tea.cast<UpdateDocumentResponse>(await this.callApi(params, req, runtime), new UpdateDocumentResponse({}));
11096
12684
  }
11097
12685
 
11098
12686
  /**
@@ -11149,12 +12737,7 @@ export default class Client extends OpenApi {
11149
12737
  reqBodyType: "json",
11150
12738
  bodyType: "json",
11151
12739
  });
11152
- if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
11153
- return $tea.cast<UpdateLibraryResponse>(await this.callApi(params, req, runtime), new UpdateLibraryResponse({}));
11154
- } else {
11155
- return $tea.cast<UpdateLibraryResponse>(await this.execute(params, req, runtime), new UpdateLibraryResponse({}));
11156
- }
11157
-
12740
+ return $tea.cast<UpdateLibraryResponse>(await this.callApi(params, req, runtime), new UpdateLibraryResponse({}));
11158
12741
  }
11159
12742
 
11160
12743
  /**
@@ -11169,6 +12752,59 @@ export default class Client extends OpenApi {
11169
12752
  return await this.updateLibraryWithOptions(workspaceId, request, headers, runtime);
11170
12753
  }
11171
12754
 
12755
+ /**
12756
+ * 更新QA问答库
12757
+ *
12758
+ * @param request - UpdateQaLibraryRequest
12759
+ * @param headers - map
12760
+ * @param runtime - runtime options for this request RuntimeOptions
12761
+ * @returns UpdateQaLibraryResponse
12762
+ */
12763
+ async updateQaLibraryWithOptions(workspaceId: string, request: UpdateQaLibraryRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateQaLibraryResponse> {
12764
+ Util.validateModel(request);
12765
+ let body : {[key: string ]: any} = { };
12766
+ if (!Util.isUnset(request.parseQaResults)) {
12767
+ body["parseQaResults"] = request.parseQaResults;
12768
+ }
12769
+
12770
+ if (!Util.isUnset(request.qaLibraryId)) {
12771
+ body["qaLibraryId"] = request.qaLibraryId;
12772
+ }
12773
+
12774
+ if (!Util.isUnset(request.requestId)) {
12775
+ body["requestId"] = request.requestId;
12776
+ }
12777
+
12778
+ let req = new $OpenApi.OpenApiRequest({
12779
+ headers: headers,
12780
+ body: OpenApiUtil.parseToMap(body),
12781
+ });
12782
+ let params = new $OpenApi.Params({
12783
+ action: "UpdateQaLibrary",
12784
+ version: "2024-06-28",
12785
+ protocol: "HTTPS",
12786
+ pathname: `/${OpenApiUtil.getEncodeParam(workspaceId)}/api/virtualHuman/qa/upload`,
12787
+ method: "POST",
12788
+ authType: "AK",
12789
+ style: "ROA",
12790
+ reqBodyType: "json",
12791
+ bodyType: "json",
12792
+ });
12793
+ return $tea.cast<UpdateQaLibraryResponse>(await this.callApi(params, req, runtime), new UpdateQaLibraryResponse({}));
12794
+ }
12795
+
12796
+ /**
12797
+ * 更新QA问答库
12798
+ *
12799
+ * @param request - UpdateQaLibraryRequest
12800
+ * @returns UpdateQaLibraryResponse
12801
+ */
12802
+ async updateQaLibrary(workspaceId: string, request: UpdateQaLibraryRequest): Promise<UpdateQaLibraryResponse> {
12803
+ let runtime = new $Util.RuntimeOptions({ });
12804
+ let headers : {[key: string ]: string} = { };
12805
+ return await this.updateQaLibraryWithOptions(workspaceId, request, headers, runtime);
12806
+ }
12807
+
11172
12808
  /**
11173
12809
  * 上传文档到文档库
11174
12810
  *
@@ -11211,12 +12847,7 @@ export default class Client extends OpenApi {
11211
12847
  reqBodyType: "json",
11212
12848
  bodyType: "json",
11213
12849
  });
11214
- if (Util.isUnset(this._signatureVersion) || !Util.equalString(this._signatureVersion, "v4")) {
11215
- return $tea.cast<UploadDocumentResponse>(await this.callApi(params, req, runtime), new UploadDocumentResponse({}));
11216
- } else {
11217
- return $tea.cast<UploadDocumentResponse>(await this.execute(params, req, runtime), new UploadDocumentResponse({}));
11218
- }
11219
-
12850
+ return $tea.cast<UploadDocumentResponse>(await this.callApi(params, req, runtime), new UploadDocumentResponse({}));
11220
12851
  }
11221
12852
 
11222
12853
  /**