summaryrefslogtreecommitdiff
path: root/data/en_us/contactcenterai/2024-06-03/api-docs.php
blob: dcb3136fdc7a383497d2ddcccf11c44b538f8310 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
<?php return [
    'version' => '1.0',
    'info' => ['style' => 'ROA', 'product' => 'ContactCenterAI', 'version' => '2024-06-03'],
    'directories' => [
        'RunCompletion',
        'RunCompletionMessage',
        'AnalyzeConversation',
        'GetTaskResult',
        'AnalyzeImage',
        'GeneralAnalyzeImage',
        [
            'children' => ['CreateVocab', 'UpdateVocab', 'ListVocab', 'DeleteVocab', 'GetVocab'],
            'type' => 'directory',
            'title' => 'Hot word management',
        ],
        [
            'children' => ['AnalyzeAudioSync'],
            'type' => 'directory',
            'title' => 'Not recommended or open via whitelist',
        ],
        [
            'children' => ['CreateTask'],
            'title' => 'Others',
            'type' => 'directory',
        ],
    ],
    'components' => [
        'schemas' => [],
    ],
    'apis' => [
        'AnalyzeAudioSync' => [
            'summary' => 'Analyzes conversations in audio files in real time. Applications send HTTPS requests to retrieve responses.',
            'path' => '/{workspaceId}/ccai/app/{appId}/analyzeAudioSync',
            'methods' => ['post'],
            'schemes' => ['https', 'sse'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json', 'application/octet-stream'],
            'operationType' => 'read',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'workspaceId',
                    'in' => 'path',
                    'schema' => ['description' => 'The workspace ID.', 'type' => 'string', 'required' => true, 'example' => 'llm-ik******RVYCKzt'."\n", 'title' => ''],
                ],
                [
                    'name' => 'appId',
                    'in' => 'path',
                    'schema' => ['description' => 'The application ID.', 'type' => 'string', 'required' => true, 'example' => 'a070a49c681f4a95a0f0*********35c', 'title' => ''],
                ],
                [
                    'name' => 'body',
                    'in' => 'body',
                    'style' => 'json',
                    'schema' => [
                        'description' => 'The request body.',
                        'type' => 'object',
                        'properties' => [
                            'modelCode' => ['description' => 'The model code.', 'type' => 'string', 'required' => false, 'example' => 'tyxmTurbo', 'title' => ''],
                            'fields' => [
                                'description' => 'The structure of the fields.',
                                'type' => 'array',
                                'items' => [
                                    'description' => 'The structure of the fields.',
                                    'type' => 'object',
                                    'properties' => [
                                        'code' => ['description' => 'The field code.', 'type' => 'string', 'required' => false, 'example' => 'phoneNumber'."\n", 'title' => ''],
                                        'name' => ['description' => 'The field name.', 'type' => 'string', 'required' => false, 'example' => '来电原因类型'."\n", 'title' => ''],
                                        'desc' => ['description' => 'The field description.', 'type' => 'string', 'required' => false, 'example' => '用户来电咨询的原因分类,主要有投诉、咨询、政策建议等。'."\n", 'title' => ''],
                                        'enumValues' => [
                                            'description' => 'The list of enumeration values.',
                                            'type' => 'array',
                                            'items' => [
                                                'description' => 'The list of enumeration values.',
                                                'type' => 'object',
                                                'properties' => [
                                                    'desc' => ['description' => 'The description of the enumeration value.', 'type' => 'string', 'required' => false, 'example' => '客户有新的需求/新的场景,客服跟进沟通需求细节'."\n", 'title' => ''],
                                                    'enumValue' => ['description' => 'The enumeration value.', 'type' => 'string', 'required' => false, 'example' => '新业务拓展'."\n", 'title' => ''],
                                                ],
                                                'required' => false,
                                                'title' => '',
                                                'example' => '',
                                            ],
                                            'required' => false,
                                            'title' => '',
                                            'example' => '',
                                        ],
                                    ],
                                    'required' => false,
                                    'title' => '',
                                    'example' => '',
                                ],
                                'required' => false,
                                'title' => '',
                                'example' => '',
                            ],
                            'resultTypes' => [
                                'description' => 'The task types.',
                                'type' => 'array',
                                'items' => ['description' => 'summary: conversation summary. title: title generation. fields: field information extraction. keywords: keyword extraction. service\\_inspection: service quality inspection. question\\_solution: problem and solution extraction. questions\\_and\\_answer: question and answer (QA) extraction. custom\\_prompt: custom instruction.', 'type' => 'string', 'required' => true, 'example' => 'summary', 'title' => ''],
                                'required' => false,
                                'title' => '',
                                'example' => '',
                            ],
                            'serviceInspection' => [
                                'description' => 'The structure for service quality inspection.',
                                'type' => 'object',
                                'properties' => [
                                    'inspectionContents' => [
                                        'description' => 'The list of inspection items.',
                                        'type' => 'array',
                                        'items' => [
                                            'description' => 'The structure of an inspection item.',
                                            'type' => 'object',
                                            'properties' => [
                                                'content' => ['description' => 'The description of the inspection item.', 'type' => 'string', 'required' => false, 'example' => '客服在服务客户过程中,基于已有的服务标准是否存在过度承诺的行为,如:最快到货时间是12小时,无法给客户承诺更快的到货时间。', 'title' => ''],
                                                'title' => ['description' => 'The inspection name.', 'type' => 'string', 'required' => false, 'example' => '客服是否过度承诺'."\n", 'title' => ''],
                                            ],
                                            'required' => false,
                                            'title' => '',
                                            'example' => '',
                                        ],
                                        'required' => false,
                                        'title' => '',
                                        'example' => '',
                                    ],
                                    'inspectionIntroduction' => ['description' => 'A detailed introduction and description of the service quality inspection scenario.', 'type' => 'string', 'required' => false, 'example' => '请检测客服是否存在服务不当的行为,包括:过度承诺、故意套取客户隐私信息等', 'title' => ''],
                                    'sceneIntroduction' => ['description' => 'The service quality inspection scenario.', 'type' => 'string', 'required' => false, 'example' => '保险销售场景'."\n", 'title' => ''],
                                ],
                                'required' => false,
                                'title' => '',
                                'example' => '',
                            ],
                            'templateIds' => [
                                'description' => 'The template IDs.',
                                'type' => 'array',
                                'items' => ['description' => 'The template ID. If both a template ID and an instruction task type are specified, the template ID takes precedence.', 'type' => 'string', 'required' => false, 'example' => '34', 'title' => ''],
                                'required' => false,
                                'title' => '',
                                'example' => '',
                            ],
                            'categoryTags' => [
                                'description' => 'The list of tag categorizations.',
                                'type' => 'array',
                                'items' => [
                                    'description' => 'The list of tag categorizations.',
                                    'type' => 'object',
                                    'properties' => [
                                        'tagName' => ['description' => 'The tag name.', 'type' => 'string', 'required' => false, 'example' => '客服过度承诺', 'title' => ''],
                                        'tagDesc' => ['description' => 'The tag description.', 'type' => 'string', 'required' => false, 'example' => '客服在服务客户过程中,基于已有的服务标准是否存在过度承诺的行为', 'title' => ''],
                                    ],
                                    'required' => false,
                                    'title' => '',
                                    'example' => '',
                                ],
                                'required' => false,
                                'title' => '',
                                'example' => '',
                            ],
                            'customPrompt' => ['description' => 'The custom instruction.', 'type' => 'string', 'required' => false, 'example' => '对通话内容进行总结', 'title' => ''],
                            'transcription' => [
                                'description' => 'The runtime parameters for audio.',
                                'type' => 'object',
                                'properties' => [
                                    'autoSplit' => ['description' => 'This parameter is typically used for single-channel recordings. Valid values are 0 and 1. A value of 1 indicates that automatic channel splitting is enabled. A value of 0 indicates that automatic channel splitting is disabled. Default value: 1. Setting this parameter to 1 treats the uploaded audio as a single-channel recording. Automatic channel splitting requires additional processing time. For dual-channel recordings, set this parameter to 0.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
                                    'clientChannel' => ['description' => 'This parameter is used for dual-channel recordings. It specifies the channel number for the customer role. Valid values are 0 and 1. Default value: 1, which means channel 1 is the customer. Audio channels are typically numbered starting from 0, so two channels are 0 and 1. Confirm whether channel 0 is the agent or the customer. If using this parameter, also set the autoSplit parameter to 0. This parameter is ignored for single-channel files.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
                                    'serviceChannel' => ['description' => 'This parameter is used for dual-channel recordings. It specifies the channel number for the agent role. Valid values are 0 and 1. Default value: 0, which means channel 0 is the agent. Audio channels are typically numbered starting from 0, so two channels are 0 and 1. Confirm whether channel 0 is the agent or the customer. If using this parameter, also set the autoSplit parameter to 0. This parameter is ignored for single-channel files.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
                                    'fileName' => ['description' => 'The file name.', 'type' => 'string', 'required' => true, 'example' => 'sss.mp3', 'title' => ''],
                                    'voiceFileUrl' => ['description' => 'The URL of the file.', 'type' => 'string', 'required' => true, 'example' => 'http://1111.com/sss.mp3', 'title' => ''],
                                    'serviceChannelKeywords' => [
                                        'description' => 'The list of keywords for the agent channel.',
                                        'type' => 'array',
                                        'items' => ['description' => 'This parameter is typically used for single-channel recordings. Set a list of keywords that the agent is likely to say. Make sure to choose highly distinctive keywords. The system analyzes the transcript sentence by sentence. When a sentence contains a specified keyword, the speaker of that sentence is identified as the agent, and the other speaker is identified as the customer.', 'type' => 'string', 'required' => false, 'example' => '你好', 'title' => ''],
                                        'required' => false,
                                        'title' => '',
                                        'example' => '',
                                    ],
                                    'asrModelCode' => ['description' => 'The speech-to-text model. Valid values: nls (small model) and paraformer (large model).', 'type' => 'string', 'required' => false, 'example' => 'nls', 'title' => ''],
                                    'vocabularyId' => ['description' => 'The ID of the hotword vocabulary.', 'type' => 'string', 'required' => false, 'example' => 'esnvknv*****skdnvjksd', 'title' => ''],
                                    'level' => ['description' => 'The priority of the speech-to-text task.', 'type' => 'string', 'required' => false, 'example' => 'low', 'title' => ''],
                                ],
                                'required' => false,
                                'title' => '',
                                'example' => '',
                            ],
                            'variables' => [
                                'description' => 'The list of variables.',
                                'type' => 'array',
                                'items' => [
                                    'description' => 'The list of variables.',
                                    'type' => 'object',
                                    'properties' => [
                                        'variableCode' => ['description' => 'The variable code.', 'type' => 'string', 'required' => false, 'example' => 'name', 'title' => ''],
                                        'variableValue' => ['description' => 'The variable value.', 'type' => 'string', 'required' => false, 'example' => '张三', 'title' => ''],
                                    ],
                                    'required' => false,
                                    'title' => '',
                                    'example' => '',
                                ],
                                'required' => false,
                                'title' => '',
                                'example' => '',
                            ],
                            'responseFormatType' => ['description' => 'The format of the output. Valid values: jsonObject (JSON structure) and text (raw string).', 'type' => 'string', 'required' => false, 'example' => 'jsonObject', 'title' => ''],
                            'stream' => ['description' => 'Specifies whether to return the result in a stream. Set to true for streaming output, or false for a complete response.', 'type' => 'boolean', 'required' => true, 'example' => 'false', 'title' => ''],
                        ],
                        'required' => false,
                        'title' => '',
                        'example' => '',
                    ],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => 'Schema of Response',
                        'description' => 'The schema of the response.',
                        'type' => 'object',
                        'properties' => [
                            'requestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => '968A8634-FA2C-5381-9B3E-*******F'],
                            'finishReason' => ['description' => 'This parameter applies to streamed output. It is null during content generation. When generation finishes, the value is stop if a stop token ends the process.', 'type' => 'string', 'example' => 'stop', 'title' => ''],
                            'success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'True', 'title' => ''],
                            'text' => ['description' => 'The result returned by the application.', 'type' => 'string', 'example' => '这段对话似乎是客服与客户之间关于一个服务或产品的讨论,但具体内容难以明确理解,因为对话中的言语比较零散和抽象。', 'title' => ''],
                            'inputTokens' => ['description' => 'The number of input tokens.', 'type' => 'string', 'example' => '1000', 'title' => ''],
                            'outputTokens' => ['description' => 'The number of output tokens.', 'type' => 'string', 'example' => '2000', 'title' => ''],
                            'totalTokens' => ['description' => 'The total number of tokens.', 'type' => 'string', 'example' => '3000', 'title' => ''],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'errorCodes' => [
                400 => [
                    ['errorCode' => 'CCAI.InvalidParam.NotExist', 'errorMessage' => 'The specified parameter %s is not valid.', 'description' => 'The request parameter does not exist.'],
                    ['errorCode' => 'CCAI.ParamInvalid.IllegalParamValue', 'errorMessage' => 'The parameter value of the request API is illegal %s.', 'description' => 'The parameter value of the request API is illegal.'],
                    ['errorCode' => 'CCAI.Throttling.Qpm', 'errorMessage' => 'Trigger QPM flow restriction. Please purchase higher QPM for paid API. If free API has special requirements, please contact us through DingTalk group (62730018475).', 'description' => 'Trigger QPM flow restriction. Please purchase higher QPM for paid API. If free API has special requirements, please contact us through DingTalk group (62730018475).'],
                    ['errorCode' => 'CCAI.Throttling.Qps', 'errorMessage' => 'Trigger current QPS limit, pay API please buy higher QPS, the free API if you have special requirements, please contact us through the DingTalk group (62730018475).', 'description' => 'Trigger current limit, pay API please buy higher QPS, free API if you have special requirements, please contact us through the DingTalk group (62730018475).'],
                ],
                403 => [
                    ['errorCode' => 'CCAI.IllegalPermission.NoAuth', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => 'The user is not authorized to operate the specified resource'],
                    ['errorCode' => 'CCAI.ParamNotfound.MissParam', 'errorMessage' => 'Parameter verification failed, The specified parameter %s is missing.', 'description' => 'Parameter validation failed. The specified parameter is missing.'],
                    ['errorCode' => 'CCAI.TenantPermission.NoAuth', 'errorMessage' => 'The current account does not have the permission to specify the business space. Please authorize the business space permission.', 'description' => 'The current account does not have the permission to specify the business space. Please authorize the business space permission.'],
                ],
                500 => [
                    ['errorCode' => 'CCAI.InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error, exception or failure.', 'description' => ''],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"requestId\\": \\"968A8634-FA2C-5381-9B3E-*******F\\",\\n  \\"finishReason\\": \\"stop\\",\\n  \\"success\\": true,\\n  \\"text\\": \\"这段对话似乎是客服与客户之间关于一个服务或产品的讨论,但具体内容难以明确理解,因为对话中的言语比较零散和抽象。\\",\\n  \\"inputTokens\\": \\"1000\\",\\n  \\"outputTokens\\": \\"2000\\",\\n  \\"totalTokens\\": \\"3000\\"\\n}","type":"json"}]',
            'title' => 'Real-time Analysis of Audio Files',
            'description' => 'Before using this API, review the billing methods and pricing for the Tongyi Xiaomi CCAI-Conversation Analysis AIO product.'."\n"
                ."\n"
                .'## Prerequisites'."\n"
                ."\n"
                .'- 1\\. Activate the Tongyi Xiaomi CCAI-Conversation Analysis AIO service.'."\n"
                ."\n"
                .'- 2\\. Create an application. In the Application Center, create a Tongyi Xiaomi CCAI-Conversation Analysis AIO application and obtain the APP-ID and WORKSPACE-ID. For more information, see [Obtain an APP-ID and a WORKSPACE-ID](https://help.aliyun.com/zh/model-studio/developer-reference/obtain-api-key-app-id-and-workspace-id?spm=openapi-amp.newDocPublishment.0.0.3491281fOQZK5f).'."\n"
                ."\n"
                .'## Notes'."\n"
                ."\n"
                .'- 1\\. Use offline tasks to analyze audio files longer than 3 minutes.'."\n"
                ."\n"
                .'- 2\\. Dual-channel audio files are supported. Specify the role for each channel.',
            'requestParamsDescription' => '## Examples'."\n"
                ."\n"
                .'```java'."\n"
                ."\n"
                .'import com.alibaba.fastjson.JSONObject;'."\n"
                .'import com.aliyun.contactcenterai20240603.Client;'."\n"
                .'import com.aliyun.contactcenterai20240603.models.AnalyzeAudioSyncRequest;'."\n"
                .'import com.aliyun.contactcenterai20240603.models.AnalyzeAudioSyncResponse;'."\n"
                ."\n"
                .'import com.aliyun.teaopenapi.models.Config;'."\n"
                ."\n"
                .'import java.util.ArrayList;'."\n"
                .'import java.util.List;'."\n"
                ."\n"
                .'public class CCAiTask {'."\n"
                ."\n"
                .'    public static void main(String[] args) throws Exception {'."\n"
                .'        String accessKeyId = "YOUR_ACCESS_KEY_ID";'."\n"
                .'        String accessKeySecret = "YOUR_ACCESS_KEY_SECRET";'."\n"
                .'        String workspaceId = "YOUR_WORKSPACEID";'."\n"
                .'        String appId = "YOUR_APPID";'."\n"
                ."\n"
                .'        Config config = new Config();'."\n"
                .'        config.setAccessKeyId(accessKeyId).setAccessKeySecret(accessKeySecret).setEndpoint("contactcenterai.cn-shanghai.aliyuncs.com")'."\n"
                .'                .setRegionId("cn-shanghai").setProtocol("HTTPS");'."\n"
                ."\n"
                .'        Client client = new Client(config);'."\n"
                ."\n"
                .'        AnalyzeAudioSyncRequest request = new AnalyzeAudioSyncRequest();'."\n"
                .'        request.setStream(false);'."\n"
                ."\n"
                .'        request.setModelCode("tyxmPlus");'."\n"
                ."\n"
                .'        List<String> typeList = new ArrayList<>();'."\n"
                .'        typeList.add("summary");'."\n"
                .'        request.setResultTypes(typeList);'."\n"
                ."\n"
                .'        AnalyzeAudioSyncRequest.AnalyzeAudioSyncRequestTranscription transcription = new AnalyzeAudioSyncRequest.AnalyzeAudioSyncRequestTranscription();'."\n"
                .'        transcription.setFileName("out**.wav");'."\n"
                .'        transcription.setVoiceFileUrl("https://age***.com/out**.wav");'."\n"
                .'        transcription.setServiceChannel(1);'."\n"
                .'        transcription.setClientChannel(0);'."\n"
                ."\n"
                .'        request.setTranscription(transcription);'."\n"
                ."\n"
                .'        AnalyzeAudioSyncResponse response = client.analyzeAudioSync(workspaceId, appId, request);'."\n"
                .'        System.out.println(JSONObject.toJSONString(response));'."\n"
                .'    }'."\n"
                .'    '."\n"
                .'}'."\n"
                .'```',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [
                    ['threshold' => '1', 'countWindow' => 1, 'regionId' => '*', 'api' => 'AnalyzeAudioSync'],
                ],
            ],
        ],
        'AnalyzeConversation' => [
            'summary' => 'Retrieves conversation analysis results including conversation summary, title generation, keywords, field information extraction, questions and solutions, service quality inspection, to-do items, satisfaction, emotion detection, QA extraction, user profiles, and tag categorization. The application invokes HTTP calls to complete customer responses.',
            'path' => '/{workspaceId}/ccai/app/{appId}/analyze_conversation',
            'methods' => ['post'],
            'schemes' => ['https', 'sse'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/octet-stream', 'application/json'],
            'operationType' => 'read',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'workspaceId',
                    'in' => 'path',
                    'schema' => ['description' => 'The workspace ID.', 'type' => 'string', 'required' => true, 'example' => 'llm-368******3ifum', 'title' => ''],
                ],
                [
                    'name' => 'appId',
                    'in' => 'path',
                    'schema' => ['description' => 'The application ID.', 'type' => 'string', 'required' => true, 'example' => 'a070a49c681f4a95a0f0*********35c', 'title' => ''],
                ],
                [
                    'name' => 'body',
                    'in' => 'body',
                    'style' => 'json',
                    'schema' => [
                        'description' => 'The request body.',
                        'type' => 'object',
                        'properties' => [
                            'categoryTags' => [
                                'description' => 'The tag categorization list.',
                                'type' => 'array',
                                'items' => [
                                    'type' => 'object',
                                    'properties' => [
                                        'tagDesc' => ['description' => 'The tag description.', 'type' => 'string', 'required' => false, 'example' => '客服在服务客户过程中,基于已有的服务标准是否存在过度承诺的行为', 'title' => ''],
                                        'tagName' => ['description' => 'The tag name.', 'type' => 'string', 'required' => false, 'example' => '客服过度承诺', 'title' => ''],
                                    ],
                                    'required' => false,
                                    'description' => '',
                                    'title' => '',
                                    'example' => '',
                                ],
                                'required' => false,
                                'title' => '',
                                'example' => '',
                            ],
                            'dialogue' => [
                                'description' => 'The list of dialogue content.',
                                'type' => 'object',
                                'properties' => [
                                    'sentences' => [
                                        'description' => 'The dialogue content.',
                                        'type' => 'array',
                                        'items' => [
                                            'type' => 'object',
                                            'properties' => [
                                                'role' => [
                                                    'description' => 'The conversation role. Valid values:'."\n"
                                                        ."\n"
                                                        .'- user: customer'."\n"
                                                        ."\n"
                                                        .'- agent: customer service representative'."\n"
                                                        ."\n"
                                                        .'- system: system message.',
                                                    'type' => 'string',
                                                    'required' => true,
                                                    'enum' => ['user', 'agent', 'system'],
                                                    'example' => 'user',
                                                    'title' => '',
                                                ],
                                                'text' => ['description' => 'The dialogue text.', 'type' => 'string', 'required' => true, 'example' => '请问怎么申请新卡'."\n", 'title' => ''],
                                            ],
                                            'required' => true,
                                            'description' => '',
                                            'title' => '',
                                            'example' => '',
                                        ],
                                        'required' => true,
                                        'title' => '',
                                        'example' => '',
                                    ],
                                    'sessionId' => ['description' => 'The customer service session ID.', 'type' => 'string', 'required' => false, 'example' => 'session-01', 'title' => ''],
                                ],
                                'required' => false,
                                'title' => '',
                                'example' => '',
                            ],
                            'examples' => [
                                'description' => 'The list of instruction examples.',
                                'type' => 'array',
                                'items' => [
                                    'description' => 'The instruction example.',
                                    'type' => 'object',
                                    'properties' => [
                                        'output' => ['description' => 'The output example.', 'type' => 'string', 'required' => true, 'example' => '问题描述:询问2.2更新时间,处理方案:已告知', 'title' => ''],
                                        'sentences' => [
                                            'description' => 'The list of dialogue content examples.',
                                            'type' => 'array',
                                            'items' => [
                                                'description' => 'The dialogue content example.',
                                                'type' => 'object',
                                                'properties' => [
                                                    'chatId' => ['description' => 'The ID of each conversation turn.', 'type' => 'string', 'required' => false, 'example' => 'chat-01', 'title' => ''],
                                                    'role' => [
                                                        'description' => 'The conversation role. Valid values:'."\n"
                                                            ."\n"
                                                            .'- user: customer'."\n"
                                                            ."\n"
                                                            .'- agent: customer service representative'."\n"
                                                            ."\n"
                                                            .'- system: system message.',
                                                        'type' => 'string',
                                                        'required' => true,
                                                        'enum' => ['user', 'agent', 'system'],
                                                        'example' => 'user',
                                                        'title' => '',
                                                    ],
                                                    'text' => ['description' => 'The dialogue text.', 'type' => 'string', 'required' => true, 'example' => '什么时候更新', 'title' => ''],
                                                ],
                                                'required' => true,
                                                'title' => '',
                                                'example' => '',
                                            ],
                                            'required' => true,
                                            'title' => '',
                                            'example' => '',
                                        ],
                                    ],
                                    'required' => true,
                                    'title' => '',
                                    'example' => '',
                                ],
                                'required' => false,
                                'title' => '',
                                'example' => '',
                            ],
                            'fields' => [
                                'description' => 'The list of fields to extract during information extraction.',
                                'type' => 'array',
                                'items' => [
                                    'description' => 'The field structure information.',
                                    'type' => 'object',
                                    'properties' => [
                                        'code' => ['description' => 'The field code.', 'type' => 'string', 'required' => false, 'example' => 'phoneNumber'."\n", 'title' => ''],
                                        'desc' => ['description' => 'The field description.', 'type' => 'string', 'required' => true, 'example' => '用户来电咨询的原因分类,主要有投诉、咨询、政策建议等。'."\n", 'title' => ''],
                                        'enumValues' => [
                                            'description' => 'The list of enumeration values.',
                                            'type' => 'array',
                                            'items' => [
                                                'type' => 'object',
                                                'properties' => [
                                                    'desc' => ['description' => 'The enumeration description.', 'type' => 'string', 'required' => true, 'example' => '客户有新的需求/新的场景,客服跟进沟通需求细节'."\n", 'title' => ''],
                                                    'enumValue' => ['description' => 'The enumeration value.', 'type' => 'string', 'required' => true, 'example' => '新业务拓展'."\n", 'title' => ''],
                                                ],
                                                'required' => true,
                                                'description' => '',
                                                'title' => '',
                                                'example' => '',
                                            ],
                                            'required' => false,
                                            'title' => '',
                                            'example' => '',
                                        ],
                                        'name' => ['description' => 'The field name.', 'type' => 'string', 'required' => true, 'example' => '来电原因类型'."\n", 'title' => ''],
                                    ],
                                    'required' => true,
                                    'title' => '',
                                    'example' => '',
                                ],
                                'required' => false,
                                'title' => '',
                                'example' => '',
                            ],
                            'modelCode' => [
                                'description' => 'The model code.',
                                'type' => 'string',
                                'example' => 'tyxmTurbo',
                                'default' => 'tyxmTurbo',
                                'enum' => ['tyxmTurbo', 'tyxmPlus'],
                                'required' => false,
                                'title' => '',
                            ],
                            'resultTypes' => [
                                'description' => 'The instruction task types.',
                                'type' => 'array',
                                'items' => [
                                    'description' => 'Valid values: summary (conversation summary), title (title generation), fields (field information extraction), keywords (keyword extraction), service_inspection (service quality inspection), question_solution (questions and solutions), actions (to-do items), satisfaction (satisfaction), emotion_detection (emotion detection), questions_and_answer (QA extraction), user_profile (user profile), category_tag (tag categorization), custom_prompt (custom instruction).',
                                    'type' => 'string',
                                    'required' => true,
                                    'enum' => ['summary', 'title', 'fields', 'keywords', 'service_inspection', 'question_solution', 'questions_and_answer', 'user_profile', 'category_tag', 'emotion_detection', 'satisfaction', 'actions', 'service_finish', 'label_classification', 'analysis_image', 'custom_prompt', 'dianxiao_summary'],
                                    'example' => 'summary',
                                    'title' => '',
                                ],
                                'required' => true,
                                'title' => '',
                                'example' => '',
                            ],
                            'sceneName' => ['description' => 'The scenario name.', 'type' => 'string', 'required' => false, 'example' => '阿里云工单质检场景'."\n", 'title' => ''],
                            'serviceInspection' => [
                                'description' => 'The service quality inspection structure information.',
                                'type' => 'object',
                                'properties' => [
                                    'inspectionContents' => [
                                        'description' => 'The list of service quality inspection dimension structures.',
                                        'type' => 'array',
                                        'items' => [
                                            'description' => 'The service quality inspection dimension structure.',
                                            'type' => 'object',
                                            'properties' => [
                                                'content' => ['description' => 'The description of the service quality inspection dimension.', 'type' => 'string', 'required' => true, 'example' => '客服在服务客户过程中,基于已有的服务标准是否存在过度承诺的行为,如:最快到货时间是12小时,无法给客户承诺更快的到货时间。', 'title' => ''],
                                                'title' => ['description' => 'The name of the service quality inspection dimension.', 'type' => 'string', 'required' => true, 'example' => '客服是否过度承诺'."\n", 'title' => ''],
                                            ],
                                            'required' => true,
                                            'title' => '',
                                            'example' => '',
                                        ],
                                        'required' => true,
                                        'title' => '',
                                        'example' => '',
                                    ],
                                    'inspectionIntroduction' => ['description' => 'The detailed introduction and description of the service quality inspection scenario.', 'type' => 'string', 'required' => true, 'example' => '请检测客服是否存在服务不当的行为,包括:过度承诺、故意套取客户隐私信息等', 'title' => ''],
                                    'sceneIntroduction' => ['description' => 'The service quality inspection scenario.', 'type' => 'string', 'required' => true, 'example' => '保险销售场景'."\n", 'title' => ''],
                                ],
                                'required' => false,
                                'title' => '',
                                'example' => '',
                            ],
                            'stream' => ['description' => 'Required. Specifies whether to use streaming output. Valid values: true (returns the answer in streaming mode) and false (returns the complete answer at once).', 'type' => 'boolean', 'required' => true, 'example' => 'false', 'title' => ''],
                            'userProfiles' => [
                                'description' => 'The list of user profiles.',
                                'type' => 'array',
                                'items' => [
                                    'type' => 'object',
                                    'properties' => [
                                        'name' => ['description' => 'The name.', 'type' => 'string', 'required' => false, 'example' => 'sex', 'title' => ''],
                                        'value' => ['description' => 'The description.', 'type' => 'string', 'required' => false, 'example' => '表示客户的性别,从列表[“男”, “女”]中选择一个值', 'title' => ''],
                                    ],
                                    'required' => false,
                                    'description' => '',
                                    'title' => '',
                                    'example' => '',
                                ],
                                'required' => false,
                                'title' => '',
                                'example' => '',
                            ],
                            'timeConstraintList' => [
                                'description' => 'The time constraints that specify the time ranges the model should focus on or be limited to during analysis.',
                                'type' => 'array',
                                'items' => ['description' => 'The time information.', 'type' => 'string', 'required' => false, 'example' => '2026年1月', 'title' => ''],
                                'required' => false,
                                'title' => '',
                                'example' => '',
                            ],
                            'sourceCallerUid' => ['description' => 'Not required.', 'type' => 'string', 'required' => false, 'example' => 'null', 'title' => ''],
                            'customPrompt' => ['description' => 'The custom instruction. The instruction must contain ${dialogue}.', 'type' => 'string', 'required' => false, 'example' => '对通话内容进行总结${dialogue}', 'title' => ''],
                            'responseFormatType' => ['description' => 'The output result format type. Valid values: jsonObject (JSON structure) and text (raw string).', 'type' => 'string', 'required' => false, 'example' => 'jsonObject', 'title' => ''],
                        ],
                        'required' => false,
                        'title' => '',
                        'example' => '',
                    ],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => '',
                        'description' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'errorCode' => ['description' => 'The error code.', 'type' => 'string', 'example' => 'success', 'title' => ''],
                            'errorInfo' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'success', 'title' => ''],
                            'finishReason' => ['description' => 'For streaming output, this value is null during generation and is set to stop when generation ends due to a stop token.', 'type' => 'string', 'example' => 'stop', 'title' => ''],
                            'requestId' => ['title' => '', 'description' => 'The unique ID generated by the system to identify this request.', 'type' => 'string', 'example' => '968A8634-FA2C-5381-9B3E-C552DED7E8BF'],
                            'success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'True', 'title' => ''],
                            'text' => ['description' => 'The result returned by the application.', 'type' => 'string', 'example' => '这段对话似乎是客服与客户之间关于一个服务或产品的讨论,但具体内容难以明确理解,因为对话中的言语比较零散和抽象。', 'title' => ''],
                            'inputTokens' => ['description' => 'The number of input tokens.', 'type' => 'string', 'example' => '238', 'title' => ''],
                            'outputTokens' => ['description' => 'The number of output tokens.', 'type' => 'string', 'example' => '458', 'title' => ''],
                            'totalTokens' => ['description' => 'The total number of tokens.', 'type' => 'string', 'example' => '696', 'title' => ''],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'errorCodes' => [
                400 => [
                    ['errorCode' => 'CCAI.Throttling.Qps', 'errorMessage' => 'Trigger current QPS limit, pay API please buy higher QPS, the free API if you have special requirements, please contact us through the DingTalk group (62730018475).', 'description' => 'Trigger current limit, pay API please buy higher QPS, free API if you have special requirements, please contact us through the DingTalk group (62730018475).'],
                    ['errorCode' => 'CCAI.Throttling.Qpm', 'errorMessage' => 'Trigger QPM flow restriction. Please purchase higher QPM for paid API. If free API has special requirements, please contact us through DingTalk group (62730018475).', 'description' => 'Trigger QPM flow restriction. Please purchase higher QPM for paid API. If free API has special requirements, please contact us through DingTalk group (62730018475).'],
                    ['errorCode' => 'CCAI.InvalidParam.NotExist', 'errorMessage' => 'The specified parameter %s is not valid.', 'description' => 'The request parameter does not exist.'],
                    ['errorCode' => 'CCAI.ParamInvalid.IllegalParamValue', 'errorMessage' => 'The parameter value of the request API is illegal %s.', 'description' => 'The parameter value of the request API is illegal.'],
                ],
                403 => [
                    ['errorCode' => 'CCAI.TenantPermission.NoAuth', 'errorMessage' => 'The current account does not have the permission to specify the business space. Please authorize the business space permission.', 'description' => 'The current account does not have the permission to specify the business space. Please authorize the business space permission.'],
                    ['errorCode' => 'CCAI.ParamNotfound.MissParam', 'errorMessage' => 'Parameter verification failed, The specified parameter %s is missing.', 'description' => 'Parameter validation failed. The specified parameter is missing.'],
                    ['errorCode' => 'CCAI.IllegalPermission.NoAuth', 'errorMessage' => 'User not authorized to operate on the specified resource %s .', 'description' => 'The user is not authorized to operate the specified resource'],
                ],
                500 => [
                    ['errorCode' => 'CCAI.InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error, exception or failure.', 'description' => ''],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"errorCode\\": \\"success\\",\\n  \\"errorInfo\\": \\"success\\",\\n  \\"finishReason\\": \\"stop\\",\\n  \\"requestId\\": \\"968A8634-FA2C-5381-9B3E-C552DED7E8BF\\",\\n  \\"success\\": true,\\n  \\"text\\": \\"这段对话似乎是客服与客户之间关于一个服务或产品的讨论,但具体内容难以明确理解,因为对话中的言语比较零散和抽象。\\",\\n  \\"inputTokens\\": \\"238\\",\\n  \\"outputTokens\\": \\"458\\",\\n  \\"totalTokens\\": \\"696\\"\\n}","type":"json"}]',
            'title' => 'Call tongyi xiaomi CCAI conversation analysis AIO application by task type',
            'description' => 'Before using this operation, make sure that you fully understand the billing methods and pricing of the Tongyi Xiaomi CCAI Conversation Analysis AIO product.'."\n"
                ."\n"
                .'Before you begin'."\n"
                ."\n"
                .'1. Activate the Tongyi Xiaomi CCAI Conversation Analysis AIO service.'."\n"
                .'2. Create an application: Create a Tongyi Xiaomi CCAI Conversation Analysis AIO application in the Application Center and obtain the APP-ID and WORKSPACE-ID. For more information, see [Get APP-ID and WORKSPACE-ID](https://www.alibabacloud.com/help/en/model-studio/developer-reference/get-app-id-and-workspace).',
            'changeSet' => [
                ['createdAt' => '2025-04-16T02:21:39.000Z', 'description' => 'Request parameters changed'],
                ['createdAt' => '2025-03-05T01:49:58.000Z', 'description' => 'Request parameters changed'],
                ['createdAt' => '2024-12-20T02:54:56.000Z', 'description' => 'Request parameters changed'],
                ['createdAt' => '2024-12-05T02:01:27.000Z', 'description' => 'Error codes changed, Request parameters changed'],
                ['createdAt' => '2024-11-22T08:11:18.000Z', 'description' => 'Response parameters changed'],
                ['createdAt' => '2024-11-13T10:57:56.000Z', 'description' => 'Request parameters changed'],
                ['createdAt' => '2024-09-24T02:47:12.000Z', 'description' => 'Request parameters changed'],
                ['createdAt' => '2024-08-19T08:06:31.000Z', 'description' => 'Request parameters changed'],
            ],
            'flowControl' => [
                'flowControlList' => [
                    ['threshold' => '30', 'countWindow' => 2, 'regionId' => '*', 'api' => 'AnalyzeConversation'],
                ],
            ],
        ],
        'AnalyzeImage' => [
            'summary' => 'Use the Tongyi Xiaomi CCAI Conversation Analysis AIO application to analyze image content, including watermark detection. Call this API using HTTP to obtain responses for your customers.',
            'path' => '/{workspaceId}/ccai/app/{appId}/analyzeImage',
            'methods' => ['post'],
            'schemes' => ['https', 'sse'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json', 'application/octet-stream'],
            'operationType' => 'read',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'workspaceId',
                    'in' => 'path',
                    'schema' => ['description' => 'Workspace ID.', 'type' => 'string', 'required' => false, 'example' => 'llm-ik******RVYCKzt'."\n", 'title' => ''],
                ],
                [
                    'name' => 'appId',
                    'in' => 'path',
                    'schema' => ['description' => 'Application ID.', 'type' => 'string', 'required' => false, 'example' => 'a070a49c681f4a95a0f0*********35c', 'title' => ''],
                ],
                [
                    'name' => 'body',
                    'in' => 'body',
                    'style' => 'json',
                    'schema' => [
                        'description' => 'Request body.',
                        'type' => 'object',
                        'properties' => [
                            'stream' => ['description' => 'Required. Set to true to return results in streaming mode. Set to false to return the full result at once.', 'type' => 'boolean', 'required' => true, 'example' => 'false', 'title' => ''],
                            'imageUrls' => [
                                'description' => 'List of image URLs.',
                                'type' => 'array',
                                'items' => ['description' => 'A list of image URLs.', 'type' => 'string', 'required' => false, 'example' => 'https://img.123.com/1.jppg', 'title' => ''],
                                'required' => false,
                                'title' => '',
                                'example' => '',
                            ],
                            'resultTypes' => [
                                'description' => 'List of task types.',
                                'type' => 'array',
                                'items' => [
                                    'description' => 'watermark: Analyze watermarks in images.',
                                    'enumValueTitles' => ['watermark_analysis' => 'watermark_analysis'],
                                    'type' => 'string',
                                    'enum' => ['watermark'],
                                    'required' => false,
                                    'example' => 'watermark',
                                    'title' => '',
                                ],
                                'required' => false,
                                'title' => '',
                                'example' => '',
                            ],
                            'responseFormatType' => ['type' => 'string', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
                        ],
                        'required' => false,
                        'title' => '',
                        'example' => '',
                    ],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => 'Schema of Response',
                        'description' => 'Response schema.',
                        'type' => 'object',
                        'properties' => [
                            'requestId' => ['title' => 'Id of the request', 'description' => 'Request ID.', 'type' => 'string', 'example' => '9*****-AE0D-5EE3-B1AF-48632CB0831C'],
                            'success' => ['description' => 'Indicates whether the request succeeded.', 'type' => 'boolean', 'example' => 'True', 'title' => ''],
                            'text' => ['description' => 'Response from the application.', 'type' => 'string', 'example' => '[{\\"num\\":\\"1\\",\\"isHit\\":\\"false\\",\\"remarks\\":\\"无水印\\"}]', 'title' => ''],
                            'finishReason' => ['description' => 'If streaming is enabled, this field is null while the response is generating. When generation ends, this field is stop if the response ends because of a stop token.', 'type' => 'string', 'example' => 'stop', 'title' => ''],
                            'inputTokens' => ['description' => 'Number of input tokens.', 'type' => 'string', 'example' => '1000', 'title' => ''],
                            'outputTokens' => ['description' => 'Number of output tokens.', 'type' => 'string', 'example' => '2000', 'title' => ''],
                            'totalTokens' => ['description' => 'Total number of tokens.', 'type' => 'string', 'example' => '3000', 'title' => ''],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'errorCodes' => [
                400 => [
                    ['errorCode' => 'CCAI.InvalidParam.NotExist', 'errorMessage' => 'The specified parameter %s is not valid.', 'description' => 'The request parameter does not exist.'],
                    ['errorCode' => 'CCAI.ParamInvalid.IllegalParamValue', 'errorMessage' => 'The parameter value of the request API is illegal %s.', 'description' => 'The parameter value of the request API is illegal.'],
                    ['errorCode' => 'CCAI.Throttling.Qpm', 'errorMessage' => 'Trigger QPM flow restriction. Please purchase higher QPM for paid API. If free API has special requirements, please contact us through DingTalk group (62730018475).', 'description' => 'Trigger QPM flow restriction. Please purchase higher QPM for paid API. If free API has special requirements, please contact us through DingTalk group (62730018475).'],
                    ['errorCode' => 'CCAI.Throttling.Qps', 'errorMessage' => 'Trigger current QPS limit, pay API please buy higher QPS, the free API if you have special requirements, please contact us through the DingTalk group (62730018475).', 'description' => 'Trigger current limit, pay API please buy higher QPS, free API if you have special requirements, please contact us through the DingTalk group (62730018475).'],
                ],
                403 => [
                    ['errorCode' => 'CCAI.IllegalPermission.NoAuth', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => 'The user is not authorized to operate the specified resource'],
                    ['errorCode' => 'CCAI.ParamNotfound.MissParam', 'errorMessage' => 'Parameter verification failed, The specified parameter %s is missing.', 'description' => 'Parameter validation failed. The specified parameter is missing.'],
                    ['errorCode' => 'CCAI.TenantPermission.NoAuth', 'errorMessage' => 'The current account does not have the permission to specify the business space. Please authorize the business space permission.', 'description' => 'The current account does not have the permission to specify the business space. Please authorize the business space permission.'],
                ],
                500 => [
                    ['errorCode' => 'CCAI.InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error, exception or failure.', 'description' => ''],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"requestId\\": \\"9*****-AE0D-5EE3-B1AF-48632CB0831C\\",\\n  \\"success\\": true,\\n  \\"text\\": \\"[{\\\\\\\\\\\\\\"num\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"isHit\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"false\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"remarks\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"无水印\\\\\\\\\\\\\\"}]\\",\\n  \\"finishReason\\": \\"stop\\",\\n  \\"inputTokens\\": \\"1000\\",\\n  \\"outputTokens\\": \\"2000\\",\\n  \\"totalTokens\\": \\"3000\\"\\n}","type":"json"}]',
            'title' => 'Image Content Analysis',
            'description' => 'Before you use this API, review the pricing and billing model for the Tongyi Xiaomi CCAI Conversation Analysis AIO service.'."\n"
                ."\n"
                .'Prerequisites'."\n"
                ."\n"
                .'1. You can enable the Tongyi Xiaomi CCAI Conversation Analysis AIO service.'."\n"
                ."\n"
                .'2. You can create an application. In the Application Center, you can create a Tongyi Xiaomi CCAI Conversation Analysis AIO application and obtain your APP-ID and WORKSPACE-ID. For more information, see [Obtain APP-ID and WORKSPACE-ID](https://help.aliyun.com/zh/model-studio/developer-reference/obtain-api-key-app-id-and-workspace-id?spm=openapi-amp.newDocPublishment.0.0.2eb8281f6Dxglg).',
            'changeSet' => [
                ['createdAt' => '2025-04-16T02:21:39.000Z', 'description' => 'Request parameters changed'],
            ],
            'flowControl' => [
                'flowControlList' => [],
            ],
        ],
        'CreateTask' => [
            'summary' => 'You can perform conversation analysis by creating an offline asynchronous job. The application supports HTTP invocation to deliver the customer\'s response.'."\n",
            'path' => '/{workspaceId}/ccai/app/{appId}/createTask',
            'methods' => ['post'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'read',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'workspaceId',
                    'in' => 'path',
                    'schema' => ['description' => 'Workspace ID', 'type' => 'string', 'required' => false, 'example' => 'llm-ik******RVYCKzt'."\n", 'title' => ''],
                ],
                [
                    'name' => 'appId',
                    'in' => 'path',
                    'schema' => ['description' => 'Application ID', 'type' => 'string', 'required' => false, 'example' => 'a070a49c681f4a95a0f0*********35c', 'title' => ''],
                ],
                [
                    'name' => 'body',
                    'in' => 'body',
                    'style' => 'json',
                    'schema' => [
                        'description' => 'Request Body',
                        'type' => 'object',
                        'properties' => [
                            'dialogue' => [
                                'description' => 'List of Conversation Content  ',
                                'type' => 'object',
                                'properties' => [
                                    'sentences' => [
                                        'description' => 'Conversation Content  ',
                                        'type' => 'array',
                                        'items' => [
                                            'description' => 'Conversation Content  ',
                                            'type' => 'object',
                                            'properties' => [
                                                'role' => [
                                                    'description' => 'The role in the conversation:'."\n"
                                                        ."\n"
                                                        .'- user: Customer'."\n"
                                                        .'- agent: Customer service representative'."\n"
                                                        .'- system: System message',
                                                    'type' => 'string',
                                                    'required' => true,
                                                    'example' => 'user',
                                                    'enum' => ['agent', 'user', 'system'],
                                                    'title' => '',
                                                ],
                                                'text' => ['description' => 'Conversation text', 'type' => 'string', 'required' => true, 'example' => '请问怎么申请新卡'."\n", 'title' => ''],
                                            ],
                                            'required' => false,
                                            'title' => '',
                                            'example' => '',
                                        ],
                                        'required' => true,
                                        'title' => '',
                                        'example' => '',
                                    ],
                                    'sessionId' => ['description' => 'Session ID of the customer service session', 'type' => 'string', 'required' => false, 'example' => 'session-01', 'title' => ''],
                                ],
                                'required' => false,
                                'title' => '',
                                'example' => '',
                            ],
                            'examples' => [
                                'description' => 'Instruction Sample  ',
                                'type' => 'object',
                                'properties' => [
                                    'output' => ['description' => 'Outputs Sample  ', 'type' => 'string', 'required' => false, 'example' => '问题描述:询问2.2更新时间,处理方案:已告知', 'title' => ''],
                                    'sentences' => [
                                        'description' => 'Sample Content of Conversation  ',
                                        'type' => 'array',
                                        'items' => [
                                            'description' => 'Sample Content of Conversation  ',
                                            'type' => 'object',
                                            'properties' => [
                                                'role' => ['description' => 'Conversation Role  '."\n"
                                                    ."\n"
                                                    .'- user: Customer  '."\n"
                                                    .'- agent: Customer Service Agent  '."\n"
                                                    .'- system: System message  ', 'type' => 'string', 'required' => true, 'example' => 'user', 'title' => ''],
                                                'text' => ['description' => 'Conversation Text  ', 'type' => 'string', 'required' => true, 'example' => '什么时候更新', 'title' => ''],
                                            ],
                                            'required' => true,
                                            'title' => '',
                                            'example' => '',
                                        ],
                                        'required' => true,
                                        'docRequired' => false,
                                        'title' => '',
                                        'example' => '',
                                    ],
                                ],
                                'required' => false,
                                'title' => '',
                                'example' => '',
                            ],
                            'fields' => [
                                'description' => 'Field structure information  ',
                                'type' => 'array',
                                'items' => [
                                    'description' => 'Field structure information  ',
                                    'type' => 'object',
                                    'properties' => [
                                        'code' => ['description' => 'Field encoding  ', 'type' => 'string', 'required' => false, 'example' => 'phoneNumber'."\n", 'title' => ''],
                                        'desc' => ['description' => 'Field description  ', 'type' => 'string', 'required' => true, 'example' => '用户来电咨询的原因分类,主要有投诉、咨询、政策建议等。'."\n", 'title' => ''],
                                        'enumValues' => [
                                            'description' => 'List of enumeration values  ',
                                            'type' => 'array',
                                            'items' => [
                                                'description' => 'List of enumeration values  ',
                                                'type' => 'object',
                                                'properties' => [
                                                    'desc' => ['description' => 'Enumeration description  ', 'type' => 'string', 'required' => true, 'example' => '客户有新的需求/新的场景,客服跟进沟通需求细节'."\n", 'title' => ''],
                                                    'enumValue' => ['description' => 'Enumeration value  ', 'type' => 'string', 'required' => true, 'example' => '新业务拓展'."\n", 'title' => ''],
                                                ],
                                                'required' => true,
                                                'title' => '',
                                                'example' => '',
                                            ],
                                            'required' => false,
                                            'title' => '',
                                            'example' => '',
                                        ],
                                        'name' => ['description' => 'Field Name  ', 'type' => 'string', 'required' => true, 'example' => '来电原因类型'."\n", 'title' => ''],
                                    ],
                                    'required' => true,
                                    'title' => '',
                                    'example' => '',
                                ],
                                'required' => false,
                                'title' => '',
                                'example' => '',
                            ],
                            'modelCode' => [
                                'description' => 'Model code  ',
                                'type' => 'string',
                                'required' => true,
                                'example' => 'tyxmTurbo',
                                'enum' => ['tyxmTurbo', 'tyxmPlus'],
                                'title' => '',
                            ],
                            'resultTypes' => [
                                'description' => 'LLM processing types',
                                'type' => 'array',
                                'items' => [
                                    'description' => 'summary – conversation summary, title – title generation, fields – field information extraction, keywords – keyword extraction, service_inspection – service quality inspection, question_solution – problem and solutions, questions_and_answer – QA pair extraction, custom_prompt – custom instruction',
                                    'type' => 'string',
                                    'required' => true,
                                    'example' => 'summary',
                                    'enum' => ['summary', 'title', 'fields', 'keywords', 'service_inspection', 'question_solution', 'custom_prompt', 'category_tag', 'questions_and_answer', 'service_finish', 'actions', 'satisfaction', 'emotion_detection'],
                                    'title' => '',
                                ],
                                'required' => false,
                                'title' => '',
                                'example' => '',
                            ],
                            'serviceInspection' => [
                                'description' => 'Service quality inspection structure information',
                                'type' => 'object',
                                'properties' => [
                                    'inspectionContents' => [
                                        'description' => 'Service quality inspection dimension structure',
                                        'type' => 'array',
                                        'items' => [
                                            'description' => 'Service quality inspection dimension structure',
                                            'type' => 'object',
                                            'properties' => [
                                                'content' => ['description' => 'Description of the service quality inspection dimension  ', 'type' => 'string', 'required' => true, 'example' => '客服在服务客户过程中,基于已有的服务标准是否存在过度承诺的行为,如:最快到货时间是12小时,无法给客户承诺更快的到货时间。', 'title' => ''],
                                                'title' => ['description' => 'Name of the service quality inspection dimension  ', 'type' => 'string', 'required' => true, 'example' => '客服是否过度承诺'."\n", 'title' => ''],
                                            ],
                                            'required' => true,
                                            'title' => '',
                                            'example' => '',
                                        ],
                                        'required' => true,
                                        'title' => '',
                                        'example' => '',
                                    ],
                                    'inspectionIntroduction' => ['description' => 'Detailed description and explanation of the service quality inspection scenario', 'type' => 'string', 'required' => true, 'example' => '请检测客服是否存在服务不当的行为,包括:过度承诺、故意套取客户隐私信息等', 'title' => ''],
                                    'sceneIntroduction' => ['description' => 'Service quality inspection scenario', 'type' => 'string', 'required' => true, 'example' => '保险销售场景'."\n", 'title' => ''],
                                ],
                                'required' => false,
                                'title' => '',
                                'example' => '',
                            ],
                            'taskType' => [
                                'description' => 'Task Type: audio - audio file, text - text  ',
                                'type' => 'string',
                                'required' => true,
                                'example' => 'text',
                                'enum' => ['audio', 'text'],
                                'title' => '',
                            ],
                            'templateIds' => [
                                'description' => 'List of template IDs',
                                'type' => 'array',
                                'items' => ['description' => 'Template ID. When both a template ID and a Job Type are provided, the template ID takes precedence.', 'type' => 'string', 'required' => true, 'example' => '34', 'title' => ''],
                                'required' => false,
                                'title' => '',
                                'example' => '',
                            ],
                            'transcription' => [
                                'description' => 'Runtime parameters for Audio jobs',
                                'type' => 'object',
                                'properties' => [
                                    'autoSplit' => ['description' => 'Enables automatic speaker separation for single-channel audio. Set to 0 to enable Auto detection, or 1 to disable it. Default value: 1. Note: This applies only to audio files with a sample rate of 8 kHz.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
                                    'clientChannel' => ['description' => 'Applies to dual-channel recordings. Specifies the track number for the Customer role. Valid values: 0 or 1. Default value: 1, meaning track 1 is assigned to the Customer. Audio tracks are typically numbered starting from 0, so a two-track file uses tracks 0 and 1. You must confirm whether track 0 corresponds to the agent or the customer in your specific case. **If you use this parameter, you must also set the autoSplit parameter to 0.** This parameter is ignored for single-channel files.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
                                    'fileName' => ['description' => 'File name.', 'type' => 'string', 'required' => true, 'example' => 'sss.mp3', 'title' => ''],
                                    'serviceChannel' => ['description' => 'Applies to dual-channel recordings. Specifies the track number for the service agent role. Valid values: 0 or 1. Default value: 0, meaning track 0 is assigned to the agent. Audio tracks are typically numbered starting from 0, so a two-track file uses tracks 0 and 1. You must confirm whether track 0 corresponds to the agent or the customer in your specific case. **If you use this parameter, you must also set the autoSplit parameter to 0.** This parameter is ignored for single-channel files.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
                                    'serviceChannelKeywords' => [
                                        'description' => 'Mostly applicable to single-track recordings. Specify a list of keywords that the customer service representative might say (ensure the selected keywords are highly distinctive). The system analyzes the transcription line by line from top to bottom. When a sentence hits any of the specified keywords, that sentence is classified as spoken by the customer service representative, and the other role is identified as the customer.  ',
                                        'type' => 'array',
                                        'items' => ['description' => 'Mostly applicable to single-track recordings. Specify a list of keywords that the customer service representative might say (ensure the selected keywords are highly distinctive). The system analyzes the transcription line by line from top to bottom. When a sentence hits any of the specified keywords, that sentence is classified as spoken by the customer service representative, and the other role is identified as the customer.  ', 'type' => 'string', 'required' => false, 'example' => '你好', 'title' => ''],
                                        'required' => false,
                                        'title' => '',
                                        'example' => '',
                                    ],
                                    'voiceFileUrl' => ['description' => 'File URL  ', 'type' => 'string', 'required' => true, 'example' => 'http://1111.com/sss.mp3', 'title' => ''],
                                    'asrModelCode' => [
                                        'description' => 'Speech-to-text model. Valid values: asr (small model) or paraformer (LLM).',
                                        'type' => 'string',
                                        'enum' => ['asr', 'paraformer'],
                                        'required' => false,
                                        'example' => 'asr',
                                        'title' => '',
                                    ],
                                    'level' => [
                                        'description' => 'Priority for speech transcription',
                                        'type' => 'string',
                                        'enum' => ['low', 'middle', 'high'],
                                        'required' => false,
                                        'example' => 'low',
                                        'title' => '',
                                    ],
                                    'vocabularyId' => ['description' => 'ID of the speech hotword vocabulary', 'type' => 'string', 'required' => false, 'example' => 'esnvknv*****skdnvjksd', 'title' => ''],
                                    'roleIdentification' => ['description' => 'Automatically detect speaker roles. Set to true to enable auto detection; set to false to disable it. Default: false  ', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
                                    'languageHints' => ['description' => 'Language for detection. The default value is Mandarin Chinese. For other supported languages and dialects, contact customer support.  ', 'type' => 'string', 'required' => false, 'example' => 'zh', 'title' => ''],
                                ],
                                'required' => false,
                                'title' => '',
                                'example' => '',
                            ],
                            'customPrompt' => ['description' => 'Custom instruction  ', 'type' => 'string', 'required' => false, 'example' => '对通话内容进行总结', 'title' => ''],
                            'variables' => [
                                'description' => 'List of variables',
                                'type' => 'array',
                                'items' => [
                                    'description' => 'List of variables',
                                    'type' => 'object',
                                    'properties' => [
                                        'variableCode' => ['description' => 'Variable code', 'type' => 'string', 'required' => false, 'example' => 'name', 'title' => ''],
                                        'variableValue' => ['description' => 'Variable value', 'type' => 'string', 'required' => false, 'example' => '张三', 'title' => ''],
                                    ],
                                    'required' => false,
                                    'title' => '',
                                    'example' => '',
                                ],
                                'required' => false,
                                'title' => '',
                                'example' => '',
                            ],
                            'categoryTags' => [
                                'description' => 'Tag categorization list  ',
                                'type' => 'array',
                                'items' => [
                                    'description' => 'Tag categorization list  ',
                                    'type' => 'object',
                                    'properties' => [
                                        'tagName' => ['description' => 'Tag Name  ', 'type' => 'string', 'required' => false, 'example' => '客服过度承诺', 'title' => ''],
                                        'tagDesc' => ['description' => 'Tag Description', 'type' => 'string', 'required' => false, 'example' => '客服在服务客户过程中,基于已有的服务标准是否存在过度承诺的行为', 'title' => ''],
                                    ],
                                    'required' => false,
                                    'title' => '',
                                    'example' => '',
                                ],
                                'required' => false,
                                'title' => '',
                                'example' => '',
                            ],
                            'responseFormatType' => ['description' => 'Output result format type: jsonObject for JSON structure, text for raw string  ', 'type' => 'string', 'required' => false, 'example' => 'jsonObject', 'title' => ''],
                            'callBackUrl' => ['description' => 'Callback parameter after the job is completed', 'type' => 'string', 'required' => false, 'example' => '123.456.com/callback', 'title' => ''],
                        ],
                        'required' => false,
                        'title' => '',
                        'example' => '',
                    ],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => 'Schema of Response',
                        'description' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'data' => [
                                'description' => 'Data',
                                'type' => 'object',
                                'properties' => [
                                    'taskId' => ['description' => 'Job ID.', 'type' => 'string', 'example' => '20240905-********-93E9-5D45-B4EF-045743A34071', 'title' => ''],
                                ],
                                'title' => '',
                                'example' => '',
                            ],
                            'requestId' => ['title' => 'Id of the request', 'description' => 'Request ID', 'type' => 'string', 'example' => '9F1DB065-AE0D-5EE3-B1AF-48632CB0831C'],
                            'success' => ['description' => 'Indicates whether the operation succeeded.', 'type' => 'string', 'example' => 'True', 'title' => ''],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'errorCodes' => [
                400 => [
                    ['errorCode' => 'CCAI.InvalidParam.NotExist', 'errorMessage' => 'The specified parameter %s is not valid.', 'description' => 'The request parameter does not exist.'],
                    ['errorCode' => 'CCAI.ParamInvalid.IllegalParamValue', 'errorMessage' => 'The parameter value of the request API is illegal %s.', 'description' => 'The parameter value of the request API is illegal.'],
                    ['errorCode' => 'CCAI.Throttling.Qpm', 'errorMessage' => 'Trigger QPM flow restriction. Please purchase higher QPM for paid API. If free API has special requirements, please contact us through DingTalk group (62730018475).', 'description' => 'Trigger QPM flow restriction. Please purchase higher QPM for paid API. If free API has special requirements, please contact us through DingTalk group (62730018475).'],
                    ['errorCode' => 'CCAI.Throttling.Qps', 'errorMessage' => 'Trigger current QPS limit, pay API please buy higher QPS, the free API if you have special requirements, please contact us through the DingTalk group (62730018475).', 'description' => 'Trigger current limit, pay API please buy higher QPS, free API if you have special requirements, please contact us through the DingTalk group (62730018475).'],
                ],
                403 => [
                    ['errorCode' => 'CCAI.IllegalPermission.NoAuth', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => 'The user is not authorized to operate the specified resource'],
                    ['errorCode' => 'CCAI.ParamNotfound.MissParam', 'errorMessage' => 'Parameter verification failed, The specified parameter %s is missing.', 'description' => 'Parameter validation failed. The specified parameter is missing.'],
                    ['errorCode' => 'CCAI.TenantPermission.NoAuth', 'errorMessage' => 'The current account does not have the permission to specify the business space. Please authorize the business space permission.', 'description' => 'The current account does not have the permission to specify the business space. Please authorize the business space permission.'],
                ],
                429 => [
                    ['errorCode' => 'Ccai.Throttling.Qps', 'errorMessage' => 'Trigger current QPS limit, pay API please buy higher QPS, free API if you have special requirements, please contact us through the DingTalk group (62730018475).', 'description' => 'Invalid error code, subsequent offline'],
                ],
                500 => [
                    ['errorCode' => 'CCAI.InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error, exception or failure.', 'description' => ''],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"data\\": {\\n    \\"taskId\\": \\"20240905-********-93E9-5D45-B4EF-045743A34071\\"\\n  },\\n  \\"requestId\\": \\"9F1DB065-AE0D-5EE3-B1AF-48632CB0831C\\",\\n  \\"success\\": \\"True\\"\\n}","type":"json"}]',
            'title' => 'Perform Tongyi Xiaomi CCAI - Conversation Analysis by uploading offline task data',
            'description' => 'Ensure that you fully understand the billing method and pricing of the Tongyi Xiaomi CCAI - Conversation Analysis AIO product before using this API.'."\n"
                ."\n"
                .'## Prerequisites'."\n"
                ."\n"
                .'- 1. You have activated the Tongyi Xiaomi CCAI - Conversation Analysis AIO service.'."\n"
                .'- 2. You have created an application: Complete the creation of a Tongyi Xiaomi CCAI - Conversation Analysis AIO application in the Application Center and obtained the APP-ID and WORKSPACE-ID: [Obtain APP-ID and WORKSPACE-ID](https://help.aliyun.com/zh/model-studio/developer-reference/obtain-api-key-app-id-and-workspace-id?spm=openapi-amp.newDocPublishment.0.0.3491281fOQZK5f).'."\n"
                ."\n"
                .'## Notes'."\n"
                ."\n"
                .'- 1. Task data is retained on the server for 90 days.'."\n"
                .'- 2. The conversation content is limited to 20,000 characters. Content exceeding this limit will be automatically truncated.'."\n"
                .'- 3. Audio files are recommended to use an 8 kHz sample rate. Using other sample rates may affect the final result.'."\n",
            'requestParamsDescription' => '## Parameter Guide for Speech Recognition'."\n"
                ."\n"
                .'When uploading an audio file, you must use either **serviceChannel** or **clientChannel** to assign audio tracks to different roles. The backend service detects roles based on these audio tracks. Alternatively, you can use **serviceChannelKeywords** to specify keywords in customer service conversations, and the backend service will detect roles based on those keywords.'."\n"
                ."\n"
                .'## Callback Parameter Guide'."\n"
                ."\n"
                .'Assume the webhook address provided by the caller is: `http://aliyun.com/callback`. The complete callback URL will be:  '."\n"
                .'`http://aliyun.com/callback?taskId=xxx&timestamp=xxx&taskType=xxx&signature=xxx&success=xxx`, where:'."\n"
                ."\n"
                .'- **taskId**: the job ID  '."\n"
                .'- **timestamp**: the UNIX timestamp (in milliseconds) when the request was made  '."\n"
                .'- **taskType**: the task type  '."\n"
                .'- **success**: indicates whether the job succeeded  '."\n"
                .'- **signature**: the signature that the caller can use to verify that the request originated from Alibaba Cloud  '."\n"
                ."\n"
                .'**Signature calculation**: Perform MD5 hashing followed by Base64 encoding on the string `taskId=xxx&timestamp=xxx&aliUid=xxx` (note the exact order). After receiving the callback, the caller can extract **taskId** and **timestamp** from the callback URL, and **aliUid** is the Alibaba Cloud account ID. The caller should compute the signature using the same method and compare it with the **signature** in the URL to verify authenticity. See the Java code sample below for details.'."\n"
                ."\n"
                .'```java'."\n"
                .'import java.net.URLEncoder;'."\n"
                .'import java.security.MessageDigest;'."\n"
                .'import java.security.NoSuchAlgorithmException;'."\n"
                .'import java.nio.charset.StandardCharsets;'."\n"
                .'import org.apache.commons.codec.binary.Base64;'."\n"
                ."\n"
                .'public class Sample {'."\n"
                ."\n"
                .'    public static void signature() {'."\n"
                .'        long timestamp = System.currentTimeMillis();'."\n"
                .'        String taskId = "xxx";'."\n"
                .'        String aliUid = "xxx";'."\n"
                .'        // Compute MD5 + Base64 of "taskId=xxx&timestamp=xxx&aliUid=xxx" and place the result in the signature field'."\n"
                .'        String signature;'."\n"
                .'        try {'."\n"
                .'            signature = URLEncoder.encode(md5Base64("taskId=" + taskId + "&timestamp=" + timestamp + "&aliUid=" + aliUid), "utf-8");'."\n"
                .'            System.out.println(signature);'."\n"
                .'        } catch (Exception e) {'."\n"
                .'            e.printStackTrace();'."\n"
                .'        }'."\n"
                .'    }'."\n"
                ."\n"
                .'    public static String md5Base64(String str) throws NoSuchAlgorithmException {'."\n"
                .'        // The string encoding must be UTF-8'."\n"
                .'        byte[] utfBytes = str.getBytes(StandardCharsets.UTF_8);'."\n"
                .'        MessageDigest mdTemp = MessageDigest.getInstance("MD5");'."\n"
                .'        mdTemp.update(utfBytes);'."\n"
                .'        byte[] md5Bytes = mdTemp.digest();'."\n"
                .'        return Base64.encodeBase64String(md5Bytes);'."\n"
                .'    }'."\n"
                .'}'."\n"
                .'```',
            'changeSet' => [
                ['createdAt' => '2025-07-25T09:33:48.000Z', 'description' => 'Request parameters changed'],
                ['createdAt' => '2025-06-20T07:54:42.000Z', 'description' => 'Request parameters changed'],
                ['createdAt' => '2025-05-27T09:09:34.000Z', 'description' => 'Request parameters changed'],
                ['createdAt' => '2025-05-06T09:49:02.000Z', 'description' => 'Request parameters changed'],
                ['createdAt' => '2025-04-16T02:21:39.000Z', 'description' => 'Request parameters changed'],
                ['createdAt' => '2025-04-01T02:08:31.000Z', 'description' => 'Request parameters changed'],
                ['createdAt' => '2025-02-25T02:52:45.000Z', 'description' => 'Request parameters changed'],
                ['createdAt' => '2025-02-20T10:52:12.000Z', 'description' => 'Request parameters changed'],
                ['createdAt' => '2025-01-16T08:47:12.000Z', 'description' => 'Request parameters changed'],
            ],
            'flowControl' => [
                'flowControlList' => [
                    ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateTask'],
                ],
            ],
        ],
        'CreateVocab' => [
            'summary' => 'Uploads a set of hotwords to the server and returns a vocabulary ID.',
            'path' => '/vocab/createVocab',
            'methods' => ['post'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'read',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'body',
                    'in' => 'body',
                    'style' => 'json',
                    'schema' => [
                        'description' => 'The request body.',
                        'type' => 'object',
                        'properties' => [
                            'workspaceId' => ['description' => 'The workspace ID.', 'type' => 'string', 'required' => true, 'example' => 'llm-9****me1', 'title' => ''],
                            'name' => ['description' => 'The name.', 'type' => 'string', 'required' => true, 'example' => '词表1', 'title' => ''],
                            'description' => ['description' => 'The version description.', 'type' => 'string', 'required' => false, 'example' => '销售词表', 'title' => ''],
                            'audioModelCode' => ['description' => 'The speech-to-text model.', 'type' => 'string', 'required' => false, 'example' => 'nls', 'title' => ''],
                            'wordWeightList' => [
                                'description' => 'The hotword group.',
                                'type' => 'array',
                                'items' => [
                                    'type' => 'object',
                                    'properties' => [
                                        'weight' => ['description' => 'The weight value.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '2', 'title' => ''],
                                        'word' => ['description' => 'The word.', 'type' => 'string', 'required' => true, 'example' => '大树', 'title' => ''],
                                    ],
                                    'required' => true,
                                    'description' => '',
                                    'title' => '',
                                    'example' => '',
                                ],
                                'required' => true,
                                'title' => '',
                                'example' => '',
                            ],
                        ],
                        'required' => false,
                        'title' => '',
                        'example' => '',
                    ],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => 'Schema of Response',
                        'description' => 'The response schema.',
                        'type' => 'object',
                        'properties' => [
                            'requestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => '968A8634-FA2C-5381-9B3E-*******F'],
                            'success' => ['description' => 'Indicates whether the call was successful.', 'type' => 'string', 'example' => 'True', 'title' => ''],
                            'data' => [
                                'description' => 'The returned data.',
                                'type' => 'object',
                                'properties' => [
                                    'vocabularyId' => ['description' => 'The vocabulary ID.', 'type' => 'string', 'example' => 'f3d82*******7', 'title' => ''],
                                ],
                                'title' => '',
                                'example' => '',
                            ],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'errorCodes' => [
                400 => [
                    ['errorCode' => 'CCAI.InvalidParam.NotExist', 'errorMessage' => 'The specified parameter %s is not valid.', 'description' => 'The request parameter does not exist.'],
                    ['errorCode' => 'CCAI.ParamInvalid.IllegalParamValue', 'errorMessage' => 'The parameter value of the request API is illegal %s.', 'description' => 'The parameter value of the request API is illegal.'],
                    ['errorCode' => 'CCAI.Throttling.Qpm', 'errorMessage' => 'Trigger QPM flow restriction. Please purchase higher QPM for paid API. If free API has special requirements, please contact us through DingTalk group (62730018475).', 'description' => 'Trigger QPM flow restriction. Please purchase higher QPM for paid API. If free API has special requirements, please contact us through DingTalk group (62730018475).'],
                    ['errorCode' => 'CCAI.Throttling.Qps', 'errorMessage' => 'Trigger current QPS limit, pay API please buy higher QPS, the free API if you have special requirements, please contact us through the DingTalk group (62730018475).', 'description' => 'Trigger current limit, pay API please buy higher QPS, free API if you have special requirements, please contact us through the DingTalk group (62730018475).'],
                ],
                403 => [
                    ['errorCode' => 'CCAI.IllegalPermission.NoAuth', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => 'The user is not authorized to operate the specified resource'],
                    ['errorCode' => 'CCAI.ParamNotfound.MissParam', 'errorMessage' => 'Parameter verification failed, The specified parameter %s is missing.', 'description' => 'Parameter validation failed. The specified parameter is missing.'],
                    ['errorCode' => 'CCAI.TenantPermission.NoAuth', 'errorMessage' => 'The current account does not have the permission to specify the business space. Please authorize the business space permission.', 'description' => 'The current account does not have the permission to specify the business space. Please authorize the business space permission.'],
                ],
                500 => [
                    ['errorCode' => 'CCAI.InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error, exception or failure.', 'description' => ''],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"requestId\\": \\"968A8634-FA2C-5381-9B3E-*******F\\",\\n  \\"success\\": \\"True\\",\\n  \\"data\\": {\\n    \\"vocabularyId\\": \\"f3d82*******7\\"\\n  }\\n}","type":"json"}]',
            'title' => 'Create Hotword',
            'description' => 'Before using this API, make sure you understand the billing methods and pricing of Tongyi Xiaomi CCAI-Dialogue Analysis AIO.'."\n"
                ."\n"
                .'Prerequisites'."\n"
                ."\n"
                .'- You have activated the Tongyi Xiaomi CCAI-Dialogue Analysis AIO service.'."\n"
                ."\n"
                .'- You have created an application for Tongyi Xiaomi CCAI-Dialogue Analysis AIO in the Application Center and obtained an APP-ID and a WORKSPACE-ID. For more information, see [Obtain an APP-ID and a WORKSPACE-ID](https://help.aliyun.com/zh/model-studio/developer-reference/obtain-api-key-app-id-and-workspace-id?spm=openapi-amp.newDocPublishment.0.0.39e3281fMO5qOX).',
            'requestParamsDescription' => '## Request parameter limits'."\n"
                ."\n"
                .'- You can create a maximum of 10 vocabularies.'."\n"
                ."\n"
                .'- Each vocabulary can contain up to 500 words. Each word can be up to 10 characters long.'."\n"
                ."\n"
                .'- Custom hotwords must use UTF-8 encoding and cannot contain punctuation or special characters.'."\n"
                ."\n"
                .'- The weight of a custom word must be an integer from -6 to 5.'."\n"
                ."\n"
                .'- A value greater than 0 increases the probability that the word is detected. A value less than 0 decreases the probability.'."\n"
                ."\n"
                .'- A value of -6 indicates that the system should avoid detecting the word.'."\n"
                ."\n"
                .'- A value of 2 is a common setting.'."\n"
                ."\n"
                .'- If the results are not satisfactory, you can increase the weight. However, a very high weight might cause adverse effects, such as inaccurate detection of other words.'."\n"
                ."\n"
                .'## Request example'."\n"
                ."\n"
                .'```java'."\n"
                .'import com.alibaba.fastjson.JSONObject;'."\n"
                .'import com.aliyun.contactcenterai20240603.Client;'."\n"
                .'import com.aliyun.contactcenterai20240603.models.CreateVocabRequest;'."\n"
                .'import com.aliyun.contactcenterai20240603.models.CreateVocabResponse;'."\n"
                .'import com.aliyun.teaopenapi.models.Config;'."\n"
                ."\n"
                .'import java.util.ArrayList;'."\n"
                .'import java.util.List;'."\n"
                ."\n"
                .'public class Vocab {'."\n"
                ."\n"
                .'    private static String accessKeyId = "YOUR_ACCESS_KEY_ID";'."\n"
                ."\n"
                .'    private static String accessKeySecret = "YOUR_ACCESS_KEY_SECRET";'."\n"
                ."\n"
                .'    private static String workspaceId = "YOUR_WORKSPACE_ID";'."\n"
                ."\n"
                .'    private static Config config = new Config();'."\n"
                ."\n"
                .'    static {'."\n"
                .'        config.setAccessKeyId(accessKeyId).setAccessKeySecret(accessKeySecret).setEndpoint("contactcenterai.cn-shanghai.aliyuncs.com")'."\n"
                .'                .setReadTimeout(30000).setConnectTimeout(300000).setRegionId("cn-shanghai").setProtocol("HTTPS");'."\n"
                .'    }'."\n"
                ."\n"
                .'    public static void main(String[] args) throws Exception {'."\n"
                .'        Client client = new Client(config);'."\n"
                ."\n"
                .'        CreateVocabRequest request = new CreateVocabRequest();'."\n"
                .'        request.setName("Sales Vocabulary");'."\n"
                .'        request.setDescription("For sales in Northeast China Region 1");'."\n"
                .'        request.setWorkspaceId(workspaceId);'."\n"
                ."\n"
                .'        List<CreateVocabRequest.CreateVocabRequestWordWeightList> wordWeightList = new ArrayList<>();'."\n"
                .'        CreateVocabRequest.CreateVocabRequestWordWeightList word1 = new CreateVocabRequest.CreateVocabRequestWordWeightList();'."\n"
                .'        word1.setWord("Children");'."\n"
                .'        word1.setWeight(3);'."\n"
                .'        wordWeightList.add(word1);'."\n"
                ."\n"
                .'        CreateVocabRequest.CreateVocabRequestWordWeightList word2 = new CreateVocabRequest.CreateVocabRequestWordWeightList();'."\n"
                .'        word2.setWord("Metal");'."\n"
                .'        word2.setWeight(3);'."\n"
                .'        wordWeightList.add(word2);'."\n"
                ."\n"
                .'        request.setWordWeightList(wordWeightList);'."\n"
                ."\n"
                .'        CreateVocabResponse response = client.createVocab(request);'."\n"
                .'        System.out.println(JSONObject.toJSONString(response));'."\n"
                .'    }'."\n"
                .'}'."\n"
                .'```',
            'changeSet' => [
                ['createdAt' => '2025-03-26T09:32:54.000Z', 'description' => 'Request parameters changed'],
            ],
            'flowControl' => [
                'flowControlList' => [],
            ],
        ],
        'DeleteVocab' => [
            'summary' => 'Delete a vocabulary by its ID.',
            'path' => '/vocab/deleteVocab',
            'methods' => ['post'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'read',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'body',
                    'in' => 'body',
                    'style' => 'json',
                    'schema' => [
                        'description' => 'Request body',
                        'type' => 'object',
                        'properties' => [
                            'vocabularyId' => ['description' => 'Vocabulary ID', 'type' => 'string', 'required' => true, 'example' => 'ern*******rve', 'title' => ''],
                            'workspaceId' => ['description' => 'Workspace ID', 'type' => 'string', 'required' => true, 'example' => 'llm-0*****jlg8s', 'title' => ''],
                        ],
                        'required' => false,
                        'title' => '',
                        'example' => '',
                    ],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => 'Schema of Response',
                        'description' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'requestId' => ['title' => 'Id of the request', 'description' => 'Request ID', 'type' => 'string', 'example' => '968A8634-FA2C-5381-9B3E-*******F'],
                            'success' => ['description' => 'Indicates whether the request succeeded', 'type' => 'string', 'example' => 'true', 'title' => ''],
                            'data' => ['description' => 'Response data', 'type' => 'string', 'example' => 'true', 'title' => ''],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'errorCodes' => [
                400 => [
                    ['errorCode' => 'CCAI.InvalidParam.NotExist', 'errorMessage' => 'The specified parameter %s is not valid.', 'description' => 'The request parameter does not exist.'],
                    ['errorCode' => 'CCAI.ParamInvalid.IllegalParamValue', 'errorMessage' => 'The parameter value of the request API is illegal %s.', 'description' => 'The parameter value of the request API is illegal.'],
                    ['errorCode' => 'CCAI.Throttling.Qpm', 'errorMessage' => 'Trigger QPM flow restriction. Please purchase higher QPM for paid API. If free API has special requirements, please contact us through DingTalk group (62730018475).', 'description' => 'Trigger QPM flow restriction. Please purchase higher QPM for paid API. If free API has special requirements, please contact us through DingTalk group (62730018475).'],
                    ['errorCode' => 'CCAI.Throttling.Qps', 'errorMessage' => 'Trigger current QPS limit, pay API please buy higher QPS, the free API if you have special requirements, please contact us through the DingTalk group (62730018475).', 'description' => 'Trigger current limit, pay API please buy higher QPS, free API if you have special requirements, please contact us through the DingTalk group (62730018475).'],
                ],
                403 => [
                    ['errorCode' => 'CCAI.IllegalPermission.NoAuth', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => 'The user is not authorized to operate the specified resource'],
                    ['errorCode' => 'CCAI.ParamNotfound.MissParam', 'errorMessage' => 'Parameter verification failed, The specified parameter %s is missing.', 'description' => 'Parameter validation failed. The specified parameter is missing.'],
                    ['errorCode' => 'CCAI.TenantPermission.NoAuth', 'errorMessage' => 'The current account does not have the permission to specify the business space. Please authorize the business space permission.', 'description' => 'The current account does not have the permission to specify the business space. Please authorize the business space permission.'],
                ],
                500 => [
                    ['errorCode' => 'CCAI.InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error, exception or failure.', 'description' => ''],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"requestId\\": \\"968A8634-FA2C-5381-9B3E-*******F\\",\\n  \\"success\\": \\"true\\",\\n  \\"data\\": \\"true\\"\\n}","type":"json"}]',
            'title' => 'Delete hotword',
            'description' => 'Before you use this API, review the billing method and pricing for the Tongyi Xiaomi CCAI Conversation Analytics AIO product.'."\n"
                ."\n"
                .'Prerequisites'."\n"
                ."\n"
                .'- You have activated the Tongyi Xiaomi CCAI Conversation Analytics AIO service.'."\n"
                ."\n"
                .'- You have created an application: Create a Tongyi Xiaomi CCAI Conversation Analytics AIO application in the Application Center and obtain your APP-ID and WORKSPACE-ID. For more information, see [Obtain APP-ID and WORKSPACE-ID](https://help.aliyun.com/zh/model-studio/developer-reference/obtain-api-key-app-id-and-workspace-id?spm=openapi-amp.newDocPublishment.0.0.39e3281fMO5qOX).',
            'requestParamsDescription' => '## Sample request code'."\n"
                ."\n"
                .'```java'."\n"
                ."\n"
                .'import com.alibaba.fastjson.JSONObject;'."\n"
                .'import com.aliyun.contactcenterai20240603.Client;'."\n"
                .'import com.aliyun.contactcenterai20240603.models.*;'."\n"
                .'import com.aliyun.teaopenapi.models.Config;'."\n"
                ."\n"
                .'import java.util.ArrayList;'."\n"
                .'import java.util.List;'."\n"
                ."\n"
                .'public class Vocab {'."\n"
                ."\n"
                .'    private static String accessKeyId = "YOUR_ACCESS_KEY_ID";'."\n"
                .'    private static String accessKeySecret = "YOUR_ACCESS_KEY_SECRET";'."\n"
                ."\n\n"
                .'    private static String workspaceId = "YOUR_WORKSPACE_ID";'."\n"
                ."\n"
                .'    private static Config config = new Config();'."\n"
                ."\n"
                .'    static {'."\n"
                .'        config.setAccessKeyId(accessKeyId).setAccessKeySecret(accessKeySecret).setEndpoint("contactcenterai.cn-shanghai.aliyuncs.com")'."\n"
                .'                .setReadTimeout(30000).setConnectTimeout(300000).setRegionId("cn-shanghai").setProtocol("HTTPS");'."\n"
                .'    }'."\n"
                ."\n"
                .'    public static void main(String[] args) throws Exception {'."\n"
                .'        Client client = new Client(config);'."\n"
                ."\n"
                .'        DeleteVocabRequest request = new DeleteVocabRequest();'."\n"
                .'        request.setVocabularyId("81a3*********2d7c8");'."\n"
                .'        request.setWorkspaceId(workspaceId);'."\n"
                ."\n"
                .'        DeleteVocabResponse response = client.deleteVocab(request);'."\n"
                .'        System.out.println(JSONObject.toJSONString(response));'."\n"
                .'    }'."\n"
                .'}'."\n"
                .'```',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [],
            ],
        ],
        'GeneralAnalyzeImage' => [
            'summary' => 'Performs general image analysis.',
            'path' => '/{workspaceId}/ccai/app/{appId}/generalanalyzeImage',
            'methods' => ['post'],
            'schemes' => ['https', 'sse'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json', 'application/octet-stream'],
            'operationType' => 'read',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'paid'],
            'parameters' => [
                [
                    'name' => 'workspaceId',
                    'in' => 'path',
                    'schema' => ['description' => 'Workspace ID.', 'type' => 'string', 'required' => false, 'example' => 'llm-ik******RVYCKzt'."\n", 'title' => ''],
                ],
                [
                    'name' => 'appId',
                    'in' => 'path',
                    'schema' => ['description' => 'Application ID.', 'type' => 'string', 'required' => false, 'example' => 'a070a49c681f4a95a0f0*********35c', 'title' => ''],
                ],
                [
                    'name' => 'body',
                    'in' => 'body',
                    'style' => 'json',
                    'schema' => [
                        'description' => 'Request body.',
                        'type' => 'object',
                        'properties' => [
                            'stream' => ['description' => 'Required. Set to true for streaming output or false for full output.', 'type' => 'boolean', 'default' => 'true', 'required' => false, 'example' => 'true', 'title' => ''],
                            'imageUrls' => [
                                'description' => 'List of image URLs.',
                                'type' => 'array',
                                'items' => ['description' => 'A list of image URLs.', 'type' => 'string', 'required' => false, 'example' => 'https://img.123.com/1.jppg', 'title' => ''],
                                'required' => true,
                                'title' => '',
                                'example' => '',
                            ],
                            'customPrompt' => ['description' => 'Custom instruction.', 'type' => 'string', 'required' => false, 'example' => 'Analyze the content in the image', 'title' => ''],
                            'templateIds' => [
                                'description' => 'Template ID. If both template ID and customPrompt are provided, the template ID takes precedence.',
                                'type' => 'array',
                                'items' => ['description' => 'Template ID. If both template ID and instruction task type are provided, the template ID takes precedence.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '34', 'title' => ''],
                                'required' => false,
                                'title' => '',
                                'example' => '',
                            ],
                        ],
                        'required' => false,
                        'title' => '',
                        'example' => '',
                    ],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => 'Schema of Response',
                        'description' => 'Response schema.',
                        'type' => 'object',
                        'properties' => [
                            'requestId' => ['title' => 'Id of the request', 'description' => 'Request ID.', 'type' => 'string', 'example' => '2D718325-92F9-5588-803B-C4A69A5F0AE1'],
                            'success' => ['description' => 'Indicates whether the request succeeded.', 'type' => 'boolean', 'example' => 'True', 'title' => ''],
                            'text' => ['description' => 'Response from the application.', 'type' => 'string', 'example' => '这张图片中没有可识别的文本内容。因此,无法进行OCR(光学字符识别)。如果你有其他需求或问题,请告诉我', 'title' => ''],
                            'finishReason' => ['description' => 'For streaming output, this field is null while generating. When generation ends due to a stop token, the value is stop.', 'type' => 'string', 'example' => 'stop', 'title' => ''],
                            'inputTokens' => ['description' => 'Number of input tokens.', 'type' => 'integer', 'format' => 'int32', 'example' => '1000', 'title' => ''],
                            'outputTokens' => ['description' => 'Number of output tokens.', 'type' => 'integer', 'format' => 'int32', 'example' => '2000', 'title' => ''],
                            'totalTokens' => ['description' => 'Total number of tokens.', 'type' => 'integer', 'format' => 'int32', 'example' => '3000', 'title' => ''],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'errorCodes' => [
                400 => [
                    ['errorCode' => 'CCAI.InvalidParam.NotExist', 'errorMessage' => 'The specified parameter %s is not valid.', 'description' => 'The request parameter does not exist.'],
                    ['errorCode' => 'CCAI.ParamInvalid.IllegalParamValue', 'errorMessage' => 'The parameter value of the request API is illegal %s.', 'description' => 'The parameter value of the request API is illegal.'],
                    ['errorCode' => 'CCAI.Throttling.Qpm', 'errorMessage' => 'Trigger QPM flow restriction. Please purchase higher QPM for paid API. If free API has special requirements, please contact us through DingTalk group (62730018475).', 'description' => 'Trigger QPM flow restriction. Please purchase higher QPM for paid API. If free API has special requirements, please contact us through DingTalk group (62730018475).'],
                    ['errorCode' => 'CCAI.Throttling.Qps', 'errorMessage' => 'Trigger current QPS limit, pay API please buy higher QPS, the free API if you have special requirements, please contact us through the DingTalk group (62730018475).', 'description' => 'Trigger current limit, pay API please buy higher QPS, free API if you have special requirements, please contact us through the DingTalk group (62730018475).'],
                ],
                403 => [
                    ['errorCode' => 'CCAI.ParamNotfound.MissParam', 'errorMessage' => 'Parameter verification failed, The specified parameter %s is missing.', 'description' => 'Parameter validation failed. The specified parameter is missing.'],
                    ['errorCode' => 'CCAI.TenantPermission.NoAuth', 'errorMessage' => 'The current account does not have the permission to specify the business space. Please authorize the business space permission.', 'description' => 'The current account does not have the permission to specify the business space. Please authorize the business space permission.'],
                    ['errorCode' => 'CCAI.IllegalPermission.NoAuth', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => 'The user is not authorized to operate the specified resource'],
                ],
                500 => [
                    ['errorCode' => 'CCAI.InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error, exception or failure.', 'description' => ''],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"requestId\\": \\"2D718325-92F9-5588-803B-C4A69A5F0AE1\\",\\n  \\"success\\": true,\\n  \\"text\\": \\"这张图片中没有可识别的文本内容。因此,无法进行OCR(光学字符识别)。如果你有其他需求或问题,请告诉我\\",\\n  \\"finishReason\\": \\"stop\\",\\n  \\"inputTokens\\": 1000,\\n  \\"outputTokens\\": 2000,\\n  \\"totalTokens\\": 3000\\n}","type":"json"}]',
            'title' => 'General Image Analysis',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [],
            ],
        ],
        'GetTaskResult' => [
            'summary' => 'Retrieves the conversation analysis results of an offline task by task ID. The application supports HTTPS calls to complete the response.',
            'path' => '/ccai/app/getTaskResult',
            'methods' => ['get'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['multipart/form-data'],
            'produces' => ['application/json'],
            'operationType' => 'read',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'taskId',
                    'in' => 'query',
                    'schema' => ['description' => 'The task ID.', 'type' => 'string', 'required' => false, 'example' => '20240905-********-93E9-5D45-B4EF-045743A34071'."\n", 'title' => ''],
                ],
                [
                    'name' => 'requiredFieldList',
                    'in' => 'query',
                    'style' => 'simple',
                    'schema' => [
                        'description' => 'The list of optional fields.',
                        'type' => 'array',
                        'items' => [
                            'description' => 'The optional field value.',
                            'type' => 'string',
                            'enum' => ['asr_result', 'debug', 'rag_result'],
                            'required' => false,
                            'example' => 'asr_result',
                            'title' => '',
                        ],
                        'required' => false,
                        'title' => '',
                        'example' => '',
                    ],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => '',
                        'description' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'data' => [
                                'description' => 'The response data.',
                                'type' => 'object',
                                'properties' => [
                                    'taskId' => ['description' => 'The task ID.', 'type' => 'string', 'example' => '20240905-********-93E9-5D45-B4EF-045743A34071'."\n", 'title' => ''],
                                    'text' => ['description' => 'The result returned by the application.', 'type' => 'string', 'example' => '对话中没有发现客服故意套取客户隐私信息的行为', 'title' => ''],
                                    'taskErrorMessage' => ['description' => 'The error message of the task.', 'type' => 'string', 'example' => '异常', 'title' => ''],
                                    'taskStatus' => ['description' => 'The task status. Valid values:'."\n"
                                        .'- QUEUE: queued'."\n"
                                        .'- FINISH: completed'."\n"
                                        .'- ERROR: failed.', 'type' => 'string', 'example' => 'FINISH', 'title' => ''],
                                    'asrResult' => [
                                        'description' => 'The list of Automatic Speech Recognition (ASR) results.',
                                        'type' => 'array',
                                        'items' => [
                                            'description' => 'The ASR result.',
                                            'type' => 'object',
                                            'properties' => [
                                                'begin' => ['description' => 'The start time offset of the sentence, in milliseconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '80', 'title' => ''],
                                                'emotionValue' => ['description' => 'The emotion energy value, which is calculated as the volume in decibels divided by 10. Valid values: 1 to 10. A higher value indicates a stronger emotion.', 'type' => 'integer', 'format' => 'int32', 'example' => '5', 'title' => ''],
                                                'end' => ['description' => 'The end time offset of the sentence, in milliseconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '8480', 'title' => ''],
                                                'role' => ['description' => 'The audio track ID to which the sentence belongs.', 'type' => 'string', 'example' => '0', 'title' => ''],
                                                'speechRate' => ['description' => 'The average speech rate of the sentence.'."\n"
                                                    ."\n"
                                                    .'If the recognition language is Chinese, the unit is characters per minute.'."\n"
                                                    ."\n"
                                                    .'If the recognition language is English, the unit is words per minute.', 'type' => 'integer', 'format' => 'int32', 'example' => '342', 'title' => ''],
                                                'words' => ['description' => 'The recognized text of the sentence.', 'type' => 'string', 'example' => 'Hello', 'title' => ''],
                                                'roleName' => ['description' => 'The role name.', 'type' => 'string', 'example' => '客户', 'title' => ''],
                                            ],
                                            'title' => '',
                                            'example' => '',
                                        ],
                                        'title' => '',
                                        'example' => '',
                                    ],
                                    'extra' => ['description' => 'The optional supplementary content.', 'type' => 'string', 'example' => '{"roleConfig":{"role1Name":"客户","role2Name":"客服"}}', 'title' => ''],
                                    'ragStatus' => ['description' => 'The RAG execution status.', 'type' => 'string', 'example' => 'SUCCESS', 'title' => ''],
                                    'ragResult' => ['description' => 'The RAG recall result.', 'type' => 'string', 'example' => '召回内容', 'title' => ''],
                                    'usage' => [
                                        'description' => 'The usage information.',
                                        'type' => 'object',
                                        'properties' => [
                                            'rag' => [
                                                'description' => 'The RAG usage details.',
                                                'type' => 'object',
                                                'properties' => [
                                                    'dialogSummary' => [
                                                        'description' => 'The conversation summary.',
                                                        'type' => 'object',
                                                        'properties' => [
                                                            'inputTokens' => ['description' => 'The number of input tokens.', 'type' => 'integer', 'format' => 'int32', 'example' => '520', 'title' => ''],
                                                            'outputTokens' => ['description' => 'The number of output tokens.', 'type' => 'integer', 'format' => 'int32', 'example' => '664', 'title' => ''],
                                                            'invokeCount' => ['description' => 'The number of invocations.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
                                                        ],
                                                        'title' => '',
                                                        'example' => '',
                                                    ],
                                                    'adaptive' => [
                                                        'description' => 'The RAG intelligent invocation.',
                                                        'type' => 'object',
                                                        'properties' => [
                                                            'inputTokens' => ['description' => 'The number of input tokens.', 'type' => 'integer', 'format' => 'int32', 'example' => '482', 'title' => ''],
                                                            'outputTokens' => ['description' => 'The number of output tokens.', 'type' => 'integer', 'format' => 'int32', 'example' => '789', 'title' => ''],
                                                            'invokeCount' => ['description' => 'The number of invocations.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
                                                        ],
                                                        'title' => '',
                                                        'example' => '',
                                                    ],
                                                ],
                                                'title' => '',
                                                'example' => '',
                                            ],
                                        ],
                                        'title' => '',
                                        'example' => '',
                                    ],
                                    'ragErrorMessage' => ['description' => 'The error message of the RAG execution.', 'type' => 'string', 'example' => '非法参数:[无有效知识库]', 'title' => ''],
                                ],
                                'title' => '',
                                'example' => '',
                            ],
                            'requestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '968A8634-FA2C-5381-9B3E-C552DED7E8BF'],
                            'success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'string', 'example' => 'True', 'title' => ''],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'errorCodes' => [
                400 => [
                    ['errorCode' => 'CCAI.InvalidParam.NotExist', 'errorMessage' => 'The specified parameter %s is not valid.', 'description' => 'The request parameter does not exist.'],
                    ['errorCode' => 'CCAI.ParamInvalid.IllegalParamValue', 'errorMessage' => 'The parameter value of the request API is illegal %s.', 'description' => 'The parameter value of the request API is illegal.'],
                    ['errorCode' => 'CCAI.Throttling.Qpm', 'errorMessage' => 'Trigger QPM flow restriction. Please purchase higher QPM for paid API. If free API has special requirements, please contact us through DingTalk group (62730018475).', 'description' => 'Trigger QPM flow restriction. Please purchase higher QPM for paid API. If free API has special requirements, please contact us through DingTalk group (62730018475).'],
                    ['errorCode' => 'CCAI.Throttling.Qps', 'errorMessage' => 'Trigger current QPS limit, pay API please buy higher QPS, the free API if you have special requirements, please contact us through the DingTalk group (62730018475).', 'description' => 'Trigger current limit, pay API please buy higher QPS, free API if you have special requirements, please contact us through the DingTalk group (62730018475).'],
                ],
                403 => [
                    ['errorCode' => 'CCAI.ParamNotfound.MissParam', 'errorMessage' => 'Parameter verification failed, The specified parameter %s is missing.', 'description' => 'Parameter validation failed. The specified parameter is missing.'],
                    ['errorCode' => 'CCAI.TenantPermission.NoAuth', 'errorMessage' => 'The current account does not have the permission to specify the business space. Please authorize the business space permission.', 'description' => 'The current account does not have the permission to specify the business space. Please authorize the business space permission.'],
                    ['errorCode' => 'CCAI.IllegalPermission.NoAuth', 'errorMessage' => 'User not authorized to operate on the specified resource %s .', 'description' => 'The user is not authorized to operate the specified resource'],
                ],
                429 => [
                    ['errorCode' => 'Ccai.Throttling.Qps', 'errorMessage' => 'Trigger current QPS limit, pay API please buy higher QPS, free API if you have special requirements, please contact us through the DingTalk group (62730018475).', 'description' => 'Invalid error code, subsequent offline'],
                ],
                500 => [
                    ['errorCode' => 'CCAI.InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error, exception or failure.', 'description' => ''],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"data\\": {\\n    \\"taskId\\": \\"20240905-********-93E9-5D45-B4EF-045743A34071\\\\n\\",\\n    \\"text\\": \\"对话中没有发现客服故意套取客户隐私信息的行为\\",\\n    \\"taskErrorMessage\\": \\"异常\\",\\n    \\"taskStatus\\": \\"FINISH\\",\\n    \\"asrResult\\": [\\n      {\\n        \\"begin\\": 80,\\n        \\"emotionValue\\": 5,\\n        \\"end\\": 8480,\\n        \\"role\\": \\"0\\",\\n        \\"speechRate\\": 342,\\n        \\"words\\": \\"Hello\\",\\n        \\"roleName\\": \\"客户\\"\\n      }\\n    ],\\n    \\"extra\\": \\"{\\\\\\"roleConfig\\\\\\":{\\\\\\"role1Name\\\\\\":\\\\\\"客户\\\\\\",\\\\\\"role2Name\\\\\\":\\\\\\"客服\\\\\\"}}\\",\\n    \\"ragStatus\\": \\"SUCCESS\\",\\n    \\"ragResult\\": \\"召回内容\\",\\n    \\"usage\\": {\\n      \\"rag\\": {\\n        \\"dialogSummary\\": {\\n          \\"inputTokens\\": 520,\\n          \\"outputTokens\\": 664,\\n          \\"invokeCount\\": 1\\n        },\\n        \\"adaptive\\": {\\n          \\"inputTokens\\": 482,\\n          \\"outputTokens\\": 789,\\n          \\"invokeCount\\": 1\\n        }\\n      }\\n    },\\n    \\"ragErrorMessage\\": \\"非法参数:[无有效知识库]\\"\\n  },\\n  \\"requestId\\": \\"968A8634-FA2C-5381-9B3E-C552DED7E8BF\\",\\n  \\"success\\": \\"True\\"\\n}","type":"json"}]',
            'title' => 'Retrieve offline task analysis results by task ID',
            'description' => 'Before using this operation, make sure that you fully understand the billing methods and pricing of CCAI-Dialogue Analysis AIO.'."\n"
                ."\n"
                .'Before you begin'."\n"
                .'1. CCAI-Dialogue Analysis AIO is activated.'."\n"
                .'2. An application is created: Create a CCAI-Dialogue Analysis AIO application in the application center and obtain the APP-ID and WORKSPACE-ID. For more information, see [Obtain APP-ID and WORKSPACE-ID](https://www.alibabacloud.com/help/en/model-studio/developer-reference/obtain-api-key-app-id-and-workspace-id).',
            'changeSet' => [
                ['createdAt' => '2025-06-11T09:04:52.000Z', 'description' => 'Response parameters changed'],
                ['createdAt' => '2025-01-16T08:47:12.000Z', 'description' => 'Request parameters changed, Response parameters changed'],
                ['createdAt' => '2024-12-05T02:01:27.000Z', 'description' => 'Error codes changed, Request parameters changed, Response parameters changed'],
            ],
            'flowControl' => [
                'flowControlList' => [
                    ['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetTaskResult'],
                ],
            ],
        ],
        'GetVocab' => [
            'summary' => 'Retrieves vocabulary information by its ID.',
            'path' => '/vocab/getVocab',
            'methods' => ['post'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'read',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'body',
                    'in' => 'body',
                    'style' => 'json',
                    'schema' => [
                        'description' => 'The request body.',
                        'type' => 'object',
                        'properties' => [
                            'vocabularyId' => ['description' => 'The vocabulary ID.', 'type' => 'string', 'required' => true, 'example' => 'dhbf***rbrdb', 'title' => ''],
                            'workspaceId' => ['description' => 'The workspace ID.', 'type' => 'string', 'required' => true, 'example' => 'llm-9864***1', 'title' => ''],
                        ],
                        'required' => false,
                        'title' => '',
                        'example' => '',
                    ],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => 'Schema of Response',
                        'description' => 'The response schema.',
                        'type' => 'object',
                        'properties' => [
                            'requestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => '968A8634-FA2C-5381-9B3E-*******F'],
                            'success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'string', 'example' => 'true', 'title' => ''],
                            'data' => [
                                'description' => 'The returned data.',
                                'type' => 'object',
                                'properties' => [
                                    'vocabularyId' => ['description' => 'The vocabulary ID.', 'type' => 'string', 'example' => 'rrbe***jrvrdd', 'title' => ''],
                                    'name' => ['description' => 'The name of the vocabulary.', 'type' => 'string', 'example' => '热词1', 'title' => ''],
                                    'description' => ['description' => 'Description', 'type' => 'string', 'example' => '销售热词', 'title' => ''],
                                    'audioModelCode' => ['description' => 'The speech-to-text model.', 'type' => 'string', 'example' => 'nls', 'title' => ''],
                                    'wordWeightList' => [
                                        'description' => 'The list of words and their weights.',
                                        'type' => 'array',
                                        'items' => [
                                            'description' => 'Hot word group',
                                            'type' => 'object',
                                            'properties' => [
                                                'word' => ['description' => 'The word.', 'type' => 'string', 'example' => '儿童', 'title' => ''],
                                                'weight' => ['description' => 'The weight of the word.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
                                            ],
                                            'title' => '',
                                            'example' => '',
                                        ],
                                        'title' => '',
                                        'example' => '',
                                    ],
                                ],
                                'title' => '',
                                'example' => '',
                            ],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'errorCodes' => [
                400 => [
                    ['errorCode' => 'CCAI.InvalidParam.NotExist', 'errorMessage' => 'The specified parameter %s is not valid.', 'description' => 'The request parameter does not exist.'],
                    ['errorCode' => 'CCAI.ParamInvalid.IllegalParamValue', 'errorMessage' => 'The parameter value of the request API is illegal %s.', 'description' => 'The parameter value of the request API is illegal.'],
                    ['errorCode' => 'CCAI.Throttling.Qpm', 'errorMessage' => 'Trigger QPM flow restriction. Please purchase higher QPM for paid API. If free API has special requirements, please contact us through DingTalk group (62730018475).', 'description' => 'Trigger QPM flow restriction. Please purchase higher QPM for paid API. If free API has special requirements, please contact us through DingTalk group (62730018475).'],
                    ['errorCode' => 'CCAI.Throttling.Qps', 'errorMessage' => 'Trigger current QPS limit, pay API please buy higher QPS, the free API if you have special requirements, please contact us through the DingTalk group (62730018475).', 'description' => 'Trigger current limit, pay API please buy higher QPS, free API if you have special requirements, please contact us through the DingTalk group (62730018475).'],
                ],
                403 => [
                    ['errorCode' => 'CCAI.IllegalPermission.NoAuth', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => 'The user is not authorized to operate the specified resource'],
                    ['errorCode' => 'CCAI.ParamNotfound.MissParam', 'errorMessage' => 'Parameter verification failed, The specified parameter %s is missing.', 'description' => 'Parameter validation failed. The specified parameter is missing.'],
                    ['errorCode' => 'CCAI.TenantPermission.NoAuth', 'errorMessage' => 'The current account does not have the permission to specify the business space. Please authorize the business space permission.', 'description' => 'The current account does not have the permission to specify the business space. Please authorize the business space permission.'],
                ],
                500 => [
                    ['errorCode' => 'CCAI.InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error, exception or failure.', 'description' => ''],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"requestId\\": \\"968A8634-FA2C-5381-9B3E-*******F\\",\\n  \\"success\\": \\"true\\",\\n  \\"data\\": {\\n    \\"vocabularyId\\": \\"rrbe***jrvrdd\\",\\n    \\"name\\": \\"热词1\\",\\n    \\"description\\": \\"销售热词\\",\\n    \\"audioModelCode\\": \\"nls\\",\\n    \\"wordWeightList\\": [\\n      {\\n        \\"word\\": \\"儿童\\",\\n        \\"weight\\": 1\\n      }\\n    ]\\n  }\\n}","type":"json"}]',
            'title' => 'Retrieve hotwords',
            'description' => 'Before you use this API, review the billing methods and pricing for the Tongyi Xiaomi CCAI-Conversation Analysis AIO product.'."\n"
                ."\n"
                .'Prerequisites'."\n"
                ."\n"
                .'- The Tongyi Xiaomi CCAI-Conversation Analysis AIO service is activated.'."\n"
                ."\n"
                .'- You have created an application for Tongyi Xiaomi CCAI-Conversation Analysis AIO in Application Center and obtained an APP-ID and a WORKSPACE-ID. For more information, see [Obtain an APP-ID and a WORKSPACE-ID](https://help.aliyun.com/zh/model-studio/developer-reference/obtain-api-key-app-id-and-workspace-id?spm=openapi-amp.newDocPublishment.0.0.39e3281fMO5qOX).',
            'requestParamsDescription' => '## Examples'."\n"
                ."\n"
                .'```java'."\n"
                ."\n"
                .'import com.alibaba.fastjson.JSONObject;'."\n"
                .'import com.aliyun.contactcenterai20240603.Client;'."\n"
                .'import com.aliyun.contactcenterai20240603.models.CreateVocabRequest;'."\n"
                .'import com.aliyun.contactcenterai20240603.models.CreateVocabResponse;'."\n"
                .'import com.aliyun.contactcenterai20240603.models.GetVocabRequest;'."\n"
                .'import com.aliyun.contactcenterai20240603.models.GetVocabResponse;'."\n"
                .'import com.aliyun.teaopenapi.models.Config;'."\n"
                ."\n"
                .'import java.util.ArrayList;'."\n"
                .'import java.util.List;'."\n"
                ."\n"
                .'public class Vocab {'."\n"
                ."\n"
                .'    private static String accessKeyId = "YOUR_ACCESS_KEY_ID";'."\n"
                .'    private static String accessKeySecret = "YOUR_ACCESS_KEY_SECRET";'."\n"
                ."\n\n"
                .'    private static String workspaceId = "YOUR_WORKSPACE_ID";'."\n"
                ."\n"
                .'    private static Config config = new Config();'."\n"
                ."\n"
                .'    static {'."\n"
                .'        config.setAccessKeyId(accessKeyId).setAccessKeySecret(accessKeySecret).setEndpoint("contactcenterai.cn-shanghai.aliyuncs.com")'."\n"
                .'                .setReadTimeout(30000).setConnectTimeout(300000).setRegionId("cn-shanghai").setProtocol("HTTPS");'."\n"
                .'    }'."\n"
                ."\n"
                .'    public static void main(String[] args) throws Exception {'."\n"
                .'        Client client = new Client(config);'."\n"
                ."\n"
                .'        GetVocabRequest request = new GetVocabRequest();'."\n"
                .'        request.setVocabularyId("1a3188**********7d2e");'."\n"
                .'        request.setWorkspaceId(workspaceId);'."\n"
                ."\n"
                .'        GetVocabResponse response = client.getVocab(request);'."\n"
                .'        System.out.println(JSONObject.toJSONString(response));'."\n"
                .'    }'."\n"
                .'}'."\n"
                .'```',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [],
            ],
        ],
        'ListVocab' => [
            'summary' => 'List hot words in a specified workspace.',
            'path' => '/vocab/listVocab',
            'methods' => ['post'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'read',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'body',
                    'in' => 'body',
                    'style' => 'json',
                    'schema' => [
                        'description' => 'Request body',
                        'type' => 'object',
                        'properties' => [
                            'workspaceId' => ['description' => 'Workspace ID', 'type' => 'string', 'required' => true, 'example' => 'llm-jhfr****8v', 'title' => ''],
                        ],
                        'required' => false,
                        'title' => '',
                        'example' => '',
                    ],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => 'Schema of Response',
                        'description' => 'Response schema',
                        'type' => 'object',
                        'properties' => [
                            'requestId' => ['title' => 'Id of the request', 'description' => 'Request ID', 'type' => 'string', 'example' => '968A8634-FA2C-5381-9B3E-*******F'],
                            'success' => ['description' => 'Indicates whether the request succeeded', 'type' => 'string', 'example' => 'true', 'title' => ''],
                            'data' => [
                                'description' => 'Response data',
                                'type' => 'array',
                                'items' => [
                                    'description' => 'Response data',
                                    'type' => 'object',
                                    'properties' => [
                                        'vocabularyId' => ['description' => 'Hot word ID', 'type' => 'string', 'example' => 'dv*****erverve', 'title' => ''],
                                        'name' => ['description' => 'Name', 'type' => 'string', 'example' => '热词1', 'title' => ''],
                                        'description' => ['description' => 'Description', 'type' => 'string', 'example' => '销售热词', 'title' => ''],
                                        'audioModelCode' => ['description' => 'Speech-to-text model', 'type' => 'string', 'example' => 'nls', 'title' => ''],
                                        'wordWeightList' => [
                                            'description' => 'Hot word group',
                                            'type' => 'array',
                                            'items' => [
                                                'description' => 'Hot word group',
                                                'type' => 'object',
                                                'properties' => [
                                                    'word' => ['description' => 'Word', 'type' => 'string', 'example' => '儿童', 'title' => ''],
                                                    'weight' => ['description' => 'Weight', 'type' => 'integer', 'format' => 'int32', 'example' => '3', 'title' => ''],
                                                ],
                                                'title' => '',
                                                'example' => '',
                                            ],
                                            'title' => '',
                                            'example' => '',
                                        ],
                                    ],
                                    'title' => '',
                                    'example' => '',
                                ],
                                'title' => '',
                                'example' => '',
                            ],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'errorCodes' => [
                400 => [
                    ['errorCode' => 'CCAI.InvalidParam.NotExist', 'errorMessage' => 'The specified parameter %s is not valid.', 'description' => 'The request parameter does not exist.'],
                    ['errorCode' => 'CCAI.ParamInvalid.IllegalParamValue', 'errorMessage' => 'The parameter value of the request API is illegal %s.', 'description' => 'The parameter value of the request API is illegal.'],
                    ['errorCode' => 'CCAI.Throttling.Qpm', 'errorMessage' => 'Trigger QPM flow restriction. Please purchase higher QPM for paid API. If free API has special requirements, please contact us through DingTalk group (62730018475).', 'description' => 'Trigger QPM flow restriction. Please purchase higher QPM for paid API. If free API has special requirements, please contact us through DingTalk group (62730018475).'],
                    ['errorCode' => 'CCAI.Throttling.Qps', 'errorMessage' => 'Trigger current QPS limit, pay API please buy higher QPS, the free API if you have special requirements, please contact us through the DingTalk group (62730018475).', 'description' => 'Trigger current limit, pay API please buy higher QPS, free API if you have special requirements, please contact us through the DingTalk group (62730018475).'],
                ],
                403 => [
                    ['errorCode' => 'CCAI.IllegalPermission.NoAuth', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => 'The user is not authorized to operate the specified resource'],
                    ['errorCode' => 'CCAI.ParamNotfound.MissParam', 'errorMessage' => 'Parameter verification failed, The specified parameter %s is missing.', 'description' => 'Parameter validation failed. The specified parameter is missing.'],
                    ['errorCode' => 'CCAI.TenantPermission.NoAuth', 'errorMessage' => 'The current account does not have the permission to specify the business space. Please authorize the business space permission.', 'description' => 'The current account does not have the permission to specify the business space. Please authorize the business space permission.'],
                ],
                500 => [
                    ['errorCode' => 'CCAI.InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error, exception or failure.', 'description' => ''],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"requestId\\": \\"968A8634-FA2C-5381-9B3E-*******F\\",\\n  \\"success\\": \\"true\\",\\n  \\"data\\": [\\n    {\\n      \\"vocabularyId\\": \\"dv*****erverve\\",\\n      \\"name\\": \\"热词1\\",\\n      \\"description\\": \\"销售热词\\",\\n      \\"audioModelCode\\": \\"nls\\",\\n      \\"wordWeightList\\": [\\n        {\\n          \\"word\\": \\"儿童\\",\\n          \\"weight\\": 3\\n        }\\n      ]\\n    }\\n  ]\\n}","type":"json"}]',
            'title' => 'Retrieve hot word list  ',
            'description' => 'Before you use this operation, review the pricing and billing details for Tongyi Xiaomi CCAI – Conversation Analytics AIO.'."\n"
                ."\n"
                .'Prerequisites'."\n"
                ."\n"
                .'- You have activated Tongyi Xiaomi CCAI – Conversation Analytics AIO.'."\n"
                ."\n"
                .'- You have created an application. In the Application Center, create a Tongyi Xiaomi CCAI – Conversation Analytics AIO application and obtain the APP-ID and WORKSPACE-ID: [Obtain APP-ID and WORKSPACE-ID](https://help.aliyun.com/zh/model-studio/developer-reference/obtain-api-key-app-id-and-workspace-id?spm=openapi-amp.newDocPublishment.0.0.39e3281fMO5qOX).',
            'requestParamsDescription' => '## Sample request code'."\n"
                ."\n"
                .'```java'."\n"
                ."\n"
                .'import com.alibaba.fastjson.JSONObject;'."\n"
                .'import com.aliyun.contactcenterai20240603.Client;'."\n"
                .'import com.aliyun.contactcenterai20240603.models.*;'."\n"
                .'import com.aliyun.teaopenapi.models.Config;'."\n"
                ."\n"
                .'import java.util.ArrayList;'."\n"
                .'import java.util.List;'."\n"
                ."\n"
                .'public class Vocab {'."\n"
                ."\n"
                .'    private static String accessKeyId = "YOUR_ACCESS_KEY_ID";'."\n"
                .'    private static String accessKeySecret = "YOUR_ACCESS_KEY_SECRET";'."\n"
                ."\n\n"
                .'    private static String workspaceId = "YOUR_WORKSPACE_ID";'."\n"
                ."\n"
                .'    private static Config config = new Config();'."\n"
                ."\n"
                .'    static {'."\n"
                .'        config.setAccessKeyId(accessKeyId).setAccessKeySecret(accessKeySecret).setEndpoint("contactcenterai.cn-shanghai.aliyuncs.com")'."\n"
                .'                .setReadTimeout(30000).setConnectTimeout(300000).setRegionId("cn-shanghai").setProtocol("HTTPS");'."\n"
                .'    }'."\n"
                ."\n"
                .'    public static void main(String[] args) throws Exception {'."\n"
                .'        Client client = new Client(config);'."\n"
                ."\n"
                .'        ListVocabRequest request = new ListVocabRequest();'."\n"
                ."\n"
                .'        request.setWorkspaceId(workspaceId);'."\n"
                ."\n"
                .'        ListVocabResponse response = client.listVocab(request);'."\n"
                .'        System.out.println(JSONObject.toJSONString(response));'."\n"
                .'    }'."\n"
                .'}'."\n"
                .'```',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [],
            ],
        ],
        'RunCompletion' => [
            'summary' => 'Calls a Tongyi Xiaomi CCAI conversation analysis AIO application to retrieve conversation summaries, key information extraction results, quality inspection results, and conversation analysis results. The application supports HTTP calls to complete customer responses. Both standard HTTP and HTTP SSE protocols are available. Choose the protocol that best suits your needs.',
            'path' => '/{workspaceId}/ccai/app/{appId}/completion',
            'methods' => ['post'],
            'schemes' => ['http', 'https', 'sse'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json', 'application/octet-stream'],
            'operationType' => 'readAndWrite',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'workspaceId',
                    'in' => 'path',
                    'schema' => ['description' => 'The ID of the sub-business workspace.', 'type' => 'string', 'required' => true, 'example' => 'llm-ik******RVYCKzt'."\n", 'title' => ''],
                ],
                [
                    'name' => 'appId',
                    'in' => 'path',
                    'schema' => ['description' => 'The application ID.', 'type' => 'string', 'required' => true, 'example' => '097d65c9c7004f8dad2b454850ac232b', 'title' => ''],
                ],
                [
                    'name' => 'body',
                    'in' => 'body',
                    'style' => 'json',
                    'schema' => [
                        'description' => 'The request body structure.',
                        'type' => 'object',
                        'properties' => [
                            'Dialogue' => [
                                'description' => 'The dialogue structure.',
                                'type' => 'object',
                                'properties' => [
                                    'Sentences' => [
                                        'description' => 'The list of dialogue content.',
                                        'type' => 'array',
                                        'items' => [
                                            'description' => 'The structure of each dialogue turn.',
                                            'type' => 'object',
                                            'properties' => [
                                                'ChatId' => ['description' => 'The unique ID of each dialogue turn.', 'type' => 'string', 'required' => false, 'example' => 'ae2483e01a8446aa859925947fcf4d8e', 'title' => ''],
                                                'Role' => [
                                                    'description' => 'The conversation role. Valid values:'."\n"
                                                        .'- user: customer'."\n"
                                                        .'- agent: customer service representative'."\n"
                                                        .'- system: system message.',
                                                    'type' => 'string',
                                                    'required' => true,
                                                    'example' => 'user',
                                                    'default' => 'user',
                                                    'enum' => ['user', 'agent', 'system'],
                                                    'title' => '',
                                                ],
                                                'Text' => ['description' => 'The dialogue content.', 'type' => 'string', 'required' => true, 'example' => '查询北京天气', 'title' => ''],
                                            ],
                                            'required' => false,
                                            'title' => '',
                                            'example' => '',
                                        ],
                                        'required' => false,
                                        'title' => '',
                                        'example' => '',
                                    ],
                                    'SessionId' => ['description' => 'The unique ID of the dialogue session.', 'type' => 'string', 'required' => false, 'example' => 'd25zc9c7004f8dad2b454d', 'title' => ''],
                                ],
                                'required' => true,
                                'title' => '',
                                'example' => '',
                            ],
                            'Fields' => [
                                'description' => 'The list of fields to extract during information extraction.',
                                'type' => 'array',
                                'items' => [
                                    'description' => 'The field structure.',
                                    'type' => 'object',
                                    'properties' => [
                                        'Code' => ['description' => 'The field code.', 'type' => 'string', 'required' => false, 'example' => 'phoneNumber', 'title' => ''],
                                        'Desc' => ['description' => 'The field description.', 'type' => 'string', 'required' => false, 'example' => '用户来电咨询的原因分类,主要有投诉、咨询、政策建议等。', 'title' => ''],
                                        'EnumValues' => [
                                            'description' => 'The list of enumeration values.',
                                            'type' => 'array',
                                            'items' => [
                                                'description' => 'The enumeration value structure.',
                                                'type' => 'object',
                                                'properties' => [
                                                    'Desc' => ['description' => 'The description of the enumeration value.', 'type' => 'string', 'required' => false, 'example' => '客户有新的需求/新的场景,客服跟进沟通需求细节', 'title' => ''],
                                                    'EnumValue' => ['description' => 'The enumeration value.', 'type' => 'string', 'required' => true, 'example' => '新业务拓展', 'title' => ''],
                                                ],
                                                'required' => false,
                                                'title' => '',
                                                'example' => '',
                                            ],
                                            'required' => false,
                                            'title' => '',
                                            'example' => '',
                                        ],
                                        'Name' => ['description' => 'The field name.', 'type' => 'string', 'required' => true, 'example' => '来电原因类型', 'title' => ''],
                                    ],
                                    'required' => false,
                                    'title' => '',
                                    'example' => '',
                                ],
                                'required' => false,
                                'title' => '',
                                'example' => '',
                            ],
                            'ModelCode' => [
                                'description' => 'The model specification.',
                                'enumValueTitles' => ['tyxmPlus' => 'tyxmPlus', 'tyxmTurbo' => 'tyxmTurbo'],
                                'type' => 'string',
                                'example' => 'tyxmTurbo',
                                'default' => 'tyxmTurbo',
                                'enum' => ['tyxmTurbo', 'tyxmPlus'],
                                'required' => false,
                                'title' => '',
                            ],
                            'ServiceInspection' => [
                                'description' => 'The service quality inspection structure.',
                                'type' => 'object',
                                'properties' => [
                                    'InspectionContents' => [
                                        'description' => 'The list of service quality inspection dimension structures.',
                                        'type' => 'array',
                                        'items' => [
                                            'description' => 'The service quality inspection dimension structure.',
                                            'type' => 'object',
                                            'properties' => [
                                                'Content' => ['description' => 'The description of the service quality inspection dimension.', 'type' => 'string', 'required' => false, 'example' => '客服在服务客户过程中,基于已有的服务标准是否存在过度承诺的行为,如:最快到货时间是12小时,无法给客户承诺更快的到货时间。', 'title' => ''],
                                                'Title' => ['description' => 'The name of the service quality inspection dimension.', 'type' => 'string', 'required' => true, 'example' => '客服是否过度承诺', 'title' => ''],
                                            ],
                                            'required' => false,
                                            'title' => '',
                                            'example' => '',
                                        ],
                                        'required' => false,
                                        'title' => '',
                                        'example' => '',
                                    ],
                                    'InspectionIntroduction' => ['description' => 'The detailed introduction and description of the service quality inspection scenario.', 'type' => 'string', 'required' => false, 'example' => '请检测客服是否存在服务不当的行为,包括:过度承诺、故意套取客户隐私信息等', 'title' => ''],
                                    'SceneIntroduction' => ['description' => 'The service quality inspection scenario.', 'type' => 'string', 'required' => false, 'example' => '保险销售场景', 'title' => ''],
                                ],
                                'required' => false,
                                'title' => '',
                                'example' => '',
                            ],
                            'Stream' => [
                                'description' => 'Specifies whether to enable SSE response. Default value: false.',
                                'enumValueTitles' => ['true' => 'true', 'false' => 'false'],
                                'type' => 'boolean',
                                'required' => false,
                                'default' => 'false',
                                'example' => 'false',
                                'title' => '',
                            ],
                            'TemplateIds' => [
                                'description' => 'The list of template IDs under the CCAI application.',
                                'type' => 'array',
                                'items' => ['description' => 'The template ID under the CCAI application.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '10375', 'title' => ''],
                                'required' => true,
                                'title' => '',
                                'example' => '',
                            ],
                            'variables' => [
                                'description' => 'The list of variables.',
                                'type' => 'array',
                                'items' => [
                                    'description' => 'The list of variables.',
                                    'type' => 'object',
                                    'properties' => [
                                        'variableCode' => ['description' => 'The variable code.', 'type' => 'string', 'required' => false, 'example' => 'name', 'title' => ''],
                                        'variableValue' => ['description' => 'The variable value.', 'type' => 'string', 'required' => false, 'example' => '张三', 'title' => ''],
                                    ],
                                    'required' => false,
                                    'title' => '',
                                    'example' => '',
                                ],
                                'required' => false,
                                'title' => '',
                                'example' => '',
                            ],
                            'responseFormatType' => ['description' => 'The output result format type. Valid values:'."\n"
                                .'- jsonObject: JSON structure.'."\n"
                                .'- text: raw string.', 'type' => 'string', 'required' => false, 'example' => 'jsonObject', 'title' => ''],
                        ],
                        'required' => false,
                        'title' => '',
                        'example' => '',
                    ],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'description' => 'The response structure.',
                        'type' => 'object',
                        'properties' => [
                            'FinishReason' => ['description' => 'If streaming output is used, this value is null during generation. When generation is complete, the value is stop if the generation ended due to a stop token.', 'type' => 'string', 'example' => 'stop', 'title' => ''],
                            'RequestId' => ['description' => 'The unique ID generated by the system to identify this request.', 'type' => 'string', 'example' => '17204B98-xxxx-4F9A-8464-2446A84821CA'."\n", 'title' => ''],
                            'Text' => ['description' => 'The result returned by the application.', 'type' => 'string', 'example' => '这段对话似乎是客服与客户之间关于一个服务或产品的讨论,但具体内容难以明确理解,因为对话中的言语比较零散和抽象。'."\n", 'title' => ''],
                            'inputTokens' => ['description' => 'The number of input tokens.', 'type' => 'string', 'example' => '4672', 'title' => ''],
                            'outputTokens' => ['description' => 'The number of output tokens.', 'type' => 'string', 'example' => '621', 'title' => ''],
                            'totalTokens' => ['description' => 'The total number of tokens.', 'type' => 'string', 'example' => '5609', 'title' => ''],
                            'usage' => [
                                'description' => 'The usage information.',
                                'type' => 'object',
                                'properties' => [
                                    'rag' => [
                                        'description' => 'The RAG usage details.',
                                        'type' => 'object',
                                        'properties' => [
                                            'dialogSummary' => [
                                                'description' => 'The dialogue summary.',
                                                'type' => 'object',
                                                'properties' => [
                                                    'inputTokens' => ['description' => 'The number of input tokens.', 'type' => 'integer', 'format' => 'int32', 'example' => '4672', 'title' => ''],
                                                    'outputTokens' => ['description' => 'The number of output tokens.', 'type' => 'integer', 'format' => 'int32', 'example' => '621', 'title' => ''],
                                                    'invokeCount' => ['description' => 'The number of invocations.', 'type' => 'integer', 'format' => 'int32', 'example' => '3', 'title' => ''],
                                                ],
                                                'title' => '',
                                                'example' => '',
                                            ],
                                            'adaptive' => [
                                                'description' => 'The RAG intelligent invocation.',
                                                'type' => 'object',
                                                'properties' => [
                                                    'inputTokens' => ['description' => 'The number of input tokens.', 'type' => 'integer', 'format' => 'int32', 'example' => '4672', 'title' => ''],
                                                    'outputTokens' => ['description' => 'The number of output tokens.', 'type' => 'integer', 'format' => 'int32', 'example' => '621', 'title' => ''],
                                                    'invokeCount' => ['description' => 'The number of invocations.', 'type' => 'integer', 'format' => 'int32', 'example' => '3', 'title' => ''],
                                                ],
                                                'title' => '',
                                                'example' => '',
                                            ],
                                        ],
                                        'title' => '',
                                        'example' => '',
                                    ],
                                ],
                                'title' => '',
                                'example' => '',
                            ],
                            'ragStatus' => ['description' => 'The RAG execution status.', 'type' => 'string', 'example' => 'SUCCESS', 'title' => ''],
                        ],
                        'title' => '',
                        'example' => '',
                    ],
                ],
            ],
            'errorCodes' => [
                400 => [
                    ['errorCode' => 'CCAI.InvalidParam.NotExist', 'errorMessage' => 'The specified parameter %s is not valid.', 'description' => 'The request parameter does not exist.'],
                    ['errorCode' => 'CCAI.Throttling.Qpm', 'errorMessage' => 'Trigger QPM flow restriction. Please purchase higher QPM for paid API. If free API has special requirements, please contact us through DingTalk group (62730018475).', 'description' => 'Trigger QPM flow restriction. Please purchase higher QPM for paid API. If free API has special requirements, please contact us through DingTalk group (62730018475).'],
                    ['errorCode' => 'CCAI.Throttling.Qps', 'errorMessage' => 'Trigger current QPS limit, pay API please buy higher QPS, the free API if you have special requirements, please contact us through the DingTalk group (62730018475).', 'description' => 'Trigger current limit, pay API please buy higher QPS, free API if you have special requirements, please contact us through the DingTalk group (62730018475).'],
                    ['errorCode' => 'CCAI.ParamInvalid.IllegalParamValue', 'errorMessage' => 'The parameter value of the request API is illegal %s.', 'description' => 'The parameter value of the request API is illegal.'],
                ],
                403 => [
                    ['errorCode' => 'CCAI.IllegalPermission.NoAuth', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => 'The user is not authorized to operate the specified resource'],
                    ['errorCode' => 'CCAI.ParamNotfound.MissParam', 'errorMessage' => 'Parameter verification failed, The specified parameter %s is missing.', 'description' => 'Parameter validation failed. The specified parameter is missing.'],
                    ['errorCode' => 'CCAI.TenantPermission.NoAuth', 'errorMessage' => 'The current account does not have the permission to specify the business space. Please authorize the business space permission.', 'description' => 'The current account does not have the permission to specify the business space. Please authorize the business space permission.'],
                ],
                500 => [
                    ['errorCode' => 'CCAI.InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error, exception or failure.', 'description' => ''],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"FinishReason\\": \\"stop\\",\\n  \\"RequestId\\": \\"17204B98-xxxx-4F9A-8464-2446A84821CA\\\\n\\",\\n  \\"Text\\": \\"这段对话似乎是客服与客户之间关于一个服务或产品的讨论,但具体内容难以明确理解,因为对话中的言语比较零散和抽象。\\\\n\\",\\n  \\"inputTokens\\": \\"4672\\",\\n  \\"outputTokens\\": \\"621\\",\\n  \\"totalTokens\\": \\"5609\\",\\n  \\"usage\\": {\\n    \\"rag\\": {\\n      \\"dialogSummary\\": {\\n        \\"inputTokens\\": 4672,\\n        \\"outputTokens\\": 621,\\n        \\"invokeCount\\": 3\\n      },\\n      \\"adaptive\\": {\\n        \\"inputTokens\\": 4672,\\n        \\"outputTokens\\": 621,\\n        \\"invokeCount\\": 3\\n      }\\n    }\\n  },\\n  \\"ragStatus\\": \\"SUCCESS\\"\\n}","type":"json"}]',
            'title' => 'Call a tongyi xiaomi CCAI conversation analysis AIO application by template ID',
            'description' => 'Before using this operation, make sure that you fully understand the billing methods and pricing of the Tongyi Xiaomi CCAI conversation analysis AIO product.'."\n"
                ."\n"
                .'Before you begin'."\n"
                .'1. The Tongyi Xiaomi CCAI conversation analysis AIO service is activated.'."\n"
                .'2. An application is created: Create a Tongyi Xiaomi CCAI conversation analysis AIO application in the application center and obtain the APP-ID and WORKSPACE-ID. For more information, see [Obtain APP-ID and WORKSPACE-ID](https://help.aliyun.com/document_detail/2782167.html?spm=a2c4g.2782164.0.0.2b2b6dcdZZ5oUE).',
            'changeSet' => [
                ['createdAt' => '2025-04-16T02:21:39.000Z', 'description' => 'Request parameters changed'],
                ['createdAt' => '2025-04-01T02:08:31.000Z', 'description' => 'Request parameters changed'],
                ['createdAt' => '2024-11-22T08:11:18.000Z', 'description' => 'Response parameters changed'],
                ['createdAt' => '2024-09-06T03:50:11.000Z', 'description' => 'Error codes changed, Request parameters changed'],
                ['createdAt' => '2024-07-02T08:31:48.000Z', 'description' => 'Request parameters changed'],
                ['createdAt' => '2024-07-01T08:41:21.000Z', 'description' => 'Error codes changed, Request parameters changed'],
                ['createdAt' => '2024-06-14T09:00:50.000Z', 'description' => 'Request parameters changed'],
            ],
            'flowControl' => [
                'flowControlList' => [
                    ['threshold' => '15', 'countWindow' => 2, 'regionId' => '*', 'api' => 'RunCompletion'],
                ],
            ],
        ],
        'RunCompletionMessage' => [
            'summary' => 'You can call the Tongyi Xiaomi CCAI-Conversation Analysis AIO application using the Message protocol format to obtain conversation summaries, extract key information, and generate quality inspection and conversation analysis results. The application supports HTTP calls to provide responses. You can use either the standard HTTP or HTTP Server-Sent Events (SSE) protocol.',
            'path' => '/{workspaceId}/ccai/app/{appId}/completion_message',
            'methods' => ['post'],
            'schemes' => ['http', 'https', 'sse'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json', 'application/octet-stream'],
            'operationType' => 'readAndWrite',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'workspaceId',
                    'in' => 'path',
                    'schema' => ['description' => 'The workspace ID.', 'type' => 'string', 'required' => true, 'example' => 'llm-ik******RVYCKzt'."\n", 'title' => ''],
                ],
                [
                    'name' => 'appId',
                    'in' => 'path',
                    'schema' => ['description' => 'The application ID.', 'type' => 'string', 'required' => true, 'example' => '097d65c9c7004f8dad2b454850ac232b', 'title' => ''],
                ],
                [
                    'name' => 'body',
                    'in' => 'body',
                    'style' => 'json',
                    'schema' => [
                        'description' => 'The request body schema.',
                        'type' => 'object',
                        'properties' => [
                            'Messages' => [
                                'description' => 'The list of messages for the model request.',
                                'type' => 'array',
                                'items' => [
                                    'description' => 'The structure of a message.',
                                    'type' => 'object',
                                    'properties' => [
                                        'Content' => ['description' => 'The content of the prompt.', 'type' => 'string', 'required' => true, 'example' => '如Role=system ,Content=You are a helpful assistant.'."\n"
                                            .'Role=user , Content=请阅读以下对话内容,按照要求执行指令任务。', 'title' => ''],
                                        'Role' => [
                                            'description' => 'The role in the conversation. Valid values: \\`user\\` (customer), \\`agent\\` (customer service representative), \\`system\\` (system message), and \\`function\\` (function call).',
                                            'type' => 'string',
                                            'required' => true,
                                            'enum' => ['user', 'assistant', 'system', 'function'],
                                            'example' => 'user',
                                            'title' => '',
                                        ],
                                    ],
                                    'required' => false,
                                    'title' => '',
                                    'example' => '',
                                ],
                                'required' => true,
                                'title' => '',
                                'example' => '',
                            ],
                            'ModelCode' => [
                                'description' => 'The model type.',
                                'type' => 'string',
                                'example' => 'tyxmTurbo',
                                'default' => 'tyxmTurbo',
                                'enum' => ['tyxmTurbo', 'tyxmPlus'],
                                'required' => false,
                                'title' => '',
                            ],
                            'Stream' => ['description' => 'Specifies whether to enable SSE responses. The default value is \\`false\\`.', 'type' => 'boolean', 'required' => false, 'default' => 'false', 'example' => 'false', 'title' => ''],
                            'responseFormatType' => ['type' => 'string', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
                        ],
                        'required' => false,
                        'title' => '',
                        'example' => '',
                    ],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'description' => 'The structure of the response.',
                        'type' => 'object',
                        'properties' => [
                            'FinishReason' => ['description' => 'For streaming output, the value is \\`null\\` during generation. If generation stops because of a stop token, the value is \\`stop\\`.', 'type' => 'string', 'example' => 'stop', 'title' => ''],
                            'RequestId' => ['description' => 'The unique ID of the request.', 'type' => 'string', 'example' => '17204B98-xxxx-4F9A-8464-2446A84821CA'."\n", 'title' => ''],
                            'Text' => ['description' => 'The result returned by the application.', 'type' => 'string', 'example' => '这段对话似乎是客服与客户之间关于一个服务或产品的讨论,但具体内容难以明确理解,因为对话中的言语比较零散和抽象。', 'title' => ''],
                            'inputTokens' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
                            'outputTokens' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
                            'totalTokens' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
                        ],
                        'title' => '',
                        'example' => '',
                    ],
                ],
            ],
            'errorCodes' => [
                400 => [
                    ['errorCode' => 'CCAI.InvalidParam.NotExist', 'errorMessage' => 'The specified parameter %s is not valid.', 'description' => 'The request parameter does not exist.'],
                    ['errorCode' => 'CCAI.Throttling.Qpm', 'errorMessage' => 'Trigger QPM flow restriction. Please purchase higher QPM for paid API. If free API has special requirements, please contact us through DingTalk group (62730018475).', 'description' => 'Trigger QPM flow restriction. Please purchase higher QPM for paid API. If free API has special requirements, please contact us through DingTalk group (62730018475).'],
                    ['errorCode' => 'CCAI.Throttling.Qps', 'errorMessage' => 'Trigger current QPS limit, pay API please buy higher QPS, the free API if you have special requirements, please contact us through the DingTalk group (62730018475).', 'description' => 'Trigger current limit, pay API please buy higher QPS, free API if you have special requirements, please contact us through the DingTalk group (62730018475).'],
                    ['errorCode' => 'CCAI.ParamInvalid.IllegalParamValue', 'errorMessage' => 'The parameter value of the request API is illegal %s.', 'description' => 'The parameter value of the request API is illegal.'],
                ],
                403 => [
                    ['errorCode' => 'CCAI.IllegalPermission.NoAuth', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => 'The user is not authorized to operate the specified resource'],
                    ['errorCode' => 'CCAI.ParamNotfound.MissParam', 'errorMessage' => 'Parameter verification failed, The specified parameter %s is missing.', 'description' => 'Parameter validation failed. The specified parameter is missing.'],
                    ['errorCode' => 'CCAI.TenantPermission.NoAuth', 'errorMessage' => 'The current account does not have the permission to specify the business space. Please authorize the business space permission.', 'description' => 'The current account does not have the permission to specify the business space. Please authorize the business space permission.'],
                ],
                500 => [
                    ['errorCode' => 'CCAI.InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error, exception or failure.', 'description' => ''],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"FinishReason\\": \\"stop\\",\\n  \\"RequestId\\": \\"17204B98-xxxx-4F9A-8464-2446A84821CA\\\\n\\",\\n  \\"Text\\": \\"这段对话似乎是客服与客户之间关于一个服务或产品的讨论,但具体内容难以明确理解,因为对话中的言语比较零散和抽象。\\",\\n  \\"inputTokens\\": \\"\\",\\n  \\"outputTokens\\": \\"\\",\\n  \\"totalTokens\\": \\"\\"\\n}","type":"json"}]',
            'title' => 'Invoke the Tongyi Xiaomi CCAI-Dialogue Analysis AIO application using a native prompt  '."\n",
            'description' => 'Before you use this API, make sure you understand the billing methods and pricing of the Tongyi Xiaomi CCAI-Conversation Analysis AIO product.'."\n"
                ."\n"
                .'Prerequisites'."\n"
                ."\n"
                .'1. Activate the Tongyi Xiaomi CCAI-Conversation Analysis AIO service.'."\n"
                ."\n"
                .'2. Create a Tongyi Xiaomi CCAI-Conversation Analysis AIO application in the Application Center to obtain an APP-ID and a WORKSPACE-ID. For more information, see [the referenced document](https://help.aliyun.com/document_detail/2782167.html?spm=a2c4g.2782164.0.0.2b2b6dcdZZ5oUE).',
            'changeSet' => [
                ['createdAt' => '2025-04-16T02:21:39.000Z', 'description' => 'Request parameters changed'],
                ['createdAt' => '2024-11-22T08:11:18.000Z', 'description' => 'Response parameters changed'],
                ['createdAt' => '2024-09-06T03:50:11.000Z', 'description' => 'Error codes changed, Request parameters changed'],
                ['createdAt' => '2024-07-01T08:41:21.000Z', 'description' => 'Error codes changed, Request parameters changed'],
            ],
            'flowControl' => [
                'flowControlList' => [
                    ['threshold' => '15', 'countWindow' => 2, 'regionId' => '*', 'api' => 'RunCompletionMessage'],
                ],
            ],
        ],
        'UpdateVocab' => [
            'summary' => 'Updates a vocabulary\'s information based on its ID, including its name, description, words, and weights.',
            'path' => '/vocab/updateVocab',
            'methods' => ['post'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'read',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'body',
                    'in' => 'body',
                    'style' => 'json',
                    'schema' => [
                        'description' => 'The request body.',
                        'type' => 'object',
                        'properties' => [
                            'vocabularyId' => ['description' => 'The vocabulary ID.', 'type' => 'string', 'required' => true, 'example' => 'dsvsv***dsvv', 'title' => ''],
                            'name' => ['description' => 'The name of the vocabulary.', 'type' => 'string', 'required' => false, 'example' => '热词1', 'title' => ''],
                            'description' => ['description' => 'Description', 'type' => 'string', 'required' => false, 'example' => '销售热词', 'title' => ''],
                            'wordWeightList' => [
                                'description' => 'The words and their weights in the vocabulary.',
                                'type' => 'array',
                                'items' => [
                                    'description' => 'A word and its weight.',
                                    'type' => 'object',
                                    'properties' => [
                                        'word' => ['description' => 'The word.', 'type' => 'string', 'required' => true, 'example' => '虹桥', 'title' => ''],
                                        'weight' => ['description' => 'The weight.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '2', 'title' => ''],
                                    ],
                                    'required' => false,
                                    'title' => '',
                                    'example' => '',
                                ],
                                'required' => false,
                                'title' => '',
                                'example' => '',
                            ],
                            'workspaceId' => ['description' => 'The workspace ID.', 'type' => 'string', 'required' => true, 'example' => 'llm-jhfr****w8v', 'title' => ''],
                        ],
                        'required' => false,
                        'title' => '',
                        'example' => '',
                    ],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => 'Schema of Response',
                        'description' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'requestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => '968A8634-FA2C-5381-9B3E-*******F'],
                            'success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'string', 'example' => 'true', 'title' => ''],
                            'data' => ['description' => 'The data returned.', 'type' => 'string', 'example' => 'true', 'title' => ''],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'errorCodes' => [
                400 => [
                    ['errorCode' => 'CCAI.InvalidParam.NotExist', 'errorMessage' => 'The specified parameter %s is not valid.', 'description' => 'The request parameter does not exist.'],
                    ['errorCode' => 'CCAI.ParamInvalid.IllegalParamValue', 'errorMessage' => 'The parameter value of the request API is illegal %s.', 'description' => 'The parameter value of the request API is illegal.'],
                    ['errorCode' => 'CCAI.Throttling.Qpm', 'errorMessage' => 'Trigger QPM flow restriction. Please purchase higher QPM for paid API. If free API has special requirements, please contact us through DingTalk group (62730018475).', 'description' => 'Trigger QPM flow restriction. Please purchase higher QPM for paid API. If free API has special requirements, please contact us through DingTalk group (62730018475).'],
                    ['errorCode' => 'CCAI.Throttling.Qps', 'errorMessage' => 'Trigger current QPS limit, pay API please buy higher QPS, the free API if you have special requirements, please contact us through the DingTalk group (62730018475).', 'description' => 'Trigger current limit, pay API please buy higher QPS, free API if you have special requirements, please contact us through the DingTalk group (62730018475).'],
                ],
                403 => [
                    ['errorCode' => 'CCAI.IllegalPermission.NoAuth', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => 'The user is not authorized to operate the specified resource'],
                    ['errorCode' => 'CCAI.ParamNotfound.MissParam', 'errorMessage' => 'Parameter verification failed, The specified parameter %s is missing.', 'description' => 'Parameter validation failed. The specified parameter is missing.'],
                    ['errorCode' => 'CCAI.TenantPermission.NoAuth', 'errorMessage' => 'The current account does not have the permission to specify the business space. Please authorize the business space permission.', 'description' => 'The current account does not have the permission to specify the business space. Please authorize the business space permission.'],
                ],
                500 => [
                    ['errorCode' => 'CCAI.InternalError', 'errorMessage' => 'The request processing has failed due to some unknown error, exception or failure.', 'description' => ''],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"requestId\\": \\"968A8634-FA2C-5381-9B3E-*******F\\",\\n  \\"success\\": \\"true\\",\\n  \\"data\\": \\"true\\"\\n}","type":"json"}]',
            'title' => 'Modify Hotword',
            'description' => 'Before using this operation, you must understand the billing methods and pricing of the Tongyi Xiaomi Contact Center AI (CCAI)-Conversation Analysis AIO product.'."\n"
                ."\n"
                .'Prerequisites'."\n"
                ."\n"
                .'- Activate the Tongyi Xiaomi CCAI-Conversation Analysis AIO service.'."\n"
                ."\n"
                .'- Create an application in the Application Center for Tongyi Xiaomi CCAI-Conversation Analysis AIO. Obtain an APP-ID and a WORKSPACE-ID. For more information, see [the referenced document](https://help.aliyun.com/zh/model-studio/developer-reference/obtain-api-key-app-id-and-workspace-id?spm=openapi-amp.newDocPublishment.0.0.39e3281fMO5qOX).',
            'requestParamsDescription' => '## Request example'."\n"
                ."\n"
                .'```java'."\n"
                ."\n"
                .'import com.alibaba.fastjson.JSONObject;'."\n"
                .'import com.aliyun.contactcenterai20240603.Client;'."\n"
                .'import com.aliyun.contactcenterai20240603.models.*;'."\n"
                .'import com.aliyun.teaopenapi.models.Config;'."\n"
                ."\n"
                .'import java.util.ArrayList;'."\n"
                .'import java.util.List;'."\n"
                ."\n"
                .'public class Vocab {'."\n"
                ."\n"
                .'    private static String accessKeyId = "YOUR_ACCESS_KEY_ID";'."\n"
                .'    private static String accessKeySecret = "YOUR_ACCESS_KEY_SECRET";'."\n"
                ."\n\n"
                .'    private static String workspaceId = "YOUR_WORKSPACE_ID";'."\n"
                ."\n"
                .'    private static Config config = new Config();'."\n"
                ."\n"
                .'    static {'."\n"
                .'        config.setAccessKeyId(accessKeyId).setAccessKeySecret(accessKeySecret).setEndpoint("contactcenterai.cn-shanghai.aliyuncs.com")'."\n"
                .'                .setReadTimeout(30000).setConnectTimeout(300000).setRegionId("cn-shanghai").setProtocol("HTTPS");'."\n"
                .'    }'."\n"
                ."\n"
                .'    public static void main(String[] args) throws Exception {'."\n"
                .'        Client client = new Client(config);'."\n"
                ."\n"
                .'        UpdateVocabRequest request = new UpdateVocabRequest();'."\n"
                .'        request.setVocabularyId("f3d82e0d********d23bd7");'."\n"
                .'        request.setName("Sales Vocabulary");'."\n"
                .'        request.setDescription("Sales vocabulary for South China 1");'."\n"
                .'        request.setWorkspaceId(workspaceId);'."\n"
                ."\n"
                .'        List<UpdateVocabRequest.UpdateVocabRequestWordWeightList> wordWeightList = new ArrayList<>();'."\n"
                .'        UpdateVocabRequest.UpdateVocabRequestWordWeightList word1 = new UpdateVocabRequest.UpdateVocabRequestWordWeightList();'."\n"
                .'        word1.setWord("Europe");'."\n"
                .'        word1.setWeight(4);'."\n"
                .'        wordWeightList.add(word1);'."\n"
                ."\n"
                .'        UpdateVocabRequest.UpdateVocabRequestWordWeightList word2 = new UpdateVocabRequest.UpdateVocabRequestWordWeightList();'."\n"
                .'        word2.setWord("Earache");'."\n"
                .'        word2.setWeight(2);'."\n"
                .'        wordWeightList.add(word2);'."\n"
                ."\n"
                .'        request.setWordWeightList(wordWeightList);'."\n"
                ."\n"
                .'        UpdateVocabResponse response = client.updateVocab(request);'."\n"
                .'        System.out.println(JSONObject.toJSONString(response));'."\n"
                .'    }'."\n"
                .'}'."\n"
                .'```',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [],
            ],
        ],
    ],
    'endpoints' => [
        ['regionId' => 'cn-shanghai', 'regionName' => 'China (Shanghai)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'contactcenterai.cn-shanghai.aliyuncs.com', 'endpoint' => 'contactcenterai.cn-shanghai.aliyuncs.com', 'vpc' => 'contactcenterai-vpc.cn-shanghai.aliyuncs.com'],
    ],
    'errorCodes' => [
        ['code' => 'CCAI.IllegalPermission.NoAuth', 'message' => 'User not authorized to operate on the specified resource.', 'http_code' => 403, 'description' => 'The user is not authorized to operate the specified resource'],
        ['code' => 'CCAI.IllegalPermission.NoAuth', 'message' => 'User not authorized to operate on the specified resource %s .', 'http_code' => 403, 'description' => 'The user is not authorized to operate the specified resource'],
        ['code' => 'CCAI.InternalError', 'message' => 'The request processing has failed due to some unknown error, exception or failure.', 'http_code' => 500, 'description' => ''],
        ['code' => 'CCAI.InvalidParam.NotExist', 'message' => 'The specified parameter %s is not valid.', 'http_code' => 400, 'description' => 'The request parameter does not exist.'],
        ['code' => 'CCAI.ParamInvalid.IllegalParamValue', 'message' => 'The parameter value of the request API is illegal %s.', 'http_code' => 400, 'description' => 'The parameter value of the request API is illegal.'],
        ['code' => 'CCAI.ParamNotfound.MissParam', 'message' => 'Parameter verification failed, The specified parameter %s is missing.', 'http_code' => 403, 'description' => 'Parameter validation failed. The specified parameter is missing.'],
        ['code' => 'CCAI.TenantPermission.NoAuth', 'message' => 'The current account does not have the permission to specify the business space. Please authorize the business space permission.', 'http_code' => 403, 'description' => 'The current account does not have the permission to specify the business space. Please authorize the business space permission.'],
        ['code' => 'CCAI.Throttling.Qpm', 'message' => 'Trigger QPM flow restriction. Please purchase higher QPM for paid API. If free API has special requirements, please contact us through DingTalk group (62730018475).', 'http_code' => 400, 'description' => 'Trigger QPM flow restriction. Please purchase higher QPM for paid API. If free API has special requirements, please contact us through DingTalk group (62730018475).'],
        ['code' => 'Ccai.Throttling.Qps', 'message' => 'Trigger current QPS limit, pay API please buy higher QPS, free API if you have special requirements, please contact us through the DingTalk group (62730018475).', 'http_code' => 429, 'description' => 'Invalid error code, subsequent offline'],
        ['code' => 'CCAI.Throttling.Qps', 'message' => 'Trigger current QPS limit, pay API please buy higher QPS, the free API if you have special requirements, please contact us through the DingTalk group (62730018475).', 'http_code' => 400, 'description' => 'Trigger current limit, pay API please buy higher QPS, free API if you have special requirements, please contact us through the DingTalk group (62730018475).'],
    ],
    'changeSet' => [
        [
            'apis' => [
                ['description' => 'Request parameters changed', 'api' => 'RunCompletion'],
            ],
            'createdAt' => '2024-06-14T09:00:55.000Z',
            'description' => '',
        ],
    ],
    'flowControl' => [
        'flowControlList' => [
            ['threshold' => '-1', 'countWindow' => 1, 'regionId' => '*'],
            ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateTask'],
            ['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetTaskResult'],
            ['threshold' => '30', 'countWindow' => 2, 'regionId' => '*', 'api' => 'AnalyzeConversation'],
            ['threshold' => '15', 'countWindow' => 2, 'regionId' => '*', 'api' => 'RunCompletion'],
            ['threshold' => '15', 'countWindow' => 2, 'regionId' => '*', 'api' => 'RunCompletionMessage'],
            ['threshold' => '1', 'countWindow' => 1, 'regionId' => '*', 'api' => 'AnalyzeAudioSync'],
        ],
    ],
];