@alicloud/dianjin20240628 1.6.5 → 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
@@ -159,6 +159,161 @@ export class CreateAnnualDocSummaryTaskResponse extends $tea.Model {
159
159
  }
160
160
  }
161
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
+
162
317
  export class CreateDocsSummaryTaskRequest extends $tea.Model {
163
318
  /**
164
319
  * @remarks
@@ -1388,13 +1543,59 @@ export class EvictTaskResponse extends $tea.Model {
1388
1543
  }
1389
1544
  }
1390
1545
 
1391
- 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 {
1392
1593
  /**
1393
1594
  * @example
1394
1595
  * null
1395
1596
  */
1396
1597
  cost?: number;
1397
- data?: GetAppConfigResponseBodyData;
1598
+ data?: GenDocQaResultResponseBodyData;
1398
1599
  /**
1399
1600
  * @example
1400
1601
  * null
@@ -1407,17 +1608,17 @@ export class GetAppConfigResponseBody extends $tea.Model {
1407
1608
  errCode?: string;
1408
1609
  /**
1409
1610
  * @example
1410
- * None
1611
+ * ok
1411
1612
  */
1412
1613
  message?: string;
1413
1614
  /**
1414
1615
  * @example
1415
- * EF4B5C9B-3BC8-5171-A47B-4C5CF3DC3258
1616
+ * 44BD277A-87F9-5310-8D63-3E6645F1DA85
1416
1617
  */
1417
1618
  requestId?: string;
1418
1619
  /**
1419
1620
  * @example
1420
- * True
1621
+ * true
1421
1622
  */
1422
1623
  success?: boolean;
1423
1624
  /**
@@ -1441,7 +1642,7 @@ export class GetAppConfigResponseBody extends $tea.Model {
1441
1642
  static types(): { [key: string]: any } {
1442
1643
  return {
1443
1644
  cost: 'number',
1444
- data: GetAppConfigResponseBodyData,
1645
+ data: GenDocQaResultResponseBodyData,
1445
1646
  dataType: 'string',
1446
1647
  errCode: 'string',
1447
1648
  message: 'string',
@@ -1456,10 +1657,10 @@ export class GetAppConfigResponseBody extends $tea.Model {
1456
1657
  }
1457
1658
  }
1458
1659
 
1459
- export class GetAppConfigResponse extends $tea.Model {
1660
+ export class GenDocQaResultResponse extends $tea.Model {
1460
1661
  headers?: { [key: string]: string };
1461
1662
  statusCode?: number;
1462
- body?: GetAppConfigResponseBody;
1663
+ body?: GenDocQaResultResponseBody;
1463
1664
  static names(): { [key: string]: string } {
1464
1665
  return {
1465
1666
  headers: 'headers',
@@ -1472,7 +1673,7 @@ export class GetAppConfigResponse extends $tea.Model {
1472
1673
  return {
1473
1674
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1474
1675
  statusCode: 'number',
1475
- body: GetAppConfigResponseBody,
1676
+ body: GenDocQaResultResponseBody,
1476
1677
  };
1477
1678
  }
1478
1679
 
@@ -1481,72 +1682,66 @@ export class GetAppConfigResponse extends $tea.Model {
1481
1682
  }
1482
1683
  }
1483
1684
 
1484
- export class GetDocumentChunkListRequest extends $tea.Model {
1485
- chunkIdList?: string[];
1685
+ export class GetAppConfigResponseBody extends $tea.Model {
1486
1686
  /**
1487
- * @remarks
1488
- * This parameter is required.
1489
- *
1490
1687
  * @example
1491
- * 182364872346
1688
+ * null
1492
1689
  */
1493
- docId?: string;
1690
+ cost?: number;
1691
+ data?: GetAppConfigResponseBodyData;
1494
1692
  /**
1495
- * @remarks
1496
- * This parameter is required.
1497
- *
1498
1693
  * @example
1499
- * dsjgfdjgfxxx
1694
+ * null
1500
1695
  */
1501
- libraryId?: string;
1696
+ dataType?: string;
1502
1697
  /**
1503
1698
  * @example
1504
- * desc
1699
+ * 0
1505
1700
  */
1506
- order?: string;
1701
+ errCode?: string;
1507
1702
  /**
1508
1703
  * @example
1509
- * gmtCreate
1704
+ * None
1510
1705
  */
1511
- orderBy?: string;
1706
+ message?: string;
1512
1707
  /**
1513
1708
  * @example
1514
- * 1
1709
+ * EF4B5C9B-3BC8-5171-A47B-4C5CF3DC3258
1515
1710
  */
1516
- page?: number;
1711
+ requestId?: string;
1517
1712
  /**
1518
1713
  * @example
1519
- * 10
1714
+ * True
1520
1715
  */
1521
- pageSize?: number;
1716
+ success?: boolean;
1522
1717
  /**
1523
1718
  * @example
1524
- * test
1719
+ * 2024-04-24 11:54:34
1525
1720
  */
1526
- searchQuery?: string;
1721
+ time?: string;
1527
1722
  static names(): { [key: string]: string } {
1528
1723
  return {
1529
- chunkIdList: 'chunkIdList',
1530
- docId: 'docId',
1531
- libraryId: 'libraryId',
1532
- order: 'order',
1533
- orderBy: 'orderBy',
1534
- page: 'page',
1535
- pageSize: 'pageSize',
1536
- 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',
1537
1732
  };
1538
1733
  }
1539
1734
 
1540
1735
  static types(): { [key: string]: any } {
1541
1736
  return {
1542
- chunkIdList: { 'type': 'array', 'itemType': 'string' },
1543
- docId: 'string',
1544
- libraryId: 'string',
1545
- order: 'string',
1546
- orderBy: 'string',
1547
- page: 'number',
1548
- pageSize: 'number',
1549
- 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',
1550
1745
  };
1551
1746
  }
1552
1747
 
@@ -1555,7 +1750,235 @@ export class GetDocumentChunkListRequest extends $tea.Model {
1555
1750
  }
1556
1751
  }
1557
1752
 
1558
- 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 {
1559
1982
  /**
1560
1983
  * @example
1561
1984
  * null
@@ -3388,49 +3811,192 @@ export class ReIndexResponse extends $tea.Model {
3388
3811
  }
3389
3812
  }
3390
3813
 
3391
- export class RebuildTaskRequest extends $tea.Model {
3814
+ export class RealTimeDialogRequest extends $tea.Model {
3392
3815
  /**
3393
- * @remarks
3394
- * This parameter is required.
3816
+ * @example
3817
+ * false
3395
3818
  */
3396
- taskIds?: string[];
3397
- static names(): { [key: string]: string } {
3398
- return {
3399
- taskIds: 'taskIds',
3400
- };
3401
- }
3402
-
3403
- static types(): { [key: string]: any } {
3404
- return {
3405
- taskIds: { 'type': 'array', 'itemType': 'string' },
3406
- };
3407
- }
3408
-
3409
- constructor(map?: { [key: string]: any }) {
3410
- super(map);
3411
- }
3412
- }
3413
-
3414
- export class RebuildTaskResponseBody extends $tea.Model {
3819
+ analysis?: boolean;
3415
3820
  /**
3416
3821
  * @example
3417
- * null
3822
+ * mixIntentChat
3418
3823
  */
3419
- cost?: number;
3420
- data?: { [key: string]: any }[];
3824
+ bizType?: string;
3421
3825
  /**
3422
- * @example
3423
- * null
3826
+ * @remarks
3827
+ * This parameter is required.
3424
3828
  */
3425
- dataType?: string;
3829
+ conversationModel?: RealTimeDialogRequestConversationModel[];
3426
3830
  /**
3427
3831
  * @example
3428
- * 0
3832
+ * 3
3429
3833
  */
3430
- errCode?: string;
3834
+ dialogMemoryTurns?: number;
3835
+ metaData?: { [key: string]: any };
3431
3836
  /**
3432
3837
  * @example
3433
- * 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
3434
4000
  */
3435
4001
  message?: string;
3436
4002
  /**
@@ -4126,7 +4692,167 @@ export class RunLibraryChatGenerationResponseBody extends $tea.Model {
4126
4692
  static types(): { [key: string]: any } {
4127
4693
  return {
4128
4694
  cost: 'number',
4129
- data: 'any',
4695
+ data: 'any',
4696
+ dataType: 'string',
4697
+ errCode: 'string',
4698
+ message: 'string',
4699
+ requestId: 'string',
4700
+ success: 'boolean',
4701
+ time: 'string',
4702
+ };
4703
+ }
4704
+
4705
+ constructor(map?: { [key: string]: any }) {
4706
+ super(map);
4707
+ }
4708
+ }
4709
+
4710
+ export class RunLibraryChatGenerationResponse extends $tea.Model {
4711
+ headers?: { [key: string]: string };
4712
+ statusCode?: number;
4713
+ body?: RunLibraryChatGenerationResponseBody;
4714
+ static names(): { [key: string]: string } {
4715
+ return {
4716
+ headers: 'headers',
4717
+ statusCode: 'statusCode',
4718
+ body: 'body',
4719
+ };
4720
+ }
4721
+
4722
+ static types(): { [key: string]: any } {
4723
+ return {
4724
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
4725
+ statusCode: 'number',
4726
+ body: RunLibraryChatGenerationResponseBody,
4727
+ };
4728
+ }
4729
+
4730
+ constructor(map?: { [key: string]: any }) {
4731
+ super(map);
4732
+ }
4733
+ }
4734
+
4735
+ export class SubmitChatQuestionRequest extends $tea.Model {
4736
+ /**
4737
+ * @remarks
4738
+ * This parameter is required.
4739
+ *
4740
+ * @example
4741
+ * 2024-09-27 11:23:20
4742
+ */
4743
+ gmtService?: string;
4744
+ /**
4745
+ * @remarks
4746
+ * This parameter is required.
4747
+ */
4748
+ liveScriptContent?: string;
4749
+ /**
4750
+ * @example
4751
+ * true
4752
+ */
4753
+ openSmallTalk?: boolean;
4754
+ /**
4755
+ * @remarks
4756
+ * This parameter is required.
4757
+ */
4758
+ questionList?: SubmitChatQuestionRequestQuestionList[];
4759
+ /**
4760
+ * @remarks
4761
+ * This parameter is required.
4762
+ *
4763
+ * @example
4764
+ * 0FC6636E-380A-5369-AE01-D1C15BB9B254
4765
+ */
4766
+ requestId?: string;
4767
+ /**
4768
+ * @remarks
4769
+ * This parameter is required.
4770
+ *
4771
+ * @example
4772
+ * 237645726354
4773
+ */
4774
+ sessionId?: string;
4775
+ static names(): { [key: string]: string } {
4776
+ return {
4777
+ gmtService: 'gmtService',
4778
+ liveScriptContent: 'liveScriptContent',
4779
+ openSmallTalk: 'openSmallTalk',
4780
+ questionList: 'questionList',
4781
+ requestId: 'requestId',
4782
+ sessionId: 'sessionId',
4783
+ };
4784
+ }
4785
+
4786
+ static types(): { [key: string]: any } {
4787
+ return {
4788
+ gmtService: 'string',
4789
+ liveScriptContent: 'string',
4790
+ openSmallTalk: 'boolean',
4791
+ questionList: { 'type': 'array', 'itemType': SubmitChatQuestionRequestQuestionList },
4792
+ requestId: 'string',
4793
+ sessionId: 'string',
4794
+ };
4795
+ }
4796
+
4797
+ constructor(map?: { [key: string]: any }) {
4798
+ super(map);
4799
+ }
4800
+ }
4801
+
4802
+ export class SubmitChatQuestionResponseBody extends $tea.Model {
4803
+ /**
4804
+ * @example
4805
+ * null
4806
+ */
4807
+ cost?: number;
4808
+ data?: SubmitChatQuestionResponseBodyData;
4809
+ /**
4810
+ * @example
4811
+ * null
4812
+ */
4813
+ dataType?: string;
4814
+ /**
4815
+ * @example
4816
+ * 0
4817
+ */
4818
+ errCode?: string;
4819
+ /**
4820
+ * @example
4821
+ * ok
4822
+ */
4823
+ message?: string;
4824
+ /**
4825
+ * @example
4826
+ * 915AAAB9-4908-5224-9E53-9E9D7D0AA94B
4827
+ */
4828
+ requestId?: string;
4829
+ /**
4830
+ * @example
4831
+ * true
4832
+ */
4833
+ success?: boolean;
4834
+ /**
4835
+ * @example
4836
+ * 2024-04-24 11:54:34
4837
+ */
4838
+ time?: string;
4839
+ static names(): { [key: string]: string } {
4840
+ return {
4841
+ cost: 'cost',
4842
+ data: 'data',
4843
+ dataType: 'dataType',
4844
+ errCode: 'errCode',
4845
+ message: 'message',
4846
+ requestId: 'requestId',
4847
+ success: 'success',
4848
+ time: 'time',
4849
+ };
4850
+ }
4851
+
4852
+ static types(): { [key: string]: any } {
4853
+ return {
4854
+ cost: 'number',
4855
+ data: SubmitChatQuestionResponseBodyData,
4130
4856
  dataType: 'string',
4131
4857
  errCode: 'string',
4132
4858
  message: 'string',
@@ -4141,10 +4867,10 @@ export class RunLibraryChatGenerationResponseBody extends $tea.Model {
4141
4867
  }
4142
4868
  }
4143
4869
 
4144
- export class RunLibraryChatGenerationResponse extends $tea.Model {
4870
+ export class SubmitChatQuestionResponse extends $tea.Model {
4145
4871
  headers?: { [key: string]: string };
4146
4872
  statusCode?: number;
4147
- body?: RunLibraryChatGenerationResponseBody;
4873
+ body?: SubmitChatQuestionResponseBody;
4148
4874
  static names(): { [key: string]: string } {
4149
4875
  return {
4150
4876
  headers: 'headers',
@@ -4157,7 +4883,7 @@ export class RunLibraryChatGenerationResponse extends $tea.Model {
4157
4883
  return {
4158
4884
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
4159
4885
  statusCode: 'number',
4160
- body: RunLibraryChatGenerationResponseBody,
4886
+ body: SubmitChatQuestionResponseBody,
4161
4887
  };
4162
4888
  }
4163
4889
 
@@ -4447,6 +5173,139 @@ export class UpdateLibraryResponse extends $tea.Model {
4447
5173
  }
4448
5174
  }
4449
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
+
4450
5309
  export class UploadDocumentRequest extends $tea.Model {
4451
5310
  data?: string;
4452
5311
  /**
@@ -4702,6 +5561,32 @@ export class CreateAnnualDocSummaryTaskRequestDocInfos extends $tea.Model {
4702
5561
  }
4703
5562
  }
4704
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
+
4705
5590
  export class CreateDocsSummaryTaskRequestDocInfos extends $tea.Model {
4706
5591
  /**
4707
5592
  * @remarks
@@ -5314,6 +6199,68 @@ export class CreateQualityCheckTaskResponseBodyData extends $tea.Model {
5314
6199
  }
5315
6200
  }
5316
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[];
6241
+ static names(): { [key: string]: string } {
6242
+ return {
6243
+ currentStatus: 'currentStatus',
6244
+ docId: 'docId',
6245
+ libraryId: 'libraryId',
6246
+ parseQaResults: 'parseQaResults',
6247
+ };
6248
+ }
6249
+
6250
+ static types(): { [key: string]: any } {
6251
+ return {
6252
+ currentStatus: 'string',
6253
+ docId: 'string',
6254
+ libraryId: 'string',
6255
+ parseQaResults: { 'type': 'array', 'itemType': GenDocQaResultResponseBodyDataParseQaResults },
6256
+ };
6257
+ }
6258
+
6259
+ constructor(map?: { [key: string]: any }) {
6260
+ super(map);
6261
+ }
6262
+ }
6263
+
5317
6264
  export class GetAppConfigResponseBodyData extends $tea.Model {
5318
6265
  embeddingTypeList?: { [key: string]: string }[];
5319
6266
  frontendConfig?: { [key: string]: boolean };
@@ -5323,23 +6270,102 @@ export class GetAppConfigResponseBodyData extends $tea.Model {
5323
6270
  vectorIndexCategoryList?: string[];
5324
6271
  static names(): { [key: string]: string } {
5325
6272
  return {
5326
- embeddingTypeList: 'embeddingTypeList',
5327
- frontendConfig: 'frontendConfig',
5328
- libraryDocumentStatusList: 'libraryDocumentStatusList',
5329
- llmHelperTypeList: 'llmHelperTypeList',
5330
- textIndexCategoryList: 'textIndexCategoryList',
5331
- vectorIndexCategoryList: 'vectorIndexCategoryList',
6273
+ embeddingTypeList: 'embeddingTypeList',
6274
+ frontendConfig: 'frontendConfig',
6275
+ libraryDocumentStatusList: 'libraryDocumentStatusList',
6276
+ llmHelperTypeList: 'llmHelperTypeList',
6277
+ textIndexCategoryList: 'textIndexCategoryList',
6278
+ vectorIndexCategoryList: 'vectorIndexCategoryList',
6279
+ };
6280
+ }
6281
+
6282
+ static types(): { [key: string]: any } {
6283
+ return {
6284
+ embeddingTypeList: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'string' } },
6285
+ frontendConfig: { 'type': 'map', 'keyType': 'string', 'valueType': 'boolean' },
6286
+ libraryDocumentStatusList: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'string' } },
6287
+ llmHelperTypeList: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'string' } },
6288
+ textIndexCategoryList: { 'type': 'array', 'itemType': 'string' },
6289
+ vectorIndexCategoryList: { 'type': 'array', 'itemType': 'string' },
6290
+ };
6291
+ }
6292
+
6293
+ constructor(map?: { [key: string]: any }) {
6294
+ super(map);
6295
+ }
6296
+ }
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',
5332
6362
  };
5333
6363
  }
5334
6364
 
5335
6365
  static types(): { [key: string]: any } {
5336
6366
  return {
5337
- embeddingTypeList: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'string' } },
5338
- frontendConfig: { 'type': 'map', 'keyType': 'string', 'valueType': 'boolean' },
5339
- libraryDocumentStatusList: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'string' } },
5340
- llmHelperTypeList: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'string' } },
5341
- textIndexCategoryList: { 'type': 'array', 'itemType': 'string' },
5342
- vectorIndexCategoryList: { 'type': 'array', 'itemType': 'string' },
6367
+ currentState: 'string',
6368
+ questionList: { 'type': 'array', 'itemType': GetChatQuestionRespResponseBodyDataQuestionList },
5343
6369
  };
5344
6370
  }
5345
6371
 
@@ -7373,62 +8399,341 @@ export class GetSummaryTaskResultResponseBodyDataUsage extends $tea.Model {
7373
8399
  }
7374
8400
  }
7375
8401
 
7376
- export class GetSummaryTaskResultResponseBodyData extends $tea.Model {
7377
- choices?: GetSummaryTaskResultResponseBodyDataChoices[];
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 {
8511
+ /**
8512
+ * @example
8513
+ * 5
8514
+ */
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;
8536
+ /**
8537
+ * @example
8538
+ * 0
8539
+ */
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;
8562
+ static names(): { [key: string]: string } {
8563
+ return {
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',
8573
+ };
8574
+ }
8575
+
8576
+ static types(): { [key: string]: any } {
8577
+ return {
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',
8587
+ };
8588
+ }
8589
+
8590
+ constructor(map?: { [key: string]: any }) {
8591
+ super(map);
8592
+ }
8593
+ }
8594
+
8595
+ export class RealTimeDialogResponseBodyChoicesDelta extends $tea.Model {
8596
+ /**
8597
+ * @example
8598
+ * null
8599
+ */
8600
+ analysisProcess?: string;
8601
+ /**
8602
+ * @remarks
8603
+ * time
8604
+ *
8605
+ * @example
8606
+ * null
8607
+ */
8608
+ callTime?: string;
8609
+ /**
8610
+ * @example
8611
+ * false
8612
+ */
8613
+ hangUpDialog?: boolean;
8614
+ /**
8615
+ * @example
8616
+ * 1853360771162058752
8617
+ */
8618
+ intentionCode?: string;
8619
+ intentionName?: string;
8620
+ intentionScript?: string;
8621
+ /**
8622
+ * @example
8623
+ * null
8624
+ */
8625
+ recommendIntention?: string;
8626
+ /**
8627
+ * @example
8628
+ * null
8629
+ */
8630
+ recommendScript?: string;
8631
+ selfDirectedScript?: string;
8632
+ selfDirectedScriptFullContent?: string;
8633
+ static names(): { [key: string]: string } {
8634
+ return {
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',
8645
+ };
8646
+ }
8647
+
8648
+ static types(): { [key: string]: any } {
8649
+ return {
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',
8660
+ };
8661
+ }
8662
+
8663
+ constructor(map?: { [key: string]: any }) {
8664
+ super(map);
8665
+ }
8666
+ }
8667
+
8668
+ export class RealTimeDialogResponseBodyChoicesMessage extends $tea.Model {
7378
8669
  /**
7379
8670
  * @example
7380
- * 1726285125915
8671
+ * null
7381
8672
  */
7382
- created?: number;
8673
+ analysisProcess?: string;
7383
8674
  /**
8675
+ * @remarks
8676
+ * time
8677
+ *
7384
8678
  * @example
7385
- * 1202
8679
+ * 1735139569523
7386
8680
  */
7387
- id?: string;
8681
+ callTime?: string;
7388
8682
  /**
7389
8683
  * @example
7390
- * qwen-max
8684
+ * false
7391
8685
  */
7392
- modelId?: string;
8686
+ hangUpDialog?: boolean;
7393
8687
  /**
7394
8688
  * @example
7395
- * 0bc13a9517168617617186457e401f
8689
+ * 1853360771162058752
7396
8690
  */
7397
- requestId?: string;
8691
+ intentionCode?: string;
8692
+ intentionName?: string;
8693
+ intentionScript?: string;
7398
8694
  /**
7399
8695
  * @example
7400
- * 2024-04-24 11:54:34
8696
+ * null
7401
8697
  */
7402
- time?: string;
8698
+ recommendIntention?: string;
7403
8699
  /**
7404
8700
  * @example
7405
- * 300
8701
+ * null
7406
8702
  */
7407
- totalTokens?: number;
7408
- usage?: GetSummaryTaskResultResponseBodyDataUsage;
8703
+ recommendScript?: string;
8704
+ /**
8705
+ * @example
8706
+ * null
8707
+ */
8708
+ selfDirectedScript?: string;
8709
+ selfDirectedScriptFullContent?: string;
7409
8710
  static names(): { [key: string]: string } {
7410
8711
  return {
7411
- choices: 'choices',
7412
- created: 'created',
7413
- id: 'id',
7414
- modelId: 'modelId',
7415
- requestId: 'requestId',
7416
- time: 'time',
7417
- totalTokens: 'totalTokens',
7418
- 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',
7419
8722
  };
7420
8723
  }
7421
8724
 
7422
8725
  static types(): { [key: string]: any } {
7423
8726
  return {
7424
- choices: { 'type': 'array', 'itemType': GetSummaryTaskResultResponseBodyDataChoices },
7425
- created: 'number',
7426
- id: 'string',
7427
- modelId: 'string',
7428
- requestId: 'string',
7429
- time: 'string',
7430
- totalTokens: 'number',
7431
- 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',
7432
8737
  };
7433
8738
  }
7434
8739
 
@@ -7437,42 +8742,34 @@ export class GetSummaryTaskResultResponseBodyData extends $tea.Model {
7437
8742
  }
7438
8743
  }
7439
8744
 
7440
- export class PreviewDocumentResponseBodyData extends $tea.Model {
7441
- /**
7442
- * @example
7443
- * pdf
7444
- */
7445
- previewType?: string;
7446
- /**
7447
- * @example
7448
- * test
7449
- */
7450
- title?: string;
8745
+ export class RealTimeDialogResponseBodyChoices extends $tea.Model {
8746
+ delta?: RealTimeDialogResponseBodyChoicesDelta;
7451
8747
  /**
7452
8748
  * @example
7453
- * 2024-01-01 00:00:00
8749
+ * stop
7454
8750
  */
7455
- uploadTime?: string;
8751
+ finishReason?: string;
7456
8752
  /**
7457
8753
  * @example
7458
- * https://agi.alicdn.com/user/d0o/d3c1f50d-a6c2-49b3-b0c8-3e613c3f20ee_16872_3236784461.png
8754
+ * 0
7459
8755
  */
7460
- url?: string;
8756
+ index?: number;
8757
+ message?: RealTimeDialogResponseBodyChoicesMessage;
7461
8758
  static names(): { [key: string]: string } {
7462
8759
  return {
7463
- previewType: 'previewType',
7464
- title: 'title',
7465
- uploadTime: 'uploadTime',
7466
- url: 'url',
8760
+ delta: 'delta',
8761
+ finishReason: 'finishReason',
8762
+ index: 'index',
8763
+ message: 'message',
7467
8764
  };
7468
8765
  }
7469
8766
 
7470
8767
  static types(): { [key: string]: any } {
7471
8768
  return {
7472
- previewType: 'string',
7473
- title: 'string',
7474
- uploadTime: 'string',
7475
- url: 'string',
8769
+ delta: RealTimeDialogResponseBodyChoicesDelta,
8770
+ finishReason: 'string',
8771
+ index: 'number',
8772
+ message: RealTimeDialogResponseBodyChoicesMessage,
7476
8773
  };
7477
8774
  }
7478
8775
 
@@ -8781,6 +10078,99 @@ export class RunLibraryChatGenerationRequestVectorSearchParameter extends $tea.M
8781
10078
  }
8782
10079
  }
8783
10080
 
10081
+ export class SubmitChatQuestionRequestQuestionList extends $tea.Model {
10082
+ /**
10083
+ * @remarks
10084
+ * This parameter is required.
10085
+ */
10086
+ content?: string;
10087
+ /**
10088
+ * @remarks
10089
+ * This parameter is required.
10090
+ *
10091
+ * @example
10092
+ * 2024-11-17 10:05:00
10093
+ */
10094
+ gmtCreate?: string;
10095
+ reply?: string;
10096
+ /**
10097
+ * @remarks
10098
+ * This parameter is required.
10099
+ *
10100
+ * @example
10101
+ * 1869300950603128834
10102
+ */
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;
10122
+ static names(): { [key: string]: string } {
10123
+ return {
10124
+ content: 'content',
10125
+ gmtCreate: 'gmtCreate',
10126
+ reply: 'reply',
10127
+ sessionId: 'sessionId',
10128
+ type: 'type',
10129
+ userId: 'userId',
10130
+ userName: 'userName',
10131
+ };
10132
+ }
10133
+
10134
+ static types(): { [key: string]: any } {
10135
+ return {
10136
+ content: 'string',
10137
+ gmtCreate: 'string',
10138
+ reply: 'string',
10139
+ sessionId: 'string',
10140
+ type: 'string',
10141
+ userId: 'string',
10142
+ userName: 'string',
10143
+ };
10144
+ }
10145
+
10146
+ constructor(map?: { [key: string]: any }) {
10147
+ super(map);
10148
+ }
10149
+ }
10150
+
10151
+ export class SubmitChatQuestionResponseBodyData extends $tea.Model {
10152
+ /**
10153
+ * @example
10154
+ * 1869307330227937280
10155
+ */
10156
+ batchId?: string;
10157
+ static names(): { [key: string]: string } {
10158
+ return {
10159
+ batchId: 'batchId',
10160
+ };
10161
+ }
10162
+
10163
+ static types(): { [key: string]: any } {
10164
+ return {
10165
+ batchId: 'string',
10166
+ };
10167
+ }
10168
+
10169
+ constructor(map?: { [key: string]: any }) {
10170
+ super(map);
10171
+ }
10172
+ }
10173
+
8784
10174
  export class UpdateLibraryRequestIndexSettingChunkStrategy extends $tea.Model {
8785
10175
  /**
8786
10176
  * @example
@@ -9134,6 +10524,59 @@ export class UpdateLibraryRequestIndexSetting extends $tea.Model {
9134
10524
  }
9135
10525
  }
9136
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
+
9137
10580
 
9138
10581
  export default class Client extends OpenApi {
9139
10582
 
@@ -9163,29 +10606,98 @@ export default class Client extends OpenApi {
9163
10606
  * @param request - CreateAnnualDocSummaryTaskRequest
9164
10607
  * @param headers - map
9165
10608
  * @param runtime - runtime options for this request RuntimeOptions
9166
- * @returns CreateAnnualDocSummaryTaskResponse
10609
+ * @returns CreateAnnualDocSummaryTaskResponse
10610
+ */
10611
+ async createAnnualDocSummaryTaskWithOptions(workspaceId: string, request: CreateAnnualDocSummaryTaskRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateAnnualDocSummaryTaskResponse> {
10612
+ Util.validateModel(request);
10613
+ let body : {[key: string ]: any} = { };
10614
+ if (!Util.isUnset(request.anaYears)) {
10615
+ body["anaYears"] = request.anaYears;
10616
+ }
10617
+
10618
+ if (!Util.isUnset(request.docInfos)) {
10619
+ body["docInfos"] = request.docInfos;
10620
+ }
10621
+
10622
+ if (!Util.isUnset(request.enableTable)) {
10623
+ body["enableTable"] = request.enableTable;
10624
+ }
10625
+
10626
+ if (!Util.isUnset(request.instruction)) {
10627
+ body["instruction"] = request.instruction;
10628
+ }
10629
+
10630
+ if (!Util.isUnset(request.modelId)) {
10631
+ body["modelId"] = request.modelId;
10632
+ }
10633
+
10634
+ let req = new $OpenApi.OpenApiRequest({
10635
+ headers: headers,
10636
+ body: OpenApiUtil.parseToMap(body),
10637
+ });
10638
+ let params = new $OpenApi.Params({
10639
+ action: "CreateAnnualDocSummaryTask",
10640
+ version: "2024-06-28",
10641
+ protocol: "HTTPS",
10642
+ pathname: `/${OpenApiUtil.getEncodeParam(workspaceId)}/api/task/summary/doc/annual`,
10643
+ method: "POST",
10644
+ authType: "AK",
10645
+ style: "ROA",
10646
+ reqBodyType: "json",
10647
+ bodyType: "json",
10648
+ });
10649
+ return $tea.cast<CreateAnnualDocSummaryTaskResponse>(await this.callApi(params, req, runtime), new CreateAnnualDocSummaryTaskResponse({}));
10650
+ }
10651
+
10652
+ /**
10653
+ * 创建按年文档总结任务
10654
+ *
10655
+ * @param request - CreateAnnualDocSummaryTaskRequest
10656
+ * @returns CreateAnnualDocSummaryTaskResponse
10657
+ */
10658
+ async createAnnualDocSummaryTask(workspaceId: string, request: CreateAnnualDocSummaryTaskRequest): Promise<CreateAnnualDocSummaryTaskResponse> {
10659
+ let runtime = new $Util.RuntimeOptions({ });
10660
+ let headers : {[key: string ]: string} = { };
10661
+ return await this.createAnnualDocSummaryTaskWithOptions(workspaceId, request, headers, runtime);
10662
+ }
10663
+
10664
+ /**
10665
+ * 创建外呼会话
10666
+ *
10667
+ * @param request - CreateDialogRequest
10668
+ * @param headers - map
10669
+ * @param runtime - runtime options for this request RuntimeOptions
10670
+ * @returns CreateDialogResponse
9167
10671
  */
9168
- async createAnnualDocSummaryTaskWithOptions(workspaceId: string, request: CreateAnnualDocSummaryTaskRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateAnnualDocSummaryTaskResponse> {
10672
+ async createDialogWithOptions(workspaceId: string, request: CreateDialogRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateDialogResponse> {
9169
10673
  Util.validateModel(request);
9170
10674
  let body : {[key: string ]: any} = { };
9171
- if (!Util.isUnset(request.anaYears)) {
9172
- body["anaYears"] = request.anaYears;
10675
+ if (!Util.isUnset(request.channel)) {
10676
+ body["channel"] = request.channel;
9173
10677
  }
9174
10678
 
9175
- if (!Util.isUnset(request.docInfos)) {
9176
- body["docInfos"] = request.docInfos;
10679
+ if (!Util.isUnset(request.enableLibrary)) {
10680
+ body["enableLibrary"] = request.enableLibrary;
9177
10681
  }
9178
10682
 
9179
- if (!Util.isUnset(request.enableTable)) {
9180
- body["enableTable"] = request.enableTable;
10683
+ if (!Util.isUnset(request.metaData)) {
10684
+ body["metaData"] = request.metaData;
9181
10685
  }
9182
10686
 
9183
- if (!Util.isUnset(request.instruction)) {
9184
- body["instruction"] = request.instruction;
10687
+ if (!Util.isUnset(request.playCode)) {
10688
+ body["playCode"] = request.playCode;
9185
10689
  }
9186
10690
 
9187
- if (!Util.isUnset(request.modelId)) {
9188
- body["modelId"] = request.modelId;
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;
9189
10701
  }
9190
10702
 
9191
10703
  let req = new $OpenApi.OpenApiRequest({
@@ -9193,29 +10705,29 @@ export default class Client extends OpenApi {
9193
10705
  body: OpenApiUtil.parseToMap(body),
9194
10706
  });
9195
10707
  let params = new $OpenApi.Params({
9196
- action: "CreateAnnualDocSummaryTask",
10708
+ action: "CreateDialog",
9197
10709
  version: "2024-06-28",
9198
10710
  protocol: "HTTPS",
9199
- pathname: `/${OpenApiUtil.getEncodeParam(workspaceId)}/api/task/summary/doc/annual`,
10711
+ pathname: `/${OpenApiUtil.getEncodeParam(workspaceId)}/api/virtualHuman/dialog/create`,
9200
10712
  method: "POST",
9201
10713
  authType: "AK",
9202
10714
  style: "ROA",
9203
10715
  reqBodyType: "json",
9204
10716
  bodyType: "json",
9205
10717
  });
9206
- return $tea.cast<CreateAnnualDocSummaryTaskResponse>(await this.callApi(params, req, runtime), new CreateAnnualDocSummaryTaskResponse({}));
10718
+ return $tea.cast<CreateDialogResponse>(await this.callApi(params, req, runtime), new CreateDialogResponse({}));
9207
10719
  }
9208
10720
 
9209
10721
  /**
9210
- * 创建按年文档总结任务
10722
+ * 创建外呼会话
9211
10723
  *
9212
- * @param request - CreateAnnualDocSummaryTaskRequest
9213
- * @returns CreateAnnualDocSummaryTaskResponse
10724
+ * @param request - CreateDialogRequest
10725
+ * @returns CreateDialogResponse
9214
10726
  */
9215
- async createAnnualDocSummaryTask(workspaceId: string, request: CreateAnnualDocSummaryTaskRequest): Promise<CreateAnnualDocSummaryTaskResponse> {
10727
+ async createDialog(workspaceId: string, request: CreateDialogRequest): Promise<CreateDialogResponse> {
9216
10728
  let runtime = new $Util.RuntimeOptions({ });
9217
10729
  let headers : {[key: string ]: string} = { };
9218
- return await this.createAnnualDocSummaryTaskWithOptions(workspaceId, request, headers, runtime);
10730
+ return await this.createDialogWithOptions(workspaceId, request, headers, runtime);
9219
10731
  }
9220
10732
 
9221
10733
  /**
@@ -9723,6 +11235,59 @@ export default class Client extends OpenApi {
9723
11235
  return await this.evictTaskWithOptions(workspaceId, request, headers, runtime);
9724
11236
  }
9725
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),
11264
+ });
11265
+ let params = new $OpenApi.Params({
11266
+ action: "GenDocQaResult",
11267
+ version: "2024-06-28",
11268
+ protocol: "HTTPS",
11269
+ pathname: `/${OpenApiUtil.getEncodeParam(workspaceId)}/api/virtualHuman/qa/parse`,
11270
+ method: "POST",
11271
+ authType: "AK",
11272
+ style: "ROA",
11273
+ reqBodyType: "json",
11274
+ bodyType: "json",
11275
+ });
11276
+ return $tea.cast<GenDocQaResultResponse>(await this.callApi(params, req, runtime), new GenDocQaResultResponse({}));
11277
+ }
11278
+
11279
+ /**
11280
+ * 根据文档解析问答QA
11281
+ *
11282
+ * @param request - GenDocQaResultRequest
11283
+ * @returns GenDocQaResultResponse
11284
+ */
11285
+ async genDocQaResult(workspaceId: string, request: GenDocQaResultRequest): Promise<GenDocQaResultResponse> {
11286
+ let runtime = new $Util.RuntimeOptions({ });
11287
+ let headers : {[key: string ]: string} = { };
11288
+ return await this.genDocQaResultWithOptions(workspaceId, request, headers, runtime);
11289
+ }
11290
+
9726
11291
  /**
9727
11292
  * 获取app配置
9728
11293
  *
@@ -9758,6 +11323,55 @@ export default class Client extends OpenApi {
9758
11323
  return await this.getAppConfigWithOptions(workspaceId, headers, runtime);
9759
11324
  }
9760
11325
 
11326
+ /**
11327
+ * 获取问答结果
11328
+ *
11329
+ * @param request - GetChatQuestionRespRequest
11330
+ * @param headers - map
11331
+ * @param runtime - runtime options for this request RuntimeOptions
11332
+ * @returns GetChatQuestionRespResponse
11333
+ */
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
+
11345
+ let req = new $OpenApi.OpenApiRequest({
11346
+ headers: headers,
11347
+ body: OpenApiUtil.parseToMap(body),
11348
+ });
11349
+ let params = new $OpenApi.Params({
11350
+ action: "GetChatQuestionResp",
11351
+ version: "2024-06-28",
11352
+ protocol: "HTTPS",
11353
+ pathname: `/${OpenApiUtil.getEncodeParam(workspaceId)}/api/virtualHuman/chat/query`,
11354
+ method: "POST",
11355
+ authType: "AK",
11356
+ style: "ROA",
11357
+ reqBodyType: "json",
11358
+ bodyType: "json",
11359
+ });
11360
+ return $tea.cast<GetChatQuestionRespResponse>(await this.callApi(params, req, runtime), new GetChatQuestionRespResponse({}));
11361
+ }
11362
+
11363
+ /**
11364
+ * 获取问答结果
11365
+ *
11366
+ * @param request - GetChatQuestionRespRequest
11367
+ * @returns GetChatQuestionRespResponse
11368
+ */
11369
+ async getChatQuestionResp(workspaceId: string, request: GetChatQuestionRespRequest): Promise<GetChatQuestionRespResponse> {
11370
+ let runtime = new $Util.RuntimeOptions({ });
11371
+ let headers : {[key: string ]: string} = { };
11372
+ return await this.getChatQuestionRespWithOptions(workspaceId, request, headers, runtime);
11373
+ }
11374
+
9761
11375
  /**
9762
11376
  * 获取文档的chunk列表
9763
11377
  *
@@ -10529,6 +12143,79 @@ export default class Client extends OpenApi {
10529
12143
  return await this.reIndexWithOptions(workspaceId, request, headers, runtime);
10530
12144
  }
10531
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
+
10532
12219
  /**
10533
12220
  * 重建任务
10534
12221
  *
@@ -10886,6 +12573,71 @@ export default class Client extends OpenApi {
10886
12573
  return await this.runLibraryChatGenerationWithOptions(workspaceId, request, headers, runtime);
10887
12574
  }
10888
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
+
10889
12641
  /**
10890
12642
  * 更新文档
10891
12643
  *
@@ -11000,6 +12752,59 @@ export default class Client extends OpenApi {
11000
12752
  return await this.updateLibraryWithOptions(workspaceId, request, headers, runtime);
11001
12753
  }
11002
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
+
11003
12808
  /**
11004
12809
  * 上传文档到文档库
11005
12810
  *