summaryrefslogtreecommitdiff
path: root/data/en_us/bailian/2023-12-29/api-docs.php
blob: 2a7167665f42f8a883d2c37e40e2d3d99b79540d (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
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
<?php return [
    'version' => '1.0',
    'info' => ['style' => 'ROA', 'product' => 'bailian', 'version' => '2023-12-29'],
    'directories' => [
        [
            'children' => ['AddCategory', 'ListCategory', 'DeleteCategory', 'ApplyFileUploadLease', 'AddFile', 'AddFilesFromAuthorizedOss', 'ListFile', 'DescribeFile', 'UpdateFileTag', 'BatchUpdateFileTag', 'DeleteFile', 'DeleteFiles', 'GetParseSettings', 'GetAvailableParserTypes', 'ChangeParseSetting', 'AddTable', 'UpdateTableFromAuthorizedOss', 'AddConnector', 'GetConnector', 'UpdateConnector'],
            'type' => 'directory',
            'title' => 'Data connection (formerly application data)',
        ],
        [
            'children' => ['CreateIndex', 'GetIndexJobStatus', 'SubmitIndexJob', 'SubmitIndexAddDocumentsJob', 'Retrieve', 'ListIndexDocuments', 'ListIndexFileDetails', 'UpdateIndex', 'DeleteIndexDocument', 'ListIndices', 'DeleteIndex', 'ListChunks', 'UpdateChunk', 'DeleteChunk', 'GetIndexMonitor'],
            'type' => 'directory',
            'title' => 'Knowledge base',
        ],
        [
            'children' => ['CreatePromptTemplate', 'DeletePromptTemplate'],
            'type' => 'directory',
            'title' => 'Prompt engineering',
        ],
        [
            'children' => [
                [
                    'children' => ['CreateMemory', 'GetMemory', 'UpdateMemory', 'DeleteMemory', 'ListMemories', 'CreateMemoryNode', 'GetMemoryNode', 'UpdateMemoryNode', 'DeleteMemoryNode', 'ListMemoryNodes'],
                    'type' => 'directory',
                    'title' => 'Long-term memory (legacy)',
                ],
                'GetAlipayTransferStatus',
                'GetAlipayUrl',
                'ApplyTempStorageLease',
                'DeleteConnector',
                'GetPromptTemplate',
                'ListPromptTemplates',
                'UpdatePromptTemplate',
            ],
            'type' => 'directory',
            'title' => 'Others',
        ],
    ],
    'components' => [
        'schemas' => [],
    ],
    'apis' => [
        'AddCategory' => [
            'summary' => 'Creates a category in a specified workspace to classify and manage files. Each workspace supports a maximum of 500 categories.',
            'path' => '/{WorkspaceId}/datacenter/category/',
            'methods' => ['post'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'readAndWrite',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'WorkspaceId',
                    'in' => 'path',
                    'schema' => ['description' => 'The ID of the workspace where you want to create the category. For more information about how to obtain a workspace ID, see [Work with workspaces](~~2587495~~).', 'type' => 'string', 'required' => true, 'example' => 'llm-3z7uw7fwz0vxxxx', 'title' => ''],
                ],
                [
                    'name' => 'CategoryName',
                    'in' => 'formData',
                    'schema' => ['description' => 'The name of the category. The name must be 1 to 20 characters long. It can contain Unicode letters, such as English letters and Chinese characters, along with digits, colons (:), underscores (\\_), periods (.), and hyphens (-).', 'type' => 'string', 'required' => true, 'example' => '产品清单', 'title' => ''],
                ],
                [
                    'name' => 'CategoryType',
                    'in' => 'formData',
                    'schema' => [
                        'description' => 'The type of the category. Valid value:'."\n"
                            ."\n"
                            .'- UNSTRUCTURED: A category.',
                        'type' => 'string',
                        'required' => true,
                        'example' => 'UNSTRUCTURED',
                        'enum' => ['UNSTRUCTURED'],
                        'title' => '',
                    ],
                ],
                [
                    'name' => 'ParentCategoryId',
                    'in' => 'formData',
                    'schema' => ['description' => 'The ID of the parent category under which the new category is created. If you leave this parameter empty, a top-level category is created.', 'type' => 'string', 'required' => false, 'example' => 'cate_cdd11b1b79a74e8bbd675c356a91ee3xxxxxxxx', 'title' => ''],
                ],
                [
                    'name' => 'ConnectorId',
                    'in' => 'formData',
                    'schema' => ['description' => 'The ID of the connector instance. You can obtain the ID from the Alibaba Cloud Model Studio console.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'conn_xxxx'],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => 'Schema of Response',
                        'description' => 'The response object.',
                        'type' => 'object',
                        'properties' => [
                            'Code' => ['description' => 'The error code.', 'type' => 'string', 'example' => 'success', 'title' => ''],
                            'Data' => [
                                'description' => 'The data returned.',
                                'type' => 'object',
                                'properties' => [
                                    'CategoryId' => ['description' => 'The ID of the category. Save this ID for future API calls that use this category.', 'type' => 'string', 'example' => 'cate_cdd11b1b79a74e8bbd675c356a91ee3xxxxxxxx', 'title' => ''],
                                    'CategoryName' => ['description' => 'The name of the category.', 'type' => 'string', 'example' => '类目名称', 'title' => ''],
                                ],
                                'title' => '',
                                'example' => '',
                            ],
                            'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'Requests throttling triggered.', 'title' => ''],
                            'RequestId' => ['title' => 'Id of the request', 'description' => 'The ID of the request.', 'type' => 'string', 'example' => '778C0B3B-xxxx-5FC1-A947-36EDD13606AB'],
                            'Status' => ['description' => 'The HTTP status code returned.', 'type' => 'string', 'example' => '200', 'title' => ''],
                            'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
                                ."\n"
                                .'- true: The request was successful.'."\n"
                                ."\n"
                                .'- false: The request failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"Code\\": \\"success\\",\\n  \\"Data\\": {\\n    \\"CategoryId\\": \\"cate_cdd11b1b79a74e8bbd675c356a91ee3xxxxxxxx\\",\\n    \\"CategoryName\\": \\"类目名称\\"\\n  },\\n  \\"Message\\": \\"Requests throttling triggered.\\",\\n  \\"RequestId\\": \\"778C0B3B-xxxx-5FC1-A947-36EDD13606AB\\",\\n  \\"Status\\": \\"200\\",\\n  \\"Success\\": true\\n}","type":"json"}]',
            'title' => 'Add Category',
            'description' => '- You cannot use an API to add data tables. To add data tables, go to the [Application Data](https://modelstudio.console.alibabacloud.com/?tab=app#/data-center) page in the console.'."\n"
                ."\n"
                .'- A RAM user must obtain the required [API permissions](~~2848578~~) for Alibaba Cloud Model Studio and [join a workspace](~~2851098~~) before calling this operation. The `AliyunBailianDataFullAccess` permission, which includes the `sfm:AddCategory` permission, is required. An Alibaba Cloud account can call this operation directly without requiring authorization. To call this operation, use the latest version of the [Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29).'."\n"
                ."\n"
                .'- This operation is not idempotent.'."\n"
                ."\n"
                .'**Rate limiting:** Frequent calls to this operation are subject to rate limiting. Do not exceed a frequency of 5 calls per second. If rate limiting is triggered, try again later.',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [
                    ['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'AddCategory'],
                ],
            ],
            'ramActions' => [
                [
                    'operationType' => 'create',
                    'ramAction' => [
                        'action' => 'sfm:AddCategory',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
        ],
        'AddConnector' => [
            'summary' => 'Creates a connector. This API currently supports only file connectors.',
            'path' => '/{WorkspaceId}/datacenter/connector',
            'methods' => ['post'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'readAndWrite',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true],
            'parameters' => [
                [
                    'name' => 'WorkspaceId',
                    'in' => 'path',
                    'schema' => ['description' => 'The ID of the workspace that contains the knowledge base.', 'type' => 'string', 'required' => true, 'example' => 'llm-3shx2gu255oxxxx', 'title' => ''],
                ],
                [
                    'name' => 'ConnectorName',
                    'in' => 'formData',
                    'schema' => ['description' => 'The name of the connector.', 'type' => 'string', 'required' => true, 'maxLength' => 20, 'minLength' => 1, 'title' => '', 'example' => 'test-connector'],
                ],
                [
                    'name' => 'ConnectorType',
                    'in' => 'formData',
                    'schema' => [
                        'description' => 'The type of the connector.',
                        'type' => 'string',
                        'required' => true,
                        'enum' => ['FILE'],
                        'title' => '',
                        'example' => 'FILE',
                    ],
                ],
                [
                    'name' => 'Description',
                    'in' => 'formData',
                    'schema' => ['description' => 'The description for the connector.', 'type' => 'string', 'required' => true, 'maxLength' => 200, 'minLength' => 1, 'title' => '', 'example' => '文件连接器'],
                ],
                [
                    'name' => 'FileConnectorConfig',
                    'in' => 'formData',
                    'style' => 'json',
                    'schema' => [
                        'type' => 'object',
                        'properties' => [
                            'RegionId' => ['description' => 'The region of the bucket.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'cn-hangzhou'],
                            'BucketName' => ['description' => 'The name of the bucket.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'zyb-docker-registry-jn'],
                            'StorageType' => [
                                'description' => 'The file storage location. Valid values:<br>`OSS_CUSTOM`: Use your own Object Storage Service (OSS) bucket.<br>`OSS_PLATFORM`: Use the platform-provided OSS bucket.<br><br>',
                                'type' => 'string',
                                'enum' => ['OSS_CUSTOM', 'OSS_PLATFORM'],
                                'title' => '',
                                'required' => false,
                                'example' => 'OSS_CUSTOM',
                            ],
                        ],
                        'title' => '',
                        'description' => 'The parameters for the file connector.',
                        'required' => false,
                        'example' => '',
                    ],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'type' => 'object',
                        'properties' => [
                            'Code' => ['description' => 'The error code. A value of `Success` indicates that the request succeeded.', 'type' => 'string', 'example' => 'Success', 'title' => ''],
                            'Data' => [
                                'type' => 'object',
                                'properties' => [
                                    'ConnectorId' => ['description' => 'The ID of the connector.', 'type' => 'string', 'title' => '', 'example' => 'conn_file_e0c9db4030b2465a9478028f7d76cd92_1234'],
                                ],
                                'description' => 'The data returned by the operation.',
                                'title' => '',
                                'example' => '',
                            ],
                            'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'Current file status does not support delete.', 'title' => ''],
                            'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '35A267BF-FBFA-54DB-8394-AA3B0742D833'],
                            'Status' => ['description' => 'The HTTP status code.', 'type' => 'string', 'example' => '200', 'title' => ''],
                            'Success' => ['description' => 'Indicates whether the request succeeded. Valid values:'."\n"
                                ."\n"
                                .'- true: The request was successful.'."\n"
                                ."\n"
                                .'- false: The request failed.', 'type' => 'boolean', 'example' => 'true'."\n", 'title' => ''],
                        ],
                        'title' => '',
                        'description' => 'The response object.',
                        'example' => '',
                    ],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'title' => 'AddConnector',
            'description' => '- To call this operation, a RAM user (sub-account) must first have the required [API permissions](~~2848578~~) for Model Studio and be a member of a [business space](~~2851098~~). This requires the `AliyunBailianDataFullAccess` policy, which includes the sfm:AddCategory permission. A primary account can call this operation directly without authorization. We recommend using the latest <props="china">[Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)</props><props="intl">[Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29)</props> to call this operation.'."\n"
                ."\n"
                .'- This operation is not idempotent.'."\n"
                ."\n"
                .'**Throttling:**'."\n"
                .'Do not call this operation more than 5 times per second. If a request is throttled, try again later.',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [],
            ],
            'ramActions' => [
                [
                    'operationType' => 'create',
                    'ramAction' => [
                        'action' => 'sfm:AddConnector',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"Code\\": \\"Success\\",\\n  \\"Data\\": {\\n    \\"ConnectorId\\": \\"conn_file_e0c9db4030b2465a9478028f7d76cd92_1234\\"\\n  },\\n  \\"Message\\": \\"Current file status does not support delete.\\",\\n  \\"RequestId\\": \\"35A267BF-FBFA-54DB-8394-AA3B0742D833\\",\\n  \\"Status\\": \\"200\\",\\n  \\"Success\\": true\\n}","type":"json"}]',
        ],
        'AddFile' => [
            'path' => '/{WorkspaceId}/datacenter/file',
            'methods' => ['put'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'readAndWrite',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'LeaseId',
                    'in' => 'formData',
                    'schema' => ['description' => 'The upload lease ID, which corresponds to the `FileUploadLeaseId` returned by the **ApplyFileUploadLease** operation.', 'type' => 'string', 'required' => true, 'example' => '68abd1dea7b6404d8f7d7b9f7fbd332d.17166xxxxxxxx', 'title' => ''],
                ],
                [
                    'name' => 'Parser',
                    'in' => 'formData',
                    'schema' => ['description' => 'The parser type. Valid values:'."\n"
                        ."\n"
                        .'- DOCMIND: intelligent document parsing'."\n"
                        .'- DOCMIND_DIGITAL: electronic document parsing'."\n"
                        .'- DOCMIND_LLM_VERSION: large language model document parsing'."\n"
                        .'- DASH_QWEN_VL_PARSER: Qwen VL parsing'."\n"
                        .'- DOCMIND_LLM_VERSION_MEDIA: audio and video parsing'."\n"
                        .'- AUTO_SELECT: automatic parser selection'."\n"
                        ."\n"
                        .'<props="intl">'."\n"
                        .'<note>The uploaded file is parsed by using the currently specified parser. If you set this parameter to AUTO_SELECT, the parser configured for the category is used.</note>'."\n"
                        .'</props>'."\n"
                        ."\n"
                        .'<props="china">'."\n"
                        .'<note>When CategoryType is set to UNSTRUCTURED, the parser parses the uploaded file based on the data parsing settings of the current category.</note>'."\n"
                        .'<note>When CategoryType is set to SESSION_FILE, the system parses the file content by using the default method, which cannot be changed.</note>'."\n"
                        .'</props>', 'type' => 'string', 'required' => true, 'example' => 'AUTO_SELECT', 'title' => ''],
                ],
                [
                    'name' => 'CategoryId',
                    'in' => 'formData',
                    'schema' => ['description' => '<props="china">'."\n"
                        ."\n"
                        .'- When CategoryType is set to UNSTRUCTURED, set this parameter to the category ID of the uploaded file, which is the `CategoryId` returned by the **AddCategory** operation. You can also go to [Application Data](https://bailian.console.aliyun.com/?tab=app#/data-center), click the File tab, and then click the ID icon next to the category name to obtain the category ID. You can set this parameter to default to use the system-created default category.'."\n"
                        ."\n"
                        .'- When CategoryType is set to SESSION_FILE, set this parameter to "default".'."\n"
                        .'</props>'."\n"
                        ."\n"
                        .'<props="intl">'."\n"
                        ."\n"
                        .'Set this parameter to the category ID of the uploaded file, which is the `CategoryId` returned by the **AddCategory** operation. You can also go to [Application Data](https://modelstudio.console.alibabacloud.com/?tab=app#/data-center), click the File tab, and then click the ID icon next to the category name to obtain the category ID. You can set this parameter to default to use the system-created default category.'."\n"
                        .'</props>', 'type' => 'string', 'required' => true, 'example' => 'cate_cdd11b1b79a74e8bbd675c356a91ee35xxxxxxxx', 'title' => ''],
                ],
                [
                    'name' => 'WorkspaceId',
                    'in' => 'path',
                    'schema' => ['description' => 'The workspace ID. The file is uploaded to this workspace. For information about how to obtain the workspace ID, see [How to use a workspace](~~2587495~~).', 'type' => 'string', 'required' => true, 'example' => 'llm-3shx2gu255oqxxxx'."\n", 'title' => ''],
                ],
                [
                    'name' => 'Tags',
                    'in' => 'formData',
                    'style' => 'json',
                    'schema' => [
                        'description' => '- The list of tags associated with the file. You can specify up to 100 tags, and the total character length of all tags cannot exceed 700.'."\n"
                            .'- Default value: empty, which means no tags are set.',
                        'type' => 'array',
                        'items' => ['description' => 'The tag of the file. Each tag can contain up to 32 characters. The tag supports characters in the Unicode letter category (including English letters, Chinese characters, and digits), underscores (_), and hyphens (-).', 'type' => 'string', 'required' => false, 'example' => '产品介绍', 'title' => ''],
                        'required' => false,
                        'maxItems' => 100,
                        'minItems' => 1,
                        'title' => '',
                        'example' => '',
                    ],
                ],
                [
                    'name' => 'CategoryType',
                    'in' => 'formData',
                    'schema' => [
                        'description' => 'The category type. This parameter is optional. Default value: UNSTRUCTURED. Valid values:'."\n"
                            .'- UNSTRUCTURED: category used for building knowledge base scenarios.'."\n"
                            ."\n"
                            .'<props="china">'."\n"
                            .'- SESSION_FILE: file used for [session interaction](https://www.alibabacloud.com/help/en/model-studio/user-guide/file-interaction) in agent applications.'."\n"
                            .'<note>When using `SESSION_FILE`, set the CategoryType parameter to `SESSION_FILE` when calling the ApplyFileUploadLease operation as well.</note>'."\n"
                            .'<note>The file is valid only for the current user session. After the user closes the session, the file expires. The maximum validity period is 7 days. Long-term storage is not supported.</note>'."\n"
                            .'</props>',
                        'type' => 'string',
                        'default' => 'UNSTRUCTURED',
                        'enum' => ['UNSTRUCTURED', 'SESSION_FILE'],
                        'required' => false,
                        'example' => 'UNSTRUCTURED',
                        'title' => '',
                    ],
                ],
                [
                    'name' => 'OriginalFileUrl',
                    'in' => 'formData',
                    'schema' => ['description' => '<props="china">'."\n"
                        ."\n"
                        .'Specifies a URL for the file. The system records this URL when building a [document search knowledge base](~~2807740~~). When you use the Alibaba Cloud Model Studio console to interact with an [agent application](~~2842749~~), this URL is returned with the retrieval results of the file through the `docUrl` field.'."\n"
                        ."\n"
                        .'> The agent application must have **Knowledge Base** enabled and the **Show answer sources** feature turned on. Otherwise, this parameter does not take effect.'."\n"
                        ."\n"
                        .'</props>'."\n"
                        ."\n"
                        .'<props="intl">'."\n"
                        ."\n"
                        .'Specifies a URL for the file. The system records this URL when building a [document search knowledge base](~~2807740~~). When you use the Alibaba Cloud Model Studio console to interact with an [agent application](~~2842749~~), this URL is returned with the retrieval results of the file through the `docUrl` field.'."\n"
                        ."\n"
                        .'> The agent application must have **Knowledge Base** enabled and the **Show answer sources** feature turned on. Otherwise, this parameter does not take effect.'."\n"
                        ."\n"
                        .'</props>', 'type' => 'string', 'required' => false, 'example' => 'www.test.com/111.docx', 'title' => ''],
                ],
                [
                    'name' => 'ParserConfig',
                    'in' => 'formData',
                    'style' => 'json',
                    'schema' => [
                        'title' => '',
                        'description' => 'The parser configuration. This parameter is required only when the parser type is set to Qwen VL parsing.',
                        'type' => 'object',
                        'properties' => [
                            'ModelName' => [
                                'title' => '',
                                'description' => 'The model name.',
                                'type' => 'string',
                                'example' => 'qwen-vl-max',
                                'enum' => ['qwen-vl-max', 'qwen-vl-plus', 'qwen3-vl-plus'],
                                'required' => false,
                            ],
                            'ModelPrompt' => ['title' => '', 'description' => 'The prompt used when calling Qwen VL parsing.', 'type' => 'string', 'example' => '#角色'."\n"
                                .'你是一个专业的图片内容标注人员,擅长识别并描述出图片中的内容。'."\n"
                                .'# 任务目标'."\n"
                                .'请结合输入图片,详细描述图片中的内容。', 'maxLength' => 1500, 'minLength' => 1, 'required' => false],
                        ],
                        'required' => false,
                        'example' => '',
                    ],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => '',
                        'description' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'Code' => ['description' => 'The error code.', 'type' => 'string', 'example' => 'DataCenter.FileTooLarge', 'title' => ''],
                            'Data' => [
                                'description' => 'The data field returned by the operation.',
                                'type' => 'object',
                                'properties' => [
                                    'FileId' => ['description' => 'The file ID. Keep this value safe because it is used in all subsequent API operations related to this file.', 'type' => 'string', 'example' => 'file_9a65732555b54d5ea10796ca5742ba22_xxxxxxxx', 'title' => ''],
                                    'Parser' => ['description' => 'The parser type used to parse the file. Valid values:'."\n"
                                        .'- DASHSCOPE_DOCMIND: Alibaba Cloud intelligent document parsing.', 'type' => 'string', 'example' => 'DASHSCOPE_DOCMIND', 'title' => ''],
                                ],
                                'title' => '',
                                'example' => '',
                            ],
                            'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'User not authorized to operate on the specified resource.', 'title' => ''],
                            'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '778C0B3B-xxxx-5FC1-A947-36EDD13606AB'],
                            'Status' => ['description' => 'The status code returned by the operation.', 'type' => 'string', 'example' => '200', 'title' => ''],
                            'Success' => ['description' => 'Indicates whether the call was successful. Valid values:'."\n"
                                .'- true: The call was successful.'."\n"
                                .'- false: The call failed.', 'type' => 'string', 'example' => 'true', 'title' => ''],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'title' => 'Add file',
            'summary' => 'Imports a file from the temporary storage of Alibaba Cloud Model Studio into an Alibaba Cloud Model Studio data connection (formerly known as application data).',
            'description' => '- Resource Access Management (RAM) users must first obtain [API permissions](~~2848578~~) for Alibaba Cloud Model Studio (requires `AliyunBailianDataFullAccess`, which includes the sfm:AddFile permission), and [join a workspace](~~2851098~~) before invoking this operation. Alibaba Cloud accounts can invoke this operation directly without authorization. Invoke this operation by using the latest <props="china">[Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)</props><props="intl">[Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29)</props>.'."\n"
                ."\n"
                .'- This operation is not idempotent.'."\n"
                ."\n"
                .'**Throttling:**'."\n"
                .'This operation is subject to throttling. Do not exceed 10 calls per second. If you are throttled, retry later.',
            'changeSet' => [
                ['createdAt' => '2025-09-28T10:20:10.000Z', 'description' => 'Request parameters changed'],
                ['createdAt' => '2025-05-08T07:51:53.000Z', 'description' => 'Request parameters changed'],
                ['createdAt' => '2024-12-26T07:33:02.000Z', 'description' => 'Request parameters changed'],
                ['createdAt' => '2024-09-18T08:46:20.000Z', 'description' => 'Request parameters changed'],
            ],
            'flowControl' => [
                'flowControlList' => [
                    ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'AddFile'],
                ],
            ],
            'ramActions' => [
                [
                    'operationType' => 'create',
                    'ramAction' => [
                        'action' => 'sfm:AddFile',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"Code\\": \\"DataCenter.FileTooLarge\\",\\n  \\"Data\\": {\\n    \\"FileId\\": \\"file_9a65732555b54d5ea10796ca5742ba22_xxxxxxxx\\",\\n    \\"Parser\\": \\"DASHSCOPE_DOCMIND\\"\\n  },\\n  \\"Message\\": \\"User not authorized to operate on the specified resource.\\",\\n  \\"RequestId\\": \\"778C0B3B-xxxx-5FC1-A947-36EDD13606AB\\",\\n  \\"Status\\": \\"200\\",\\n  \\"Success\\": \\"true\\"\\n}","type":"json"}]',
        ],
        'AddFilesFromAuthorizedOss' => [
            'path' => '/{WorkspaceId}/datacenter/file/fromoss',
            'methods' => ['post'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'readAndWrite',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true, 'tenantRelevance' => 'tenant'],
            'parameters' => [
                [
                    'name' => 'WorkspaceId',
                    'in' => 'path',
                    'schema' => ['description' => 'The workspace ID. Files are imported into this workspace. For more information about how to obtain the workspace ID, see [How to use a workspace](~~2587495~~).', 'type' => 'string', 'required' => true, 'example' => 'llm-3z7uw7fwz0vxxxx', 'title' => ''],
                ],
                [
                    'name' => 'CategoryId',
                    'in' => 'formData',
                    'schema' => ['description' => 'The ID of the category to which the files are imported. This is the `CategoryId` returned by the AddCategory operation. You can also obtain the category ID by clicking the ID icon next to the category name on the <props="china">[Application Data](https://bailian.console.aliyun.com/?tab=app#/data-center) - Files tab</props><props="intl">[Application Data](https://modelstudio.console.alibabacloud.com/?tab=app#/data-center) - Files tab</props>. You can pass in `default` to use the system-created default category.', 'type' => 'string', 'required' => true, 'example' => 'cate_cdd11b1b79a74e8bbd675c356a91ee35xxxxxxxx', 'title' => ''],
                ],
                [
                    'name' => 'CategoryType',
                    'in' => 'formData',
                    'schema' => [
                        'description' => 'The category type. Optional. Default value: UNSTRUCTURED. Valid values:'."\n"
                            .'- UNSTRUCTURED: category for building knowledge base scenarios.'."\n"
                            ."\n"
                            .'<props="china">'."\n"
                            ."\n"
                            .'> This operation does not support importing SESSION_FILE for agent application [conversation interaction](https://www.alibabacloud.com/help/en/model-studio/user-guide/file-interaction). Use the **AddFile** operation to upload SESSION_FILE from a local source.'."\n"
                            ."\n"
                            .'</props>',
                        'enumValueTitles' => ['UNSTRUCTURED' => 'UNSTRUCTURED'],
                        'type' => 'string',
                        'required' => true,
                        'enum' => ['UNSTRUCTURED', 'SESSION_FILE'],
                        'example' => 'UNSTRUCTURED',
                        'title' => '',
                    ],
                ],
                [
                    'name' => 'OssRegionId',
                    'in' => 'formData',
                    'schema' => ['description' => 'The region ID of the OSS bucket. For more information, see [OSS regions and endpoints](~~31837~~).', 'type' => 'string', 'required' => true, 'example' => 'cn-beijing', 'title' => ''],
                ],
                [
                    'name' => 'OssBucketName',
                    'in' => 'formData',
                    'schema' => ['description' => 'The name of the OSS bucket. For more information, see [Buckets](~~177682~~).', 'type' => 'string', 'required' => true, 'example' => 'bucketNamexxxxx', 'title' => ''],
                ],
                [
                    'name' => 'FileDetails',
                    'in' => 'formData',
                    'style' => 'json',
                    'schema' => [
                        'description' => 'The list of files to import. A maximum of 10 files can be uploaded at a time.'."\n"
                            .'> A maximum of 10 files can be uploaded at a time.'."\n"
                            .'>',
                        'type' => 'array',
                        'items' => [
                            'description' => 'The file object.',
                            'type' => 'object',
                            'properties' => [
                                'FileName' => ['description' => 'The name of the file to import. The file name must include the file format extension.'."\n"
                                    .'- Supported formats: pdf, docx, doc, txt, md, pptx, ppt, xlsx, xls, html, png, jpg, jpeg, bmp, and gif.'."\n"
                                    .'- The file name must be 4 to 128 characters in length.'."\n"
                                    .'- For file upload requirements and limits, see [Knowledge base quotas and limits](~~2880605~~).'."\n"
                                    ."\n"
                                    .'><notice>If the name of the imported file is the same as an existing file in the knowledge base, the operation still returns a `Status` of `SUCCESS`, but the file is not actually imported. The existing file with the same name remains unchanged. Make sure that each imported file name is unique.></notice>'."\n"
                                    .'> To create a data table and upload data, use the Model Studio console. This is not supported through the API.', 'type' => 'string', 'required' => true, 'maxLength' => 500, 'minLength' => 1, 'example' => 'this_is_temp_xxxx.pdf', 'title' => ''],
                                'OssKey' => ['description' => 'The key of the file in the OSS bucket. For more information, see [Object naming conventions](~~273129~~).', 'type' => 'string', 'required' => true, 'maxLength' => 256, 'minLength' => 1, 'example' => 'root/path/this_is_temp_xxxx.pdf', 'title' => ''],
                                'Parser' => [
                                    'title' => '',
                                    'description' => 'The parser type. Valid values:'."\n"
                                        ."\n"
                                        .'- DOCMIND: intelligent document parsing.'."\n"
                                        .'- DOCMIND_DIGITAL: electronic document parsing.'."\n"
                                        .'- DOCMIND_LLM_VERSION: LLM-based document parsing.'."\n"
                                        .'- DASH_QWEN_VL_PARSER: Qwen VL parsing.'."\n"
                                        .'- DOCMIND_LLM_VERSION_MEDIA: audio and video parsing.'."\n"
                                        .'- AUTO_SELECT: automatic parser selection.'."\n"
                                        ."\n"
                                        .'<props="intl">'."\n"
                                        .'<note>The uploaded file is parsed by using the specified parser. If you set this parameter to AUTO_SELECT, the parser configured for the category is used.</note>'."\n"
                                        .'</props>'."\n"
                                        ."\n"
                                        .'<props="china">'."\n"
                                        .'<note>When CategoryType is UNSTRUCTURED, the parser parses the uploaded file based on the data parsing settings of the current category.</note>'."\n"
                                        .'<note>When CategoryType is SESSION_FILE, the system uses the default method (which cannot be changed) to parse the file content.</note>'."\n"
                                        .'</props>',
                                    'type' => 'string',
                                    'required' => false,
                                    'example' => 'AUTO_SELECT',
                                    'default' => 'AUTO_SELECT',
                                    'enum' => ['DOCMIND', 'DOCMIND_DIGITAL', 'DOCMIND_LLM_VERSION', 'DASH_QWEN_VL_PARSER', 'DOCMIND_LLM_VERSION_MEDIA', 'AUTO_SELECT'],
                                ],
                                'ParserConfig' => [
                                    'title' => '',
                                    'description' => 'The parser configuration. This parameter is required only when the parser type is set to Qwen VL parsing.',
                                    'type' => 'object',
                                    'properties' => [
                                        'ModelName' => [
                                            'title' => '',
                                            'description' => 'The model name.',
                                            'type' => 'string',
                                            'example' => 'qwen-vl-max',
                                            'enum' => ['qwen-vl-max', 'qwen-vl-plus', 'qwen3-vl-plus'],
                                            'required' => false,
                                        ],
                                        'ModelPrompt' => ['title' => '', 'description' => 'The prompt used when calling Qwen VL parsing.', 'type' => 'string', 'example' => '#角色'."\n"
                                            .'你是一个专业的图片内容标注人员,擅长识别并描述出图片中的内容。'."\n"
                                            .'# 任务目标'."\n"
                                            .'请结合输入图片,详细描述图片中的内容。', 'maxLength' => 1000, 'minLength' => 1, 'required' => false],
                                    ],
                                    'required' => false,
                                    'example' => '',
                                ],
                            ],
                            'required' => true,
                            'title' => '',
                            'example' => '',
                        ],
                        'required' => true,
                        'maxItems' => 10,
                        'minItems' => 1,
                        'title' => '',
                        'example' => '',
                    ],
                ],
                [
                    'name' => 'Tags',
                    'in' => 'formData',
                    'style' => 'json',
                    'schema' => [
                        'title' => '',
                        'description' => 'The list of tags associated with the file. Default value: empty, which means the file is not associated with any tags. A maximum of 10 tags can be specified.',
                        'type' => 'array',
                        'items' => ['description' => 'The tag of the file. Each tag can be up to 12 characters in length and supports characters in the Unicode letter category (including English letters, Chinese characters, and digits), underscores (_), and hyphens (-).', 'type' => 'string', 'required' => false, 'example' => '产品介绍', 'title' => ''],
                        'required' => false,
                        'example' => '',
                    ],
                ],
                [
                    'name' => 'OverWriteFileByOssKey',
                    'in' => 'formData',
                    'schema' => ['title' => '', 'description' => 'Specifies whether to overwrite files with the same OssKey in the category. Default value: false, which means files are not overwritten.', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => '',
                        'description' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'Code' => ['description' => 'The error code.', 'type' => 'string', 'example' => 'success', 'title' => ''],
                            'Data' => [
                                'description' => 'The data field returned by the operation.',
                                'type' => 'object',
                                'properties' => [
                                    'AddFileResultList' => [
                                        'description' => 'The list of file import results.',
                                        'type' => 'array',
                                        'items' => [
                                            'description' => 'The list of file import results.',
                                            'type' => 'object',
                                            'properties' => [
                                                'FileId' => ['description' => 'The file ID. Keep this value safe because it is required for all subsequent API operations related to this file.', 'type' => 'string', 'example' => 'file_809f469a59ac449586ec692576xxxxx_102248XXX', 'title' => ''],
                                                'OssKey' => ['description' => 'The key of the imported file in the OSS bucket.', 'type' => 'string', 'example' => 'root/path/this_is_temp_xxxx.pdf', 'title' => ''],
                                                'Status' => ['description' => 'The file import status. Valid values:'."\n"
                                                    ."\n"
                                                    .'- SUCCESS: The import to application data is complete.'."\n"
                                                    .'- FAILED: The import to application data failed.'."\n"
                                                    ."\n"
                                                    .'> Only files with a SUCCESS status can be used to create or update a knowledge base.'."\n"
                                                    .'>', 'type' => 'string', 'example' => 'SUCCESS', 'title' => ''],
                                                'Msg' => ['description' => 'The error message returned when the file import fails.', 'type' => 'string', 'example' => 'size too large', 'title' => ''],
                                            ],
                                            'title' => '',
                                            'example' => '',
                                        ],
                                        'title' => '',
                                        'example' => '',
                                    ],
                                ],
                                'title' => '',
                                'example' => '',
                            ],
                            'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'Cant find out category for category_id param.', 'title' => ''],
                            'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '17204B98-xxxx-4F9A-8464-2446A84821CA'],
                            'Status' => ['description' => 'The status code returned by the operation.', 'type' => 'string', 'example' => '200', 'title' => ''],
                            'Success' => ['description' => 'Indicates whether the call was successful. Valid values:'."\n"
                                .'- true: Successful.'."\n"
                                .'- false: Failed.', 'type' => 'string', 'example' => 'true', 'title' => ''],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'title' => 'Import files from an authorized OSS bucket',
            'summary' => 'Imports files from an authorized OSS bucket into Alibaba Cloud Model Studio application data.',
            'description' => '- Make sure the OSS bucket belongs to the same Alibaba Cloud account as Model Studio and that authorization has been completed as described in [Importing data from OSS configuration instructions](~~2782155~~).'."\n"
                .' '."\n"
                .'     - Supported bucket storage types do not include Archive, Cold Archive, or Deep Cold Archive. Buckets with content encryption enabled are supported. Buckets with public read/write, public read, or private access are supported.'."\n"
                .'     - To use a bucket with [Referer-based hotlink protection](~~2636937~~) enabled, add the domain name `*.console.aliyun.com` to the Referer whitelist as described in [Allow access only from trusted websites](~~2636937~~).'."\n"
                ."\n"
                .'- Resource Access Management (RAM) users must first obtain [API permissions](~~2848578~~) for Model Studio (the `AliyunBailianDataFullAccess` permission is required, which includes the sfm:AddFilesFromAuthorizedOss permission) and [join a workspace](~~2851098~~) before invoking this operation. Alibaba Cloud accounts can invoke this operation directly without authorization. Call this operation by using the latest <props="china">[Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)</props><props="intl">[Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29)</props>.'."\n"
                .'- This operation does not have idempotence.'."\n"
                ."\n"
                .'**Rate limit:**'."\n"
                .'This operation is throttled if called too frequently. Do not exceed 5 calls per second. If throttled, retry later.',
            'changeSet' => [
                ['createdAt' => '2025-09-10T05:36:04.000Z', 'description' => 'Request parameters changed'],
                ['createdAt' => '2025-08-22T09:15:24.000Z', 'description' => 'Request parameters changed'],
            ],
            'flowControl' => [
                'flowControlList' => [
                    ['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'AddFilesFromAuthorizedOss'],
                ],
            ],
            'ramActions' => [
                [
                    'operationType' => 'create',
                    'ramAction' => [
                        'action' => 'sfm:AddFilesFromAuthorizedOss',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"Code\\": \\"success\\",\\n  \\"Data\\": {\\n    \\"AddFileResultList\\": [\\n      {\\n        \\"FileId\\": \\"file_809f469a59ac449586ec692576xxxxx_102248XXX\\",\\n        \\"OssKey\\": \\"root/path/this_is_temp_xxxx.pdf\\",\\n        \\"Status\\": \\"SUCCESS\\",\\n        \\"Msg\\": \\"size too large\\"\\n      }\\n    ]\\n  },\\n  \\"Message\\": \\"Cant find out category for category_id param.\\",\\n  \\"RequestId\\": \\"17204B98-xxxx-4F9A-8464-2446A84821CA\\",\\n  \\"Status\\": \\"200\\",\\n  \\"Success\\": \\"true\\"\\n}","type":"json"}]',
        ],
        'AddTable' => [
            'summary' => 'Add a table for the table data connector.',
            'path' => '/{WorkspaceId}/datacenter/table',
            'methods' => ['post'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'readAndWrite',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'WorkspaceId',
                    'in' => 'path',
                    'schema' => ['description' => 'The ID of the workspace to which the file belongs. For information about how to obtain the workspace ID, see [How to use a workspace](~~2587495~~).', 'type' => 'string', 'required' => true, 'example' => 'llm-3shx2gu255oqxxxx'."\n", 'title' => ''],
                ],
                [
                    'name' => 'TableName',
                    'in' => 'formData',
                    'schema' => ['description' => 'The table name.', 'type' => 'string', 'required' => true, 'maxLength' => 64, 'minLength' => 1, 'example' => 'ads_wjjr_basc_enterprise_di', 'title' => ''],
                ],
                [
                    'name' => 'TableDesc',
                    'in' => 'formData',
                    'schema' => ['title' => '', 'description' => 'The table description.', 'type' => 'string', 'required' => false, 'maxLength' => 200, 'minLength' => 1, 'example' => 'table description'],
                ],
                [
                    'name' => 'ConnectorId',
                    'in' => 'formData',
                    'schema' => ['description' => 'The connector ID.', 'type' => 'string', 'required' => true, 'example' => 'connector-d51861492df64257', 'title' => ''],
                ],
                [
                    'name' => 'TableColumns',
                    'in' => 'formData',
                    'style' => 'json',
                    'schema' => [
                        'title' => '',
                        'description' => 'The column information of the table.',
                        'type' => 'array',
                        'items' => [
                            'title' => '',
                            'description' => 'The information of a single column.',
                            'type' => 'object',
                            'properties' => [
                                'ColumnName' => ['title' => '', 'description' => 'The column name.', 'type' => 'string', 'required' => true, 'maxLength' => 15, 'minLength' => 1, 'example' => 'column1'],
                                'ColumnDesc' => ['title' => '', 'description' => 'The column description.', 'type' => 'string', 'required' => false, 'maxLength' => 15, 'minLength' => 0, 'example' => 'desc'],
                                'DataType' => [
                                    'title' => '',
                                    'description' => 'The data type.',
                                    'type' => 'string',
                                    'required' => true,
                                    'example' => 'string',
                                    'default' => 'string',
                                    'enum' => ['string', 'double', 'long', 'datetime', 'image_url'],
                                ],
                            ],
                            'required' => true,
                            'example' => '',
                        ],
                        'required' => true,
                        'minItems' => 1,
                        'example' => '',
                    ],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => '',
                        'description' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'Code' => ['description' => 'The error status code.', 'type' => 'string', 'example' => 'Index.Forbidden', 'title' => ''],
                            'Data' => [
                                'description' => 'The returned data.',
                                'type' => 'object',
                                'properties' => [
                                    'TableId' => ['description' => 'The table ID.', 'type' => 'string', 'example' => 'table_b6ddc67e7df14db38b74ef5e2e0fe24e_12792097', 'title' => ''],
                                ],
                                'title' => '',
                                'example' => '',
                            ],
                            'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'Required parameter(%s) missing or invalid, please check the request parameters.', 'title' => ''],
                            'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '778C0B3B-03C1-5FC1-A947-36EDD13606AB'],
                            'Status' => ['description' => 'The status code returned by the interface.', 'type' => 'string', 'example' => '200', 'title' => ''],
                            'Success' => ['description' => 'Indicates whether the API call was successful. Valid values:'."\n"
                                ."\n"
                                .'- true: The call was successful.'."\n"
                                .'- false: The call failed.', 'type' => 'boolean', 'example' => 'True', 'title' => ''],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'title' => 'AddTable',
            'description' => '- RAM users (sub-accounts) must first obtain the [API permissions](~~2848578~~) for Chinese China Bailian (requires `AliyunBailianDataFullAccess`, which includes the sfm:AddTable permission), and [join a workspace](~~2851098~~) before calling this API. Alibaba Cloud accounts (primary accounts) can call this API directly without authorization. We recommend that you call this API by using the latest <props="china">[Chinese China Bailian SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)</props><props="intl">[Chinese China Bailian SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29)</props>.'."\n"
                ."\n"
                .'- This API is not idempotent.'."\n"
                ."\n"
                .'**Throttling:**'."\n"
                .'This API is subject to throttling when called frequently. Do not exceed 10 calls per second. If throttling is triggered, retry later.',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [],
            ],
            'ramActions' => [
                [
                    'operationType' => 'create',
                    'ramAction' => [
                        'action' => 'sfm:AddTable',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"Code\\": \\"Index.Forbidden\\",\\n  \\"Data\\": {\\n    \\"TableId\\": \\"table_b6ddc67e7df14db38b74ef5e2e0fe24e_12792097\\"\\n  },\\n  \\"Message\\": \\"Required parameter(%s) missing or invalid, please check the request parameters.\\",\\n  \\"RequestId\\": \\"778C0B3B-03C1-5FC1-A947-36EDD13606AB\\",\\n  \\"Status\\": \\"200\\",\\n  \\"Success\\": true\\n}","type":"json"}]',
        ],
        'ApplyFileUploadLease' => [
            'summary' => 'Request an upload lease for uploading knowledge base files or files for agent application conversational interactions.',
            'path' => '/{WorkspaceId}/datacenter/category/{CategoryId}',
            'methods' => ['post'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'readAndWrite',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'CategoryId',
                    'in' => 'path',
                    'schema' => ['description' => 'When uploading files for building a [knowledge base](~~2807740~~):'."\n"
                        ."\n"
                        .'- This field represents the category ID to which the uploaded file belongs, which is the `CategoryId` returned by the **AddCategory** API. You can also obtain it by clicking the ID icon next to the category name in <props="china">[Application Data](https://bailian.console.aliyun.com/?tab=app#/data-center) - Files tab</props><props="intl">[Application Data](https://modelstudio.console.alibabacloud.com/?tab=app#/data-center) - Files tab</props>. You can pass in default here to use the system-created "Default Category".'."\n"
                        .'> To create a new data table and upload data, use the Alibaba Cloud Model Studio console. This is not supported through the API.'."\n"
                        .'>'."\n"
                        .'<props="china">'."\n"
                        .'When uploading files for agent application [conversational interactions](https://help.aliyun.com/zh/model-studio/user-guide/file-interaction):'."\n"
                        ."\n"
                        .'- You can simply pass in default here. The system will automatically create or match a default category. Dynamic file category APIs and console management pages will be available in the future.'."\n"
                        .'</props>', 'type' => 'string', 'required' => true, 'example' => 'cate_cdd11b1b79a74e8bbd675c356a91ee35xxxxxxxx', 'title' => ''],
                ],
                [
                    'name' => 'FileName',
                    'in' => 'formData',
                    'schema' => ['description' => 'When uploading files for building a [knowledge base](~~2807740~~):'."\n"
                        .'- This field represents the name of the uploaded file. The file name must include the file format extension. Supported formats:'."\n"
                        .'     - Documents (less than 150 MB): doc, docx, wps, ppt, pptx, xls, xlsx, md, txt, pdf, epub, mobi.'."\n"
                        .'     - Spreadsheets (recommended within 10 MB and 100,000 rows): xls, xlsx.'."\n"
                        .'     - Plain text (recommended not to exceed 10 MB): md, txt.'."\n"
                        .'     - Images (less than 20 MB, shortest side > 15 px, longest side < 8192 px, aspect ratio < 50): png, jpg, jpeg, bmp, gif.'."\n"
                        .'     - Audio: aac, amr, flac, flv, m4a, mp3, mpeg, ogg, opus, wav, webm, wma.'."\n"
                        .'     - Video: mp4, mkv, avi, mov, wmv.'."\n"
                        .'- The file name must be 4 to 128 characters in length. For other limits, see [Knowledge base quotas and limits](~~2880605~~).'."\n"
                        .'> To create a new data table and upload data, use the Alibaba Cloud Model Studio console. This is not supported through the API.'."\n"
                        .'>'."\n"
                        .'<props="china">'."\n"
                        .'When uploading files for agent application [conversational interactions](https://help.aliyun.com/zh/model-studio/user-guide/file-interaction):'."\n"
                        ."\n"
                        .'- This field represents the name of the uploaded file. The file name must include the file format extension. Supported formats:'."\n"
                        .'     - Documents: doc, docx, wps, ppt, pptx, xls, xlsx, md, txt, pdf, epub, mobi.'."\n"
                        .'     - Images: png, jpg, jpeg, bmp, gif.'."\n"
                        .'     - Audio: aac, amr, flac, flv, m4a, mp3, mpeg, ogg, opus, wav, webm, wma.'."\n"
                        .'     - Video: mp4, mkv, avi, mov, wmv.'."\n"
                        .'- The file name must be 4 to 128 characters in length.'."\n"
                        .'</props>', 'type' => 'string', 'required' => true, 'example' => 'XXXX产品清单.pdf', 'title' => ''],
                ],
                [
                    'name' => 'Md5',
                    'in' => 'formData',
                    'schema' => ['description' => 'The MD5 value of the uploaded file. The server will verify this field (currently not enabled). Please fill in the correct value.', 'type' => 'string', 'required' => true, 'maxLength' => 64, 'minLength' => 1, 'example' => '19657c391f6c70bcea63c154d8606bb3', 'title' => ''],
                ],
                [
                    'name' => 'SizeInBytes',
                    'in' => 'formData',
                    'schema' => ['description' => 'The size of the uploaded file in bytes. The server will verify this field (currently not enabled). Please fill in the correct value. Valid values: 1 B to 100 MB.', 'type' => 'string', 'required' => true, 'example' => '1000', 'title' => ''],
                ],
                [
                    'name' => 'WorkspaceId',
                    'in' => 'path',
                    'schema' => ['description' => 'The ID of the workspace to which the uploaded file belongs. For information about how to obtain the workspace ID, see [How to use workspaces](~~2587495~~).', 'type' => 'string', 'required' => true, 'example' => 'llm-3z7uw7fwz0vexxxx', 'title' => ''],
                ],
                [
                    'name' => 'CategoryType',
                    'in' => 'formData',
                    'schema' => [
                        'description' => 'The category type. If this parameter is not specified, the default value is UNSTRUCTURED. Valid values:'."\n"
                            ."\n"
                            .'UNSTRUCTURED: category for building [knowledge base](~~2807740~~) scenarios.'."\n"
                            .'<props="china">'."\n"
                            .'SESSION_FILE: upload files for agent application [conversational interactions](https://help.aliyun.com/zh/model-studio/user-guide/file-interaction).'."\n"
                            .'</props>'."\n"
                            ."\n"
                            .'> To create a new data table and upload data, use the Alibaba Cloud Model Studio console. This is not supported through the API.'."\n"
                            .'>',
                        'type' => 'string',
                        'default' => 'UNSTRUCTURED',
                        'enum' => ['UNSTRUCTURED', 'SESSION_FILE'],
                        'required' => false,
                        'example' => 'UNSTRUCTURED',
                        'title' => '',
                    ],
                ],
                [
                    'name' => 'UseInternalEndpoint',
                    'in' => 'formData',
                    'schema' => [
                        'description' => '<props="china">'."\n"
                            ."\n"
                            .'If you have enabled [Alibaba Cloud Model Studio secure storage](https://help.aliyun.com/zh/model-studio/configure-resources-in-private-network) and need to generate a lease URL that is only accessible from the Alibaba Cloud internal network in the same region, you can set this parameter to true to improve security. If this parameter is not specified, the default value is false, which generates a publicly accessible lease URL.'."\n"
                            .'> If you have not enabled Alibaba Cloud Model Studio secure storage, or are unsure whether you are using it, do not set this parameter to true (upload will fail).'."\n"
                            ."\n"
                            .'</props>'."\n"
                            ."\n"
                            .'<props="intl">'."\n"
                            ."\n"
                            .'If you have enabled Alibaba Cloud Model Studio secure storage and need to generate a lease URL that is only accessible from the Alibaba Cloud internal network in the same region, you can set this parameter to true to improve security. If this parameter is not specified, the default value is false, which generates a publicly accessible lease URL.'."\n"
                            .'> If you have not enabled Alibaba Cloud Model Studio secure storage, or are unsure whether you are using it, do not set this parameter to true (upload will fail).'."\n"
                            .'</props>',
                        'enumValueTitles' => [],
                        'type' => 'boolean',
                        'default' => 'false',
                        'required' => false,
                        'example' => 'false',
                        'title' => '',
                    ],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => '',
                        'description' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'Code' => ['description' => 'The error code.', 'type' => 'string', 'example' => 'DataCenter.FileTooLarge', 'title' => ''],
                            'Data' => [
                                'description' => 'The data returned.',
                                'type' => 'object',
                                'properties' => [
                                    'FileUploadLeaseId' => ['description' => 'The unique ID of the lease. You need to use this parameter when you call the **AddFile** API.', 'type' => 'string', 'example' => '1e6a159107384782be5e45ac4759b247.1719325231035', 'title' => ''],
                                    'Param' => [
                                        'description' => 'The HTTP request parameters for uploading the file.',
                                        'type' => 'object',
                                        'properties' => [
                                            'Headers' => ['description' => 'Key-value pairs that need to be included in the header. Both keys and values are strings.'."\n"
                                                ."\n"
                                                .'> The returned Content-Type may be empty. You can upload the file with the empty value.', 'type' => 'any', 'example' => '"X-bailian-extra":"MTAwNTQyNjQ5NTE2OTE3OA==",'."\n"
                                                .'"Content-Type":"application/pdf"', 'title' => ''],
                                            'Method' => ['description' => 'The HTTP method. Valid values:'."\n"
                                                .'- PUT'."\n"
                                                .'- POST', 'type' => 'string', 'example' => 'PUT', 'title' => ''],
                                            'Url' => ['description' => 'The upload URL of the file.'."\n"
                                                ."\n"
                                                .'> This URL is a pre-signed URL. FormData upload is not supported. You must upload the file in binary mode.', 'type' => 'string', 'example' => 'https://bailian-datahub-data-origin-prod.oss-cn-hangzhou.aliyuncs.com/1005426495169178/10024405/68abd1dea7b6404d8f7d7b9f7fbd332d.1716698936847.pdf?Expires=1716699536&OSSAccessKeyId=TestID&Signature=HfwPUZo4pR6DatSDym0zFKVh9Wg%3D', 'title' => ''],
                                        ],
                                        'title' => '',
                                        'example' => '',
                                    ],
                                    'Type' => ['description' => 'The upload method of the file. Valid values:'."\n"
                                        .'- OSS.PreSignedURL'."\n"
                                        .'- HTTP', 'type' => 'string', 'example' => 'HTTP', 'title' => ''],
                                ],
                                'title' => '',
                                'example' => '',
                            ],
                            'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'User not authorized to operate on the specified resource', 'title' => ''],
                            'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '778C0B3B-xxxx-5FC1-A947-36EDD13606AB'],
                            'Status' => ['description' => 'The status code returned.', 'type' => 'string', 'example' => '200', 'title' => ''],
                            'Success' => ['description' => 'Indicates whether the API call is successful. Valid values:'."\n"
                                ."\n"
                                .'- true: The call is successful.'."\n"
                                .'- false: The call failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"Code\\": \\"DataCenter.FileTooLarge\\",\\n  \\"Data\\": {\\n    \\"FileUploadLeaseId\\": \\"1e6a159107384782be5e45ac4759b247.1719325231035\\",\\n    \\"Param\\": {\\n      \\"Headers\\": \\"\\\\\\"X-bailian-extra\\\\\\":\\\\\\"MTAwNTQyNjQ5NTE2OTE3OA==\\\\\\",\\\\n\\\\\\"Content-Type\\\\\\":\\\\\\"application/pdf\\\\\\"\\",\\n      \\"Method\\": \\"PUT\\",\\n      \\"Url\\": \\"https://bailian-datahub-data-origin-prod.oss-cn-hangzhou.aliyuncs.com/1005426495169178/10024405/68abd1dea7b6404d8f7d7b9f7fbd332d.1716698936847.pdf?Expires=1716699536&OSSAccessKeyId=TestID&Signature=HfwPUZo4pR6DatSDym0zFKVh9Wg%3D\\"\\n    },\\n    \\"Type\\": \\"HTTP\\"\\n  },\\n  \\"Message\\": \\"User not authorized to operate on the specified resource\\",\\n  \\"RequestId\\": \\"778C0B3B-xxxx-5FC1-A947-36EDD13606AB\\",\\n  \\"Status\\": \\"200\\",\\n  \\"Success\\": true\\n}","type":"json"}]',
            'title' => 'Apply for a file upload lease',
            'description' => '- RAM users (sub-accounts) must first obtain [API permissions](~~2848578~~) for Alibaba Cloud Model Studio (requires `AliyunBailianDataFullAccess`, which includes the sfm:ApplyFileUploadLease permission), and [join a workspace](~~2851098~~) before calling this API. Alibaba Cloud accounts (primary accounts) can directly call this API without authorization. We recommend that you call this API by using the latest <props="china">[Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)</props><props="intl">[Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29)</props>.'."\n"
                ."\n\n"
                .'- This API is not idempotent.'."\n"
                ."\n"
                .'**Throttling:**'."\n"
                .'This API is subject to throttling if called too frequently. The frequency must not exceed 10 calls per second. If throttled, please retry later.',
            'changeSet' => [
                ['createdAt' => '2025-04-07T07:31:45.000Z', 'description' => 'Request parameters changed'],
                ['createdAt' => '2024-12-26T07:33:02.000Z', 'description' => 'Request parameters changed'],
                ['createdAt' => '2024-08-20T07:11:43.000Z', 'description' => 'Request parameters changed'],
            ],
            'flowControl' => [
                'flowControlList' => [
                    ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ApplyFileUploadLease'],
                ],
            ],
            'ramActions' => [
                [
                    'operationType' => 'none',
                    'ramAction' => [
                        'action' => 'sfm:ApplyFileUploadLease',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
        ],
        'ApplyTempStorageLease' => [
            'summary' => 'This interface is intended for pro-code deployment only; other scenarios are currently not supported. It is used to apply for a temporary file upload lease. After obtaining the lease, you must upload the file manually.',
            'path' => '/{WorkspaceId}/datacenter',
            'methods' => ['post'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'readAndWrite',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'FileName',
                    'in' => 'formData',
                    'schema' => ['title' => '', 'description' => 'The file name, including the file extension.'."\n", 'type' => 'string', 'required' => true, 'example' => 'example.txt'],
                ],
                [
                    'name' => 'SizeInBytes',
                    'in' => 'formData',
                    'schema' => ['title' => '', 'description' => 'The size of the file, in bytes.'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => true, 'minimum' => '0', 'example' => '1024'],
                ],
                [
                    'name' => 'WorkspaceId',
                    'in' => 'path',
                    'schema' => ['title' => '', 'description' => 'The Model Studio workspace ID.'."\n", 'type' => 'string', 'required' => true, 'example' => 'llm-mbhn96xxxx'],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => 'Schema of Response',
                        'description' => 'Schema of Response'."\n",
                        'type' => 'object',
                        'properties' => [
                            'Code' => ['title' => '', 'description' => 'The status code.'."\n", 'type' => 'string', 'example' => 'DataCenter.FileTooLarge'],
                            'Data' => [
                                'title' => '',
                                'description' => 'The returned data fields.'."\n",
                                'type' => 'object',
                                'properties' => [
                                    'TempStorageLeaseId' => ['title' => '', 'description' => 'Unique lease ID. This parameter is required when retrieving the uploaded file within the application later.'."\n", 'type' => 'string', 'example' => '1e6a159107384782be5e45ac4759b247.1719325231035'],
                                    'Param' => [
                                        'title' => '',
                                        'description' => 'HTTP parameters used for uploading the file.'."\n",
                                        'type' => 'object',
                                        'properties' => [
                                            'Headers' => ['title' => '', 'description' => 'K-V fields to be included in the Header; both Key and Value are strings.'."\n", 'type' => 'any', 'example' => 'Content-Type: application/json'],
                                            'Method' => ['title' => '', 'description' => 'HTTP method for the call. Valid values: PUT POST'."\n", 'type' => 'string', 'example' => 'PUT'],
                                            'Url' => ['title' => '', 'description' => 'Authorized URL for the file upload.'."\n", 'type' => 'string', 'example' => 'https://bailian-datahub-data-origin-prod.oss-cn-hangzhou.aliyuncs.com/1005426495169178/10024405/68abd1dea7b6404d8f7d7b9f7fbd332d.1716698936847.pdf?Expires=1716699536&OSSAccessKeyId=TestID&Signature=HfwPUZo4pR6DatSDym0zFKVh9Wg%3D'],
                                        ],
                                        'example' => '',
                                    ],
                                ],
                                'example' => '',
                            ],
                            'Message' => ['title' => '', 'description' => 'The error message.'."\n", 'type' => 'string', 'example' => 'User not authorized to operate on the specified resource'],
                            'RequestId' => ['title' => '', 'description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '778C0B3B-xxxx-5FC1-A947-36EDD13606AB'],
                            'Status' => ['title' => '', 'description' => 'The HTTP status code returned.'."\n", 'type' => 'string', 'example' => '200'],
                            'Success' => ['title' => '', 'description' => 'Indicates whether the request was successful.'."\n", 'type' => 'boolean', 'default' => 'true', 'example' => ''],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'title' => 'ApplyTempStorageLease',
            'description' => '1\\. This interface is intended for pro-code deployment only; other scenarios are currently not supported. 2. After obtaining the temporary file upload lease via this interface, upload the file manually.'."\n",
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [],
            ],
            'ramActions' => [
                [
                    'operationType' => 'none',
                    'ramAction' => [
                        'action' => 'sfm:ApplyTempStorageLease',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"Code\\": \\"DataCenter.FileTooLarge\\",\\n  \\"Data\\": {\\n    \\"TempStorageLeaseId\\": \\"1e6a159107384782be5e45ac4759b247.1719325231035\\",\\n    \\"Param\\": {\\n      \\"Headers\\": \\"Content-Type: application/json\\",\\n      \\"Method\\": \\"PUT\\",\\n      \\"Url\\": \\"https://bailian-datahub-data-origin-prod.oss-cn-hangzhou.aliyuncs.com/1005426495169178/10024405/68abd1dea7b6404d8f7d7b9f7fbd332d.1716698936847.pdf?Expires=1716699536&OSSAccessKeyId=TestID&Signature=HfwPUZo4pR6DatSDym0zFKVh9Wg%3D\\"\\n    }\\n  },\\n  \\"Message\\": \\"User not authorized to operate on the specified resource\\",\\n  \\"RequestId\\": \\"778C0B3B-xxxx-5FC1-A947-36EDD13606AB\\",\\n  \\"Status\\": \\"200\\",\\n  \\"Success\\": false\\n}","type":"json"}]',
        ],
        'BatchUpdateFileTag' => [
            'summary' => 'This operation updates document tags in a data connection in batches.',
            'path' => '/{WorkspaceId}/datacenter/batchupdatetag',
            'methods' => ['put'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'readAndWrite',
            'deprecated' => false,
            'systemTags' => [
                'operationType' => 'update',
                'riskType' => 'none',
                'chargeType' => 'free',
                'abilityTreeNodes' => ['FEATUREsfm8JET0F'],
                'autoTest' => true,
                'tenantRelevance' => 'tenant',
            ],
            'parameters' => [
                [
                    'name' => 'WorkspaceId',
                    'in' => 'path',
                    'schema' => ['description' => 'The workspace ID. To get this ID, go to the Model Studio <props="china">[console home](https://bailian.console.aliyun.com/knowledge-base#/home)</props><props="intl">[console home](https://bailian.console.alibabacloud.com/#/home)</props> and click the workspace details icon in the upper-left corner.', 'type' => 'string', 'required' => true, 'example' => 'llm-3shx2gu255oqxxxx', 'title' => ''],
                ],
                [
                    'name' => 'FileInfos',
                    'in' => 'formData',
                    'style' => 'json',
                    'schema' => [
                        'type' => 'array',
                        'items' => [
                            'type' => 'object',
                            'properties' => [
                                'FileId' => ['description' => 'The file ID. To get this ID, go to the <props="china">[application data](https://bailian.console.aliyun.com/?tab=app#/data-center)</props><props="intl">[application data](https://modelstudio.console.alibabacloud.com/?tab=app#/data-center)</props> page and click the ID icon next to the file name.', 'type' => 'string', 'required' => true, 'example' => 'file_3d5319366e2c46309f4c11cfbeacd5fd_10045951', 'title' => ''],
                                'tags' => [
                                    'type' => 'array',
                                    'items' => ['description' => 'The tag. It can be up to 32 characters long and must not contain spaces. Supported characters include Unicode letters (such as English letters, Chinese characters, and numbers), underscores (\\_), and hyphens (-).', 'type' => 'string', 'required' => false, 'example' => 'TagA', 'title' => ''],
                                    'required' => true,
                                    'maxItems' => 100,
                                    'minItems' => 1,
                                    'description' => '- A list of up to 100 tags to associate with the file. The total length of all tags cannot exceed 700 characters.',
                                    'title' => '',
                                    'example' => '',
                                ],
                            ],
                            'required' => true,
                            'description' => '',
                            'title' => '',
                            'example' => '',
                        ],
                        'required' => true,
                        'maxItems' => 20,
                        'minItems' => 1,
                        'description' => 'A list of files to update.',
                        'title' => '',
                        'example' => '',
                    ],
                ],
                [
                    'name' => 'UpdateMode',
                    'in' => 'formData',
                    'schema' => [
                        'description' => 'The update mode. Valid values are APPEND and OVERWRITE.',
                        'type' => 'string',
                        'default' => 'OVERWRITE',
                        'enum' => ['OVERWRITE', 'APPEND'],
                        'required' => false,
                        'example' => 'OVERWRITE',
                        'title' => '',
                    ],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'type' => 'object',
                        'properties' => [
                            'Code' => ['description' => 'The response code. A value of Success indicates that the call was successful.', 'type' => 'string', 'example' => 'Success', 'title' => ''],
                            'Data' => [
                                'type' => 'object',
                                'properties' => [
                                    'UpdateFileTagResultList' => [
                                        'type' => 'array',
                                        'items' => [
                                            'type' => 'object',
                                            'properties' => [
                                                'FileId' => ['description' => 'The file ID.', 'type' => 'string', 'example' => 'file_f40f2a32205d44b4a93b11617113da15_10045951', 'title' => ''],
                                                'Success' => ['description' => 'Indicates whether the tags for the specific file were updated. Valid values:'."\n"
                                                    ."\n"
                                                    .'- true: The tags were updated successfully.'."\n"
                                                    ."\n"
                                                    .'- false: The tag update failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
                                                'ErrorCode' => ['description' => 'The error code. This parameter is returned only if Success is false.', 'type' => 'string', 'example' => 'NoPermission', 'title' => ''],
                                                'ErrorMessage' => ['description' => 'The error message. This parameter is returned only if Success is false.', 'type' => 'string', 'example' => 'FileId not exists.', 'title' => ''],
                                            ],
                                            'description' => '',
                                            'title' => '',
                                            'example' => '',
                                        ],
                                        'description' => 'A list of the tag update results.',
                                        'title' => '',
                                        'example' => '',
                                    ],
                                ],
                                'description' => 'The data returned by the operation.',
                                'title' => '',
                                'example' => '',
                            ],
                            'Message' => ['description' => 'The response message.', 'type' => 'string', 'example' => 'Required parameter(FileId) missing or invalid, please check the request parameters.', 'title' => ''],
                            'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '17204B98-xxxx-4F9A-8464-2446A84821CA'],
                            'Status' => ['description' => 'The status code returned for the request.', 'type' => 'string', 'example' => '200', 'title' => ''],
                            'Success' => ['description' => 'Indicates whether the request was accepted. Check `UpdateFileTagResultList` for the status of each file. Valid values:'."\n"
                                ."\n"
                                .'- true: The request was accepted.'."\n"
                                ."\n"
                                .'- false: The request failed, for example, due to an invalid parameter.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
                        ],
                        'title' => '',
                        'description' => 'The response schema.',
                        'example' => '',
                    ],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'title' => 'BatchUpdateFileTag',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [],
            ],
            'ramActions' => [],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"Code\\": \\"Success\\",\\n  \\"Data\\": {\\n    \\"UpdateFileTagResultList\\": [\\n      {\\n        \\"FileId\\": \\"file_f40f2a32205d44b4a93b11617113da15_10045951\\",\\n        \\"Success\\": true,\\n        \\"ErrorCode\\": \\"NoPermission\\",\\n        \\"ErrorMessage\\": \\"FileId not exists.\\"\\n      }\\n    ]\\n  },\\n  \\"Message\\": \\"Required parameter(FileId) missing or invalid, please check the request parameters.\\",\\n  \\"RequestId\\": \\"17204B98-xxxx-4F9A-8464-2446A84821CA\\",\\n  \\"Status\\": \\"200\\",\\n  \\"Success\\": true\\n}","type":"json"}]',
        ],
        'ChangeParseSetting' => [
            'summary' => 'Configures the parsing method for specific file types. For example, specifies large model document parsing for .pdf files or Qwen VL parsing for .jpg files.',
            'path' => '/{WorkspaceId}/datacenter/parser/settings',
            'methods' => ['put'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'readAndWrite',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true, 'tenantRelevance' => 'tenant'],
            'parameters' => [
                [
                    'name' => 'WorkspaceId',
                    'in' => 'path',
                    'schema' => ['description' => 'The ID of the workspace to which the category belongs. For information about how to obtain the workspace ID, see [How to use a workspace](~~2587495~~).', 'type' => 'string', 'required' => true, 'example' => 'llm-3z7uw7fwz0vxxxx', 'title' => ''],
                ],
                [
                    'name' => 'CategoryId',
                    'in' => 'formData',
                    'schema' => ['description' => 'The category ID, which is the `CategoryId` returned by the **AddCategory** operation. You can also obtain it by clicking the ID icon next to the category name on the <props="china">[Application Data](https://bailian.console.aliyun.com/?tab=app#/data-center) - Files tab</props><props="intl">[Application Data](https://bailian.console.alibabacloud.com/?tab=app#/data-center) - Unstructured Data tab</props>.', 'type' => 'string', 'required' => true, 'maxLength' => 128, 'minLength' => 1, 'example' => 'cate_cdd11b1b79a74e8bbd675c356a91ee35xxxxxxxx', 'title' => ''],
                ],
                [
                    'name' => 'FileType',
                    'in' => 'formData',
                    'schema' => [
                        'description' => 'The file type (extension). Valid values:'."\n"
                            .'- doc'."\n"
                            .'- docx'."\n"
                            .'- ppt'."\n"
                            .'- pptx'."\n"
                            .'- xls'."\n"
                            .'- xlsx'."\n"
                            .'- md'."\n"
                            .'- txt'."\n"
                            .'- pdf'."\n"
                            .'- png'."\n"
                            .'- jpg'."\n"
                            .'- jpeg'."\n"
                            .'- bmp'."\n"
                            .'- gif'."\n"
                            .'- html',
                        'type' => 'string',
                        'required' => true,
                        'enum' => ['doc', 'docx', 'ppt', 'pptx', 'xls', 'xlsx', 'md', 'txt', 'pdf', 'png', 'jpg', 'jpeg', 'bmp', 'gif', 'html'],
                        'example' => 'pdf',
                        'title' => '',
                    ],
                ],
                [
                    'name' => 'Parser',
                    'in' => 'formData',
                    'schema' => [
                        'description' => 'The parser identifier code. Different parsers are applicable to different scenarios. For more information, see "Knowledge Base". Valid values:'."\n"
                            .'- DOCMIND (Intelligent Document Parsing)'."\n"
                            .'- DOCMIND_DIGITAL (Electronic Document Parsing)'."\n"
                            .'- DOCMIND_LLM_VERSION (Large Model Document Parsing)'."\n"
                            .'- DASH_QWEN_VL_PARSER (Qwen VL Parsing)'."\n"
                            .'- DOCMIND_LLM_VERSION_MEDIA (Audio/Video Parsing)',
                        'enumValueTitles' => ['DOCMIND' => 'Intelligent Document Parsing.', 'DOCMIND_LLM_VERSION' => 'Large Model Document Parsing.', 'DOCMIND_DIGITAL' => 'Electronic Document Parsing.', 'DASH_QWEN_VL_PARSER' => 'Qwen VL Parsing.'],
                        'type' => 'string',
                        'required' => true,
                        'enum' => ['DOCMIND', 'DOCMIND_DIGITAL', 'DOCMIND_LLM_VERSION', 'DASH_SENSEVOICE', 'RAG_VIDEO_PARSER', 'DASH_QWEN_VL_PARSER', 'BAILIAN_TXT_PARSER'],
                        'example' => 'DOCMIND',
                        'title' => '',
                    ],
                ],
                [
                    'name' => 'ParserConfig',
                    'in' => 'formData',
                    'style' => 'json',
                    'schema' => [
                        'description' => 'The parser configuration. This parameter is required only when the parser is set to Qwen VL Parsing.',
                        'type' => 'object',
                        'properties' => [
                            'modelName' => [
                                'description' => 'The model name.',
                                'enumValueTitles' => ['qwen-vl-max' => 'qwen-vl-max', 'qwen-vl-plus' => 'qwen-vl-plus'],
                                'type' => 'string',
                                'example' => 'qwen-vl-max',
                                'enum' => ['qwen-vl-max', 'qwen-vl-plus', 'qwen3-vl-plus'],
                                'required' => false,
                                'title' => '',
                            ],
                            'modelPrompt' => ['description' => 'The prompt used when calling Qwen VL Parsing.', 'type' => 'string', 'maxLength' => 1500, 'minLength' => 1, 'required' => false, 'example' => '#角色'."\n"
                                .'你是一个专业的图片内容标注人员,擅长识别并描述出图片中的内容。'."\n"
                                .'# 任务目标'."\n"
                                .'请结合输入图片,详细描述图片中的内容。', 'title' => ''],
                        ],
                        'required' => false,
                        'title' => '',
                        'example' => '',
                    ],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => '',
                        'description' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '7BA8ADD9-53D6-53F0-918F-A1E776AD230E'],
                            'Data' => [
                                'description' => 'The business data returned when the request is successful.',
                                'type' => 'object',
                                'properties' => [
                                    'ChangeResult' => ['description' => 'Indicates whether the configuration was changed. Valid values:'."\n"
                                        .'- true: The configuration was updated.'."\n"
                                        .'- false: The configuration was not changed. The modification failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
                                ],
                                'title' => '',
                                'example' => '',
                            ],
                            'Status' => ['description' => 'The status code returned by the operation.', 'type' => 'string', 'example' => '200', 'title' => ''],
                            'Success' => ['description' => 'Indicates whether the call was successful. Valid values:'."\n"
                                .'- true: Successful.'."\n"
                                .'- false: Failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
                            'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'User not authorized to operate on the specified resource.', 'title' => ''],
                            'Code' => ['description' => 'The error status code.', 'type' => 'string', 'example' => 'InvalidParameter', 'title' => ''],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'title' => 'Modify category parsing settings',
            'description' => '- Resource Access Management (RAM) users must first obtain [API permissions](~~2848578~~) for Alibaba Cloud Model Studio (requires `AliyunBailianDataFullAccess`, which includes the sfm:ChangeParseSetting permission), and [join a workspace](~~2851098~~) before invoking this operation. Alibaba Cloud accounts can invoke this operation directly without authorization. Invoke this operation by using the latest <props="china">[Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)</props><props="intl">[Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29)</props>.'."\n"
                ."\n"
                .'- This operation is not idempotent.'."\n"
                ."\n"
                .'**Throttling:**'."\n"
                .'This operation is throttled if called too frequently. Do not exceed 10 calls per second. If throttled, retry later.',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [],
            ],
            'ramActions' => [
                [
                    'operationType' => 'update',
                    'ramAction' => [
                        'action' => 'sfm:ChangeParseSetting',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"RequestId\\": \\"7BA8ADD9-53D6-53F0-918F-A1E776AD230E\\",\\n  \\"Data\\": {\\n    \\"ChangeResult\\": true\\n  },\\n  \\"Status\\": \\"200\\",\\n  \\"Success\\": true,\\n  \\"Message\\": \\"User not authorized to operate on the specified resource.\\",\\n  \\"Code\\": \\"InvalidParameter\\"\\n}","type":"json"}]',
        ],
        'CreateIndex' => [
            'summary' => 'Use this API to create two types of knowledge bases: unstructured knowledge bases for documents, audio, or video, and structured knowledge bases for data queries or image Q&A.',
            'path' => '/{WorkspaceId}/index/create',
            'methods' => ['post'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'readAndWrite',
            'deprecated' => false,
            'systemTags' => [
                'operationType' => 'create',
                'riskType' => 'none',
                'chargeType' => 'free',
                'abilityTreeNodes' => ['FEATUREsfmCPN1XS'],
            ],
            'parameters' => [
                [
                    'name' => 'WorkspaceId',
                    'in' => 'path',
                    'allowEmptyValue' => false,
                    'schema' => ['description' => 'The ID of the workspace where you want to create the knowledge base. For more information about how to obtain the workspace ID, see [How to use workspaces](~~2587495~~).', 'type' => 'string', 'required' => true, 'example' => 'llm-3z7uw7fwz0vexxxx', 'title' => ''],
                ],
                [
                    'name' => 'Name',
                    'in' => 'query',
                    'allowEmptyValue' => false,
                    'schema' => ['description' => 'The name of the knowledge base. The name can be 1 to 20 characters in length and can contain Chinese characters, letters, digits, underscores (\\_), hyphens (-), periods (.), and colons (:).', 'type' => 'string', 'required' => true, 'example' => '企业帮助文档库', 'title' => ''],
                ],
                [
                    'name' => 'StructureType',
                    'in' => 'query',
                    'schema' => [
                        'description' => 'The type of the knowledge base.'."\n"
                            ."\n"
                            .'**Valid values**:'."\n"
                            ."\n"
                            .'- unstructured: A knowledge base for document search, audio, or video. The default scenario for document search is basic document Q\\&A.'."\n"
                            ."\n"
                            .'<props="china">'."\n"
                            ."\n"
                            .'- structured: A knowledge base for data query or image Q\\&A.'."\n"
                            ."\n"
                            .'</props>'."\n"
                            ."\n\n"
                            .'> The type of a knowledge base cannot be changed after it is created.',
                        'enumValueTitles' => ['unstructured' => 'unstructured'],
                        'type' => 'string',
                        'required' => true,
                        'example' => 'unstructured',
                        'title' => '',
                    ],
                ],
                [
                    'name' => 'EmbeddingModelName',
                    'in' => 'query',
                    'allowEmptyValue' => true,
                    'schema' => [
                        'description' => '<props="china">'."\n"
                            ."\n"
                            .'The vector model used by the knowledge base. A vector model converts the original input prompt and knowledge text into numerical vectors to compare their similarity. The text-embedding-v4 model is a comprehensive upgrade over the text-embedding-v3 model in terms of language support, vectorization of code snippets, and vector dimension selection. It is suitable for most scenarios. For more information, see [Vectorization](~~2842587~~). Valid values:'."\n"
                            ."\n"
                            .'- text-embedding-v4'."\n"
                            ."\n"
                            .'- text-embedding-v3'."\n"
                            ."\n"
                            .'If you do not specify this parameter, \\`text-embedding-v3\\` is used.'."\n"
                            ."\n"
                            .'</props>'."\n"
                            ."\n"
                            .'<props="intl">'."\n"
                            ."\n"
                            .'- The vector model used by the knowledge base. A vector model converts the original input prompt and knowledge text into numerical vectors to compare their similarity. The default text-embedding-v2 model (which cannot be changed for now) supports both Chinese and English, along with multiple other languages, and normalizes the vector results. For more information, see [Vectorization](~~2842587~~). Valid values:'."\n"
                            ."\n"
                            .'</props>'."\n"
                            ."\n\n"
                            .'- text-embedding-v2'."\n"
                            ."\n"
                            .'If you do not specify this parameter, \\`text-embedding-v2\\` is used.',
                        'enumValueTitles' => [],
                        'type' => 'string',
                        'required' => false,
                        'title' => '',
                        'example' => '',
                    ],
                ],
                [
                    'name' => 'RerankModelName',
                    'in' => 'query',
                    'allowEmptyValue' => true,
                    'schema' => [
                        'description' => 'The reranking model used by the knowledge base. The reranking model is an external scoring system that calculates a similarity score between the user\'s question and each text chunk in the knowledge base, sorts them in descending order, and returns the top K text chunks. Valid values:'."\n"
                            ."\n"
                            .'<props="china">'."\n"
                            ."\n"
                            .'- qwen3-rerank-hybrid: qwen3-rerank (hybrid) reranking.'."\n"
                            ."\n"
                            .'- qwen3-rerank: qwen3-rerank reranking.'."\n"
                            ."\n"
                            .'- gte-rerank-hybrid: gte-rerank (hybrid) reranking.'."\n"
                            ."\n"
                            .'- gte-rerank: gte-rerank reranking.'."\n"
                            ."\n"
                            .'</props>'."\n"
                            ."\n"
                            .'<props="intl">'."\n"
                            ."\n"
                            .'- gte-rerank-hybrid: Official reranking.'."\n"
                            ."\n"
                            .'- gte-rerank: gte-rerank reranking.'."\n"
                            ."\n"
                            .'</props>'."\n"
                            ."\n"
                            .'<props="china">'."\n"
                            ."\n"
                            .'If you do not specify this parameter, \\`qwen3-rerank\\` is used.'."\n"
                            ."\n"
                            .'> Use \\`qwen3-rerank\\` if you only need semantic sorting. Use \\`qwen3-rerank-hybrid\\` if you need both semantic sorting and text-matching features to ensure relevance.'."\n"
                            ."\n"
                            .'</props>'."\n"
                            ."\n"
                            .'<props="intl">'."\n"
                            ."\n"
                            .'If you do not specify this parameter, \\`gte-rerank-hybrid\\` is used.'."\n"
                            ."\n"
                            .'> Use \\`gte-rerank\\` if you only need semantic sorting. Use \\`gte-rerank-hybrid\\` if you need both semantic sorting and text-matching features to ensure relevance.'."\n"
                            ."\n"
                            .'</props>'."\n"
                            ."\n"
                            .'<props="china">'."\n"
                            ."\n"
                            .'> The \\`gte-rerank-hybrid\\` and \\`gte-rerank\\` models are no longer updated and are not recommended.'."\n"
                            ."\n"
                            .'</props>',
                        'enumValueTitles' => ['gte-rerank-hybrid' => 'Official reranking', 'gte-rerank' => 'gte-rerank reranking'],
                        'type' => 'string',
                        'required' => false,
                        'example' => 'gte-rerank-hybrid',
                        'title' => '',
                    ],
                ],
                [
                    'name' => 'RerankMinScore',
                    'in' => 'query',
                    'allowEmptyValue' => true,
                    'schema' => ['description' => 'The similarity threshold. Only text chunks with a similarity score greater than this value are recalled. This is used to filter the text chunks returned by the reranking model. The value must be between 0.01 and 1.00.'."\n"
                        ."\n"
                        .'If you do not specify this parameter, the default value 0.01 is used.', 'type' => 'number', 'format' => 'double', 'required' => false, 'example' => '0.20', 'title' => ''],
                ],
                [
                    'name' => 'ChunkSize',
                    'in' => 'query',
                    'allowEmptyValue' => true,
                    'schema' => ['description' => '<props="china">'."\n"
                        ."\n"
                        .'The chunk size, which is the maximum number of characters for each text chunk. If this length is exceeded:'."\n"
                        ."\n"
                        .'- **Smart chunking** (the \\`chunkMode\\` parameter is not specified): The text is likely to be truncated.'."\n"
                        ."\n"
                        .'- **Custom chunking** (the \\`chunkMode\\` parameter is specified): The text is forcibly truncated.'."\n"
                        ."\n"
                        .'</props>'."\n"
                        ."\n"
                        .'<props="intl">'."\n"
                        ."\n"
                        .'The chunk size, which is the maximum number of characters for each text chunk. If this length is exceeded, the text is likely to be truncated.'."\n"
                        ."\n"
                        .'</props>'."\n"
                        ."\n"
                        .'The value must be between 1 and 6000. If you do not specify this parameter, the default value 500 is used.'."\n"
                        ."\n"
                        .'> If you set \\`ChunkSize\\` to a value less than 100, you must also set \\`OverlapSize\\`. You can also leave both parameters unspecified, and the system will use the default values.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '128', 'title' => ''],
                ],
                [
                    'name' => 'OverlapSize',
                    'in' => 'query',
                    'allowEmptyValue' => true,
                    'schema' => ['description' => 'The overlap size, which is the number of overlapping characters between the current text chunk and the previous one. The value must be between 0 and 1024.'."\n"
                        ."\n"
                        .'If you do not specify this parameter, the default value 100 is used.'."\n"
                        ."\n"
                        .'> \\`OverlapSize\\` must be smaller than \\`ChunkSize\\`. Otherwise, chunking errors will occur.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '16', 'title' => ''],
                ],
                [
                    'name' => 'Separator',
                    'in' => 'query',
                    'allowEmptyValue' => true,
                    'schema' => ['description' => '<props="china">'."\n"
                        ."\n"
                        .'The sentence separator. This parameter takes effect only when \\`chunkMode\\` is set to **regex**. It is ignored in other modes, even if specified. You can enter a regular expression (multiple expressions are not supported) to split the file into smaller text chunks.'."\n"
                        ."\n"
                        .'For smart chunking (the \\`chunkMode\\` parameter is not specified), you can leave this parameter empty.'."\n"
                        ."\n"
                        .'</props>'."\n"
                        ."\n"
                        .'<props="intl">'."\n"
                        ."\n"
                        .'> This parameter is not yet available. Do not specify it.'."\n"
                        ."\n"
                        .'</props>', 'type' => 'string', 'required' => false, 'example' => '(?<=。)', 'title' => ''],
                ],
                [
                    'name' => 'SourceType',
                    'in' => 'query',
                    'allowEmptyValue' => true,
                    'schema' => [
                        'description' => '><notice>'."\n"
                            ."\n"
                            .'In the latest SDK version, this parameter is required. Otherwise, calling the SubmitIndexJob operation will result in the error: Required parameter(data\\_sources) missing or invalid.'."\n"
                            ."\n"
                            .'></notice>'."\n"
                            ."\n"
                            .'The source of the imported data. Valid values:'."\n"
                            ."\n"
                            .'- DATA\\_CENTER\\_CATEGORY: Category type. Imports all files under the specified categories in <props="intl">[Application Data](https://modelstudio.console.alibabacloud.com/?tab=app#/data-center)</props>. You can import multiple categories at the same time.'."\n"
                            ."\n"
                            .'- DATA\\_CENTER\\_FILE: File type. Imports the specified files from <props="intl">[Application Data](https://modelstudio.console.alibabacloud.com/?tab=app#/data-center)</props>. You can import multiple files at the same time.'."\n"
                            ."\n"
                            .'> If you set this parameter to DATA\\_CENTER\\_CATEGORY, you must specify the \\`CategoryIds\\` parameter. If you set this parameter to DATA\\_CENTER\\_FILE, you must specify the \\`DocumentIds\\` parameter.'."\n"
                            ."\n"
                            .'> To create an empty knowledge base, use an empty category that contains no files. Set this parameter to DATA\\_CENTER\\_CATEGORY and specify the ID of the empty category for \\`CategoryIds\\`.',
                        'enumValueTitles' => ['DATA_CENTER_CATEGORY' => 'Category type', 'DATA_CENTER_FILE' => 'File type'],
                        'type' => 'string',
                        'required' => false,
                        'example' => 'DATA_CENTER_FILE',
                        'title' => '',
                    ],
                ],
                [
                    'name' => 'DocumentIds',
                    'in' => 'query',
                    'allowEmptyValue' => true,
                    'style' => 'json',
                    'schema' => [
                        'description' => 'You can import files when you create a knowledge base. Specify a list of files to import by providing their IDs. We recommend importing no more than 10,000 files. If you have more files, you can call the **SubmitIndexAddDocumentsJob** operation to import them later.',
                        'type' => 'array',
                        'items' => ['description' => 'The file ID. This is the `FileId` returned by the **AddFile** operation. You can also obtain the ID by clicking the ID icon next to the file name in the [file connector](https://bailian.console.aliyun.com/cn-beijing?tab=app#/connector/list) under Data Connectors or on the Files tab of <props="intl">[Application Data](https://modelstudio.console.alibabacloud.com/?tab=app#/data-center)</props>.', 'type' => 'string', 'required' => false, 'example' => 'file_9a65732555b54d5ea10796ca5742ba22_xxxxxxxx', 'title' => ''],
                        'required' => false,
                        'title' => '',
                        'example' => '',
                    ],
                ],
                [
                    'name' => 'CategoryIds',
                    'in' => 'query',
                    'allowEmptyValue' => true,
                    'style' => 'json',
                    'schema' => [
                        'description' => 'You can import files when you create a knowledge base. Specify category IDs to import all files under the corresponding categories. We recommend importing no more than 10,000 files. If you have more files, you can call the **SubmitIndexAddDocumentsJob** operation to import them later.',
                        'type' => 'array',
                        'items' => ['description' => 'The category ID. This is the \\`CategoryId\\` returned by the **AddCategory** operation. You can also obtain it on the Files tab of <props="intl">[Application Data](https://modelstudio.console.alibabacloud.com/?tab=app#/data-center)</props> by clicking the ID icon next to the category name.', 'type' => 'string', 'required' => false, 'example' => 'ca_hiu2383nfxxxx', 'title' => ''],
                        'required' => false,
                        'title' => '',
                        'example' => '',
                    ],
                ],
                [
                    'name' => 'TableIds',
                    'in' => 'query',
                    'allowEmptyValue' => false,
                    'style' => 'json',
                    'schema' => [
                        'description' => '<props="china">'."\n"
                            ."\n"
                            .'Obtain the table ID on the Tables tab of the table connector in Data Connections by clicking the ID icon next to the table name. If the list contains multiple IDs, only the first one is used.'."\n"
                            ."\n"
                            .'</props>'."\n"
                            ."\n"
                            .'<props="intl">'."\n"
                            ."\n"
                            .'> This parameter is not yet available. Do not specify it.'."\n"
                            ."\n"
                            .'</props>',
                        'type' => 'array',
                        'items' => ['type' => 'string', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
                        'required' => false,
                        'title' => '',
                        'example' => '',
                    ],
                ],
                [
                    'name' => 'SinkType',
                    'in' => 'query',
                    'schema' => [
                        'description' => 'The storage class for the knowledge base vectors. For more information, see [Knowledge bases](~~2807740~~). Valid values:'."\n"
                            ."\n"
                            .'- BUILT\\_IN: Hosts the vector data on the Alibaba Cloud Model Studio platform.'."\n"
                            ."\n"
                            .'- ADB: AnalyticDB for PostgreSQL. We recommend choosing ADB if you need advanced features such as database management, auditing, and monitoring.'."\n"
                            ."\n"
                            .'> If you have not used ADB storage on Alibaba Cloud Model Studio, go to the <props="intl">[Create Knowledge Base](https://bailian.console.alibabacloud.com/#/knowledge-base/create)</props> page, set the vector storage class to ADB-PG, and follow the on-screen instructions to grant the required permissions. If you set this parameter to ADB, you must specify the \\`SinkInstanceId\\` and \\`SinkRegion\\` parameters.',
                        'enumValueTitles' => ['BUILT_IN' => 'BUILT\\_IN', 'ADB' => 'ADB'],
                        'type' => 'string',
                        'required' => true,
                        'example' => 'BUILT_IN',
                        'title' => '',
                    ],
                ],
                [
                    'name' => 'SinkInstanceId',
                    'in' => 'query',
                    'allowEmptyValue' => true,
                    'schema' => ['description' => 'The ID of the AnalyticDB for PostgreSQL instance. This parameter is required only when \\`SinkType\\` is set to ADB. Go to the [AnalyticDB for PostgreSQL instance list](https://gpdbnext.console.aliyun.com/gpdb/list) page to obtain this ID.', 'type' => 'string', 'required' => false, 'example' => 'gp-bp32109xxxx', 'title' => ''],
                ],
                [
                    'name' => 'SinkRegion',
                    'in' => 'query',
                    'allowEmptyValue' => true,
                    'schema' => ['description' => 'The region where the AnalyticDB for PostgreSQL instance is located. This parameter is required only when \\`SinkType\\` is set to ADB. You can call the <props="intl">[DescribeRegions ](https://www.alibabacloud.com/help/zh/analyticdb/analyticdb-for-postgresql/developer-reference/api-gpdb-2016-05-03-describeregions?spm=a2c63.p38356.0.i3)</props>operation to obtain a list of regions.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''],
                ],
                [
                    'name' => 'Columns',
                    'in' => 'query',
                    'style' => 'json',
                    'schema' => [
                        'description' => '<props="china">'."\n"
                            ."\n"
                            .'The structure of the data table (column names, types, etc.).'."\n"
                            ."\n"
                            .'</props>'."\n"
                            ."\n"
                            .'<props="intl">'."\n"
                            ."\n"
                            .'> This parameter is not yet available. Do not specify it.'."\n"
                            ."\n"
                            .'</props>',
                        'type' => 'array',
                        'items' => [
                            'description' => '> This parameter is not yet available. Do not specify it.',
                            'type' => 'object',
                            'properties' => [
                                'Column' => ['description' => '> This parameter is not yet available. Do not specify it.', 'type' => 'string', 'required' => false, 'example' => 'school', 'title' => ''],
                                'IsRecall' => ['description' => '<props="china">'."\n"
                                    ."\n"
                                    .'Specifies whether to participate in model response generation. If enabled, the retrieval results from this column are used as input for the LLM to generate an answer. Valid values:'."\n"
                                    ."\n"
                                    .'- true: Enabled.'."\n"
                                    ."\n"
                                    .'- false: Disabled.'."\n"
                                    ."\n"
                                    .'</props>'."\n"
                                    ."\n"
                                    .'<props="intl">'."\n"
                                    ."\n"
                                    .'> This parameter is not yet available. Do not specify it.'."\n"
                                    ."\n"
                                    .'</props>', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
                                'IsSearch' => ['description' => '<props="china">'."\n"
                                    ."\n"
                                    .'Specifies whether to participate in knowledge base retrieval. If enabled, the knowledge base is allowed to search for data in this column. Valid values:'."\n"
                                    ."\n"
                                    .'- true: Enabled.'."\n"
                                    ."\n"
                                    .'- false: Disabled.'."\n"
                                    ."\n"
                                    .'</props>'."\n"
                                    ."\n"
                                    .'<props="intl">'."\n"
                                    ."\n"
                                    .'> This parameter is not yet available. Do not specify it.'."\n"
                                    ."\n"
                                    .'</props>', 'type' => 'boolean', 'required' => false, 'example' => 'true'."\n", 'title' => ''],
                                'Name' => ['description' => '<props="china">'."\n"
                                    ."\n"
                                    .'The field name. It must be consistent with the table header of the data table created in Application Data.'."\n"
                                    ."\n"
                                    .'</props>'."\n"
                                    ."\n"
                                    .'<props="intl">'."\n"
                                    ."\n"
                                    .'> This parameter is not yet available. Do not specify it.'."\n"
                                    ."\n"
                                    .'</props>', 'type' => 'string', 'required' => false, 'example' => '学校', 'title' => ''],
                                'Type' => [
                                    'description' => '<props="china">'."\n"
                                        ."\n"
                                        .'The field type. It must be consistent with the table header of the data table created in Application Data. Valid values:'."\n"
                                        ."\n"
                                        .'- string'."\n"
                                        ."\n"
                                        .'- double'."\n"
                                        ."\n"
                                        .'- long'."\n"
                                        ."\n"
                                        .'- datetime'."\n"
                                        ."\n"
                                        .'- image\\_url'."\n"
                                        ."\n"
                                        .'</props>'."\n"
                                        ."\n"
                                        .'<props="intl">'."\n"
                                        ."\n"
                                        .'> This parameter is not yet available. Do not specify it.'."\n"
                                        ."\n"
                                        .'</props>',
                                    'enumValueTitles' => [],
                                    'type' => 'string',
                                    'required' => false,
                                    'example' => 'string',
                                    'title' => '',
                                ],
                            ],
                            'required' => false,
                            'title' => '',
                            'example' => '',
                        ],
                        'required' => false,
                        'title' => '',
                        'example' => '',
                    ],
                ],
                [
                    'name' => 'Description',
                    'in' => 'query',
                    'schema' => ['description' => 'The description of the knowledge base. The description can be 0 to 1,000 English or Chinese characters in length.'."\n"
                        .'The default value is empty.', 'type' => 'string', 'required' => false, 'example' => '企业帮助文档库包括了公司制度、产品清单等重要资料。', 'title' => ''],
                ],
                [
                    'name' => 'metaExtractColumns',
                    'in' => 'query',
                    'style' => 'json',
                    'schema' => [
                        'description' => 'The metadata extraction configuration. Metadata is a series of additional attributes related to unstructured data content. These attributes are integrated into text chunks as key-value pairs. For more information, see [Knowledge bases](~~2807740~~).',
                        'type' => 'array',
                        'items' => [
                            'type' => 'object',
                            'properties' => [
                                'Key' => ['description' => 'The metadata field. The field name can be 1 to 50 characters in length and must consist of letters or underscores. If you specify this parameter, you must also specify the \\`Value\\` and \\`Type\\` parameters.', 'type' => 'string', 'required' => false, 'example' => 'author', 'title' => ''],
                                'Value' => ['description' => 'The value of the metadata field.', 'type' => 'string', 'required' => false, 'example' => 'Tim', 'title' => ''],
                                'Type' => [
                                    'description' => 'The method for obtaining the value of the metadata field. Valid values:'."\n"
                                        ."\n"
                                        .'- constant: Constant.'."\n"
                                        ."\n"
                                        .'- variable: Variable.'."\n"
                                        ."\n"
                                        .'- custom\\_prompt: Large Language Model (LLM).'."\n"
                                        ."\n"
                                        .'- regular: Regular expression.'."\n"
                                        ."\n"
                                        .'- keywords: Keyword search.',
                                    'enumValueTitles' => ['constant' => 'Constant extraction', 'keywords' => 'Keyword extraction', 'custom_prompt' => 'Large Language Model', 'variable' => 'Variable extraction', 'regular' => 'Regular expression'],
                                    'type' => 'string',
                                    'required' => false,
                                    'example' => 'constant',
                                    'title' => '',
                                ],
                                'Desc' => ['description' => 'The Chinese description of the metadata field. The description can be 0 to 1,000 characters in length and can contain Chinese characters, letters, digits, underscores (\\_), hyphens (-), periods (.), and colons (:). The default value is empty.', 'type' => 'string', 'required' => false, 'example' => '作者名', 'title' => ''],
                                'EnableLlm' => [
                                    'description' => 'If enabled, the metadata field and its value are used along with the text chunk content in the answer generation process of the LLM. Valid values:'."\n"
                                        ."\n"
                                        .'- true: Enabled.'."\n"
                                        ."\n"
                                        .'- false: Disabled.'."\n"
                                        ."\n"
                                        .'The default value is false.',
                                    'enumValueTitles' => ['true' => 'Enabled', 'false' => 'Disabled'],
                                    'type' => 'boolean',
                                    'required' => false,
                                    'example' => 'false',
                                    'title' => '',
                                ],
                                'EnableSearch' => [
                                    'description' => 'If enabled, the metadata field and its value are used along with the text chunk content in the knowledge base retrieval process. Valid values:'."\n"
                                        ."\n"
                                        .'- true: Enabled.'."\n"
                                        ."\n"
                                        .'- false: Disabled.'."\n"
                                        ."\n"
                                        .'The default value is false.',
                                    'enumValueTitles' => ['true' => 'Enabled', 'false' => 'Disabled'],
                                    'type' => 'boolean',
                                    'required' => false,
                                    'example' => 'false',
                                    'title' => '',
                                ],
                            ],
                            'required' => false,
                            'description' => '',
                            'title' => '',
                            'example' => '',
                        ],
                        'required' => false,
                        'title' => '',
                        'example' => '',
                    ],
                ],
                [
                    'name' => 'enableHeaders',
                    'in' => 'query',
                    'schema' => [
                        'description' => 'Specifies whether to treat the first row of all .xlsx and .xls files as the table header and append it to each text chunk. This prevents the LLM from treating the header as a regular data row.'."\n"
                            ."\n"
                            .'> We recommend enabling this feature only when all imported files are in .xlsx or .xls format and contain a header. Otherwise, do not enable it.'."\n"
                            ."\n"
                            .'Valid values:'."\n"
                            ."\n"
                            .'- true: Enabled.'."\n"
                            ."\n"
                            .'- false: Disabled.'."\n"
                            ."\n"
                            .'If you do not specify this parameter, this feature is disabled by default.',
                        'enumValueTitles' => ['true' => 'Enabled', 'false' => 'Disabled'],
                        'type' => 'boolean',
                        'required' => false,
                        'example' => 'false',
                        'title' => '',
                    ],
                ],
                [
                    'name' => 'chunkMode',
                    'in' => 'query',
                    'schema' => [
                        'description' => '<props="china">'."\n"
                            ."\n"
                            .'Enables custom chunking and specifies the chunking policy. For more information, see [Knowledge bases](~~2807740~~).'."\n"
                            ."\n"
                            .'Possible values (only one value can be specified at a time):'."\n"
                            ."\n"
                            .'- **length**: Chunks by length. The text is strictly chunked according to the \\`ChunkSize\\` and \\`OverlapSize\\` you specify. If you do not specify these two parameters, the system uses the default values (\\`ChunkSize\\` is 500, \\`OverlapSize\\` is 100). Chunking by length does not support \\`Separator\\` (it is ignored even if specified).'."\n"
                            ."\n"
                            .'- **page**: Chunks by page. If \\`ChunkSize\\` is specified, it is also considered during chunking (if not specified, the default value 500 is used). Chunking by page does not support \\`OverlapSize\\` or \\`Separator\\` (they are ignored even if specified).'."\n"
                            ."\n"
                            .'- **h1**: Chunks by level-1 heading. If \\`ChunkSize\\` is specified, it is also considered during chunking (if not specified, the default value 500 is used). Chunking by level-1 heading does not support \\`OverlapSize\\` or \\`Separator\\` (they are ignored even if specified).'."\n"
                            ."\n"
                            .'- **h2**: Chunks by level-2 heading. If \\`ChunkSize\\` is specified, it is also considered during chunking (if not specified, the default value 500 is used). Chunking by level-2 heading does not support \\`OverlapSize\\` or \\`Separator\\` (they are ignored even if specified).'."\n"
                            ."\n"
                            .'- **regex**: Chunks by regular expression. You must specify the \\`Separator\\` parameter. If \\`ChunkSize\\` is specified, it is also considered during chunking (if not specified, the default value 500 is used). Chunking by regular expression does not support \\`OverlapSize\\` (it is ignored even if specified).'."\n"
                            ."\n"
                            .'If you do not specify this parameter, smart chunking is used by default.'."\n"
                            ."\n"
                            .'</props>'."\n"
                            ."\n"
                            .'<props="intl">'."\n"
                            ."\n"
                            .'> This parameter is not yet available. Do not specify it.'."\n"
                            ."\n"
                            .'</props>',
                        'enumValueTitles' => ['regex' => 'Chunk by regular expression', 'length' => 'Chunk by length', 'h1' => 'Chunk by level-1 heading', 'h2' => 'Chunk by level-2 heading', 'page' => 'Chunk by page'],
                        'type' => 'string',
                        'required' => false,
                        'example' => 'regex',
                        'title' => '',
                    ],
                ],
                [
                    'name' => 'EnableRewrite',
                    'in' => 'query',
                    'schema' => [
                        'description' => 'Specifies whether to enable multi-turn conversation rewriting. Valid values:'."\n"
                            ."\n"
                            .'- true: Enabled.'."\n"
                            ."\n"
                            .'- false: Disabled.'."\n"
                            ."\n"
                            .'If you do not specify this parameter, this feature is enabled by default.',
                        'enumValueTitles' => ['true' => 'Enabled', 'false' => 'Disabled'],
                        'type' => 'boolean',
                        'required' => false,
                        'example' => 'true',
                        'title' => '',
                    ],
                ],
                [
                    'name' => 'CreateIndexType',
                    'in' => 'query',
                    'schema' => ['description' => '> This parameter is not yet available. Do not specify it.', 'type' => 'string', 'required' => false, 'example' => 'standard', 'title' => ''],
                ],
                [
                    'name' => 'pipelineCommercialType',
                    'in' => 'query',
                    'allowEmptyValue' => false,
                    'schema' => [
                        'description' => '<props="china">'."\n"
                            ."\n"
                            .'The [edition type](~~2997110~~) of the knowledge base. Valid values:'."\n"
                            ."\n"
                            .'- standard: Standard Edition'."\n"
                            ."\n"
                            .'- enterprise: Ultimate Edition'."\n"
                            ."\n"
                            .'</props>'."\n"
                            ."\n"
                            .'<props="intl">'."\n"
                            ."\n"
                            .'> This parameter is not yet available. Do not specify it.'."\n"
                            ."\n"
                            .'</props>',
                        'type' => 'string',
                        'example' => 'standard',
                        'default' => 'standard',
                        'enum' => ['enterprise', 'standard'],
                        'required' => false,
                        'title' => '',
                    ],
                ],
                [
                    'name' => 'pipelineCommercialCu',
                    'in' => 'query',
                    'allowEmptyValue' => false,
                    'schema' => ['description' => '<props="china">'."\n"
                        ."\n"
                        .'The number of RCUs for the knowledge base. This parameter is required only when \\`pipelineCommercialType\\` is set to \\`enterprise\\`. The value must be between 1 and 200.'."\n"
                        ."\n"
                        .'</props>'."\n"
                        ."\n"
                        .'<props="intl">'."\n"
                        ."\n"
                        .'> This parameter is not yet available. Do not specify it.'."\n"
                        ."\n"
                        .'</props>', 'type' => 'integer', 'format' => 'int32', 'maximum' => '200', 'minimum' => '1', 'example' => '1', 'default' => '1', 'required' => false, 'title' => ''],
                ],
                [
                    'name' => 'pipelineRetrieveRateLimitStrategy',
                    'in' => 'query',
                    'allowEmptyValue' => false,
                    'schema' => [
                        'description' => '<props="china">'."\n"
                            ."\n"
                            .'The rate limiting policy for the knowledge base dependency chain. This parameter is required only when \\`pipelineCommercialType\\` is set to \\`enterprise\\`.'."\n"
                            .'Value:'."\n"
                            .'downgrade: Degrades the service (switches to using a lightweight retrieval chain).'."\n"
                            .'If you do not specify this parameter, the default value \\`downgrade\\` is used.'."\n"
                            ."\n"
                            .'</props>'."\n"
                            ."\n"
                            .'<props="intl">'."\n"
                            ."\n"
                            .'> This parameter is not yet available. Do not specify it.'."\n"
                            ."\n"
                            .'</props>',
                        'type' => 'string',
                        'example' => 'downgrade',
                        'default' => 'downgrade',
                        'enum' => ['downgrade'],
                        'required' => false,
                        'title' => '',
                    ],
                ],
                [
                    'name' => 'knowledgeType',
                    'in' => 'query',
                    'schema' => ['description' => 'The data source code. This parameter is required when creating a data query knowledge base and is used with \\`table\\` and \\`database\\`.'."\n"
                        ."\n"
                        .'<props="china">'."\n"
                        ."\n"
                        .'We recommend using the new \\`connectId\\` parameter, which you can obtain from the data connector card on the [Data Connections](https://modelstudio.console.alibabacloud.com/?tab=app#/connector/list) page. This parameter is still compatible but will no longer be maintained in the future.'."\n"
                        ."\n"
                        .'</props>'."\n"
                        ."\n"
                        .'> - This operation does not support associating custom databases. Use the Alibaba Cloud Model Studio console to create them.', 'type' => 'string', 'required' => false, 'example' => 'document', 'title' => ''],
                ],
                [
                    'name' => 'RerankMode',
                    'in' => 'query',
                    'allowEmptyValue' => true,
                    'schema' => [
                        'description' => 'The name of the data table. This parameter is required when creating a data query knowledge base.'."\n"
                            ."\n"
                            .'The data table must exist in the data source specified by \\`connectId\\` or \\`datasourceCode\\`.',
                        'enumValueTitles' => ['similar: 相似模式。' => 'similar: 相似模式。', 'custom: 自定义模式。' => 'custom: 自定义模式。', 'qa:(默认值) 问答模式。' => 'qa:(默认值) 问答模式。', 'similar: ' => 'similar: Similarity mode.', 'custom: ' => 'custom: Custom mode.', '' => 'qa: (Default) Q\\&A mode.'],
                        'type' => 'string',
                        'required' => false,
                        'example' => 'qa',
                        'title' => '',
                    ],
                ],
                [
                    'name' => 'RerankInstruct',
                    'in' => 'query',
                    'allowEmptyValue' => true,
                    'schema' => ['description' => 'The name of the database. This parameter is required when creating a data query knowledge base.'."\n"
                        ."\n"
                        .'The database must exist in the data source specified by \\`datasourceCode\\`.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => ''],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => 'Schema of Response',
                        'description' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'Code' => ['description' => 'Error status code', 'type' => 'string', 'title' => '', 'example' => ''],
                            'Data' => [
                                'description' => 'The business data returned when the request is successful.',
                                'type' => 'object',
                                'properties' => [
                                    'Id' => ['description' => 'The ID of the knowledge base, also known as \\`IndexId\\`. This is the unique identifier of the created knowledge base.'."\n"
                                        ."\n"
                                        .'> Keep this value safe. It will be used for all subsequent API operations related to this knowledge base.', 'type' => 'string', 'example' => 'jkurxhxxxx', 'title' => ''],
                                ],
                                'title' => '',
                                'example' => '',
                            ],
                            'Message' => ['description' => 'Error message', 'type' => 'string', 'title' => '', 'example' => ''],
                            'RequestId' => ['title' => 'Id of the request', 'description' => 'Request ID', 'type' => 'string', 'example' => '17204B98-xxxx-4F9A--2446A84821CA'],
                            'Status' => ['description' => 'The status code returned by the interface.', 'type' => 'string', 'example' => '"200"', 'title' => ''],
                            'Success' => ['description' => 'Indicates whether the request was successful. Possible values:'."\n"
                                ."\n"
                                .'- true: Successful'."\n"
                                ."\n"
                                .'- false: Failed', 'type' => 'boolean', 'example' => 'true'."\n", 'title' => ''],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"Code\\": \\"\\",\\n  \\"Data\\": {\\n    \\"Id\\": \\"jkurxhxxxx\\"\\n  },\\n  \\"Message\\": \\"\\",\\n  \\"RequestId\\": \\"17204B98-xxxx-4F9A--2446A84821CA\\",\\n  \\"Status\\": \\"\\\\\\"200\\\\\\"\\",\\n  \\"Success\\": true\\n}","type":"json"}]',
            'title' => 'Create Knowledge Base  ',
            'description' => '- **Permissions**:'."\n"
                ."\n"
                .'  - **RAM user**: A RAM user must obtain the required [API permissions](~~2848578~~) for Alibaba Cloud Model Studio and [join a workspace](~~2851098~~) before calling this operation. You can use the `AliyunBailianDataFullAccess` policy, which includes the \\`sfm:CreateIndex\\` permission required for this operation.'."\n"
                ."\n"
                .'  - **Alibaba Cloud account**: By default, Alibaba Cloud accounts have the required permissions and can call this operation directly.'."\n"
                ."\n"
                .'- **How to call**: Use the latest version of the <props="intl">[Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29)</props> to call this operation. The SDK handles the complex signature calculation logic to simplify the process.'."\n"
                ."\n"
                .'- **What to do next**: This operation only initializes a knowledge base creation job. After calling this operation, you must call the **SubmitIndexJob** operation to complete the creation. Otherwise, an empty knowledge base is created. For related code examples, see [Knowledge base API guide](~~2852772~~).'."\n"
                ."\n"
                .'- **Idempotence**: This operation is not idempotent. Repeated calls may create multiple knowledge bases with the same name. To ensure idempotence, query for the knowledge base before you create it.'."\n"
                ."\n"
                .'**Rate limiting:**'."\n"
                .'Frequent calls to this operation are subject to rate limiting. Do not exceed a frequency of 10 calls per second. If you encounter rate limiting, retry the call later.',
            'changeSet' => [
                ['createdAt' => '2025-12-03T12:10:50.000Z', 'description' => 'Request parameters changed'],
                ['createdAt' => '2025-07-30T09:21:00.000Z', 'description' => 'Request parameters changed'],
                ['createdAt' => '2025-06-04T01:43:41.000Z', 'description' => 'Request parameters changed'],
                ['createdAt' => '2025-04-21T03:29:44.000Z', 'description' => 'Request parameters changed'],
                ['createdAt' => '2025-01-03T03:32:34.000Z', 'description' => 'Request parameters changed'],
                ['createdAt' => '2024-11-07T09:52:44.000Z', 'description' => 'Request parameters changed'],
                ['createdAt' => '2024-09-17T11:04:42.000Z', 'description' => 'Request parameters changed'],
            ],
            'flowControl' => [
                'flowControlList' => [
                    ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateIndex'],
                ],
            ],
            'ramActions' => [
                [
                    'operationType' => 'create',
                    'ramAction' => [
                        'action' => 'sfm:CreateIndex',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
        ],
        'CreateMemory' => [
            'summary' => 'Creates a long-term memory.',
            'path' => '/{workspaceId}/memories',
            'methods' => ['post'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'write',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'workspaceId',
                    'in' => 'path',
                    'schema' => ['title' => '', 'description' => 'The ID of the workspace to which the long-term memory belongs. For information about how to obtain the workspace ID, see [How to use a workspace](~~2587495~~).', 'type' => 'string', 'required' => true, 'example' => 'llm-3z7uw7fwz0vexxxx'],
                ],
                [
                    'name' => 'description',
                    'in' => 'query',
                    'allowEmptyValue' => true,
                    'schema' => ['title' => '', 'description' => 'The description of the long-term memory. The description must be 1 to 50 characters in length and can contain letters, digits, and characters in the Unicode letter category (including Chinese characters). The description can also contain colons (:), underscores (_), periods (.), and hyphens (-).', 'type' => 'string', 'required' => false, 'example' => '我的大模型应用$APP_ID关于A用户的长期记忆体'],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => '',
                        'description' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'memoryId' => ['title' => '', 'description' => 'The long-term memory ID.'."\n"
                                .'> Store this value properly. It is required for all subsequent API operations related to this long-term memory.'."\n"
                                .'>.', 'type' => 'string', 'example' => '6bff4f317a14442fbc9f73d29dbxxxx'],
                            'requestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '17204B98-xxxx-4F9A--2446A84821CA'],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'errorCodes' => [
                400 => [
                    ['errorCode' => 'Memory.DescriptionInvalid', 'errorMessage' => 'Input parameter description is invalid.', 'description' => 'Memory\'s description is invalid'],
                ],
                404 => [
                    ['errorCode' => 'Memory.MemoryIdNotFound', 'errorMessage' => 'Memory Id not exist or is not authorized.', 'description' => 'memoryId not found'],
                ],
                500 => [
                    ['errorCode' => 'Memory.InternalError', 'errorMessage' => 'Memory service inner exception.', 'description' => 'Memory service inner exception.'."\n"],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"memoryId\\": \\"6bff4f317a14442fbc9f73d29dbxxxx\\",\\n  \\"requestId\\": \\"17204B98-xxxx-4F9A--2446A84821CA\\"\\n}","type":"json"}]',
            'title' => 'Create a long-term memory',
            'description' => '- You can store specific information from conversations (memory nodes. For more information, see [Long-term memory](https://www.alibabacloud.com/help/en/model-studio/user-guide/long-term-memory)) in a long-term memory. Agent applications can then reference this information in subsequent conversations. This is not an automatic creation procedure. You must first invoke the [CreateMemory](https://www.alibabacloud.com/help/en/model-studio/developer-reference/api-bailian-2023-12-29-creatememory) operation to create a long-term memory and obtain the `memoryId`. Then pass the `memoryId` when you [invoke the agent application through the API](https://www.alibabacloud.com/help/en/model-studio/user-guide/application-calling).'."\n"
                .'    > Long-term memory does not support storing and managing user profiles through the API. Perform related operations in the console. For more information, see [Long-term memory](https://www.alibabacloud.com/help/en/model-studio/user-guide/long-term-memory#578ebae524m6l).'."\n"
                .'- If you pass a `memoryId`, the system uses automatic creation to generate memory nodes (MemoryNode) under the specified long-term memory based on conversation records. You can also invoke the [CreateMemoryNode](https://www.alibabacloud.com/help/en/model-studio/developer-reference/api-bailian-2023-12-29-creatememorynode) operation to manually create memory nodes.'."\n"
                .'- This operation does not support idempotence.'."\n"
                ."\n"
                .'**Throttling:** Ensure that the interval between two consecutive requests is at least 1 second. Otherwise, throttling may be triggered. If throttling occurs, retry later.',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [
                    ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateMemory'],
                ],
            ],
            'ramActions' => [
                [
                    'operationType' => 'create',
                    'ramAction' => [
                        'action' => 'sfm:CreateMemory',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
        ],
        'CreateMemoryNode' => [
            'summary' => 'Creates a memory node.',
            'path' => '/{workspaceId}/memories/{memoryId}/memoryNodes',
            'methods' => ['post'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'write',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'workspaceId',
                    'in' => 'path',
                    'schema' => ['description' => 'The ID of the workspace to which the long-term memory belongs. For information about how to obtain the workspace ID, see [How to use workspaces](~~2587495~~).', 'type' => 'string', 'required' => false, 'example' => 'llm-us9hjmt32nysdm5v'."\n", 'title' => ''],
                ],
                [
                    'name' => 'memoryId',
                    'in' => 'path',
                    'schema' => ['title' => '', 'description' => 'The long-term memory ID, which is the memoryId returned by the **CreateMemory** operation.', 'type' => 'string', 'required' => true, 'example' => '6bff4f317a14442fbc9f73d29dbd5fc3'."\n"],
                ],
                [
                    'name' => 'content',
                    'in' => 'query',
                    'schema' => ['title' => '', 'description' => 'The content of the memory node. The content must be 1 to 200 characters in length and can contain letters, digits, underscores (_), hyphens (-), periods (.), and colons (:).', 'type' => 'string', 'required' => true, 'example' => '用户喜欢吃西红柿炒鸡蛋'],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => '',
                        'description' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'memoryNodeId' => ['title' => '', 'description' => 'The memory node ID.', 'type' => 'string', 'example' => '68de06c95368463a8be4a84efcxxxxxx'],
                            'requestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '8C56C7AF-xxxx-19CE-B018-E05E1EDCF4C5'],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'errorCodes' => [
                400 => [
                    ['errorCode' => 'Memory.MemoryNodeContentInvalid', 'errorMessage' => 'Memory node content is invalid.', 'description' => 'Memory node content is invalid.'],
                ],
                404 => [
                    ['errorCode' => 'Memory.MemoryIdNotFound', 'errorMessage' => 'Memory Id not exist or is not authorized.', 'description' => 'memoryId not found'],
                    ['errorCode' => 'Memory.MemoryNodeNotFound', 'errorMessage' => 'MemoryNode not found.', 'description' => 'MemoryNode not found'],
                ],
                500 => [
                    ['errorCode' => 'Memory.InternalError', 'errorMessage' => 'Memory service inner exception.', 'description' => 'Memory service inner exception.'."\n"],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"memoryNodeId\\": \\"68de06c95368463a8be4a84efcxxxxxx\\",\\n  \\"requestId\\": \\"8C56C7AF-xxxx-19CE-B018-E05E1EDCF4C5\\"\\n}","type":"json"}]',
            'title' => 'Create a memory node',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [
                    ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateMemoryNode'],
                ],
            ],
            'ramActions' => [
                [
                    'operationType' => 'create',
                    'ramAction' => [
                        'action' => 'sfm:CreateMemoryNode',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
        ],
        'CreatePromptTemplate' => [
            'summary' => 'Create a prompt template.',
            'path' => '/{workspaceId}/promptTemplates',
            'methods' => ['post'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'write',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'workspaceId',
                    'in' => 'path',
                    'schema' => ['title' => '', 'description' => 'Workspace ID.', 'type' => 'string', 'required' => true, 'example' => 'llm-czal8nvvwb8d4xxx'."\n"],
                ],
                [
                    'name' => 'name',
                    'in' => 'query',
                    'schema' => ['title' => '', 'description' => 'Template name.', 'type' => 'string', 'required' => true, 'example' => '小红书文案助手'],
                ],
                [
                    'name' => 'content',
                    'in' => 'query',
                    'schema' => ['title' => '', 'description' => 'Prompt template content.', 'type' => 'string', 'required' => true, 'example' => '请写一篇小红书种草笔记,增加丰富的emoji元素,结尾作总结,并加上相关标签。主题为:${theme}'],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => '',
                        'description' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'promptTemplateId' => ['title' => '', 'description' => 'Prompt template ID.', 'type' => 'string', 'example' => '6e49109bfeb94a39bb268f4e483ccxxx'],
                            'requestId' => ['title' => '', 'description' => 'Request ID.', 'type' => 'string', 'example' => 'FE9B6CBF-47E6-5D76-9C5D-B814DD5ABxxx'."\n"],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'errorCodes' => [
                400 => [
                    ['errorCode' => 'PromptTemplate.ContentInvalid', 'errorMessage' => 'Input parameter Content is invalid.', 'description' => 'The format of the input parameter Content is invalid.'],
                    ['errorCode' => 'PromptTemplate.NameInvalid', 'errorMessage' => 'Input parameter Name is invalid.', 'description' => 'The format of the input parameter Name is invalid.'],
                ],
                500 => [
                    ['errorCode' => 'PromptTemplate.InternalError', 'errorMessage' => 'Prompt template service inner exception.', 'description' => 'prompt template service internal exception'],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"promptTemplateId\\": \\"6e49109bfeb94a39bb268f4e483ccxxx\\",\\n  \\"requestId\\": \\"FE9B6CBF-47E6-5D76-9C5D-B814DD5ABxxx\\\\n\\"\\n}","type":"json"}]',
            'title' => 'Create a Prompt Template',
            'description' => 'This API does not currently support the creation of text-to-image prompt templates.',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [
                    ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreatePromptTemplate'],
                ],
            ],
            'ramActions' => [
                [
                    'operationType' => 'create',
                    'ramAction' => [
                        'action' => 'sfm:CreatePromptTemplate',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
        ],
        'DeleteCategory' => [
            'summary' => 'Permanently deletes a specified category.',
            'path' => '/{WorkspaceId}/datacenter/category/{CategoryId}/',
            'methods' => ['delete'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'readAndWrite',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'CategoryId',
                    'in' => 'path',
                    'schema' => ['description' => '<props="china">'."\n"
                        ."\n"
                        .'The category ID, which is the `CategoryId` returned by the **AddCategory** operation. You can also obtain it on the [Application Data](https://bailian.console.aliyun.com/?tab=app#/data-center) > File tab by clicking the ID icon next to the category name.'."\n"
                        ."\n"
                        .'</props>'."\n"
                        ."\n"
                        .'<props="intl">'."\n"
                        ."\n"
                        .'The category ID, which is the `CategoryId` returned by the **AddCategory** operation. You can also obtain it on the [Application Data](https://modelstudio.console.alibabacloud.com/?tab=app#/data-center) > File tab by clicking the ID icon next to the category name.'."\n"
                        ."\n"
                        .'</props>.', 'type' => 'string', 'required' => true, 'example' => 'cate_cdd11b1b79a74e8bbd675c356a91ee35xxxxxxxx', 'title' => ''],
                ],
                [
                    'name' => 'WorkspaceId',
                    'in' => 'path',
                    'schema' => ['description' => 'The ID of the workspace to which the category belongs. For information about how to obtain the workspace ID, see [How to use a workspace](~~2587495~~).', 'type' => 'string', 'required' => true, 'example' => 'llm-3shx2gu255oqxxxx', 'title' => ''],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => '',
                        'description' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '17204B98-xxxx-4F9A-8464-2446A84821CA'],
                            'Data' => [
                                'description' => 'The data field returned by the operation.',
                                'type' => 'object',
                                'properties' => [
                                    'CategoryId' => ['description' => 'The ID of the deleted category.', 'type' => 'string', 'example' => 'cate_cdd11b1b79a74e8bbd675c356a91ee3xxxxxxxx', 'title' => ''],
                                ],
                                'title' => '',
                                'example' => '',
                            ],
                            'Status' => ['description' => 'The status code returned by the operation.', 'type' => 'string', 'example' => '200', 'title' => ''],
                            'Success' => ['description' => 'Indicates whether the call was successful. Valid values:'."\n"
                                .'- true: The call was successful.'."\n"
                                .'- false: The call failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
                            'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'workspace id is null or invalid.', 'title' => ''],
                            'Code' => ['description' => 'The error code.', 'type' => 'string', 'example' => 'success', 'title' => ''],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"RequestId\\": \\"17204B98-xxxx-4F9A-8464-2446A84821CA\\",\\n  \\"Data\\": {\\n    \\"CategoryId\\": \\"cate_cdd11b1b79a74e8bbd675c356a91ee3xxxxxxxx\\"\\n  },\\n  \\"Status\\": \\"200\\",\\n  \\"Success\\": true,\\n  \\"Message\\": \\"workspace id is null or invalid.\\",\\n  \\"Code\\": \\"success\\"\\n}","type":"json"}]',
            'title' => 'Delete a category',
            'description' => '- Resource Access Management (RAM) users must first obtain [API permissions](~~2848578~~) for Alibaba Cloud Model Studio (requiring `AliyunBailianDataFullAccess`, which includes the sfm:DeleteCategory permission), and [join a workspace](~~2851098~~) before calling this operation. Alibaba Cloud accounts can call this operation directly without authorization. Use the latest <props="china">[Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)</props><props="intl">[Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29)</props> to call this operation.'."\n"
                .'- This operation is idempotent.'."\n"
                ."\n"
                .'**Rate limiting:**'."\n"
                .'This operation is subject to rate limiting. Do not exceed 5 calls per second. If you are throttled, retry later.',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [
                    ['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteCategory'],
                ],
            ],
            'ramActions' => [
                [
                    'operationType' => 'delete',
                    'ramAction' => [
                        'action' => 'sfm:DeleteCategory',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
        ],
        'DeleteChunk' => [
            'summary' => 'Deletes specified text chunks from a knowledge base. Deleted text chunks cannot be retrieved or recalled.',
            'path' => '/{WorkspaceId}/chunk/delete',
            'methods' => ['post'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'readAndWrite',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'PipelineId',
                    'in' => 'query',
                    'schema' => ['description' => 'The knowledge base ID, which is the `Data.Id` returned by the **CreateIndex** operation.', 'type' => 'string', 'required' => true, 'example' => '79c0alxxxx', 'title' => ''],
                ],
                [
                    'name' => 'WorkspaceId',
                    'in' => 'path',
                    'schema' => ['description' => 'The workspace ID of the knowledge base. To obtain the workspace ID, refer to [How to use a workspace](~~2587495~~).', 'type' => 'string', 'required' => true, 'example' => 'llm-3z7uw7fwz0vexxxx', 'title' => ''],
                ],
                [
                    'name' => 'ChunkIds',
                    'in' => 'query',
                    'style' => 'json',
                    'schema' => [
                        'description' => 'The list of text chunks to delete. A maximum of 10 text chunk IDs can be specified in a single request.',
                        'type' => 'array',
                        'items' => ['description' => 'The text chunk ID, which is the `_id` field in `Metadata` of the Node object returned by the **ListChunks** operation.', 'type' => 'string', 'required' => true, 'example' => 'llm-5ip55o1zrzxx_09fe52x_xxxxx_033b551e10024029992e79767b151fxx_10024xx_0', 'title' => ''],
                        'required' => true,
                        'title' => '',
                        'example' => '',
                    ],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => '',
                        'description' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '35A267BF-xxxx-54DB-8394-AA3B0742D833'."\n"],
                            'Code' => ['description' => 'The error status code.', 'type' => 'string', 'title' => '', 'example' => ''],
                            'Message' => ['description' => 'The error message.', 'type' => 'string', 'title' => '', 'example' => ''],
                            'Success' => ['description' => 'Indicates whether the call was successful. Valid values:'."\n"
                                ."\n"
                                .'- true: The call was successful.'."\n"
                                .'- false: The call failed.', 'type' => 'boolean', 'example' => 'true'."\n", 'title' => ''],
                            'Data' => ['description' => 'The business data returned upon a successful request.', 'type' => 'boolean', 'example' => 'true'."\n", 'title' => ''],
                            'Status' => ['description' => 'The status code returned by the operation.', 'type' => 'string', 'example' => '200'."\n", 'title' => ''],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"RequestId\\": \\"35A267BF-xxxx-54DB-8394-AA3B0742D833\\\\n\\",\\n  \\"Code\\": \\"\\",\\n  \\"Message\\": \\"\\",\\n  \\"Success\\": true,\\n  \\"Data\\": true,\\n  \\"Status\\": \\"200\\\\n\\"\\n}","type":"json"}]',
            'title' => 'Delete chunks',
            'description' => '<warning>  Deleted text chunks cannot be recovered (hard delete). Proceed with caution.'."\n"
                .'- **Permission requirements**:'."\n"
                .'  - **Resource Access Management (RAM) user**: Obtain [API permissions](~~2848578~~) for Model Studio first (you can use the `AliyunBailianDataFullAccess` policy, which includes the sfm:DeleteChunk permission required by this operation), and [join a workspace](~~2851098~~) before invoking this operation.'."\n"
                .'  - **Alibaba Cloud account**: Has permissions by default and can invoke this operation directly.'."\n"
                .'- **Invocation method**: Use the latest <props="china">[Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)</props><props="intl">[Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29)</props>. The SDK provides encapsulation of complex signature calculation logic and simplifies the invocation procedure.'."\n"
                .'- **Effective latency**: Changes typically take effect immediately. During peak hours, there may be a slight delay (seconds).'."\n"
                .'- **Idempotence**: This operation is idempotent. Repeated calls to delete an already deleted text chunk return a success response.'."\n"
                ."\n"
                .'**Rate limit:**'."\n"
                .'This operation is throttled if called too frequently. Do not exceed 10 calls per second. If throttled, retry later.',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [],
            ],
            'ramActions' => [
                [
                    'operationType' => 'delete',
                    'ramAction' => [
                        'action' => 'sfm:DeleteChunk',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
        ],
        'DeleteConnector' => [
            'summary' => '',
            'path' => '/{WorkspaceId}/datacenter/connector/{ConnectorId}',
            'methods' => ['delete'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'readAndWrite',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'ConnectorId',
                    'in' => 'path',
                    'schema' => ['type' => 'string', 'required' => true, 'maxLength' => 256, 'minLength' => 1, 'description' => '', 'example' => 'connector-d51861492df64257', 'title' => ''],
                ],
                [
                    'name' => 'WorkspaceId',
                    'in' => 'path',
                    'schema' => ['type' => 'string', 'required' => true, 'description' => '', 'example' => 'llm-mbhn96xxxx', 'title' => ''],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'type' => 'object',
                        'properties' => [
                            'Code' => ['type' => 'string', 'description' => '', 'example' => 'Index.InvalidParameter', 'title' => ''],
                            'Data' => [
                                'type' => 'object',
                                'properties' => [
                                    'ConnectorId' => ['type' => 'string', 'description' => '', 'example' => 'conn_file_e0c9db4030b2465a9478028f7d76cd92_1234', 'title' => ''],
                                ],
                                'description' => '',
                                'title' => '',
                                'example' => '',
                            ],
                            'Message' => ['type' => 'string', 'description' => '', 'example' => 'User not authorized to operate on the specified resource', 'title' => ''],
                            'RequestId' => ['type' => 'string', 'title' => '', 'description' => '', 'example' => '1C139002-0EC5-584C-A755-4B8B9FA080BE'],
                            'Status' => ['type' => 'string', 'description' => '', 'example' => '200', 'title' => ''],
                            'Success' => ['type' => 'boolean', 'description' => '', 'example' => 'true', 'title' => ''],
                        ],
                        'title' => '',
                        'description' => '',
                        'example' => '',
                    ],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'title' => '',
            'description' => '- RAM用户(子账号)需要首先获取阿里云百炼的[API权限](~~2848578~~)(需要`AliyunBailianDataFullAccess`,已包括sfm:DeleteConnector权限点),并[加入一个业务空间](~~2851098~~)后,方可调用本接口。阿里云账号(主账号)可直接调用无须授权。建议您通过最新版[阿里云百炼SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)[阿里云百炼SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29)来调用本接口。'."\n"
                .'- 本接口不具备幂等性。'."\n"
                ."\n"
                .'**限流说明:**'."\n"
                .'本接口频繁调用会被限流,频率请勿超过5次/秒。如遇限流,请稍后重试。',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [],
            ],
            'ramActions' => [],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"Code\\": \\"Index.InvalidParameter\\",\\n  \\"Data\\": {\\n    \\"ConnectorId\\": \\"conn_file_e0c9db4030b2465a9478028f7d76cd92_1234\\"\\n  },\\n  \\"Message\\": \\"User not authorized to operate on the specified resource\\",\\n  \\"RequestId\\": \\"1C139002-0EC5-584C-A755-4B8B9FA080BE\\",\\n  \\"Status\\": \\"200\\",\\n  \\"Success\\": true\\n}","type":"json"}]',
        ],
        'DeleteFile' => [
            'path' => '/{WorkspaceId}/datacenter/file/{FileId}/',
            'methods' => ['delete'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'readAndWrite',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'FileId',
                    'in' => 'path',
                    'schema' => ['description' => 'The file ID, which is the `FileId` returned by the **AddFile** API. You can also obtain it on the <props="china">[Application Data](https://bailian.console.aliyun.com/?tab=app#/data-center)</props><props="intl">[Application Data](https://modelstudio.console.alibabacloud.com/?tab=app#/data-center)</props> page by clicking the ID icon next to the file name.', 'type' => 'string', 'required' => true, 'maxLength' => 128, 'minLength' => 32, 'example' => 'file_9a65732555b54d5ea10796ca5742ba22_xxxxxxxx', 'title' => ''],
                ],
                [
                    'name' => 'WorkspaceId',
                    'in' => 'path',
                    'schema' => ['description' => 'The ID of the workspace to which the file belongs. For information about how to obtain the ID, see [How to use workspaces](~~2587495~~).', 'type' => 'string', 'required' => true, 'example' => 'llm-3shx2gu255oxxxx', 'title' => ''],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => 'Schema of Response',
                        'description' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'Code' => ['description' => 'The error status code.', 'type' => 'string', 'example' => 'InvalidParameter', 'title' => ''],
                            'Data' => [
                                'description' => 'The business data field of the API response.',
                                'type' => 'object',
                                'properties' => [
                                    'FileId' => ['description' => 'The file ID.', 'type' => 'string', 'example' => 'file_9a65732555b54d5ea10796ca5742ba22_xxxxxxxx', 'title' => ''],
                                ],
                                'title' => '',
                                'example' => '',
                            ],
                            'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'Current file status does not support delete.', 'title' => ''],
                            'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '17204B98-xxxx-4F9A-8464-2446A84821CA'],
                            'Status' => ['description' => 'The status code returned by the API.', 'type' => 'string', 'example' => '200', 'title' => ''],
                            'Success' => ['description' => 'Indicates whether the API call succeeded. Valid values:'."\n"
                                ."\n"
                                .'- true: Succeeded.'."\n"
                                ."\n"
                                .'- false: Failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'title' => 'Delete file  ',
            'summary' => 'Permanently delete a specified file from application data. Deleting data tables via API is not supported. For details, see the API Guide below.',
            'description' => '- Deleting data tables via API is not supported. To delete a data table or specific data within a table, go to <props="china">[Application Data](https://bailian.console.aliyun.com/?tab=app#/data-center)</props><props="intl">[Application Data](https://modelstudio.console.alibabacloud.com/?tab=app#/data-center)</props> to perform the operation.'."\n"
                ."\n"
                .'- This API is used to delete files in <props="china">[Application Data](https://bailian.console.aliyun.com/?tab=app#/data-center)</props><props="intl">[Application Data](https://modelstudio.console.alibabacloud.com/?tab=app#/data-center)</props> and does not affect any knowledge bases that have already been built. To delete a file from a knowledge base, invoke the **DeleteIndexDocument** API.'."\n"
                ."\n"
                .'- A RAM user must first obtain the [API permissions](~~2848578~~) for Alibaba Cloud Model Studio (requiring `AliyunBailianDataFullAccess`, which includes the `sfm:DeleteFile` permission point) and [join a workspace](~~2851098~~) before invoking this API. An Alibaba Cloud account can invoke this API directly without authorization. We recommend that you use the latest version of the <props="china">[Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)</props><props="intl">[Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29)</props> to invoke this API.'."\n"
                ."\n"
                .'- This API can only delete files whose status is either Failed to Parse (`PARSE_FAILED`) or Parse Succeeded (`PARSE_SUCCESS`).'."\n"
                ."\n"
                .'- This API is idempotent.'."\n"
                ."\n"
                .'**Rate Limiting Notice:**<br>'."\n"
                .'Frequent invocation of this API will trigger rate limiting. Do not exceed 10 requests per second. If rate limited, retry after a short wait.',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [
                    ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteFile'],
                ],
            ],
            'ramActions' => [
                [
                    'operationType' => 'delete',
                    'ramAction' => [
                        'action' => 'sfm:DeleteFile',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"Code\\": \\"InvalidParameter\\",\\n  \\"Data\\": {\\n    \\"FileId\\": \\"file_9a65732555b54d5ea10796ca5742ba22_xxxxxxxx\\"\\n  },\\n  \\"Message\\": \\"Current file status does not support delete.\\",\\n  \\"RequestId\\": \\"17204B98-xxxx-4F9A-8464-2446A84821CA\\",\\n  \\"Status\\": \\"200\\",\\n  \\"Success\\": true\\n}","type":"json"}]',
        ],
        'DeleteFiles' => [
            'summary' => 'Delete files in batch',
            'path' => '/{WorkspaceId}/datacenter/file/delete',
            'methods' => ['post'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'readAndWrite',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'WorkspaceId',
                    'in' => 'path',
                    'schema' => ['description' => 'The ID of the workspace to which the category belongs. For information about how to obtain it, see [How to use a workspace](~~2587495~~).', 'type' => 'string', 'required' => true, 'example' => 'llm-mbhn96xxxx', 'title' => ''],
                ],
                [
                    'name' => 'FileIds',
                    'in' => 'formData',
                    'style' => 'json',
                    'schema' => [
                        'description' => 'The list of IDs of the files to be deleted. A maximum of 20 files can be deleted in a single request.',
                        'type' => 'array',
                        'items' => ['description' => 'The ID of the file to be deleted.', 'type' => 'string', 'required' => false, 'example' => 'file_xxxx', 'title' => ''],
                        'required' => true,
                        'maxItems' => 20,
                        'minItems' => 1,
                        'title' => '',
                        'example' => '',
                    ],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => '',
                        'description' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'Code' => ['description' => 'The error code.', 'type' => 'string', 'example' => 'DataCenter.FileTooLarge', 'title' => ''],
                            'Data' => [
                                'description' => 'The returned data.',
                                'type' => 'object',
                                'properties' => [
                                    'DeleteFileResultList' => [
                                        'description' => 'The deletion results.',
                                        'type' => 'array',
                                        'items' => [
                                            'description' => 'The deletion result of a single file.',
                                            'type' => 'object',
                                            'properties' => [
                                                'FileId' => ['description' => 'The file ID.', 'type' => 'string', 'example' => 'file_6b193b9b4b1546ef9eaa7340e69adfca_10052857', 'title' => ''],
                                                'Status' => ['description' => 'The file deletion status. Valid values:'."\n"
                                                    ."\n"
                                                    .'- DELETED: The file is deleted.'."\n"
                                                    .'- FAILED: The file fails to be deleted.'."\n"
                                                    .'- NOT_FOUND: The file is not found.', 'type' => 'string', 'example' => 'DELETED', 'title' => ''],
                                            ],
                                            'title' => '',
                                            'example' => '',
                                        ],
                                        'title' => '',
                                        'example' => '',
                                    ],
                                ],
                                'title' => '',
                                'example' => '',
                            ],
                            'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'Required parameter(%s) missing or invalid, please check the request parameters.', 'title' => ''],
                            'RequestId' => ['title' => '', 'description' => 'Id of the request', 'type' => 'string', 'example' => '17204B98-7734-4F9A-8464-2446A84821CA'],
                            'Status' => ['description' => 'The status code returned by the API.', 'type' => 'string', 'example' => '200', 'title' => ''],
                            'Success' => ['description' => 'Indicates whether the API call is successful. Valid values:'."\n"
                                .'- true: The call is successful.'."\n"
                                .'- false: The call fails.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'title' => 'Delete files in batch',
            'description' => '- Deleting data tables through the API is not supported. To delete a data table or specific data in a table, go to <props="china">[Application Data](https://bailian.console.aliyun.com/?tab=app#/data-center)</props><props="intl">[Application Data](https://modelstudio.console.alibabacloud.com/?tab=app#/data-center)</props>.'."\n"
                .'- This API is used to delete files in <props="china">[Application Data](https://bailian.console.aliyun.com/?tab=app#/data-center)</props><props="intl">[Application Data](https://modelstudio.console.alibabacloud.com/?tab=app#/data-center)</props>. It does not affect knowledge bases that have already been built. To delete files in a knowledge base, call the **DeleteIndexDocument** operation.'."\n"
                .'- A RAM user (sub-account) must first obtain the [API permissions](~~2848578~~) for Alibaba Cloud Model Studio (requires `AliyunBailianDataFullAccess`, which already includes the sfm:DeleteFiles permission) and [join a workspace](~~2851098~~) before calling this operation. The Alibaba Cloud account (main account) can call this operation directly without authorization. We recommend that you use the latest version of the <props="china">[Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)</props><props="intl">[Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29)</props> to call this operation.'."\n"
                .'- This operation can only delete files whose status is parsing failed (PARSE_FAILED) or parsing succeeded (PARSE_SUCCESS).'."\n"
                .'- This operation is idempotent.'."\n"
                ."\n"
                .'**Throttling:**'."\n"
                .'Frequent calls to this operation are throttled. Do not exceed 10 queries per second (QPS). If you are throttled, try again later.',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [],
            ],
            'ramActions' => [],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"Code\\": \\"DataCenter.FileTooLarge\\",\\n  \\"Data\\": {\\n    \\"DeleteFileResultList\\": [\\n      {\\n        \\"FileId\\": \\"file_6b193b9b4b1546ef9eaa7340e69adfca_10052857\\",\\n        \\"Status\\": \\"DELETED\\"\\n      }\\n    ]\\n  },\\n  \\"Message\\": \\"Required parameter(%s) missing or invalid, please check the request parameters.\\",\\n  \\"RequestId\\": \\"17204B98-7734-4F9A-8464-2446A84821CA\\",\\n  \\"Status\\": \\"200\\",\\n  \\"Success\\": true\\n}","type":"json"}]',
        ],
        'DeleteIndex' => [
            'summary' => 'Permanently deletes a specified knowledge base.',
            'path' => '/{WorkspaceId}/index/delete',
            'methods' => ['post'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'readAndWrite',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'IndexId',
                    'in' => 'query',
                    'schema' => ['description' => 'The knowledge base ID, which is the `Data.Id` returned by the **CreateIndex** operation.', 'type' => 'string', 'required' => true, 'example' => 'f89ie0xxxx', 'title' => ''],
                ],
                [
                    'name' => 'WorkspaceId',
                    'in' => 'path',
                    'schema' => ['description' => 'The workspace ID of the knowledge base. For information about how to obtain the workspace ID, see [How to use a workspace](~~2587495~~).', 'type' => 'string', 'required' => true, 'example' => 'llm-3z7uw7fwz0vexxxx', 'title' => ''],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => '',
                        'description' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'Code' => ['description' => 'The error code.', 'type' => 'string', 'example' => 'Index.InvalidParameter', 'title' => ''],
                            'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'Required parameter(%s) missing or invalid, please check the request parameters.', 'title' => ''],
                            'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '17204B98-xxxx-4F9A-8464-2446A84821CA'],
                            'Status' => ['description' => 'The status code returned by the operation.', 'type' => 'string', 'example' => '200', 'title' => ''],
                            'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
                                .'- true: The call was successful.'."\n"
                                .'- false: The call failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"Code\\": \\"Index.InvalidParameter\\",\\n  \\"Message\\": \\"Required parameter(%s) missing or invalid, please check the request parameters.\\",\\n  \\"RequestId\\": \\"17204B98-xxxx-4F9A-8464-2446A84821CA\\",\\n  \\"Status\\": \\"200\\",\\n  \\"Success\\": true\\n}","type":"json"}]',
            'title' => 'Delete a knowledge base',
            'description' => '- Resource Access Management (RAM) users must first obtain [API permissions](~~2848578~~) for Model Studio (requiring `AliyunBailianDataFullAccess`, which includes the sfm:DeleteIndex permission) and [join a workspace](~~2851098~~) before invoking this operation. Alibaba Cloud accounts can invoke this operation directly without authorization. Use the latest <props="china">[Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)</props><props="intl">[Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29)</props> to invoke this operation.'."\n"
                .'- Before invoking this operation, make sure that your knowledge base has been created and has not been deleted (that is, the knowledge base ID `IndexId` is valid).'."\n"
                .'- If the knowledge base is associated with an application, you must first dissociate it from the application before deleting it. This can currently only be done through the console. For more information, see [Knowledge base](~~2807740~~).'."\n"
                .'- Deletion is irreversible. A deleted knowledge base cannot be recovered. Proceed with caution.'."\n"
                .'- Invoking this operation does not delete files that have been imported into <props="china">[Application Data](https://bailian.console.aliyun.com/?tab=app#/data-center)</props><props="intl">[Application Data](https://modelstudio.console.alibabacloud.com/?tab=app#/data-center)</props>.'."\n"
                .'- This operation has idempotence.'."\n"
                ."\n"
                .'**Rate limit:**'."\n"
                .'This operation is throttled if called too frequently. Do not exceed 10 calls per second. If you are throttled, retry later.',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [
                    ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteIndex'],
                ],
            ],
            'ramActions' => [
                [
                    'operationType' => 'none',
                    'ramAction' => [
                        'action' => 'sfm:DeleteIndex',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
        ],
        'DeleteIndexDocument' => [
            'summary' => 'Permanently deletes files from a specified knowledge base.',
            'path' => '/{WorkspaceId}/index/delete_index_document',
            'methods' => ['post'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'readAndWrite',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'WorkspaceId',
                    'in' => 'path',
                    'schema' => ['description' => 'The ID of the workspace to which the knowledge base belongs. For information about how to obtain the workspace ID, see [How to use a workspace](~~2587495~~).', 'type' => 'string', 'required' => true, 'example' => 'llm-3z7uw7fwz0vxxxx', 'title' => ''],
                ],
                [
                    'name' => 'IndexId',
                    'in' => 'query',
                    'schema' => ['description' => 'The knowledge base ID, which is the `Data.Id` returned by the **CreateIndex** operation.', 'type' => 'string', 'required' => true, 'example' => '79c0alxxxx', 'title' => ''],
                ],
                [
                    'name' => 'DocumentIds',
                    'in' => 'query',
                    'style' => 'json',
                    'schema' => [
                        'description' => 'The list of file IDs.',
                        'type' => 'array',
                        'items' => ['description' => 'The file ID, which is the `FileId` returned by the **AddFile** operation. You can also obtain the file ID by clicking the ID icon next to the file name on the <props="china">[Application Data](https://bailian.console.aliyun.com/?tab=app#/data-center) - Files</props><props="intl">[Application Data](https://modelstudio.console.alibabacloud.com/?tab=app#/data-center) - Files</props> tab.', 'type' => 'string', 'required' => false, 'example' => 'file_5f03dfea56da4050ab68d61871fc4cb3_xxxxxxxx', 'title' => ''],
                        'required' => true,
                        'title' => '',
                        'example' => '',
                    ],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => '',
                        'description' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '17204B98-xxxx-4F9A-8464-2446A84821CA'],
                            'Code' => ['description' => 'The error code.', 'type' => 'string', 'example' => 'Index.InvalidParameter', 'title' => ''],
                            'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'Required parameter(%s) missing or invalid, please check the request parameters.', 'title' => ''],
                            'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
                                .'- true: The operation was successful.'."\n"
                                .'- false: The operation failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
                            'Data' => [
                                'description' => 'The business data field returned by the operation.',
                                'type' => 'object',
                                'properties' => [
                                    'DeletedDocument' => [
                                        'description' => 'The list of successfully deleted file IDs.',
                                        'type' => 'array',
                                        'items' => ['description' => 'The file ID.', 'type' => 'string', 'example' => 'file_5f03dfea56da4050ab68d61871fc4cb3_xxxxxxxx', 'title' => ''],
                                        'title' => '',
                                        'example' => '',
                                    ],
                                ],
                                'title' => '',
                                'example' => '',
                            ],
                            'Status' => ['description' => 'The status code returned by the operation.', 'type' => 'string', 'example' => '200', 'title' => ''],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"RequestId\\": \\"17204B98-xxxx-4F9A-8464-2446A84821CA\\",\\n  \\"Code\\": \\"Index.InvalidParameter\\",\\n  \\"Message\\": \\"Required parameter(%s) missing or invalid, please check the request parameters.\\",\\n  \\"Success\\": true,\\n  \\"Data\\": {\\n    \\"DeletedDocument\\": [\\n      \\"file_5f03dfea56da4050ab68d61871fc4cb3_xxxxxxxx\\"\\n    ]\\n  },\\n  \\"Status\\": \\"200\\"\\n}","type":"json"}]',
            'title' => 'Delete files from a knowledge base',
            'description' => '- This operation does not support deleting data from data query or image Q&A knowledge bases. Use the Model Studio console instead.'."\n"
                .'- Resource Access Management (RAM) users must first obtain [API permissions](~~2848578~~) for Model Studio (requiring `AliyunBailianDataFullAccess`, which includes the sfm:DeleteIndexDocument permission), before calling this operation. Alibaba Cloud accounts can call this operation directly without authorization. Use the latest <props="china">[Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)</props><props="intl">[Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29)</props> to call this operation.'."\n"
                .'- Before calling this operation, make sure that your knowledge base has been created and has not been deleted (that is, the knowledge base ID `IndexId` is valid).'."\n"
                .'- You can only delete files whose status is import failed (INSERT_ERROR) or import succeeded (FINISH) in the knowledge base. To query the file status in a specified knowledge base, call the **ListIndexDocuments** operation.'."\n"
                .'- Deletion is irreversible. The content of deleted files cannot be recovered, and the **Retrieve** operation can no longer retrieve related information. Proceed with caution.'."\n"
                .'- Calling this operation does not delete documents that have been imported into <props="china">[Application Data](https://bailian.console.aliyun.com/?tab=app#/data-center)</props><props="intl">[Application Data](https://modelstudio.console.alibabacloud.com/?tab=app#/data-center)</props>.'."\n"
                .'- This operation is idempotent.'."\n"
                ."\n"
                .'**Throttling:**'."\n"
                .'This operation is throttled if called too frequently. Do not exceed 10 calls per second. If you are throttled, retry later.',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [
                    ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteIndexDocument'],
                ],
            ],
            'ramActions' => [
                [
                    'operationType' => 'delete',
                    'ramAction' => [
                        'action' => 'sfm:DeleteIndexDocument',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
        ],
        'DeleteMemory' => [
            'summary' => 'Permanently deletes a specified long-term memory.',
            'path' => '/{workspaceId}/memories/{memoryId}',
            'methods' => ['delete'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'write',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'workspaceId',
                    'in' => 'path',
                    'schema' => ['title' => '', 'description' => 'The ID of the workspace to which the long-term memory belongs. For information about how to obtain the workspace ID, see [How to use a workspace](~~2587495~~).', 'type' => 'string', 'required' => true, 'example' => 'llm-3z7uw7fwz0vexxxx'],
                ],
                [
                    'name' => 'memoryId',
                    'in' => 'path',
                    'schema' => ['title' => '', 'description' => 'The ID of the long-term memory, which corresponds to the memoryId returned by the [CreateMemory](https://www.alibabacloud.com/help/en/model-studio/developer-reference/api-bailian-2023-12-29-creatememory) operation.', 'type' => 'string', 'required' => true, 'example' => '6bff4f317a14442fbc9f73d29dbdxxxx'."\n"],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => '',
                        'description' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'requestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '6a71f2d9-f1c9-913b-818b-11402910xxxx'."\n"],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'errorCodes' => [
                404 => [
                    ['errorCode' => 'Memory.MemoryIdNotFound', 'errorMessage' => 'Memory Id not exist or is not authorized.', 'description' => 'memoryId not found'],
                ],
                500 => [
                    ['errorCode' => 'Memory.InternalError', 'errorMessage' => 'Memory service inner exception.', 'description' => 'Memory service inner exception.'."\n"],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"requestId\\": \\"6a71f2d9-f1c9-913b-818b-11402910xxxx\\\\n\\"\\n}","type":"json"}]',
            'title' => 'Delete long-term memory',
            'description' => '- Before calling this operation, make sure that your long-term memory has been created and has not been deleted (that is, the memoryId is valid).'."\n"
                .'- The delete operation is irreversible. The deleted long-term memory, including all of its long-term memory nodes, cannot be recovered. The [GetMemory](https://www.alibabacloud.com/help/en/model-studio/developer-reference/api-bailian-2023-12-29-getmemory) operation will no longer be able to retrieve its information. Proceed with caution.'."\n"
                .'- This operation is idempotent.'."\n"
                ."\n"
                .'**Rate limit:** Make sure that the interval between two requests is at least 1 second. Otherwise, throttling may be triggered. If throttling occurs, retry later.',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [
                    ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteMemory'],
                ],
            ],
            'ramActions' => [
                [
                    'operationType' => 'delete',
                    'ramAction' => [
                        'action' => 'sfm:DeleteMemory',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
        ],
        'DeleteMemoryNode' => [
            'summary' => 'Deletes a memory fragment.',
            'path' => '/{workspaceId}/memories/{memoryId}/memoryNodes/{memoryNodeId}',
            'methods' => ['delete'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'write',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'workspaceId',
                    'in' => 'path',
                    'schema' => ['title' => '', 'description' => 'The workspace ID.', 'type' => 'string', 'required' => true, 'example' => 'llm-us9hjmt32nysdm5v'."\n"],
                ],
                [
                    'name' => 'memoryId',
                    'in' => 'path',
                    'schema' => ['title' => '', 'description' => 'The long-term memory ID.', 'type' => 'string', 'required' => true, 'example' => '6bff4f317a14442fbc9f73d29dbd5fc3'."\n"],
                ],
                [
                    'name' => 'memoryNodeId',
                    'in' => 'path',
                    'schema' => ['title' => '', 'description' => 'The memory fragment ID.', 'type' => 'string', 'required' => true, 'example' => '68de06c95368463a8be4a84efc872cc5'],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => '',
                        'description' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'requestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '8C56C7AF-6573-19CE-B018-E05E1EDCF4C5'],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'errorCodes' => [
                400 => [
                    ['errorCode' => 'Memory.MemoryNodeContentInvalid', 'errorMessage' => 'Memory node content is invalid.', 'description' => 'Memory node content is invalid.'],
                ],
                404 => [
                    ['errorCode' => 'Memory.MemoryIdNotFound', 'errorMessage' => 'Memory Id not exist or is not authorized.', 'description' => 'memoryId not found'],
                    ['errorCode' => 'Memory.MemoryNodeNotFound', 'errorMessage' => 'MemoryNode not found.', 'description' => 'MemoryNode not found'],
                ],
                500 => [
                    ['errorCode' => 'Memory.InternalError', 'errorMessage' => 'Memory service inner exception.', 'description' => 'Memory service inner exception.'."\n"],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"requestId\\": \\"8C56C7AF-6573-19CE-B018-E05E1EDCF4C5\\"\\n}","type":"json"}]',
            'title' => 'Delete a memory fragment',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [
                    ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteMemoryNode'],
                ],
            ],
            'ramActions' => [
                [
                    'operationType' => 'delete',
                    'ramAction' => [
                        'action' => 'sfm:DeleteMemoryNode',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
        ],
        'DeletePromptTemplate' => [
            'summary' => 'Deletes a prompt template based on the template ID.',
            'path' => '/{workspaceId}/promptTemplates/{promptTemplateId}',
            'methods' => ['delete'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'write',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'workspaceId',
                    'in' => 'path',
                    'schema' => ['title' => '', 'description' => 'The workspace ID.'."\n", 'type' => 'string', 'required' => true, 'example' => 'llm-us9hjmt32nysdxxx'],
                ],
                [
                    'name' => 'promptTemplateId',
                    'in' => 'path',
                    'schema' => ['title' => '', 'description' => 'The template ID.'."\n", 'type' => 'string', 'required' => true, 'example' => '6e49109bfeb94a39bb268f4e483ccxxx'],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => 'Schema of Response',
                        'description' => 'Schema of Response'."\n",
                        'type' => 'object',
                        'properties' => [
                            'requestId' => ['title' => '', 'description' => 'The request ID.'."\n", 'type' => 'string', 'example' => 'FE9B6CBF-47E6-5D76-9C5D-B814DD5ABxxx'],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'errorCodes' => [
                404 => [
                    ['errorCode' => 'PromptTemplate.TemplateNotFound', 'errorMessage' => 'Prompt template not found.', 'description' => 'Prompt template not found'],
                ],
                500 => [
                    ['errorCode' => 'PromptTemplate.InternalError', 'errorMessage' => 'Prompt template service inner exception.', 'description' => 'prompt template service internal exception'],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"requestId\\": \\"FE9B6CBF-47E6-5D76-9C5D-B814DD5ABxxx\\"\\n}","type":"json"}]',
            'title' => 'DeletePromptTemplate',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [
                    ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeletePromptTemplate'],
                ],
            ],
            'ramActions' => [
                [
                    'operationType' => 'delete',
                    'ramAction' => [
                        'action' => 'sfm:DeletePromptTemplate',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
        ],
        'DescribeFile' => [
            'summary' => 'Queries the basic information of a file in application data, including the file name, type, and status.',
            'path' => '/{WorkspaceId}/datacenter/file/{FileId}/',
            'methods' => ['get'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'readAndWrite',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'WorkspaceId',
                    'in' => 'path',
                    'schema' => ['description' => 'The ID of the workspace to which the file belongs. For more information about how to obtain the workspace ID, see [How to use a workspace](~~2587495~~).', 'type' => 'string', 'required' => true, 'example' => 'llm-3shx2gu255oqxxxx', 'title' => ''],
                ],
                [
                    'name' => 'FileId',
                    'in' => 'path',
                    'schema' => ['description' => 'The file ID, which is the `FileId` returned by the **AddFile** operation. You can also obtain the file ID by clicking the ID icon next to the file name on the <props="china">[Application Data](https://bailian.console.aliyun.com/?tab=app#/data-center) - Files tab</props><props="intl">[Application Data](https://modelstudio.console.alibabacloud.com/?tab=app#/data-center) - Files tab</props>.', 'type' => 'string', 'required' => true, 'example' => 'file_9a65732555b54d5ea10796ca5742ba22_xxxxxxxx', 'title' => ''],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => '',
                        'description' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'Code' => ['description' => 'The error status code.', 'type' => 'string', 'example' => 'Success', 'title' => ''],
                            'Data' => [
                                'description' => 'The data field returned by the operation.',
                                'type' => 'object',
                                'properties' => [
                                    'CategoryId' => ['description' => 'The ID of the category to which the file belongs.', 'type' => 'string', 'example' => 'cate_cdd11b1b79a74e8bbd675c356a91ee3xxxxxxxx', 'title' => ''],
                                    'CreateTime' => ['description' => 'The timestamp when the file was added to Model Studio. Format: yyyy-MM-dd HH:mm:ss. Time zone: UTC+8.', 'type' => 'string', 'example' => '2024-09-09 12:45:43', 'title' => ''],
                                    'FileId' => ['description' => 'The file ID.', 'type' => 'string', 'example' => 'file_9a65732555b54d5ea10796ca5742ba22_xxxxxxxx', 'title' => ''],
                                    'FileName' => ['description' => 'The file name.', 'type' => 'string', 'example' => 'XXX产品介绍.pdf', 'title' => ''],
                                    'FileType' => ['description' => 'The file type (extension). Possible values: pdf, docx, doc, txt, md, pptx, ppt, xlsx, xls, html, png, jpg, jpeg, bmp, and gif.', 'type' => 'string', 'example' => 'pdf', 'title' => ''],
                                    'Parser' => ['description' => 'The parser type used to parse the file. Possible values:'."\n"
                                        .'- DASHSCOPE_DOCMIND: the default document parser.', 'type' => 'string', 'example' => 'DASHSCOPE_DOCMIND', 'title' => ''],
                                    'SizeInBytes' => ['description' => 'The file size, in bytes.', 'type' => 'integer', 'format' => 'int64', 'example' => '1234', 'title' => ''],
                                    'Status' => ['description' => '<props="china">'."\n"
                                        ."\n"
                                        .'For files used in document-based knowledge bases (type: UNSTRUCTURED), possible values:'."\n"
                                        ."\n"
                                        .'</props>'."\n"
                                        ."\n"
                                        .'<props="intl">'."\n"
                                        ."\n"
                                        .'For files used in unstructured knowledge bases (type: UNSTRUCTURED), possible values:'."\n"
                                        ."\n\n"
                                        .'</props>'."\n"
                                        ."\n"
                                        .'- INIT: Pending parsing.'."\n"
                                        .'- IN_PARSE_QUEUE: Queued for parsing.'."\n"
                                        .'- PARSING: Being parsed.'."\n"
                                        .'- PARSE_SUCCESS: Parsing completed.'."\n"
                                        .'<note>The document can be imported into a knowledge base only after the status changes to PARSE_SUCCESS.</note>'."\n"
                                        .'- PARSE_FAILED: Parsing failed.'."\n"
                                        ."\n"
                                        .'<props="china">'."\n"
                                        .'For files used in agent application [session interaction](https://www.alibabacloud.com/help/en/model-studio/user-guide/file-interaction) (type: SESSION_FILE), possible values:'."\n"
                                        ."\n"
                                        .'- INIT: Pending parsing.'."\n"
                                        .'- IN_PARSE_QUEUE: Queued for parsing.'."\n"
                                        .'- PARSING: Being parsed.'."\n"
                                        .'- PARSE_SUCCESS: Parsing completed.'."\n"
                                        .'- PARSE_FAILED: Parsing failed.'."\n"
                                        .'- SAFE_CHECKING: Safety check in progress.'."\n"
                                        .'- SAFE_CHECK_FAILED: Safety check failed.'."\n"
                                        .'- INDEX_BUILDING: Index being built.'."\n"
                                        .'- INDEX_BUILD_SUCCESS: Index built.'."\n"
                                        .'- INDEX_BUILDING_FAILED: Index building failed.'."\n"
                                        .'- INDEX_DELETED: File index deleted.'."\n"
                                        .'- FILE_IS_READY: File is ready.'."\n"
                                        .'<note>Q&A is available only after the status changes to FILE_IS_READY.</note>'."\n"
                                        .'- FILE_EXPIRED: File expired.'."\n"
                                        .'<note>The file is valid only for the current user session. After the user closes the session, the file expires (maximum validity period: 7 days). Long-term retention is not supported.</note>'."\n"
                                        .'</props>.', 'type' => 'string', 'example' => 'PARSE_SUCCESS', 'title' => ''],
                                    'Tags' => [
                                        'description' => 'The list of tags associated with the file. A file can be associated with multiple tags.',
                                        'type' => 'array',
                                        'items' => ['description' => 'The tag of the file.', 'type' => 'string', 'example' => '产品介绍', 'title' => ''],
                                        'title' => '',
                                        'example' => '',
                                    ],
                                    'ParseResultDownloadUrl' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
                                    'ParseErrorMessage' => ['title' => '', 'description' => 'The reason for the parsing failure.', 'type' => 'string', 'example' => 'Error Message'],
                                ],
                                'title' => '',
                                'example' => '',
                            ],
                            'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'Requests throttling triggered.', 'title' => ''],
                            'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '17204B98-xxxx-4F9A-8464-2446A84821CA'],
                            'Status' => ['description' => 'The status code returned by the operation.', 'type' => 'string', 'example' => '200', 'title' => ''],
                            'Success' => ['description' => 'Indicates whether the call was successful. Valid values:'."\n"
                                .'- true: Successful.'."\n"
                                .'- false: Failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
                        ],
                        'example' => '',
                    ],
                ],
                403 => [
                    'schema' => [
                        'type' => 'object',
                        'properties' => [
                            'Code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
                            'HttpStatusCode' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
                            'Message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
                            'Success' => ['type' => 'boolean', 'description' => '', 'title' => '', 'example' => ''],
                        ],
                        'description' => '',
                        'title' => '',
                        'example' => '',
                    ],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"Code\\": \\"Success\\",\\n  \\"Data\\": {\\n    \\"CategoryId\\": \\"cate_cdd11b1b79a74e8bbd675c356a91ee3xxxxxxxx\\",\\n    \\"CreateTime\\": \\"2024-09-09 12:45:43\\",\\n    \\"FileId\\": \\"file_9a65732555b54d5ea10796ca5742ba22_xxxxxxxx\\",\\n    \\"FileName\\": \\"XXX产品介绍.pdf\\",\\n    \\"FileType\\": \\"pdf\\",\\n    \\"Parser\\": \\"DASHSCOPE_DOCMIND\\",\\n    \\"SizeInBytes\\": 1234,\\n    \\"Status\\": \\"PARSE_SUCCESS\\",\\n    \\"Tags\\": [\\n      \\"产品介绍\\"\\n    ],\\n    \\"ParseResultDownloadUrl\\": \\"\\",\\n    \\"ParseErrorMessage\\": \\"Error Message\\"\\n  },\\n  \\"Message\\": \\"Requests throttling triggered.\\",\\n  \\"RequestId\\": \\"17204B98-xxxx-4F9A-8464-2446A84821CA\\",\\n  \\"Status\\": \\"200\\",\\n  \\"Success\\": true\\n}","type":"json"}]',
            'title' => 'Query file status',
            'description' => '- A Resource Access Management (RAM) user must first obtain [API permissions](~~2848578~~) for Model Studio (`AliyunBailianDataFullAccess` or `AliyunBailianDataReadOnlyAccess`, both of which include the sfm:DescribeFile permission), and [join a workspace](~~2851098~~) before invoking this operation. An Alibaba Cloud account can invoke this operation directly without authorization. Use the latest <props="china">[Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)</props><props="intl">[Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29)</props> to invoke this operation.'."\n"
                ."\n"
                .'- This operation is idempotent.'."\n"
                ."\n"
                .'**Throttling:**'."\n"
                .'This operation is throttled if called too frequently. Do not exceed 10 calls per second. If you are throttled, retry later.',
            'changeSet' => [
                ['createdAt' => '2024-09-18T08:46:20.000Z', 'description' => 'Response parameters changed'],
            ],
            'flowControl' => [
                'flowControlList' => [
                    ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeFile'],
                ],
            ],
            'ramActions' => [
                [
                    'operationType' => 'none',
                    'ramAction' => [
                        'action' => 'sfm:DescribeFile',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
        ],
        'GetAlipayTransferStatus' => [
            'summary' => 'Queries the tipping status of the Alipay wallet bound to an application.',
            'path' => '/openapi/alipay/transfer/status',
            'methods' => ['get', 'post'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'read',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true, 'tenantRelevance' => 'tenant'],
            'parameters' => [
                [
                    'name' => 'workspace_id',
                    'in' => 'query',
                    'schema' => ['description' => 'The Bailian workspace ID.', 'type' => 'string', 'required' => false, 'example' => 'llm-cxxxxxxb8d47ks', 'title' => ''],
                ],
                [
                    'name' => 'code',
                    'in' => 'query',
                    'schema' => ['description' => 'The tipping code returned by the Alipay tipping link request.', 'type' => 'string', 'required' => false, 'example' => 'xxx-xxxx', 'title' => ''],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => '',
                        'description' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'requestId' => ['title' => '', 'description' => 'The unique ID of the request.', 'type' => 'string', 'example' => '6a71f2d9-f1c9-913b-818b-11402910xxxx'."\n"],
                            'data' => [
                                'description' => 'The tipping result data.',
                                'type' => 'object',
                                'properties' => [
                                    'code' => ['description' => 'The code associated with the tipping.', 'type' => 'string', 'example' => '0', 'title' => ''],
                                    'walletItemCode' => ['description' => 'The Alipay product wallet code.', 'type' => 'string', 'example' => 'xsdfsdf', 'title' => ''],
                                    'mainAccountId' => ['description' => 'The primary account ID (ignored by the API).', 'type' => 'string', 'example' => '1007576424487905', 'title' => ''],
                                    'accountId' => ['description' => 'The sub-account ID (ignored by the API).', 'type' => 'string', 'example' => '1348393307144609', 'title' => ''],
                                    'alipayOrderId' => ['description' => 'The Alipay order ID.', 'type' => 'string', 'example' => '1234234', 'title' => ''],
                                    'status' => ['description' => 'The tipping status. Valid values:'."\n"
                                        .'- 1: Succeeded.'."\n"
                                        .'- 0: Deleted.'."\n"
                                        .'- 2: Pending tipping.'."\n"
                                        .'- 3: Canceled.'."\n"
                                        .'- 4: Refunded.'."\n"
                                        .'- 5: Closed.'."\n"
                                        .'- 6: Failed.'."\n"
                                        .'- 7: Disputed or abnormal.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''],
                                    'creator' => ['description' => 'The creator (ignored by the API).', 'type' => 'string', 'example' => '234234', 'title' => ''],
                                    'modifier' => ['description' => 'The modifier (ignored by the API).', 'type' => 'string', 'example' => '234234', 'title' => ''],
                                    'alipayOrderDetail' => ['description' => 'The payment details (ignored by the API).', 'type' => 'string', 'example' => '{}', 'title' => ''],
                                    'title' => ['description' => 'The transfer title.', 'type' => 'string', 'example' => 'test', 'title' => ''],
                                    'qrURL' => ['description' => 'The tipping link (ignored by the API).', 'type' => 'string', 'example' => 'https://xxx.aliyun.com', 'title' => ''],
                                    'transAmount' => ['description' => 'The total order amount. Unit: CNY.', 'type' => 'string', 'example' => '0.22', 'title' => ''],
                                    'scope' => ['description' => 'The ownership status of the tipping application.', 'type' => 'string', 'example' => 'publish', 'title' => ''],
                                ],
                                'title' => '',
                                'example' => '',
                            ],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"requestId\\": \\"6a71f2d9-f1c9-913b-818b-11402910xxxx\\\\n\\",\\n  \\"data\\": {\\n    \\"code\\": \\"0\\",\\n    \\"walletItemCode\\": \\"xsdfsdf\\",\\n    \\"mainAccountId\\": \\"1007576424487905\\",\\n    \\"accountId\\": \\"1348393307144609\\",\\n    \\"alipayOrderId\\": \\"1234234\\",\\n    \\"status\\": 1,\\n    \\"creator\\": \\"234234\\",\\n    \\"modifier\\": \\"234234\\",\\n    \\"alipayOrderDetail\\": \\"{}\\",\\n    \\"title\\": \\"test\\",\\n    \\"qrURL\\": \\"https://xxx.aliyun.com\\",\\n    \\"transAmount\\": \\"0.22\\",\\n    \\"scope\\": \\"publish\\"\\n  }\\n}","type":"json"}]',
            'title' => 'Query alipay tipping status',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [],
            ],
            'ramActions' => [
                [
                    'operationType' => 'none',
                    'ramAction' => [
                        'action' => 'sfm:GetAlipayTransferStatus',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
        ],
        'GetAlipayUrl' => [
            'summary' => 'Retrieves the Alipay tipping URL for an application.',
            'path' => '/openapi/alipay/transfer/url',
            'methods' => ['get'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'read',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true, 'tenantRelevance' => 'tenant'],
            'parameters' => [
                [
                    'name' => 'workspace_id',
                    'in' => 'query',
                    'schema' => ['description' => 'The ID of the Bailian workspace.', 'type' => 'string', 'required' => false, 'example' => 'xxxllm-czb8d47ks', 'title' => ''],
                ],
                [
                    'name' => 'app_id',
                    'in' => 'query',
                    'schema' => ['description' => 'The ID of the Bailian application.', 'type' => 'string', 'required' => false, 'example' => 'asfasdfxxasdf', 'title' => ''],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => '',
                        'description' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'requestId' => ['description' => 'The unique ID of the request.', 'type' => 'string', 'example' => '6a71f2d9-f1c9-913b-818b-11402910xxxx'."\n", 'title' => ''],
                            'data' => [
                                'description' => 'The response data.',
                                'type' => 'object',
                                'properties' => [
                                    'qrUrl' => ['description' => 'The generated tipping URL.', 'type' => 'string', 'example' => 'https://xxxxxx.aliyun-inc.com', 'title' => ''],
                                    'code' => ['description' => 'The tipping code used to query the tipping status.', 'type' => 'string', 'example' => 'xxsdfasfw', 'title' => ''],
                                ],
                                'title' => '',
                                'example' => '',
                            ],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"requestId\\": \\"6a71f2d9-f1c9-913b-818b-11402910xxxx\\\\n\\",\\n  \\"data\\": {\\n    \\"qrUrl\\": \\"https://xxxxxx.aliyun-inc.com\\",\\n    \\"code\\": \\"xxsdfasfw\\"\\n  }\\n}","type":"json"}]',
            'title' => 'Get alipay tipping URL',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [],
            ],
            'ramActions' => [
                [
                    'operationType' => 'none',
                    'ramAction' => [
                        'action' => 'sfm:GetAlipayUrl',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
        ],
        'GetAvailableParserTypes' => [
            'summary' => 'Lists all supported parser types based on the input file type (file extension).',
            'path' => '/{WorkspaceId}/datacenter/parser/parsertype',
            'methods' => ['get'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'read',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true, 'tenantRelevance' => 'tenant'],
            'parameters' => [
                [
                    'name' => 'WorkspaceId',
                    'in' => 'path',
                    'schema' => ['description' => 'The ID of the workspace to which the file belongs. For more information, see [Use workspaces](~~2587495~~).'."\n", 'type' => 'string', 'required' => true, 'example' => 'llm-3shx2gu255oqxxxx', 'title' => ''],
                ],
                [
                    'name' => 'FileType',
                    'in' => 'query',
                    'schema' => [
                        'description' => 'The file type. Valid values: pdf, docx, and doc.'."\n",
                        'type' => 'string',
                        'required' => true,
                        'example' => 'pdf',
                        'enum' => ['doc', 'docx', 'ppt', 'pptx', 'xls', 'xlsx', 'md', 'txt', 'pdf', 'png', 'jpg', 'jpeg', 'bmp', 'gif', 'html'],
                        'title' => '',
                    ],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => 'Schema of Response',
                        'description' => 'Schema of Response'."\n",
                        'type' => 'object',
                        'properties' => [
                            'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '17204B98-7734-4F9A-8464-2446XXXXXXX'],
                            'Data' => [
                                'description' => 'The data returned.'."\n",
                                'type' => 'object',
                                'properties' => [
                                    'FileType' => ['description' => 'The file type, which is the same as the FileType in the input parameter.'."\n", 'type' => 'string', 'example' => 'pdf', 'title' => ''],
                                    'ParserList' => [
                                        'description' => 'The list of supported parsers'."\n",
                                        'type' => 'array',
                                        'items' => [
                                            'description' => 'A parser object'."\n",
                                            'type' => 'object',
                                            'properties' => [
                                                'DisplayName' => ['description' => 'The display name of the parsing method.'."\n", 'type' => 'string', 'example' => '智能文档解析', 'title' => ''],
                                                'Parser' => ['description' => 'The parser code. Valid values:'."\n"
                                                    ."\n"
                                                    .'*   DOCMIND (Intelligent parsing)'."\n"
                                                    .'*   DOCMIND_DIGITAL (Digital parsing)'."\n"
                                                    .'*   DOCMIND_LLM_VERSION (LLM parsing)'."\n"
                                                    .'*   DASH_QWEN_VL_PARSER (Qwen VL parsing)'."\n", 'type' => 'string', 'example' => 'DOCMIND', 'title' => ''],
                                            ],
                                            'title' => '',
                                            'example' => '',
                                        ],
                                        'title' => '',
                                        'example' => '',
                                    ],
                                ],
                                'title' => '',
                                'example' => '',
                            ],
                            'Status' => ['description' => 'The HTTP status code returned.'."\n", 'type' => 'string', 'example' => '200', 'title' => ''],
                            'Success' => ['description' => 'Indicates whether the call is successful. Valid values:'."\n"
                                ."\n"
                                .'*   true'."\n"
                                .'*   false'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
                            'Message' => ['description' => 'The error message that is returned if the request failed.'."\n", 'type' => 'string', 'example' => 'User not authorized to operate on the specified resource', 'title' => ''],
                            'Code' => ['description' => 'The error code returned.'."\n", 'type' => 'string', 'example' => 'DataCenter.Throttling', 'title' => ''],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'title' => 'GetAvailableParserTypes',
            'description' => '- RAM用户(子账号)需要首先获取阿里云百炼的[API权限](~~2848578~~)(`AliyunBailianDataFullAccess`或`AliyunBailianDataReadOnlyAccess`均可,已包括sfm:GetAvailableParserTypes权限点),并[加入一个业务空间](~~2851098~~)后,方可调用本接口。阿里云账号(主账号)可直接调用无须授权。建议您通过最新版<props="china">[阿里云百炼SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)</props><props="intl">[阿里云百炼SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29)</props>来调用本接口。'."\n"
                ."\n"
                .'- 本接口具有幂等性。'."\n"
                ."\n"
                .'**限流说明:**'."\n"
                .'本接口频繁调用会被限流,频率请勿超过10次/秒。如遇限流,请稍后重试。',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [],
            ],
            'ramActions' => [
                [
                    'operationType' => 'get',
                    'ramAction' => [
                        'action' => 'sfm:GetAvailableParserTypes',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"RequestId\\": \\"17204B98-7734-4F9A-8464-2446XXXXXXX\\",\\n  \\"Data\\": {\\n    \\"FileType\\": \\"pdf\\",\\n    \\"ParserList\\": [\\n      {\\n        \\"DisplayName\\": \\"智能文档解析\\",\\n        \\"Parser\\": \\"DOCMIND\\"\\n      }\\n    ]\\n  },\\n  \\"Status\\": \\"200\\",\\n  \\"Success\\": true,\\n  \\"Message\\": \\"User not authorized to operate on the specified resource\\",\\n  \\"Code\\": \\"DataCenter.Throttling\\"\\n}","type":"json"}]',
        ],
        'GetConnector' => [
            'summary' => 'Retrieves details about a connector. This operation currently supports only file connectors.',
            'path' => '/{WorkspaceId}/datacenter/connector',
            'methods' => ['get'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'read',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'WorkspaceId',
                    'in' => 'path',
                    'schema' => ['description' => 'The ID of the business space. To obtain this ID, see [Use business spaces](~~2587495~~).', 'type' => 'string', 'required' => true, 'example' => 'llm-3z7uw7fwz0vxxxx', 'title' => ''],
                ],
                [
                    'name' => 'ConnectorName',
                    'in' => 'query',
                    'schema' => ['description' => 'The name of the connector to query. An exact match is required.', 'type' => 'string', 'required' => false, 'maxLength' => 20, 'minLength' => 0, 'title' => '', 'example' => '连接器名称'],
                ],
                [
                    'name' => 'ConnectorId',
                    'in' => 'query',
                    'schema' => ['description' => 'The ID of the connector. You can find this ID in the [Model Studio console](https://bailian.console.aliyun.com/cn-beijing/?tab=app#/connector/list).', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'conn_file_xxxx'],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'type' => 'object',
                        'properties' => [
                            'Code' => ['description' => 'The result code.', 'type' => 'string', 'example' => 'success', 'title' => ''],
                            'Data' => [
                                'type' => 'object',
                                'properties' => [
                                    'ConnectorId' => ['description' => 'The ID of the connector.', 'type' => 'string', 'example' => 'conn_file_e0c9db4030b2465a9478028f7d76cd92_1234', 'title' => ''],
                                    'ConnectorName' => ['description' => 'The name of the connector.', 'type' => 'string', 'example' => 'name', 'title' => ''],
                                    'ConnectorType' => ['description' => 'The type of the connector.', 'type' => 'string', 'example' => 'FILE', 'title' => ''],
                                    'Description' => ['description' => 'The description of the connector.', 'type' => 'string', 'example' => 'Description', 'title' => ''],
                                ],
                                'description' => 'The returned data.',
                                'title' => '',
                                'example' => '',
                            ],
                            'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'Requests throttling triggered.', 'title' => ''],
                            'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '7BA8ADD9-53D6-53F0-918F-A1E776AD230E'],
                            'Status' => ['description' => 'The status code of the response.', 'type' => 'string', 'example' => '200', 'title' => ''],
                            'Success' => ['description' => 'Indicates whether the request was successful. The valid values are:'."\n"
                                ."\n"
                                .'- `true`: The call was successful.'."\n"
                                ."\n"
                                .'- `false`: The call failed.', 'type' => 'boolean', 'example' => 'True', 'title' => ''],
                        ],
                        'title' => '',
                        'description' => 'The response object.',
                        'example' => '',
                    ],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'title' => 'GetConnector',
            'description' => '- To call this operation, a RAM user (sub-account) must have the required [API permissions](~~2848578~~) for Alibaba Cloud Model Studio and must [join a business space](~~2851098~~). This requires the `AliyunBailianDataFullAccess` policy, which includes the sfm:GetConnector permission. An Alibaba Cloud account (primary account) can call this operation directly. We recommend using the latest [Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)[Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29) to call this operation.'."\n"
                ."\n"
                .'- This operation is idempotent.'."\n"
                ."\n"
                .'**Throttling:**'."\n"
                .'This operation is subject to throttling. Do not exceed a frequency of 5 calls per second. If a request is throttled, try again later.',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [],
            ],
            'ramActions' => [
                [
                    'operationType' => 'get',
                    'ramAction' => [
                        'action' => 'sfm:GetConnector',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"Code\\": \\"success\\",\\n  \\"Data\\": {\\n    \\"ConnectorId\\": \\"conn_file_e0c9db4030b2465a9478028f7d76cd92_1234\\",\\n    \\"ConnectorName\\": \\"name\\",\\n    \\"ConnectorType\\": \\"FILE\\",\\n    \\"Description\\": \\"Description\\"\\n  },\\n  \\"Message\\": \\"Requests throttling triggered.\\",\\n  \\"RequestId\\": \\"7BA8ADD9-53D6-53F0-918F-A1E776AD230E\\",\\n  \\"Status\\": \\"200\\",\\n  \\"Success\\": true\\n}","type":"json"}]',
        ],
        'GetIndexJobStatus' => [
            'summary' => 'Queries the current status of a specified knowledge base creation task or knowledge base document append task.',
            'path' => '/{WorkspaceId}/index/job/status',
            'methods' => ['get'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/x-www-form-urlencoded'],
            'produces' => ['application/json'],
            'operationType' => 'read',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'WorkspaceId',
                    'in' => 'path',
                    'schema' => ['description' => 'The workspace ID. Ensure that the knowledge base you want to operate on is in this workspace. For information about how to obtain the workspace ID, see [How to use a workspace](~~2587495~~).', 'type' => 'string', 'required' => true, 'example' => 'llm-3z7uw7fwz0vexxxx', 'title' => ''],
                ],
                [
                    'name' => 'JobId',
                    'in' => 'query',
                    'schema' => ['description' => 'The knowledge base job ID, which is the `Data.Id` returned by the **SubmitIndexJob** or **SubmitIndexAddDocumentsJob** operation.', 'type' => 'string', 'required' => true, 'example' => '20230718xxxx-146c93bf', 'title' => ''],
                ],
                [
                    'name' => 'IndexId',
                    'in' => 'query',
                    'schema' => ['description' => 'The knowledge base ID, which is the `Data.Id` returned by the **CreateIndex** operation.', 'type' => 'string', 'required' => true, 'example' => '79c0alxxxx', 'title' => ''],
                ],
                [
                    'name' => 'PageNumber',
                    'in' => 'query',
                    'schema' => ['description' => 'Both the **SubmitIndexJob** and **SubmitIndexAddDocumentsJob** operations support batch file import. This operation returns the overall status of the knowledge base job (`Status`) and the import status of each file (`Document.Status`). If there are many files, use the `PageNumber` parameter for paged query. Minimum value: 1. Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
                ],
                [
                    'name' => 'pageSize',
                    'in' => 'query',
                    'schema' => ['description' => 'The number of file import tasks to display per page in a paged query. No maximum limit. Default value: 10.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => '',
                        'description' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'Code' => ['description' => 'The error status code.', 'type' => 'string', 'example' => 'Index.Forbidden', 'title' => ''],
                            'Data' => [
                                'description' => 'The data field returned by the operation.',
                                'type' => 'object',
                                'properties' => [
                                    'Documents' => [
                                        'description' => 'The list of files imported in this job.',
                                        'type' => 'array',
                                        'items' => [
                                            'description' => 'The file object.',
                                            'type' => 'object',
                                            'properties' => [
                                                'Code' => ['description' => 'The error status code.', 'type' => 'string', 'example' => 'Index.Document.ChunkError', 'title' => ''],
                                                'DocId' => ['description' => 'The file ID.', 'type' => 'string', 'example' => 'file_9a65732555b54d5ea10796ca5742ba22_xxxxxxxx', 'title' => ''],
                                                'DocName' => ['description' => 'The file name.', 'type' => 'string', 'example' => 'XXX产品介绍', 'title' => ''],
                                                'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'document parse error', 'title' => ''],
                                                'Status' => [
                                                    'description' => 'The file import status. Valid values:'."\n"
                                                        .'- INSERT_ERROR: Failed to import into the index.'."\n"
                                                        .'- RUNNING: Index building in progress.'."\n"
                                                        .'- DELETED: Deleted.'."\n"
                                                        .'- FINISH: Index building succeeded.'."\n"
                                                        .'- PARSE_FAILED: Parsing failed.'."\n"
                                                        .'- DOC_PARSING: Parsing in progress.',
                                                    'enumValueTitles' => [],
                                                    'type' => 'string',
                                                    'example' => 'RUNNING',
                                                    'title' => '',
                                                ],
                                                'GmtModified' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'title' => '', 'example' => ''],
                                            ],
                                            'title' => '',
                                            'example' => '',
                                        ],
                                        'title' => '',
                                        'example' => '',
                                    ],
                                    'JobId' => ['description' => 'The job ID.', 'type' => 'string', 'example' => '66122af12a4e45ddae6bd6c84555xxxx', 'title' => ''],
                                    'Status' => [
                                        'description' => 'The current status of the knowledge base job. Valid values:'."\n"
                                            .'- COMPLETED: Execution succeeded.'."\n"
                                            .'- FAILED: Execution failed.'."\n"
                                            .'- RUNNING: Execution in progress.'."\n"
                                            .'- PENDING: Waiting for execution.',
                                        'enumValueTitles' => ['COMPLETED' => 'Execution succeeded.', 'FAILED' => 'Execution failed.', 'RUNNING' => 'Execution in progress.', 'PENDING' => 'Waiting for execution.'],
                                        'type' => 'string',
                                        'example' => 'PENDING',
                                        'title' => '',
                                    ],
                                ],
                                'title' => '',
                                'example' => '',
                            ],
                            'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'User not authorized to operate on the specified resource.', 'title' => ''],
                            'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '17204B98-xxxx-4F9A-8464-2446A84821CA', 'title' => ''],
                            'Status' => ['title' => '', 'description' => 'The status code returned by the operation.', 'type' => 'string', 'example' => '200'],
                            'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
                                .'- true: Successful.'."\n"
                                .'- false: Failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"Code\\": \\"Index.Forbidden\\",\\n  \\"Data\\": {\\n    \\"Documents\\": [\\n      {\\n        \\"Code\\": \\"Index.Document.ChunkError\\",\\n        \\"DocId\\": \\"file_9a65732555b54d5ea10796ca5742ba22_xxxxxxxx\\",\\n        \\"DocName\\": \\"XXX产品介绍\\",\\n        \\"Message\\": \\"document parse error\\",\\n        \\"Status\\": \\"RUNNING\\",\\n        \\"GmtModified\\": 0\\n      }\\n    ],\\n    \\"JobId\\": \\"66122af12a4e45ddae6bd6c84555xxxx\\",\\n    \\"Status\\": \\"PENDING\\"\\n  },\\n  \\"Message\\": \\"User not authorized to operate on the specified resource.\\",\\n  \\"RequestId\\": \\"17204B98-xxxx-4F9A-8464-2446A84821CA\\",\\n  \\"Status\\": \\"200\\",\\n  \\"Success\\": true\\n}","type":"json"}]',
            'gatewayOptions' => [
                'gatewayProtocols' => [],
            ],
            'title' => 'Query knowledge base job status',
            'description' => '- Resource Access Management (RAM) users must first obtain [API permissions](~~2848578~~) for Alibaba Cloud Model Studio (`AliyunBailianDataFullAccess` or `AliyunBailianDataReadOnlyAccess`, both of which include the sfm:GetIndexJobStatus permission), and [join a workspace](~~2851098~~) before invoking this operation. Alibaba Cloud accounts can invoke this operation directly without authorization. Use the latest <props="china">[Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)</props><props="intl">[Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29)</props> to invoke this operation.'."\n"
                .'- You must have a knowledge base job that is in progress. You can create a knowledge base creation task by invoking the **SubmitIndexJob** operation, or create a knowledge base document append task by invoking the **SubmitIndexAddDocumentsJob** operation. Obtain the corresponding `JobId`.'."\n"
                .'- Invoke this operation at intervals of 5 seconds or more.'."\n"
                .'- This operation supports idempotence.',
            'changeSet' => [
                ['createdAt' => '2025-03-25T06:25:53.000Z', 'description' => 'Response parameters changed'],
                ['createdAt' => '2024-09-05T07:46:53.000Z', 'description' => 'Request parameters changed'],
            ],
            'flowControl' => [
                'flowControlList' => [
                    ['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetIndexJobStatus'],
                ],
            ],
            'ramActions' => [
                [
                    'operationType' => 'get',
                    'ramAction' => [
                        'action' => 'sfm:GetIndexJobStatus',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
        ],
        'GetIndexMonitor' => [
            'summary' => 'You can call the GetIndexMonitor operation to query monitoring data for a specified knowledge base within a specific time range. This data is crucial for App Performance Analytics, capacity planning, and cost management. The monitoring data includes two main dimensions: storage and retrieval. Storage monitoring retrieves the index storage limit and current usage of the knowledge base. Retrieval monitoring retrieves performance metrics for the query period, such as peak queries per second (QPS), total requests, and average QPS. The metrics are provided as totals and are also broken down by time window. The requests are categorized as successful, failed, and rate-limited.',
            'path' => '/{WorkspaceId}/rag/index/monitor',
            'methods' => ['get'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'read',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'WorkspaceId',
                    'in' => 'path',
                    'schema' => ['description' => 'The ID of the workspace where the knowledge base is located.', 'type' => 'string', 'required' => true, 'example' => 'llm-3shx2gu255oqxxxx', 'title' => ''],
                ],
                [
                    'name' => 'IndexId',
                    'in' => 'query',
                    'schema' => [
                        'description' => 'The unique ID of the target knowledge base.',
                        'enumValueTitles' => [],
                        'type' => 'string',
                        'required' => true,
                        'example' => 'kb-123456xxxx'."\n",
                        'title' => '',
                    ],
                ],
                [
                    'name' => 'StartTimestamp',
                    'in' => 'query',
                    'schema' => ['description' => 'The start of the time range to query. This is a UNIX timestamp in seconds.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1767604500', 'title' => ''],
                ],
                [
                    'name' => 'EndTimestamp',
                    'in' => 'query',
                    'schema' => ['description' => 'The end of the time range to query. The end time can be a maximum of 30 days after the start time. This is a UNIX timestamp in seconds.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1767604500', 'title' => ''],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'description' => 'Schema of Response',
                        'title' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => '778C0B3B-xxxx-5FC1-A947-36EDD13606AB'],
                            'Code' => ['description' => 'The status code.', 'type' => 'string', 'example' => '200', 'title' => ''],
                            'Data' => ['description' => 'The core data object of the response.'."\n"
                                ."\n"
                                .'**pipelineCommercialType** (String): The edition of the knowledge base.'."\n"
                                ."\n"
                                .'- standard: Standard Edition'."\n"
                                ."\n"
                                .'- enterprise: Ultimate Edition'."\n"
                                ."\n"
                                .'**storageMonitorData** (Object): The storage monitoring data of the knowledge base.'."\n"
                                ."\n"
                                .'- indexStorageLimit (Number): The index storage limit of the knowledge base, in GB.'."\n"
                                ."\n"
                                .'- indexStorageUsage (Number): The current index storage usage of the knowledge base, in GB.'."\n"
                                ."\n"
                                .'**pipelineCommercialCu** (Integer): The number of RCU for the Ultimate Edition knowledge base. For example: 2.'."\n"
                                ."\n"
                                .'**qpsMonitorData** (Object): The aggregated retrieval monitoring data for the knowledge base over the entire query period.'."\n"
                                ."\n"
                                .'- peakQps (Integer): The peak QPS over the entire time period.'."\n"
                                ."\n"
                                .'- totalRequests (Integer): The total number of requests over the entire time period.'."\n"
                                ."\n"
                                .'- avgQpsOfActiveSeconds (Number): The average QPS during active seconds over the entire time period. Active seconds are seconds in which calls were made.'."\n"
                                ."\n"
                                .'- monitorData (Array): An array of detailed monitoring data broken down by time window. Each object in the array represents the performance statistics for a single time window.'."\n"
                                ."\n"
                                .'  <details>'."\n"
                                ."\n"
                                .'  <summary>'."\n"
                                ."\n"
                                .'  Sub-properties'."\n"
                                ."\n"
                                .'  </summary>'."\n"
                                ."\n"
                                .'  - successData (Object): The statistics for successful requests within this window.'."\n"
                                ."\n"
                                .'  - limitData (Object): The statistics for rate-limited requests within this window.'."\n"
                                ."\n"
                                .'  - failData (Object): The statistics for failed calls within this window.'."\n"
                                ."\n"
                                .'  - peakQpsInWindowRange (Integer): The total peak QPS within this window (successful + rate-limited + failed).'."\n"
                                ."\n"
                                .'  - totalRequests (Integer): The total number of requests within this window (successful + rate-limited + failed).'."\n"
                                ."\n"
                                .'  - windowRange (Integer): The start time of the time window (UNIX timestamp in seconds).'."\n"
                                ."\n"
                                .'  - windowRangeEnd (Integer): The end time of the time window (UNIX timestamp in seconds).'."\n"
                                ."\n"
                                .'  - avgQpsOfActiveSeconds (Number): The average QPS during active seconds within this window.'."\n"
                                ."\n"
                                .'  **The successData, limitData, and failData objects have the same internal structure, as described below:**'."\n"
                                ."\n"
                                .'  - peakQpsInWindowRange (Integer): The peak QPS for the corresponding status.'."\n"
                                ."\n"
                                .'  - totalRequests (Integer): The total number of requests for the corresponding status.'."\n"
                                ."\n"
                                .'  - avgQpsOfActiveSeconds (Number): The average QPS during active seconds for the corresponding status.'."\n"
                                ."\n"
                                .'  </details>', 'type' => 'any', 'example' => '{'."\n"
                                .'    "code": "Success",'."\n"
                                .'    "status_code": 200,'."\n"
                                .'    "data": {'."\n"
                                .'"pipelineCommercialType": "standard",       "storageMonitorData": Object{...},'."\n"
                                .'        "qpsMonitorData": Object{...}'."\n"
                                .'    },'."\n"
                                .'    "success": true,'."\n"
                                .'    "message": "success",'."\n"
                                .'    "request_id": "65d34b79-b97e-478e-a0a3-xxx",'."\n"
                                .'    "status": "SUCCESS"'."\n"
                                .'}', 'title' => ''],
                            'Message' => ['description' => 'The status message.', 'type' => 'string', 'example' => 'success', 'title' => ''],
                            'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true'."\n", 'title' => ''],
                            'Status' => ['description' => 'The status code returned by the operation.', 'type' => 'integer', 'format' => 'int32', 'example' => 'SUCCESS', 'title' => ''],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'title' => 'Retrieve knowledge base monitoring data',
            'description' => '<props="intl">'."\n"
                ."\n"
                .'This operation is not available on the Alibaba Cloud International Website (www\\.alibabacloud.com).'."\n"
                ."\n"
                .'</props>'."\n"
                ."\n"
                .'<props="china">'."\n"
                ."\n"
                .'- Before you call this operation, a RAM user must obtain the required [API permissions](~~2848578~~) for Alibaba Cloud Model Studio (which requires the `AliyunBailianDataFullAccess` permission) and [join a workspace](~~2851098~~). Alibaba Cloud accounts can call this operation directly without authorization. You can call this operation using the latest version of the [Alibaba Cloud Model Studio software development kit (SDK)](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29). Before you call this operation, make sure that the specified knowledge base has been created and has not been deleted. This means that the knowledge base ID (`IndexId`) must be valid. This operation is idempotent. The maximum query time range (EndTimestamp - StartTimestamp) is 30 days. The granularity of the time window in the returned data is dynamically adjusted based on the query time range.'."\n"
                ."\n"
                .'</props>',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [],
            ],
            'ramActions' => [
                [
                    'operationType' => 'get',
                    'ramAction' => [
                        'action' => 'sfm:GetIndexMonitor',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"RequestId\\": \\"778C0B3B-xxxx-5FC1-A947-36EDD13606AB\\",\\n  \\"Code\\": \\"200\\",\\n  \\"Data\\": \\"{\\\\n    \\\\\\"code\\\\\\": \\\\\\"Success\\\\\\",\\\\n    \\\\\\"status_code\\\\\\": 200,\\\\n    \\\\\\"data\\\\\\": {\\\\n\\\\\\"pipelineCommercialType\\\\\\": \\\\\\"standard\\\\\\",       \\\\\\"storageMonitorData\\\\\\": Object{...},\\\\n        \\\\\\"qpsMonitorData\\\\\\": Object{...}\\\\n    },\\\\n    \\\\\\"success\\\\\\": true,\\\\n    \\\\\\"message\\\\\\": \\\\\\"success\\\\\\",\\\\n    \\\\\\"request_id\\\\\\": \\\\\\"65d34b79-b97e-478e-a0a3-xxx\\\\\\",\\\\n    \\\\\\"status\\\\\\": \\\\\\"SUCCESS\\\\\\"\\\\n}\\",\\n  \\"Message\\": \\"success\\",\\n  \\"Success\\": true,\\n  \\"Status\\": 0\\n}","type":"json"}]',
        ],
        'GetMemory' => [
            'summary' => 'Retrieves the description of a specified long-term memory.',
            'path' => '/{workspaceId}/memories/{memoryId}',
            'methods' => ['get'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'write',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'workspaceId',
                    'in' => 'path',
                    'schema' => ['title' => '', 'description' => 'The ID of the workspace to which the long-term memory belongs. For information about how to obtain the workspace ID, see [How to use a workspace](~~2587495~~).', 'type' => 'string', 'required' => true, 'example' => 'llm-3z7uw7fwz0vexxxx'],
                ],
                [
                    'name' => 'memoryId',
                    'in' => 'path',
                    'schema' => ['title' => '', 'description' => 'The ID of the long-term memory, which corresponds to the memoryId returned by the [CreateMemory](https://www.alibabacloud.com/help/en/model-studio/developer-reference/api-bailian-2023-12-29-creatememory) operation.', 'type' => 'string', 'required' => true, 'example' => '6bff4f317a14442fbc9f73d29dbxxxx'."\n"],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => '',
                        'description' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'description' => ['description' => 'The description of the long-term memory.', 'type' => 'string', 'example' => '我的大模型应用$APP_ID关于A用户的长期记忆体', 'title' => ''],
                            'memoryId' => ['description' => 'The ID of the long-term memory.', 'type' => 'string', 'example' => '6bff4f317a14442fbc9f73d29dbdxxxx', 'title' => ''],
                            'requestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '6a71f2d9-f1c9-913b-818b-11402910xxxx'],
                            'workspaceId' => ['title' => '', 'description' => 'The ID of the workspace to which the long-term memory belongs.', 'type' => 'string', 'example' => 'llm-3z7uw7fwz0vexxxx'],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'errorCodes' => [
                404 => [
                    ['errorCode' => 'Memory.MemoryIdNotFound', 'errorMessage' => 'Memory Id not exist or is not authorized.', 'description' => 'memoryId not found'],
                ],
                500 => [
                    ['errorCode' => 'Memory.InternalError', 'errorMessage' => 'Memory service inner exception.', 'description' => 'Memory service inner exception.'."\n"],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"description\\": \\"我的大模型应用$APP_ID关于A用户的长期记忆体\\",\\n  \\"memoryId\\": \\"6bff4f317a14442fbc9f73d29dbdxxxx\\",\\n  \\"requestId\\": \\"6a71f2d9-f1c9-913b-818b-11402910xxxx\\",\\n  \\"workspaceId\\": \\"llm-3z7uw7fwz0vexxxx\\"\\n}","type":"json"}]',
            'title' => 'Retrieve long-term memory',
            'description' => '- This operation is idempotent.'."\n"
                ."\n"
                .'**Rate limit:** Ensure that the interval between two consecutive requests is at least 1 second. Otherwise, throttling may be triggered. If throttling occurs, retry later.',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [
                    ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetMemory'],
                ],
            ],
            'ramActions' => [
                [
                    'operationType' => 'get',
                    'ramAction' => [
                        'action' => 'sfm:GetMemory',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
        ],
        'GetMemoryNode' => [
            'summary' => 'Retrieves a memory fragment.',
            'path' => '/{workspaceId}/memories/{memoryId}/memoryNodes/{memoryNodeId}',
            'methods' => ['get'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'write',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'workspaceId',
                    'in' => 'path',
                    'schema' => ['title' => '', 'description' => 'The workspace ID.', 'type' => 'string', 'required' => true, 'example' => 'llm-us9hjmt32nysdm5v'."\n"],
                ],
                [
                    'name' => 'memoryId',
                    'in' => 'path',
                    'schema' => ['title' => '', 'description' => 'The long-term memory ID.', 'type' => 'string', 'required' => true, 'example' => '6bff4f317a14442fbc9f73d29dbd5fc3'."\n"],
                ],
                [
                    'name' => 'memoryNodeId',
                    'in' => 'path',
                    'schema' => ['title' => '', 'description' => 'The memory fragment ID.', 'type' => 'string', 'required' => true, 'example' => '68de06c95368463a8be4a84efc872cc5'."\n"],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => '',
                        'description' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'content' => ['title' => '', 'description' => 'The content of the memory fragment.', 'type' => 'string', 'example' => '用户喜欢吃西红柿炒鸡蛋'."\n"],
                            'memoryId' => ['title' => '', 'description' => 'The long-term memory ID.', 'type' => 'string', 'example' => '6bff4f317a14442fbc9f73d29dbd5fc3'."\n"],
                            'memoryNodeId' => ['title' => '', 'description' => 'The memory fragment ID.', 'type' => 'string', 'example' => '68de06c95368463a8be4a84efc872cc5'],
                            'requestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '8C56C7AF-6573-19CE-B018-E05E1EDCF4C5'."\n"],
                            'workspaceId' => ['title' => '', 'description' => 'The workspace ID.', 'type' => 'string', 'example' => 'llm-us9hjmt32nysdm5v'."\n"],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'errorCodes' => [
                400 => [
                    ['errorCode' => 'Memory.MemoryNodeContentInvalid', 'errorMessage' => 'Memory node content is invalid.', 'description' => 'Memory node content is invalid.'],
                ],
                404 => [
                    ['errorCode' => 'Memory.MemoryIdNotFound', 'errorMessage' => 'Memory Id not exist or is not authorized.', 'description' => 'memoryId not found'],
                    ['errorCode' => 'Memory.MemoryNodeNotFound', 'errorMessage' => 'MemoryNode not found.', 'description' => 'MemoryNode not found'],
                ],
                500 => [
                    ['errorCode' => 'Memory.InternalError', 'errorMessage' => 'Memory service inner exception.', 'description' => 'Memory service inner exception.'."\n"],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"content\\": \\"用户喜欢吃西红柿炒鸡蛋\\\\n\\",\\n  \\"memoryId\\": \\"6bff4f317a14442fbc9f73d29dbd5fc3\\\\n\\",\\n  \\"memoryNodeId\\": \\"68de06c95368463a8be4a84efc872cc5\\",\\n  \\"requestId\\": \\"8C56C7AF-6573-19CE-B018-E05E1EDCF4C5\\\\n\\",\\n  \\"workspaceId\\": \\"llm-us9hjmt32nysdm5v\\\\n\\"\\n}","type":"json"}]',
            'title' => 'Retrieve a memory fragment',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [
                    ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetMemoryNode'],
                ],
            ],
            'ramActions' => [
                [
                    'operationType' => 'get',
                    'ramAction' => [
                        'action' => 'sfm:GetMemoryNode',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
        ],
        'GetParseSettings' => [
            'summary' => 'Queries the data parsing settings in a specified category.',
            'path' => '/{WorkspaceId}/datacenter/parser/settings',
            'methods' => ['get'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'read',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true, 'tenantRelevance' => 'tenant'],
            'parameters' => [
                [
                    'name' => 'WorkspaceId',
                    'in' => 'path',
                    'schema' => ['description' => 'The ID of the workspace to which the file belongs. For more information, see [Use workspaces](~~2587495~~).'."\n", 'type' => 'string', 'required' => false, 'example' => 'llm-3shx2gu255oqxxxx', 'title' => ''],
                ],
                [
                    'name' => 'CategoryId',
                    'in' => 'query',
                    'schema' => ['description' => 'The category ID, which is the `CategoryId` returned by **AddCategory**. To view the category ID, click the ID icon next to the category name on the Unstructured Data tab of the [Application Data](https://bailian.console.alibabacloud.com/?tab=app#/data-center) page.'."\n", 'type' => 'string', 'required' => false, 'example' => 'cate_cdd11b1b79a74e8bbd675c356a91ee35xxxxxxxx', 'title' => ''],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => 'Schema of Response',
                        'description' => 'Schema of Response'."\n",
                        'type' => 'object',
                        'properties' => [
                            'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '35A267BF-xxxx-54DB-8394-AA3B0742D833'],
                            'Data' => [
                                'description' => 'The returned data fields.'."\n",
                                'type' => 'array',
                                'items' => [
                                    'description' => 'The returned data.'."\n",
                                    'type' => 'object',
                                    'properties' => [
                                        'FileType' => ['description' => 'The file type. Valid values are: pdf, docx, doc, etc. All supported file types in the category are listed here.'."\n", 'type' => 'string', 'example' => 'pdf', 'title' => ''],
                                        'ParserDisplayName' => ['description' => 'The display name of the parsing method.'."\n", 'type' => 'string', 'example' => '电子文档解析', 'title' => ''],
                                        'ParserConfig' => [
                                            'description' => 'The parser configuration. Currently, this is available only for Qwen VL parsing.'."\n",
                                            'type' => 'object',
                                            'properties' => [
                                                'ModelName' => [
                                                    'description' => 'The model name.'."\n",
                                                    'type' => 'string',
                                                    'example' => 'qwen-vl-max',
                                                    'enumValueTitles' => ['qwen-vl-max' => 'qwen-vl-max', 'qwen-vl-plus' => 'qwen-vl-plus'],
                                                    'title' => '',
                                                ],
                                                'ModelPrompt' => ['description' => 'The prompt used for parsing.'."\n", 'type' => 'string', 'example' => '#角色'."\n"
                                                    .'你是一个专业的图片内容标注人员,擅长识别并描述出图片中的内容。'."\n"
                                                    .'# 任务目标'."\n"
                                                    .'请结合输入图片,详细描述图片中的内容。', 'title' => ''],
                                            ],
                                            'title' => '',
                                            'example' => '',
                                        ],
                                        'Parser' => ['description' => 'The parser used for files of the current type. Valid values:'."\n"
                                            ."\n"
                                            .'*   DOCMIND (Intelligent parsing)'."\n"
                                            .'*   DOCMIND_DIGITAL (Digital parsing)'."\n"
                                            .'*   DOCMIND_LLM_VERSION (LLM parsing)'."\n"
                                            .'*   DASH_QWEN_VL_PARSER (Qwen VL parsing)'."\n", 'type' => 'string', 'example' => 'DOCMIND', 'title' => ''],
                                    ],
                                    'title' => '',
                                    'example' => '',
                                ],
                                'title' => '',
                                'example' => '',
                            ],
                            'Status' => ['description' => 'The HTTP status code returned.'."\n", 'type' => 'string', 'example' => '200', 'title' => ''],
                            'Success' => ['description' => 'Indicates whether the call is successful. Valid values:'."\n"
                                ."\n"
                                .'*   true'."\n"
                                .'*   false'."\n", 'type' => 'boolean', 'example' => 'True', 'title' => ''],
                            'Message' => ['description' => 'The error message.'."\n", 'type' => 'string', 'example' => 'workspace id is null or invalid.', 'title' => ''],
                            'Code' => ['description' => 'The status code.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"RequestId\\": \\"35A267BF-xxxx-54DB-8394-AA3B0742D833\\",\\n  \\"Data\\": [\\n    {\\n      \\"FileType\\": \\"pdf\\",\\n      \\"ParserDisplayName\\": \\"电子文档解析\\",\\n      \\"ParserConfig\\": {\\n        \\"ModelName\\": \\"qwen-vl-max\\",\\n        \\"ModelPrompt\\": \\"#角色\\\\n你是一个专业的图片内容标注人员,擅长识别并描述出图片中的内容。\\\\n# 任务目标\\\\n请结合输入图片,详细描述图片中的内容。\\"\\n      },\\n      \\"Parser\\": \\"DOCMIND\\"\\n    }\\n  ],\\n  \\"Status\\": \\"200\\",\\n  \\"Success\\": true,\\n  \\"Message\\": \\"workspace id is null or invalid.\\",\\n  \\"Code\\": \\"success\\"\\n}","type":"json"}]',
            'title' => 'GetParseSettings',
            'description' => '- RAM用户(子账号)需要首先获取阿里云百炼的[API权限](~~2848578~~)(`AliyunBailianDataFullAccess`或`AliyunBailianDataReadOnlyAccess`均可,已包括sfm:GetParseSettings权限点),并[加入一个业务空间](~~2851098~~)后,方可调用本接口。阿里云账号(主账号)可直接调用无须授权。建议您通过最新版<props="china">[阿里云百炼SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)</props><props="intl">[阿里云百炼SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29)</props>来调用本接口。'."\n"
                ."\n"
                .'- 本接口具有幂等性。'."\n"
                ."\n"
                .'**限流说明:**'."\n"
                .'本接口频繁调用会被限流,频率请勿超过10次/秒。如遇限流,请稍后重试。',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [],
            ],
            'ramActions' => [
                [
                    'operationType' => 'get',
                    'ramAction' => [
                        'action' => 'sfm:GetParseSettings',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
        ],
        'GetPromptTemplate' => [
            'summary' => 'Obtains a prompt template based on the template ID.',
            'path' => '/{workspaceId}/promptTemplates/{promptTemplateId}',
            'methods' => ['get'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'read',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'workspaceId',
                    'in' => 'path',
                    'schema' => ['title' => '', 'description' => 'The workspace ID.'."\n", 'type' => 'string', 'required' => true, 'example' => 'llm-us9hjmt32nysdxxx'],
                ],
                [
                    'name' => 'promptTemplateId',
                    'in' => 'path',
                    'schema' => ['title' => '', 'description' => 'The template ID.'."\n", 'type' => 'string', 'required' => true, 'example' => '6e49109bfeb94a39bb268f4e483ccxxx'],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => 'Schema of Response',
                        'description' => 'Schema of Response'."\n",
                        'type' => 'object',
                        'properties' => [
                            'content' => ['title' => '', 'description' => 'The template content.'."\n", 'type' => 'string', 'example' => '请写一篇小红书种草笔记,增加丰富的emoji元素,结尾作总结,并加上相关标签。主题为:${theme}'],
                            'name' => ['title' => '', 'description' => 'The template name.'."\n", 'type' => 'string', 'example' => '小红书文案助手'],
                            'promptTemplateId' => ['title' => '', 'description' => 'The template ID.'."\n", 'type' => 'string', 'example' => '6e49109bfeb94a39bb268f4e483ccxxx'],
                            'requestId' => ['title' => '', 'description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '8C56C7AF-6573-19CE-B018-E05E1EDCF4C5'],
                            'workspaceId' => ['title' => '', 'description' => 'The workspace ID.'."\n", 'type' => 'string', 'example' => 'llm-us9hjmt32nysdxxx'],
                            'variables' => [
                                'title' => '',
                                'description' => 'The variables of the template.'."\n",
                                'type' => 'array',
                                'items' => ['description' => 'The template variable.'."\n", 'type' => 'string', 'example' => 'theme', 'title' => ''],
                                'example' => '["theme"]',
                            ],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'errorCodes' => [
                404 => [
                    ['errorCode' => 'PromptTemplate.TemplateNotFound', 'errorMessage' => 'Prompt template not found.', 'description' => 'Prompt template not found'],
                ],
                500 => [
                    ['errorCode' => 'PromptTemplate.InternalError', 'errorMessage' => 'Prompt template service inner exception.', 'description' => 'prompt template service internal exception'],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"content\\": \\"请写一篇小红书种草笔记,增加丰富的emoji元素,结尾作总结,并加上相关标签。主题为:${theme}\\",\\n  \\"name\\": \\"小红书文案助手\\",\\n  \\"promptTemplateId\\": \\"6e49109bfeb94a39bb268f4e483ccxxx\\",\\n  \\"requestId\\": \\"8C56C7AF-6573-19CE-B018-E05E1EDCF4C5\\",\\n  \\"workspaceId\\": \\"llm-us9hjmt32nysdxxx\\",\\n  \\"variables\\": [\\n    \\"theme\\"\\n  ]\\n}","type":"json"}]',
            'title' => 'GetPromptTemplate',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [
                    ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetPromptTemplate'],
                ],
            ],
            'ramActions' => [
                [
                    'operationType' => 'get',
                    'ramAction' => [
                        'action' => 'sfm:GetPromptTemplate',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
        ],
        'ListCategory' => [
            'summary' => 'Retrieves the details of one or more categories in a specified workspace.',
            'path' => '/{WorkspaceId}/datacenter/categories',
            'methods' => ['post'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'read',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'WorkspaceId',
                    'in' => 'path',
                    'schema' => ['description' => 'The ID of the workspace. For details, see [Work with workspaces](~~2587495~~).', 'type' => 'string', 'required' => true, 'example' => 'llm-3shx2gu255oqxxxx', 'title' => ''],
                ],
                [
                    'name' => 'ConnectorId',
                    'in' => 'formData',
                    'schema' => ['description' => 'The ID of the connector.', 'type' => 'string', 'required' => false, 'example' => 'file_conn_xxxxx', 'title' => ''],
                ],
                [
                    'name' => 'CategoryType',
                    'in' => 'formData',
                    'schema' => [
                        'description' => 'The type of category to query. Valid value:'."\n"
                            ."\n"
                            .'- `UNSTRUCTURED`: A category for unstructured data.'."\n"
                            ."\n"
                            .'<props="china">'."\n"
                            ."\n"
                            .'> This API does not support querying structured data tables.'."\n"
                            ."\n"
                            .'</props>'."\n"
                            ."\n"
                            .'<props="intl">'."\n"
                            ."\n"
                            .'> This API does not support querying structured data tables.'."\n"
                            ."\n"
                            .'</props>',
                        'type' => 'string',
                        'required' => true,
                        'enum' => ['UNSTRUCTURED'],
                        'example' => 'UNSTRUCTURED',
                        'title' => '',
                    ],
                ],
                [
                    'name' => 'ParentCategoryId',
                    'in' => 'formData',
                    'schema' => ['description' => 'The ID of the parent category.', 'type' => 'string', 'required' => false, 'example' => 'cate_cdd11b1b79a74e8bbd675c356a91ee3xxxxxxxx', 'title' => ''],
                ],
                [
                    'name' => 'NextToken',
                    'in' => 'formData',
                    'schema' => ['description' => 'The pagination token. To retrieve the next page of results, pass the `NextToken` value from the previous response.', 'type' => 'string', 'required' => false, 'example' => 'AAAAAdH70eOCSCKtacdomNzak4U=', 'title' => ''],
                ],
                [
                    'name' => 'MaxResults',
                    'in' => 'formData',
                    'schema' => ['description' => 'The maximum number of categories to return per page. The valid range is 1 to 200.'."\n"
                        ."\n"
                        .'Default value: 20. If this parameter is not specified or is set to a value less than 1, the default value is used. If a value greater than 200 is specified, the maximum value of 200 is used.', 'type' => 'integer', 'format' => 'int32', 'maximum' => '500', 'minimum' => '0', 'required' => false, 'example' => '20', 'title' => ''],
                ],
                [
                    'name' => 'CategoryName',
                    'in' => 'formData',
                    'schema' => ['description' => 'Filters the results to include only the category with this exact name. If this parameter is omitted, no filtering is applied.', 'type' => 'string', 'required' => false, 'example' => '产品清单', 'title' => ''],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => 'Schema of Response',
                        'description' => 'The response object.',
                        'type' => 'object',
                        'properties' => [
                            'Code' => ['description' => 'The error code.', 'type' => 'string', 'example' => 'success', 'title' => ''],
                            'Data' => [
                                'description' => 'The response payload.',
                                'type' => 'object',
                                'properties' => [
                                    'CategoryList' => [
                                        'description' => 'The list of categories.',
                                        'type' => 'array',
                                        'items' => [
                                            'description' => 'A category object.',
                                            'type' => 'object',
                                            'properties' => [
                                                'CategoryId' => ['description' => 'The category ID.', 'type' => 'string', 'example' => 'cate_cdd11b1b79a74e8bbd675c356a91ee3xxxxxxxx', 'title' => ''],
                                                'CategoryName' => ['description' => 'The category name.', 'type' => 'string', 'example' => '类目1', 'title' => ''],
                                                'CategoryType' => ['description' => 'The category type. The only valid value is:'."\n"
                                                    ."\n"
                                                    .'- `UNSTRUCTURED`: A standard category.', 'type' => 'string', 'example' => 'UNSTRUCTURED', 'title' => ''],
                                                'IsDefault' => ['description' => 'Indicates whether the category is the default. Valid values:'."\n"
                                                    ."\n"
                                                    .'- `true`: The category is the default.'."\n"
                                                    ."\n"
                                                    .'- `false`: The category is not the default.'."\n"
                                                    ."\n"
                                                    .'You cannot delete the default category.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
                                                'ParentCategoryId' => ['description' => 'The parent category ID.', 'type' => 'string', 'example' => 'cate_addd11b1b79a74e8bbd675c356a91ee3xxxxxxxx', 'title' => ''],
                                            ],
                                            'title' => '',
                                            'example' => '',
                                        ],
                                        'title' => '',
                                        'example' => '',
                                    ],
                                    'HasNext' => ['description' => 'Indicates whether more results are available for retrieval. Valid values:'."\n"
                                        ."\n"
                                        .'- `true`: More results are available.'."\n"
                                        ."\n"
                                        .'- `false`: This is the last page of results.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
                                    'MaxResults' => ['description' => 'The maximum number of results to return per page.', 'type' => 'integer', 'format' => 'int32', 'example' => '20', 'title' => ''],
                                    'NextToken' => ['description' => 'The token used to retrieve the next page of results. This parameter is omitted when no more results are available.', 'type' => 'string', 'example' => 'AAAAALHWGpGoYCcYMxiFfmlhvh7Z4G8jiXR6IjHYd+M9WQVJ', 'title' => ''],
                                    'TotalCount' => ['description' => 'The total number of matching categories.', 'type' => 'integer', 'format' => 'int32', 'example' => '20', 'title' => ''],
                                ],
                                'title' => '',
                                'example' => '',
                            ],
                            'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'workspace id is null or invalid.', 'title' => ''],
                            'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => '17204B98-xxxx-4F9A-8464-2446A84821CA'],
                            'Status' => ['description' => 'The status code for the request.', 'type' => 'string', 'example' => '200', 'title' => ''],
                            'Success' => ['description' => 'Indicates whether the request succeeded. Valid values:'."\n"
                                ."\n"
                                .'- `true`: The request succeeded.'."\n"
                                ."\n"
                                .'- `false`: The request failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"Code\\": \\"success\\",\\n  \\"Data\\": {\\n    \\"CategoryList\\": [\\n      {\\n        \\"CategoryId\\": \\"cate_cdd11b1b79a74e8bbd675c356a91ee3xxxxxxxx\\",\\n        \\"CategoryName\\": \\"类目1\\",\\n        \\"CategoryType\\": \\"UNSTRUCTURED\\",\\n        \\"IsDefault\\": true,\\n        \\"ParentCategoryId\\": \\"cate_addd11b1b79a74e8bbd675c356a91ee3xxxxxxxx\\"\\n      }\\n    ],\\n    \\"HasNext\\": true,\\n    \\"MaxResults\\": 20,\\n    \\"NextToken\\": \\"AAAAALHWGpGoYCcYMxiFfmlhvh7Z4G8jiXR6IjHYd+M9WQVJ\\",\\n    \\"TotalCount\\": 20\\n  },\\n  \\"Message\\": \\"workspace id is null or invalid.\\",\\n  \\"RequestId\\": \\"17204B98-xxxx-4F9A-8464-2446A84821CA\\",\\n  \\"Status\\": \\"200\\",\\n  \\"Success\\": true\\n}","type":"json"}]',
            'title' => 'Category List  ',
            'description' => '- This API does not support querying data tables.'."\n"
                ."\n"
                .'- To call this API, a RAM user must first obtain the required [API permission](~~2848578~~) for Model Studio and [join a workspace](~~2851098~~). This requires the `AliyunBailianDataFullAccess` permission, which includes the `sfm:ListCategory` permission. Alibaba Cloud accounts can call this API directly. Use the latest version of the <props="china">[Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)</props><props="intl">[Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29)</props>.'."\n"
                ."\n"
                .'- This operation supports pagination. When making your first request, set the `MaxResults` parameter to specify the maximum number of items to return. If more items are available, the response includes a `NextToken`. To retrieve the next page of results, set the `NextToken` parameter to the value from the previous response and specify `MaxResults` again. An empty `NextToken` indicates that no more results are available.'."\n"
                ."\n"
                .'- This operation is idempotent.'."\n"
                ."\n"
                .'**Rate limiting:** This API is subject to rate limiting. Do not exceed 5 requests per second. If the system throttles a request, retry it after a short interval.',
            'changeSet' => [
                ['createdAt' => '2025-05-23T08:26:21.000Z', 'description' => 'Request parameters changed'],
            ],
            'flowControl' => [
                'flowControlList' => [
                    ['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListCategory'],
                ],
            ],
            'ramActions' => [
                [
                    'operationType' => 'list',
                    'ramAction' => [
                        'action' => 'sfm:ListCategory',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
        ],
        'ListChunks' => [
            'summary' => 'Queries the list and information of text chunks.',
            'path' => '/{WorkspaceId}/index/list_chunks',
            'methods' => ['post'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'read',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'WorkspaceId',
                    'in' => 'path',
                    'schema' => ['description' => 'The workspace ID of the knowledge base. For information about how to obtain the workspace ID, see [How to use a workspace](~~2587495~~).', 'type' => 'string', 'required' => true, 'example' => 'llm-3z7uw7fwz0vxxxx', 'title' => ''],
                ],
                [
                    'name' => 'body',
                    'in' => 'body',
                    'style' => 'json',
                    'schema' => [
                        'description' => 'The body of the request parameters.',
                        'type' => 'object',
                        'properties' => [
                            'Fields' => [
                                'description' => 'An array of field names used to filter non-private fields (those not prefixed with an underscore _) in the Metadata field returned by this operation. By default, Fields is empty, and all non-private fields in Metadata are returned. To return only specific non-private fields in Metadata, such as title, pass title in this parameter.'."\n"
                                    ."\n"
                                    .'Default value: empty.',
                                'type' => 'array',
                                'items' => ['description' => 'The field name.', 'type' => 'string', 'required' => false, 'example' => 'name', 'title' => ''],
                                'required' => false,
                                'title' => '',
                                'example' => '',
                            ],
                            'Filed' => ['description' => 'The file ID field in the legacy Model Studio SDK. The usage and default value are identical to those of the `FileId` field. If you are using the following versions (or later) of the Model Studio SDK, use the `FileId` field instead. If you are using the SWIFT Model Studio SDK, continue to use this field.'."\n"
                                ."\n"
                                .'- Java (async): 1.0.18'."\n"
                                .'- Java: 1.10.2'."\n"
                                .'- TypeScript: 1.10.2'."\n"
                                .'- Go: 1.10.2'."\n"
                                .'- PHP: 1.10.2'."\n"
                                .'- Python: 1.10.2'."\n"
                                .'- C#: 1.10.2'."\n"
                                .'- C++: 1.10.17'."\n"
                                ."\n"
                                .'> **How to check the Model Studio SDK version**: Visit the <props="china">[Model Studio SDK center](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)</props><props="intl">[Model Studio SDK center](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29)</props>, click "**Install**" in the left-side navigation pane, set the API version to "**2023-12-29**", select your programming language, and then click "**History Versions**" to view the version.', 'type' => 'string', 'required' => false, 'example' => 'file_5f03dfea56da4050ab68d61871fc4cb3_xxxxxxxx', 'title' => ''],
                            'FileId' => ['description' => '<props="china">'."\n"
                                ."\n"
                                .'The file ID, which is the `FileId` returned by the **AddFile** operation. This field is not required for data query or image Q&A knowledge bases. This field is required for document search or audio/video search knowledge bases. You can also obtain the file ID by clicking the ID icon next to the file name on the Files tab of [Application Data](https://bailian.console.aliyun.com/?tab=app#/data-center). You can use the file ID to filter the returned chunks. Default value: empty.'."\n"
                                ."\n\n"
                                .'</props>'."\n"
                                ."\n"
                                .'<props="intl">'."\n"
                                ."\n"
                                .'The file ID, which is the `FileId` returned by the **AddFile** operation. This field is not required for data query or image Q&A knowledge bases. This field is required for document search knowledge bases. You can also obtain the file ID by clicking the ID icon next to the file name on the Files tab of'."\n"
                                .'[Application Data](https://modelstudio.console.alibabacloud.com/?tab=app#/data-center). You can use the file ID to filter the returned chunks. Default value: empty.'."\n"
                                ."\n"
                                .'</props>.', 'type' => 'string', 'required' => false, 'example' => 'file_5f03dfea56da4050ab68d61871fc4cb3_xxxxxxxx', 'title' => ''],
                            'IndexId' => ['description' => 'The knowledge base ID, which is the `Data.Id` returned by the **CreateIndex** operation.', 'type' => 'string', 'required' => true, 'example' => 'otoru9xxxx', 'title' => ''],
                            'PageNum' => ['description' => 'The page number to query. Minimum value: 1. Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
                            'PageSize' => ['description' => 'The number of text chunks to display per page in a paged query. Maximum value: 100. Default value: 10.', 'type' => 'integer', 'title' => '', 'format' => 'int32', 'required' => false, 'example' => '10'],
                        ],
                        'required' => false,
                        'title' => '',
                        'example' => '',
                    ],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'type' => 'object',
                        'properties' => [
                            'Code' => ['description' => 'The error status code.', 'type' => 'string', 'example' => 'Index.InvalidParameter', 'title' => ''],
                            'Data' => [
                                'description' => 'The business data returned by the operation.',
                                'type' => 'object',
                                'properties' => [
                                    'Nodes' => [
                                        'description' => 'The list of text chunks.',
                                        'type' => 'array',
                                        'items' => [
                                            'description' => 'The text chunk object.',
                                            'type' => 'object',
                                            'properties' => [
                                                'Metadata' => ['description' => '<props="china">'."\n"
                                                    ."\n"
                                                    .'The metadata map of the text chunk.'."\n"
                                                    ."\n"
                                                    .'> The `file_path` field in the metadata map of document search knowledge bases is meaningless. Do not use it in your business code.'."\n"
                                                    ."\n"
                                                    .'> When retrieving a document search knowledge base, if a chunk contains an image, the image is returned through the `image_url` field in the metadata map, along with an expiration time.'."\n"
                                                    ."\n"
                                                    .'> When retrieving an audio/video search knowledge base, if a chunk contains audio, the audio is returned through the `audio_url` field in the metadata map, along with an expiration time.'."\n"
                                                    ."\n"
                                                    .'> When retrieving an audio/video search knowledge base, if a chunk contains video, the video is returned through the `video_url` field in the metadata map, along with an expiration time.'."\n"
                                                    ."\n"
                                                    .'</props>'."\n"
                                                    .'<props="intl">'."\n"
                                                    ."\n"
                                                    .'The metadata map of the text chunk.'."\n"
                                                    ."\n"
                                                    .'> The `file_path` field in the metadata map of document search knowledge bases is meaningless. Do not use it in your business code.'."\n"
                                                    ."\n"
                                                    .'> When retrieving a document search knowledge base, if a chunk contains an image, the image is returned through the `image_url` field in the metadata map, along with an expiration time.'."\n"
                                                    ."\n"
                                                    .'</props>.', 'type' => 'any', 'example' => '{'."\n"
                                                    .'  "file_path": "https://bailian-***",'."\n"
                                                    .'  "parent": "阿里云百炼是一站式的大模型开发及应用构建平台。不论是开发者还是业务人员,都能深入参与大模型应用的设计和构建。您可以通过简单的界面操作,在 5分钟内开发出一款大模型应用,或在几小时内训练出一个专属模型,从而将更多精力专注于应用创新。",'."\n"
                                                    .'  "is_displayed_chunk_content": "true",'."\n"
                                                    .'  "image_url": [],'."\n"
                                                    .'  "nid": "83***",'."\n"
                                                    .'  "source": "0",'."\n"
                                                    .'  "_score": 0,'."\n"
                                                    .'  "title": "",'."\n"
                                                    .'  "doc_id": "file_24e***",'."\n"
                                                    .'  "content": "阿里云百炼是一站式的大模型开发及应用构建平台。不论是开发者还是业务人员,都能深入参与大模型应用的设计和构建。您可以通过简单的界面操作,在 5分钟内开发出一款大模型应用,或在几小时内训练出一个专属模型,从而将更多精力专注于应用创新。",'."\n"
                                                    .'  "_rc_score": 0,'."\n"
                                                    .'  "workspace_id": "llm-zna***",'."\n"
                                                    .'  "hier_title": "",'."\n"
                                                    .'  "doc_name": "什么是阿里云百炼",'."\n"
                                                    .'  "pipeline_id": "j6b***",'."\n"
                                                    .'  "_id": "llm-zna5***"'."\n"
                                                    .'}', 'title' => ''],
                                                'Score' => ['description' => 'The similarity score of the text chunk.', 'type' => 'number', 'format' => 'double', 'example' => '0', 'title' => ''],
                                                'Text' => ['description' => 'The content of the text chunk.', 'type' => 'string', 'example' => '阿里云百炼是一站式的大模型开发及应用构建平台。不论是开发者还是业务人员,都能深入参与大模型应用的设计和构建。您可以通过简单的界面操作,在 5分钟内开发出一款大模型应用,或在几小时内训练出一个专属模型,从而将更多精力专注于应用创新。', 'title' => ''],
                                            ],
                                            'title' => '',
                                            'example' => '',
                                        ],
                                        'title' => '',
                                        'example' => '',
                                    ],
                                    'Total' => ['description' => 'The total number of returned results.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''],
                                ],
                                'title' => '',
                                'example' => '',
                            ],
                            'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'Required parameter(%s) missing or invalid, please check the request parameters.', 'title' => ''],
                            'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '8F97A63B-xxxx-527F-9D6E-467B6A7E8CF1'],
                            'Status' => ['description' => 'The status code returned by the operation.', 'type' => 'string', 'example' => '200', 'title' => ''],
                            'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
                                .'- true: Successful.'."\n"
                                .'- false: Failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
                        ],
                        'description' => '',
                        'title' => '',
                        'example' => '',
                    ],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"Code\\": \\"Index.InvalidParameter\\",\\n  \\"Data\\": {\\n    \\"Nodes\\": [\\n      {\\n        \\"Metadata\\": \\"{\\\\n  \\\\\\"file_path\\\\\\": \\\\\\"https://bailian-***\\\\\\",\\\\n  \\\\\\"parent\\\\\\": \\\\\\"阿里云百炼是一站式的大模型开发及应用构建平台。不论是开发者还是业务人员,都能深入参与大模型应用的设计和构建。您可以通过简单的界面操作,在 5分钟内开发出一款大模型应用,或在几小时内训练出一个专属模型,从而将更多精力专注于应用创新。\\\\\\",\\\\n  \\\\\\"is_displayed_chunk_content\\\\\\": \\\\\\"true\\\\\\",\\\\n  \\\\\\"image_url\\\\\\": [],\\\\n  \\\\\\"nid\\\\\\": \\\\\\"83***\\\\\\",\\\\n  \\\\\\"source\\\\\\": \\\\\\"0\\\\\\",\\\\n  \\\\\\"_score\\\\\\": 0,\\\\n  \\\\\\"title\\\\\\": \\\\\\"\\\\\\",\\\\n  \\\\\\"doc_id\\\\\\": \\\\\\"file_24e***\\\\\\",\\\\n  \\\\\\"content\\\\\\": \\\\\\"阿里云百炼是一站式的大模型开发及应用构建平台。不论是开发者还是业务人员,都能深入参与大模型应用的设计和构建。您可以通过简单的界面操作,在 5分钟内开发出一款大模型应用,或在几小时内训练出一个专属模型,从而将更多精力专注于应用创新。\\\\\\",\\\\n  \\\\\\"_rc_score\\\\\\": 0,\\\\n  \\\\\\"workspace_id\\\\\\": \\\\\\"llm-zna***\\\\\\",\\\\n  \\\\\\"hier_title\\\\\\": \\\\\\"\\\\\\",\\\\n  \\\\\\"doc_name\\\\\\": \\\\\\"什么是阿里云百炼\\\\\\",\\\\n  \\\\\\"pipeline_id\\\\\\": \\\\\\"j6b***\\\\\\",\\\\n  \\\\\\"_id\\\\\\": \\\\\\"llm-zna5***\\\\\\"\\\\n}\\",\\n        \\"Score\\": 0,\\n        \\"Text\\": \\"阿里云百炼是一站式的大模型开发及应用构建平台。不论是开发者还是业务人员,都能深入参与大模型应用的设计和构建。您可以通过简单的界面操作,在 5分钟内开发出一款大模型应用,或在几小时内训练出一个专属模型,从而将更多精力专注于应用创新。\\"\\n      }\\n    ],\\n    \\"Total\\": 1\\n  },\\n  \\"Message\\": \\"Required parameter(%s) missing or invalid, please check the request parameters.\\",\\n  \\"RequestId\\": \\"8F97A63B-xxxx-527F-9D6E-467B6A7E8CF1\\",\\n  \\"Status\\": \\"200\\",\\n  \\"Success\\": true\\n}","type":"json"}]',
            'title' => 'Query chunk list under an index',
            'description' => '- For document search<props="china"> or audio/video search</props> knowledge bases, this operation queries all chunks of a specified file. For data query or image Q&A knowledge bases, this operation retrieves information about all text chunks.'."\n"
                .'- Resource Access Management (RAM) users must first obtain [API permissions](~~2848578~~) for Model Studio (requires `AliyunBailianDataFullAccess`, which includes the sfm:ChunkList permission), and [join a workspace](~~2851098~~) before invoking this operation. Alibaba Cloud accounts can invoke this operation directly without authorization. Use the latest <props="china">[Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)</props><props="intl">[Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29)</props> to invoke this operation.'."\n"
                .'- Before invoking this operation, make sure that your knowledge base has been created and has not been deleted (that is, the knowledge base ID `IndexId` is valid).'."\n"
                .'- This operation has idempotence.'."\n"
                ."\n"
                .'**Rate limit:**'."\n"
                .'This operation is throttled if called too frequently. Do not exceed 10 calls per second. If you are throttled, retry later.',
            'changeSet' => [
                ['createdAt' => '2024-12-12T05:56:53.000Z', 'description' => 'Request parameters changed'],
                ['createdAt' => '2024-09-25T05:49:26.000Z', 'description' => 'Request parameters changed'],
            ],
            'flowControl' => [
                'flowControlList' => [
                    ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListChunks'],
                ],
            ],
            'ramActions' => [
                [
                    'operationType' => 'list',
                    'ramAction' => [
                        'action' => 'sfm:ChunkList',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
        ],
        'ListFile' => [
            'summary' => 'Retrieves the details of one or more documents in a specified category.',
            'path' => '/{WorkspaceId}/datacenter/files',
            'methods' => ['get'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'read',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'WorkspaceId',
                    'in' => 'path',
                    'schema' => ['description' => 'The workspace ID to which the category belongs. For information about how to obtain the workspace ID, see [How to use a workspace](~~2587495~~).', 'type' => 'string', 'required' => true, 'example' => 'llm-3shx2gu255oqxxxx'."\n", 'title' => ''],
                ],
                [
                    'name' => 'CategoryId',
                    'in' => 'query',
                    'schema' => ['description' => '<props="china">'."\n"
                        ."\n"
                        .'The category ID, which is the `CategoryId` returned by the **AddCategory** operation. You can also obtain it on the [Application Data](https://bailian.console.aliyun.com/?tab=app#/data-center) - Files tab by clicking the ID icon next to the category name.'."\n"
                        ."\n"
                        .'</props>'."\n"
                        ."\n"
                        .'<props="intl">'."\n"
                        ."\n"
                        .'The category ID, which is the `CategoryId` returned by the **AddCategory** operation. You can also obtain it on the [Application Data](https://modelstudio.console.alibabacloud.com/?tab=app#/data-center) - Files tab by clicking the ID icon next to the category name.'."\n"
                        ."\n"
                        .'</props>.', 'type' => 'string', 'required' => true, 'example' => 'cate_cdd11b1b79a74e8bbd675c356a91ee35xxxxxxxx', 'title' => ''],
                ],
                [
                    'name' => 'NextToken',
                    'in' => 'query',
                    'schema' => ['description' => 'The pagination token. Set this to the NextToken value returned by the previous API call.', 'type' => 'string', 'required' => false, 'example' => 'AAAAAdH70eOCSCKtacdomNzak4U=', 'title' => ''],
                ],
                [
                    'name' => 'MaxResults',
                    'in' => 'query',
                    'schema' => ['description' => 'The number of entries per page for paging. Valid values: 1 to 200.'."\n"
                        ."\n"
                        .'Default value:'."\n"
                        .'If no value is set or the value is less than 1, the default value is 20. If the value is set to greater than 200, the default value is 200.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20', 'title' => ''],
                ],
                [
                    'name' => 'FileName',
                    'in' => 'query',
                    'schema' => ['description' => 'The file name (without extension). Only exact match is supported. Fuzzy search is not supported.', 'type' => 'string', 'required' => false, 'example' => 'product-overview', 'title' => ''],
                ],
                [
                    'name' => 'FileIds',
                    'in' => 'query',
                    'style' => 'json',
                    'schema' => [
                        'title' => '',
                        'description' => 'The list of file IDs to query. A maximum of 20 files can be queried at a time.',
                        'type' => 'array',
                        'items' => ['title' => '', 'description' => 'The file ID.', 'type' => 'string', 'example' => 'file_xxxx', 'required' => false],
                        'required' => false,
                        'maxItems' => 20,
                        'minItems' => 0,
                        'example' => '',
                    ],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => '',
                        'description' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'Code' => ['description' => 'The error code.', 'type' => 'string', 'example' => 'success', 'title' => ''],
                            'Data' => [
                                'description' => 'The data field returned by the operation.',
                                'type' => 'object',
                                'properties' => [
                                    'FileList' => [
                                        'description' => 'The list of files in the category.',
                                        'type' => 'array',
                                        'items' => [
                                            'description' => 'The file object.',
                                            'type' => 'object',
                                            'properties' => [
                                                'CategoryId' => ['description' => 'The ID of the category to which the file belongs.', 'type' => 'string', 'example' => 'cate_cdd11b1b79a74e8bbd675c356a91ee35xxxxxxxx', 'title' => ''],
                                                'CreateTime' => ['description' => 'The timestamp when the file was added to Alibaba Cloud Model Studio. Format: yyyy-MM-dd HH:mm:ss. Time zone: UTC+8.', 'type' => 'string', 'example' => '2024-09-09 11:03:35', 'title' => ''],
                                                'FileId' => ['description' => 'The file ID, which is the `FileId` returned by the **AddFile** operation. You can also obtain it on the <props="china">[Application Data](https://bailian.console.aliyun.com/?tab=app#/data-center)</props><props="intl">[Application Data](https://modelstudio.console.alibabacloud.com/?tab=app#/data-center)</props> page by clicking the icon next to the file name.', 'type' => 'string', 'example' => 'file_5ff599b3455a45db8c41b0054b361518_xxxxxxxx', 'title' => ''],
                                                'FileName' => ['description' => 'The file name.', 'type' => 'string', 'example' => 'product-overview.pdf', 'title' => ''],
                                                'FileType' => ['description' => 'The file format type. Valid values: pdf, docx, doc, txt, md, pptx, ppt, xlsx, xls, html, png, jpg, jpeg, bmp, and gif.', 'type' => 'string', 'example' => 'docx', 'title' => ''],
                                                'Parser' => ['description' => 'The document parser. Valid values:'."\n"
                                                    .'- DASHSCOPE_DOCMIND: Alibaba Cloud intelligent document parsing.', 'type' => 'string', 'example' => 'DASHSCOPE_DOCMIND', 'title' => ''],
                                                'SizeInBytes' => ['description' => 'The file size in bytes.', 'type' => 'integer', 'format' => 'int64', 'example' => '512', 'title' => ''],
                                                'Status' => ['description' => 'The file parsing status. Valid values:'."\n"
                                                    .'- INIT: Initialization state. Waiting to be scheduled.'."\n"
                                                    .'- PARSING: Parsing in progress.'."\n"
                                                    .'- PARSE_SUCCESS: Parsing completed.'."\n"
                                                    .'- PARSE_FAILED: Parsing failed.', 'type' => 'string', 'example' => 'PARSE_SUCCESS', 'title' => ''],
                                                'ParseErrorMessage' => ['title' => '', 'description' => 'The reason for parsing failure.', 'type' => 'string', 'example' => 'Error Message'],
                                                'Tags' => [
                                                    'description' => 'The list of tags associated with the file. A document can be associated with multiple tags.',
                                                    'type' => 'array',
                                                    'items' => ['description' => 'The file tag.', 'type' => 'string', 'example' => 'tag-A', 'title' => ''],
                                                    'title' => '',
                                                    'example' => '',
                                                ],
                                            ],
                                            'title' => '',
                                            'example' => '',
                                        ],
                                        'title' => '',
                                        'example' => '',
                                    ],
                                    'HasNext' => ['description' => 'Indicates whether there is a next page of category data that matches the query conditions. Valid values:'."\n"
                                        .'- true: Yes.'."\n"
                                        .'- false: No.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
                                    'MaxResults' => ['description' => 'The number of entries per page for paging.', 'type' => 'integer', 'format' => 'int32', 'example' => '20', 'title' => ''],
                                    'NextToken' => ['description' => 'The pagination token returned by this call.', 'type' => 'string', 'example' => '4jzbJk9J6lNeuXD9hP0viA==', 'title' => ''],
                                    'TotalCount' => ['description' => 'The total number of entries in the returned results.', 'type' => 'integer', 'format' => 'int32', 'example' => '48', 'title' => ''],
                                ],
                                'title' => '',
                                'example' => '',
                            ],
                            'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'Requests throttling triggered.', 'title' => ''],
                            'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '8F97A63B-xxxx-527F-9D6E-467B6A7E8CF1'],
                            'Status' => ['description' => 'The status code returned by the operation.', 'type' => 'string', 'example' => '200', 'title' => ''],
                            'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
                                .'- true: Successful. '."\n"
                                .'- false: Failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"Code\\": \\"success\\",\\n  \\"Data\\": {\\n    \\"FileList\\": [\\n      {\\n        \\"CategoryId\\": \\"cate_cdd11b1b79a74e8bbd675c356a91ee35xxxxxxxx\\",\\n        \\"CreateTime\\": \\"2024-09-09 11:03:35\\",\\n        \\"FileId\\": \\"file_5ff599b3455a45db8c41b0054b361518_xxxxxxxx\\",\\n        \\"FileName\\": \\"product-overview.pdf\\",\\n        \\"FileType\\": \\"docx\\",\\n        \\"Parser\\": \\"DASHSCOPE_DOCMIND\\",\\n        \\"SizeInBytes\\": 512,\\n        \\"Status\\": \\"PARSE_SUCCESS\\",\\n        \\"ParseErrorMessage\\": \\"Error Message\\",\\n        \\"Tags\\": [\\n          \\"tag-A\\"\\n        ]\\n      }\\n    ],\\n    \\"HasNext\\": true,\\n    \\"MaxResults\\": 20,\\n    \\"NextToken\\": \\"4jzbJk9J6lNeuXD9hP0viA==\\",\\n    \\"TotalCount\\": 48\\n  },\\n  \\"Message\\": \\"Requests throttling triggered.\\",\\n  \\"RequestId\\": \\"8F97A63B-xxxx-527F-9D6E-467B6A7E8CF1\\",\\n  \\"Status\\": \\"200\\",\\n  \\"Success\\": true\\n}","type":"json"}]',
            'title' => 'File list',
            'description' => '- Resource Access Management (RAM) users must first obtain [API permissions](~~2848578~~) for Alibaba Cloud Model Studio (requires `AliyunBailianDataFullAccess`, which includes the sfm:ListFile permission), and [join a workspace](~~2851098~~) before invoking this operation. Alibaba Cloud accounts can invoke this operation directly without authorization. Invoke this operation by using the latest <props="china">[Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)</props><props="intl">[Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29)</props>.'."\n"
                .'- For paging on the first page, only set `MaxResults` to limit the number of entries returned. The `NextToken` in the response serves as the credential for querying subsequent pages. When querying subsequent pages, set the `NextToken` parameter to the `NextToken` value obtained from the previous response (if `NextToken` is empty, all results have been returned and no further requests are needed), and set `MaxResults` to limit the number of entries returned.'."\n"
                ."\n"
                .'- This operation is idempotent.'."\n"
                ."\n"
                .'**Rate limit:**'."\n"
                .'This operation is throttled if called too frequently. Do not exceed 5 calls per second. If throttled, retry later.',
            'changeSet' => [
                ['createdAt' => '2024-10-15T01:42:54.000Z', 'description' => 'Request parameters changed'],
                ['createdAt' => '2024-09-18T08:46:20.000Z', 'description' => 'Response parameters changed'],
            ],
            'flowControl' => [
                'flowControlList' => [
                    ['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListFile'],
                ],
            ],
            'ramActions' => [
                [
                    'operationType' => 'list',
                    'ramAction' => [
                        'action' => 'sfm:ListFile',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
        ],
        'ListIndexDocuments' => [
            'summary' => 'Retrieves files and their summary information from a specified knowledge base.',
            'path' => '/{WorkspaceId}/index/list_index_documents',
            'methods' => ['get'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/x-www-form-urlencoded'],
            'produces' => ['application/json'],
            'operationType' => 'read',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'IndexId',
                    'in' => 'query',
                    'schema' => ['description' => 'The knowledge base ID, which is the `Data.Id` returned by the **CreateIndex** operation.', 'type' => 'string', 'required' => true, 'example' => '79c0alxxxx', 'title' => ''],
                ],
                [
                    'name' => 'DocumentStatus',
                    'in' => 'query',
                    'schema' => [
                        'description' => 'Filters the returned file list by file import status. Valid values:'."\n"
                            .'- INSERT_ERROR: failed to import to the index.'."\n"
                            .'- RUNNING: index building in progress.'."\n"
                            .'- DELETED: deleted.'."\n"
                            .'- FINISH: index building succeeded.'."\n"
                            .'- PARSE_FAILED: parsing failed.'."\n"
                            .'- DOC_PARSING: parsing in progress.'."\n"
                            ."\n"
                            .'Default value: empty, which means no filtering by file import status.',
                        'enumValueTitles' => [],
                        'type' => 'string',
                        'required' => false,
                        'example' => 'FINISH',
                        'title' => '',
                    ],
                ],
                [
                    'name' => 'DocumentName',
                    'in' => 'query',
                    'schema' => ['description' => 'Filters the returned file list by file name (without the file extension). Default value: empty, which means no filtering by file name.', 'type' => 'string', 'required' => false, 'example' => 'product-overview', 'title' => ''],
                ],
                [
                    'name' => 'EnableNameLike',
                    'in' => 'query',
                    'schema' => [
                        'description' => 'Specifies whether to enable fuzzy matching for file names. This parameter is used together with the `DocumentName` parameter. Valid values:'."\n"
                            .'- true: Performs fuzzy matching on the returned file list based on the file name.'."\n"
                            .'- false: Performs exact matching on the returned file list based on the file name.'."\n"
                            ."\n"
                            .'Default value: false.',
                        'enumValueTitles' => ['true' => 'enabled.', 'false' => 'disabled.'],
                        'type' => 'string',
                        'required' => false,
                        'example' => 'false',
                        'title' => '',
                    ],
                ],
                [
                    'name' => 'PageNumber',
                    'in' => 'query',
                    'schema' => ['description' => 'The page number. Minimum value: 1. Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
                ],
                [
                    'name' => 'PageSize',
                    'in' => 'query',
                    'schema' => ['description' => 'The number of files to display per page in a paged query. No maximum limit.'."\n"
                        .'Default value: 10.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''],
                ],
                [
                    'name' => 'WorkspaceId',
                    'in' => 'path',
                    'schema' => ['description' => 'The workspace ID of the knowledge base. For information about how to obtain the workspace ID, see [How to use a workspace](~~2587495~~).', 'type' => 'string', 'required' => true, 'example' => 'llm-3z7uw7fwz0vexxxx', 'title' => ''],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => '',
                        'description' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '35A267BF-xxxx-54DB-8394-AA3B0742D833'],
                            'Code' => ['description' => 'The error status code.', 'type' => 'string', 'example' => 'InvalidParameter', 'title' => ''],
                            'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'Required parameter(%s) missing or invalid, please check the request parameters.', 'title' => ''],
                            'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
                                .'- true: Successful.'."\n"
                                .'- false: Failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
                            'Data' => [
                                'description' => 'The data field returned by the operation.',
                                'type' => 'object',
                                'properties' => [
                                    'Documents' => [
                                        'description' => 'The list of files in the knowledge base, sorted by document import time in descending order (consistent with the console).',
                                        'type' => 'array',
                                        'items' => [
                                            'description' => 'The file object.',
                                            'type' => 'object',
                                            'properties' => [
                                                'SourceId' => ['description' => '<props="china">'."\n"
                                                    ."\n"
                                                    .'For document search or audio/video search knowledge bases, this parameter specifies the category ID, which is the `CategoryId` returned by the **AddCategory** operation. You can also obtain it by clicking the ID icon next to the category name on the Files tab of [Application Data](https://bailian.console.aliyun.com/?tab=app#/data-center).'."\n"
                                                    ."\n\n"
                                                    .'For data query or image Q&A knowledge bases, this parameter specifies the data table ID. You can obtain it by clicking the ID icon next to the data table name on the Tables tab of [Application Data](https://bailian.console.aliyun.com/?tab=app#/data-center).'."\n"
                                                    ."\n\n"
                                                    .'</props>'."\n"
                                                    ."\n"
                                                    .'<props="intl">'."\n"
                                                    ."\n"
                                                    .'For document search knowledge bases, this parameter specifies the category ID, which is the `CategoryId` returned by the **AddCategory** operation. You can also obtain it by clicking the ID icon next to the category name on the Files tab of [Application Data](https://bailian.console.aliyun.com/?tab=app#/data-center).'."\n"
                                                    ."\n\n"
                                                    .'For data query or image Q&A knowledge bases, this parameter specifies the data table ID. You can obtain it by clicking the ID icon next to the data table name on the Tables tab of [Application Data](https://modelstudio.console.alibabacloud.com/?tab=app#/data-center).'."\n"
                                                    ."\n"
                                                    .'</props>', 'type' => 'string', 'example' => 'cate_21a407a3372c4ba7aedc649709143f0cxxxxxxxx', 'title' => ''],
                                                'Id' => ['description' => 'The file ID.', 'type' => 'string', 'example' => 'doc_c134aa2073204a5d936d870bf960f56axxxxxxxx', 'title' => ''],
                                                'Name' => ['description' => 'The file name.', 'type' => 'string', 'example' => 'product-overview', 'title' => ''],
                                                'Size' => ['description' => 'The file size, in bytes.', 'type' => 'integer', 'format' => 'int32', 'example' => '996765', 'title' => ''],
                                                'DocumentType' => ['description' => 'The file format type. Valid values: pdf, docx, doc, txt, md, pptx, ppt, png, jpg, jpeg, bmp, gif, and EXCEL.', 'type' => 'string', 'example' => 'pdf', 'title' => ''],
                                                'Status' => [
                                                    'description' => 'The file import status. Valid values:'."\n"
                                                        .'- INSERT_ERROR: File import failed.'."\n"
                                                        .'- RUNNING: File import in progress.'."\n"
                                                        .'- DELETED: File deleted.'."\n"
                                                        .'- FINISH: File import succeeded.',
                                                    'enumValueTitles' => ['INSERT_ERROR' => 'file import failed.', 'RUNNING' => 'file import in progress.', 'DELETED' => 'file deleted.', 'FINISH' => 'file import succeeded.'],
                                                    'type' => 'string',
                                                    'example' => 'RUNNING',
                                                    'title' => '',
                                                ],
                                                'Code' => ['description' => 'The error status code for file import.', 'type' => 'string', 'example' => '110002', 'title' => ''],
                                                'Message' => ['description' => 'The error message for file import.', 'type' => 'string', 'example' => 'check fileUrlKey[file_path] / fileNameKey[null] / fileExtensionKey[file_extension] is invalid', 'title' => ''],
                                                'GmtModified' => ['description' => 'The time when the file was imported to the knowledge base, in UNIX timestamp format.', 'type' => 'integer', 'format' => 'int64', 'example' => '1744856423000', 'title' => ''],
                                            ],
                                            'title' => '',
                                            'example' => '',
                                        ],
                                        'title' => '',
                                        'example' => '',
                                    ],
                                    'IndexId' => ['description' => 'The knowledge base ID.', 'type' => 'string', 'example' => 'pno97txxxx', 'title' => ''],
                                    'TotalCount' => ['description' => 'The total number of returned results.', 'type' => 'integer', 'format' => 'int64', 'example' => '2437', 'title' => ''],
                                    'PageNumber' => ['description' => 'The returned page number.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
                                    'PageSize' => ['description' => 'The returned number of entries per page.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''],
                                ],
                                'title' => '',
                                'example' => '',
                            ],
                            'Status' => ['description' => 'The status code returned by the operation.', 'type' => 'string', 'example' => '200', 'title' => ''],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"RequestId\\": \\"35A267BF-xxxx-54DB-8394-AA3B0742D833\\",\\n  \\"Code\\": \\"InvalidParameter\\",\\n  \\"Message\\": \\"Required parameter(%s) missing or invalid, please check the request parameters.\\",\\n  \\"Success\\": true,\\n  \\"Data\\": {\\n    \\"Documents\\": [\\n      {\\n        \\"SourceId\\": \\"cate_21a407a3372c4ba7aedc649709143f0cxxxxxxxx\\",\\n        \\"Id\\": \\"doc_c134aa2073204a5d936d870bf960f56axxxxxxxx\\",\\n        \\"Name\\": \\"product-overview\\",\\n        \\"Size\\": 996765,\\n        \\"DocumentType\\": \\"pdf\\",\\n        \\"Status\\": \\"RUNNING\\",\\n        \\"Code\\": \\"110002\\",\\n        \\"Message\\": \\"check fileUrlKey[file_path] / fileNameKey[null] / fileExtensionKey[file_extension] is invalid\\",\\n        \\"GmtModified\\": 1744856423000\\n      }\\n    ],\\n    \\"IndexId\\": \\"pno97txxxx\\",\\n    \\"TotalCount\\": 2437,\\n    \\"PageNumber\\": 1,\\n    \\"PageSize\\": 10\\n  },\\n  \\"Status\\": \\"200\\"\\n}","type":"json"}]',
            'title' => 'Query files in a knowledge base',
            'description' => '- Resource Access Management (RAM) users must first obtain [API permissions](~~2848578~~) for Model Studio (requires `AliyunBailianDataFullAccess`, which includes the sfm:ListIndexFiles permission) and [join a workspace](~~2851098~~) before invoking this operation. Alibaba Cloud accounts can invoke this operation directly without authorization. Use the latest <props="china">[Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)</props><props="intl">[Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29)</props> to invoke this operation.'."\n"
                .'- Before invoking this operation, make sure that your knowledge base has been created and has not been deleted (that is, the knowledge base ID `IndexId` is valid).'."\n"
                .'- This operation has idempotence.'."\n"
                ."\n"
                .'**Throttling:**'."\n"
                .'This operation is throttled if called too frequently. Do not exceed 15 calls per second. If you are throttled, retry later.',
            'changeSet' => [
                ['createdAt' => '2025-06-04T01:43:41.000Z', 'description' => 'Request parameters changed'],
                ['createdAt' => '2025-03-25T06:25:53.000Z', 'description' => 'Response parameters changed'],
            ],
            'flowControl' => [
                'flowControlList' => [
                    ['threshold' => '15', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListIndexDocuments'],
                ],
            ],
            'ramActions' => [
                [
                    'operationType' => 'list',
                    'ramAction' => [
                        'action' => 'sfm:ListIndexFiles',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
        ],
        'ListIndexFileDetails' => [
            'summary' => 'Retrieves the files in a specified knowledge base along with their details.',
            'path' => '/{WorkspaceId}/index/list_index_file_detail',
            'methods' => ['post'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'read',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'IndexId',
                    'in' => 'query',
                    'schema' => ['description' => 'The knowledge base ID, which is the `Data.Id` returned by the **CreateIndex** operation.', 'type' => 'string', 'required' => false, 'example' => '79c0alxxxx', 'title' => ''],
                ],
                [
                    'name' => 'DocumentStatus',
                    'in' => 'query',
                    'schema' => [
                        'description' => 'Filters the returned file list by file import status. Valid values:'."\n"
                            ."\n"
                            .'- INSERT_ERROR: Failed to import to the index.'."\n"
                            .'- RUNNING: Index building in progress.'."\n"
                            .'- DELETED: Deleted.'."\n"
                            .'- FINISH: Index building succeeded.'."\n"
                            .'- PARSE_FAILED: Parsing failed.'."\n"
                            .'- DOC_PARSING: Parsing in progress.'."\n"
                            ."\n"
                            .'Default value: empty, which means no filtering by file import status.',
                        'enumValueTitles' => [],
                        'type' => 'string',
                        'required' => false,
                        'example' => 'FINISH',
                        'title' => '',
                    ],
                ],
                [
                    'name' => 'DocumentName',
                    'in' => 'query',
                    'schema' => ['description' => 'Filters the returned file details list by file name. Default value: empty, which means no filtering by file name.', 'type' => 'string', 'required' => false, 'example' => '翻译平台运维文档', 'title' => ''],
                ],
                [
                    'name' => 'PageNumber',
                    'in' => 'query',
                    'schema' => ['description' => 'The page number to query. Minimum value: 1. Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
                ],
                [
                    'name' => 'PageSize',
                    'in' => 'query',
                    'schema' => ['description' => 'The number of files to display per page for paging. Maximum value: 10.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''],
                ],
                [
                    'name' => 'WorkspaceId',
                    'in' => 'path',
                    'schema' => ['description' => 'The ID of the workspace to which the knowledge base belongs. For information about how to obtain the workspace ID, see [How to use a workspace](~~2587495~~).', 'type' => 'string', 'required' => true, 'example' => 'llm-3z7uw7fwz0vexxxx', 'title' => ''],
                ],
                [
                    'name' => 'EnableNameLike',
                    'in' => 'query',
                    'schema' => [
                        'description' => 'Specifies whether to enable fuzzy matching for file names. This parameter is used together with the `DocumentName` parameter. Valid values:'."\n"
                            ."\n"
                            .'- true: Performs fuzzy matching on the returned file list based on the file name.'."\n"
                            .'- false: Performs exact matching on the returned file list based on the file name.'."\n"
                            ."\n"
                            .'Default value: false.',
                        'enumValueTitles' => ['true' => 'enabled.', 'false' => 'disabled.'],
                        'type' => 'string',
                        'required' => false,
                        'example' => 'false',
                        'title' => '',
                    ],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => '',
                        'description' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '35A267BF-xxxx-54DB-8394-AA3B0742D833'],
                            'Code' => ['description' => 'The error status code.', 'type' => 'string', 'example' => 'InvalidParameter'."\n", 'title' => ''],
                            'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'Required parameter(%s) missing or invalid, please check the request parameters.', 'title' => ''],
                            'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
                                ."\n"
                                .'- true: Successful.'."\n"
                                .'- false: Failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
                            'Data' => [
                                'description' => 'The data field returned by the operation.',
                                'type' => 'object',
                                'properties' => [
                                    'Documents' => [
                                        'description' => 'The list of files in the knowledge base, sorted by file import time in descending order (consistent with the console).',
                                        'type' => 'array',
                                        'items' => [
                                            'description' => 'The file object.',
                                            'type' => 'object',
                                            'properties' => [
                                                'Status' => ['description' => 'The file import status. Valid values:'."\n"
                                                    ."\n"
                                                    .'- INSERT_ERROR: File import failed.'."\n"
                                                    .'- RUNNING: File import in progress.'."\n"
                                                    .'- DELETED: File deleted.'."\n"
                                                    .'- FINISH: File import succeeded.', 'type' => 'string', 'example' => 'RUNNING', 'title' => ''],
                                                'EnableHeaders' => ['description' => 'Indicates whether Excel file headers support concatenation.', 'type' => 'string', 'example' => 'true', 'title' => ''],
                                                'OverlapSize' => ['description' => 'The overlap length between segments.', 'type' => 'string', 'example' => '100', 'title' => ''],
                                                'Message' => ['description' => 'The error message for file import.', 'type' => 'string', 'example' => 'check fileUrlKey[file_path] / fileNameKey[null] / fileExtensionKey[file_extension] is invalid', 'title' => ''],
                                                'Size' => ['description' => 'The file size, in bytes.', 'type' => 'integer', 'format' => 'int32', 'example' => '996764'."\n", 'title' => ''],
                                                'SourceId' => ['description' => 'The category ID.', 'type' => 'string', 'example' => 'cate_21a407a3372c4ba7aedc649709143f0cxxxxxxxx'."\n", 'title' => ''],
                                                'GmtModified' => ['description' => 'The time when the file was imported to the knowledge base, in UNIX timestamp format.', 'type' => 'integer', 'format' => 'int64', 'example' => '1744856423000'."\n", 'title' => ''],
                                                'DocumentType' => ['description' => 'The file format type. Valid values: pdf, docx, doc, txt, md, pptx, ppt, png, jpg, jpeg, bmp, gif, and EXCEL.', 'type' => 'string', 'example' => 'pdf', 'title' => ''],
                                                'ChunkMode' => ['description' => 'The custom chunking mode.', 'type' => 'string', 'example' => 'DashSplitter', 'title' => ''],
                                                'Code' => ['description' => 'The error status code for file import.', 'type' => 'string', 'example' => '110002', 'title' => ''],
                                                'separator' => ['description' => 'The sentence separator.', 'type' => 'string', 'example' => '" "', 'title' => ''],
                                                'Name' => ['description' => 'The file name.', 'type' => 'string', 'example' => '翻译平台运维文档'."\n", 'title' => ''],
                                                'ChunkSize' => ['description' => 'The segment length, which is the number of characters in each text chunk.', 'type' => 'string', 'example' => '600', 'title' => ''],
                                                'Id' => ['description' => 'The file ID.', 'type' => 'string', 'example' => 'doc_c134aa2073204a5d936d870bf960f56axxxxxxxx'."\n", 'title' => ''],
                                            ],
                                            'title' => '',
                                            'example' => '',
                                        ],
                                        'title' => '',
                                        'example' => '',
                                    ],
                                    'IndexId' => ['description' => 'The knowledge base ID.', 'type' => 'string', 'example' => '79c0alxxxx', 'title' => ''],
                                    'TotalCount' => ['description' => 'The total number of returned results.', 'type' => 'integer', 'format' => 'int64', 'example' => '2437', 'title' => ''],
                                    'PageNumber' => ['description' => 'The returned page number.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
                                    'PageSize' => ['description' => 'The returned number of entries per page.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''],
                                ],
                                'title' => '',
                                'example' => '',
                            ],
                            'Status' => ['description' => 'The status code returned by the operation.', 'type' => 'string', 'example' => '200', 'title' => ''],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"RequestId\\": \\"35A267BF-xxxx-54DB-8394-AA3B0742D833\\",\\n  \\"Code\\": \\"InvalidParameter\\\\n\\",\\n  \\"Message\\": \\"Required parameter(%s) missing or invalid, please check the request parameters.\\",\\n  \\"Success\\": true,\\n  \\"Data\\": {\\n    \\"Documents\\": [\\n      {\\n        \\"Status\\": \\"RUNNING\\",\\n        \\"EnableHeaders\\": \\"true\\",\\n        \\"OverlapSize\\": \\"100\\",\\n        \\"Message\\": \\"check fileUrlKey[file_path] / fileNameKey[null] / fileExtensionKey[file_extension] is invalid\\",\\n        \\"Size\\": 996764,\\n        \\"SourceId\\": \\"cate_21a407a3372c4ba7aedc649709143f0cxxxxxxxx\\\\n\\",\\n        \\"GmtModified\\": 1744856423000,\\n        \\"DocumentType\\": \\"pdf\\",\\n        \\"ChunkMode\\": \\"DashSplitter\\",\\n        \\"Code\\": \\"110002\\",\\n        \\"separator\\": \\"\\\\\\" \\\\\\"\\",\\n        \\"Name\\": \\"翻译平台运维文档\\\\n\\",\\n        \\"ChunkSize\\": \\"600\\",\\n        \\"Id\\": \\"doc_c134aa2073204a5d936d870bf960f56axxxxxxxx\\\\n\\"\\n      }\\n    ],\\n    \\"IndexId\\": \\"79c0alxxxx\\",\\n    \\"TotalCount\\": 2437,\\n    \\"PageNumber\\": 1,\\n    \\"PageSize\\": 10\\n  },\\n  \\"Status\\": \\"200\\"\\n}","type":"json"}]',
            'title' => 'Query file details in a knowledge base',
            'description' => '- Resource Access Management (RAM) users must first obtain [API permissions](~~2848578~~) for Alibaba Cloud Model Studio (`AliyunBailianDataFullAccess` is required, which includes the sfm:ListIndexFiles permission), before invoking this operation. Alibaba Cloud accounts can invoke this operation directly without authorization. Use the latest <props="china">[Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)</props><props="intl">[Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29)</props> to invoke this operation.'."\n"
                .'- Before invoking this operation, make sure that your knowledge base has been created and has not been deleted (that is, the knowledge base ID `IndexId` is valid).'."\n"
                .'- This operation has idempotence.',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [],
            ],
            'ramActions' => [
                [
                    'operationType' => 'list',
                    'ramAction' => [
                        'action' => 'sfm:ListIndexFileDetails',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
        ],
        'ListIndices' => [
            'summary' => 'Retrieves the list of knowledge bases in a specified workspace.',
            'path' => '/{WorkspaceId}/index/list_indices',
            'methods' => ['get'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'read',
            'deprecated' => false,
            'systemTags' => [
                'operationType' => 'list',
                'riskType' => 'none',
                'chargeType' => 'free',
                'abilityTreeNodes' => ['FEATUREsfm4VA8MJ'],
            ],
            'parameters' => [
                [
                    'name' => 'IndexName',
                    'in' => 'query',
                    'schema' => [
                        'description' => 'The name of the knowledge base. You can use this parameter to search for a knowledge base by name. The name must be 1 to 20 characters in length and can contain characters classified as letters in Unicode (including English letters, Chinese characters, and digits). The name can also contain colons (:), underscores (_), periods (.), or hyphens (-).'."\n"
                            ."\n"
                            .'Default value: empty, which queries all knowledge bases in the specified workspace.',
                        'enumValueTitles' => [],
                        'type' => 'string',
                        'required' => false,
                        'example' => 'idx_status_score',
                        'title' => '',
                    ],
                ],
                [
                    'name' => 'PageNumber',
                    'in' => 'query',
                    'schema' => ['description' => 'The page number. Minimum value: 1. Default value: 1.', 'type' => 'string', 'required' => false, 'example' => '1', 'title' => ''],
                ],
                [
                    'name' => 'PageSize',
                    'in' => 'query',
                    'schema' => ['description' => 'The number of knowledge bases to display per page in a paging query. No maximum limit.'."\n"
                        .'Default value: 10.', 'type' => 'string', 'required' => false, 'example' => '10', 'title' => ''],
                ],
                [
                    'name' => 'WorkspaceId',
                    'in' => 'path',
                    'schema' => ['description' => 'The ID of the workspace to which the knowledge base belongs. For more information, see [How to use a workspace](~~2587495~~).', 'type' => 'string', 'required' => true, 'example' => 'llm-3shx2gu255oq6xxxx', 'title' => ''],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => '',
                        'description' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '17204B98-xxxx-4F9A-8464-2446A84821CA'],
                            'Data' => [
                                'description' => 'The returned data.',
                                'type' => 'object',
                                'properties' => [
                                    'PageNumber' => ['description' => 'The page number returned.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
                                    'PageSize' => ['description' => 'The number of entries per page returned.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''],
                                    'TotalCount' => ['description' => 'The total number of entries returned.', 'type' => 'integer', 'format' => 'int32', 'example' => '48', 'title' => ''],
                                    'Indices' => [
                                        'description' => 'The list of knowledge bases.',
                                        'type' => 'array',
                                        'items' => [
                                            'description' => 'The knowledge base object.',
                                            'type' => 'object',
                                            'properties' => [
                                                'Id' => ['description' => 'The knowledge base ID, which is the `Data.Id` returned by the **CreateIndex** operation.', 'type' => 'string', 'example' => 'lecxr5xxxx', 'title' => ''],
                                                'Name' => ['description' => 'The name of the knowledge base.', 'type' => 'string', 'example' => 'XXXX产品清单', 'title' => ''],
                                                'Description' => ['description' => 'The description of the knowledge base.', 'type' => 'string', 'example' => '清单中产品主要面向海外客户。', 'title' => ''],
                                                'StructureType' => [
                                                    'description' => 'The type of the knowledge base. Valid values:'."\n"
                                                        ."\n"
                                                        .'- UNSTRUCTURED: document search.',
                                                    'enumValueTitles' => [],
                                                    'type' => 'string',
                                                    'example' => 'UNSTRUCTURED',
                                                    'title' => '',
                                                ],
                                                'ChunkSize' => ['description' => 'The estimated chunk length. Valid values: 1 to 2048.', 'type' => 'integer', 'format' => 'int32', 'example' => '5', 'title' => ''],
                                                'OverlapSize' => ['description' => 'The chunk overlap length. Valid values: 0 to 1024.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''],
                                                'Separator' => ['description' => 'The sentence separator. If multiple separators are used, they are separated by |. Valid values:'."\n"
                                                    .'- \\'."\n"
                                                    .': line break'."\n"
                                                    .'- ,: Chinese comma'."\n"
                                                    .'- ,: English comma'."\n"
                                                    .'- 。: Chinese period'."\n"
                                                    .'- .: English period'."\n"
                                                    .'- !: Chinese exclamation mark'."\n"
                                                    .'- !: English exclamation mark'."\n"
                                                    .'- ;: Chinese semicolon'."\n"
                                                    .'- ;: English semicolon'."\n"
                                                    .'- ?: Chinese question mark'."\n"
                                                    .'- ?: English question mark.', 'type' => 'string', 'example' => '\\n', 'title' => ''],
                                                'EmbeddingModelName' => ['description' => 'The name of the embedding model. Valid values:'."\n"
                                                    ."\n"
                                                    .'<props="china">'."\n"
                                                    ."\n"
                                                    .'- text-embedding-v4: the text-embedding-v4 model.'."\n"
                                                    .'- text-embedding-v3: the text-embedding-v3 model.'."\n"
                                                    .'- text-embedding-v2: the text-embedding-v2 model.'."\n"
                                                    ."\n"
                                                    .'</props>'."\n"
                                                    ."\n"
                                                    .'<props="intl">'."\n"
                                                    ."\n"
                                                    .'- text-embedding-v2: the text-embedding-v2 model.'."\n"
                                                    ."\n"
                                                    .'</props>.', 'type' => 'string', 'example' => 'text-embedding-v2', 'title' => ''],
                                                'RerankModelName' => ['description' => 'The name of the rerank model. Valid values:'."\n"
                                                    ."\n"
                                                    .'<props="china">'."\n"
                                                    ."\n"
                                                    .'- qwen3-rerank-hybrid: qwen3-rerank (hybrid) reranking.'."\n"
                                                    .'- qwen3-rerank: qwen3-rerank reranking.'."\n"
                                                    .'- gte-rerank-hybrid: gte-rerank (hybrid) reranking.'."\n"
                                                    .'- gte-rerank: gte-rerank reranking.'."\n"
                                                    ."\n"
                                                    .'</props>'."\n"
                                                    ."\n"
                                                    .'<props="intl">'."\n"
                                                    ."\n"
                                                    .'- gte-rerank-hybrid: official reranking.'."\n"
                                                    .'- gte-rerank: gte-rerank reranking.'."\n"
                                                    ."\n"
                                                    .'</props>.', 'type' => 'string', 'example' => 'gte-rerank-hybrid', 'title' => ''],
                                                'RerankMinScore' => ['description' => 'The similarity threshold. Valid values: 0.01 to 1.00.', 'type' => 'string', 'example' => '0.01', 'title' => ''],
                                                'SourceType' => ['description' => 'The data type of Alibaba Cloud Model Studio <props="china">[application data](https://bailian.console.aliyun.com/?tab=app#/data-center)</props><props="intl">[application data](https://modelstudio.console.alibabacloud.com/?tab=app#/data-center)</props>.'."\n"
                                                    ."\n\n"
                                                    .'For document search<props="china">/audio and video search</props> knowledge bases, valid values:'."\n"
                                                    .'- DATA_CENTER_CATEGORY: category type.'."\n"
                                                    .'- DATA_CENTER_FILE: file type.'."\n"
                                                    ."\n"
                                                    .'For data query/image Q&A knowledge bases, valid values:'."\n"
                                                    .'- DATA_CENTER_STRUCTURED_TABLE: data table type.', 'type' => 'string', 'example' => 'DATA_CENTER_FILE', 'title' => ''],
                                                'DocumentIds' => [
                                                    'description' => 'The list of file IDs.',
                                                    'type' => 'array',
                                                    'items' => ['description' => 'The file ID.', 'type' => 'string', 'example' => 'file_8c67b438043848199ffaa903d29addd4_xxxxxxxx', 'title' => ''],
                                                    'title' => '',
                                                    'example' => '',
                                                ],
                                                'SinkType' => ['description' => 'The vector storage type of the knowledge base. Valid values:'."\n"
                                                    .'- ES: built-in vector database.'."\n"
                                                    .'- BUILT_IN: built-in vector database.'."\n"
                                                    .'- ADB: AnalyticDB for PostgreSQL database.', 'type' => 'string', 'example' => 'BUILT_IN', 'title' => ''],
                                                'SinkInstanceId' => ['description' => 'The instance ID of the vector storage for the knowledge base.', 'type' => 'string', 'example' => 'gp-bp1gq62t1788yxxxx', 'title' => ''],
                                                'SinkRegion' => ['description' => 'The region of the vector storage instance for the knowledge base.', 'type' => 'string', 'example' => 'cn-hangzhou', 'title' => ''],
                                                'ConfgModel' => ['description' => 'The configuration mode used by this knowledge base. Valid values:'."\n"
                                                    .'- recommend: recommended configuration.'."\n"
                                                    .'- user-defined: custom configuration.', 'type' => 'string', 'example' => 'recommend', 'title' => ''],
                                                'EnableRewrite' => ['description' => 'Indicates whether <props="china">[multi-turn conversation rewriting](https://help.aliyun.com/model-studio/use-cases/rag-optimization#b7031e2ad6cji)</props><props="intl">[multi-turn conversation rewriting](https://www.alibabacloud.com/help/model-studio/use-cases/rag-optimization#b7031e2ad6cji)</props> is enabled for this knowledge base. Valid values:'."\n"
                                                    .'- true: Enabled.'."\n"
                                                    .'- false: Disabled.', 'type' => 'boolean', 'example' => 'false', 'title' => ''],
                                            ],
                                            'title' => '',
                                            'example' => '',
                                        ],
                                        'title' => '',
                                        'example' => '',
                                    ],
                                ],
                                'title' => '',
                                'example' => '',
                            ],
                            'Code' => ['description' => 'The error code.', 'type' => 'string', 'example' => 'Index.InvalidParameter', 'title' => ''],
                            'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'Required parameter(%s) missing or invalid, please check the request parameters.', 'title' => ''],
                            'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
                                .'- true: Successful.'."\n"
                                .'- false: Failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
                            'Status' => ['description' => 'The status code returned by the operation.', 'type' => 'string', 'example' => '200', 'title' => ''],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"RequestId\\": \\"17204B98-xxxx-4F9A-8464-2446A84821CA\\",\\n  \\"Data\\": {\\n    \\"PageNumber\\": 1,\\n    \\"PageSize\\": 10,\\n    \\"TotalCount\\": 48,\\n    \\"Indices\\": [\\n      {\\n        \\"Id\\": \\"lecxr5xxxx\\",\\n        \\"Name\\": \\"XXXX产品清单\\",\\n        \\"Description\\": \\"清单中产品主要面向海外客户。\\",\\n        \\"StructureType\\": \\"UNSTRUCTURED\\",\\n        \\"ChunkSize\\": 5,\\n        \\"OverlapSize\\": 10,\\n        \\"Separator\\": \\"\\\\\\\\n\\",\\n        \\"EmbeddingModelName\\": \\"text-embedding-v2\\",\\n        \\"RerankModelName\\": \\"gte-rerank-hybrid\\",\\n        \\"RerankMinScore\\": \\"0.01\\",\\n        \\"SourceType\\": \\"DATA_CENTER_FILE\\",\\n        \\"DocumentIds\\": [\\n          \\"file_8c67b438043848199ffaa903d29addd4_xxxxxxxx\\"\\n        ],\\n        \\"SinkType\\": \\"BUILT_IN\\",\\n        \\"SinkInstanceId\\": \\"gp-bp1gq62t1788yxxxx\\",\\n        \\"SinkRegion\\": \\"cn-hangzhou\\",\\n        \\"ConfgModel\\": \\"recommend\\",\\n        \\"EnableRewrite\\": false\\n      }\\n    ]\\n  },\\n  \\"Code\\": \\"Index.InvalidParameter\\",\\n  \\"Message\\": \\"Required parameter(%s) missing or invalid, please check the request parameters.\\",\\n  \\"Success\\": true,\\n  \\"Status\\": \\"200\\"\\n}","type":"json"}]',
            'title' => 'List knowledge bases',
            'description' => '- Resource Access Management (RAM) users must first obtain [API permissions](~~2848578~~) for Alibaba Cloud Model Studio (requires `AliyunBailianDataFullAccess`, which includes the sfm:ListIndex permission) before calling this operation. Alibaba Cloud accounts can call this operation directly without authorization. Use the latest <props="china">[Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)</props><props="intl">[Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29)</props> to call this operation.'."\n"
                .'- This operation is idempotent.'."\n"
                ."\n"
                .'**Rate limit:**'."\n"
                .'This operation is throttled if called too frequently. Do not exceed 10 calls per second. If throttled, retry later.',
            'changeSet' => [
                ['createdAt' => '2025-07-30T09:21:00.000Z', 'description' => 'Response parameters changed'],
            ],
            'flowControl' => [
                'flowControlList' => [
                    ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListIndices'],
                ],
            ],
            'ramActions' => [
                [
                    'operationType' => 'list',
                    'ramAction' => [
                        'action' => 'sfm:ListIndex',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
        ],
        'ListMemories' => [
            'summary' => 'Retrieves the details of one or more long-term memory entities in a specified workspace.',
            'path' => '/{workspaceId}/memories',
            'methods' => ['get'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'write',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'workspaceId',
                    'in' => 'path',
                    'schema' => ['title' => '', 'description' => 'The ID of the workspace to which the long-term memory entities belong. For information about how to obtain the workspace ID, see [How to use workspaces](~~2587495~~).', 'type' => 'string', 'required' => true, 'example' => 'llm-3z7uw7fwz0vexxxx'."\n"],
                ],
                [
                    'name' => 'maxResults',
                    'in' => 'query',
                    'schema' => ['title' => '', 'description' => 'The number of entries per page in a paged query. Valid values: 1 to 50.'."\n"
                        ."\n"
                        .'Default value: 10.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'],
                ],
                [
                    'name' => 'nextToken',
                    'in' => 'query',
                    'schema' => ['title' => '', 'description' => 'The pagination token. Set this parameter to the NextToken value returned in the previous API call.', 'type' => 'string', 'required' => false, 'example' => 'dc270401186b433f975d7e1faaa3xxxx'],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => '',
                        'description' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'maxResults' => ['description' => 'The number of long-term memory entities per page in a paged query.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''],
                            'memories' => [
                                'description' => 'The long-term memory entity list.',
                                'type' => 'array',
                                'items' => [
                                    'description' => 'The long-term memory object.',
                                    'type' => 'object',
                                    'properties' => [
                                        'description' => ['description' => 'The description of the long-term memory.', 'type' => 'string', 'example' => '我的大模型应用$APP_ID关于A用户的长期记忆体', 'title' => ''],
                                        'memoryId' => ['description' => 'The long-term memory ID.', 'type' => 'string', 'example' => '3fc531f4519444beaafffa4538f6xxxx', 'title' => ''],
                                    ],
                                    'title' => '',
                                    'example' => '',
                                ],
                                'title' => '',
                                'example' => '',
                            ],
                            'nextToken' => ['description' => 'The pagination token returned in this call.', 'type' => 'string', 'example' => 'dc270401186b433f975d7e1faaa3xxxx', 'title' => ''],
                            'requestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '6a71f2d9-f1c9-913b-818b-11402910xxxx'."\n"],
                            'totalCount' => ['description' => 'The total number of entries returned.', 'type' => 'integer', 'format' => 'int32', 'example' => '105', 'title' => ''],
                            'workspaceId' => ['title' => '', 'description' => 'The ID of the workspace to which the long-term memory entity list belongs.', 'type' => 'string', 'example' => 'llm-3z7uw7fwz0vexxxx'."\n"],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'errorCodes' => [
                400 => [
                    ['errorCode' => 'Memory.MaxResultsInvalid', 'errorMessage' => 'Input parameter maxResults is invalid.', 'description' => 'Input parameter maxResults is invalid.'],
                    ['errorCode' => 'Memory.NextTokenInvalid', 'errorMessage' => 'Input parameter nextToken is invalid.', 'description' => 'The input nextToken is invalid.'],
                ],
                404 => [
                    ['errorCode' => 'Memory.MemoryIdNotFound', 'errorMessage' => 'Memory Id not exist or is not authorized.', 'description' => 'memoryId not found'],
                ],
                500 => [
                    ['errorCode' => 'Memory.InternalError', 'errorMessage' => 'Memory service inner exception.', 'description' => 'Memory service inner exception.'."\n"],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"maxResults\\": 10,\\n  \\"memories\\": [\\n    {\\n      \\"description\\": \\"我的大模型应用$APP_ID关于A用户的长期记忆体\\",\\n      \\"memoryId\\": \\"3fc531f4519444beaafffa4538f6xxxx\\"\\n    }\\n  ],\\n  \\"nextToken\\": \\"dc270401186b433f975d7e1faaa3xxxx\\",\\n  \\"requestId\\": \\"6a71f2d9-f1c9-913b-818b-11402910xxxx\\\\n\\",\\n  \\"totalCount\\": 105,\\n  \\"workspaceId\\": \\"llm-3z7uw7fwz0vexxxx\\\\n\\"\\n}","type":"json"}]',
            'title' => 'List long-term memories',
            'description' => '- When querying the first page of a paging query, set only `MaxResults` to limit the number of entries returned. The `NextToken` value in the response serves as the credential for querying subsequent pages. When querying subsequent pages, set the `NextToken` parameter to the `NextToken` value obtained from the previous response as the query credential (if `NextToken` is empty, all results have been returned and no further requests are needed), and settings `MaxResults` to limit the number of entries returned.'."\n"
                .'- This operation supports idempotence.'."\n"
                ."\n"
                .'**Rate limit:** Ensure that the interval between two consecutive requests is at least 1 second. Otherwise, throttling may be triggered. If throttling occurs, retry later.',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [
                    ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListMemories'],
                ],
            ],
            'ramActions' => [
                [
                    'operationType' => 'list',
                    'ramAction' => [
                        'action' => 'sfm:ListMemories',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
        ],
        'ListMemoryNodes' => [
            'summary' => 'Retrieves a list of memory nodes.',
            'path' => '/{workspaceId}/memories/{memoryId}/memoryNodes',
            'methods' => ['get'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'write',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'workspaceId',
                    'in' => 'path',
                    'schema' => ['title' => '', 'description' => 'The workspace ID.', 'type' => 'string', 'required' => true, 'example' => 'llm-us9hjmt32nysdm5v'."\n"],
                ],
                [
                    'name' => 'memoryId',
                    'in' => 'path',
                    'schema' => ['title' => '', 'description' => 'The long-term memory ID.', 'type' => 'string', 'required' => true, 'example' => '6bff4f317a14442fbc9f73d29dbd5fc3'],
                ],
                [
                    'name' => 'maxResults',
                    'in' => 'query',
                    'allowEmptyValue' => true,
                    'schema' => ['title' => '', 'description' => 'The maximum number of results to return.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '50', 'minimum' => '1', 'default' => '10', 'example' => '20'],
                ],
                [
                    'name' => 'nextToken',
                    'in' => 'query',
                    'allowEmptyValue' => true,
                    'schema' => ['title' => '', 'description' => 'The pagination token returned from a previous request. If specified, the query results are paginated based on the previous request.', 'type' => 'string', 'required' => false, 'example' => 'dc270401186b433f975d7e1faaa34e0e'."\n"],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => '',
                        'description' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'maxResults' => ['title' => '', 'description' => 'The maximum number of results returned.', 'type' => 'integer', 'format' => 'int32', 'example' => '20'],
                            'memoryNodes' => [
                                'title' => '',
                                'description' => 'The array of memory nodes.',
                                'type' => 'array',
                                'items' => [
                                    'type' => 'object',
                                    'properties' => [
                                        'content' => ['title' => '', 'description' => 'The content of the memory node.', 'type' => 'string', 'example' => '用户喜欢吃西红柿炒鸡蛋'."\n"],
                                        'memoryNodeId' => ['title' => '', 'description' => 'The memory node ID.', 'type' => 'string', 'example' => '68de06c95368463a8be4a84efc872cc5'],
                                    ],
                                    'description' => '',
                                    'title' => '',
                                    'example' => '',
                                ],
                                'example' => '',
                            ],
                            'nextToken' => ['title' => '', 'description' => 'The token used for token-based pagination.', 'type' => 'string', 'example' => 'dc270401186b433f975d7e1faaa34e0e'."\n"],
                            'requestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '6a71f2d9-f1c9-913b-818b-114029103cad'."\n"],
                            'totalCount' => ['title' => '', 'description' => 'The total number of memory nodes.', 'type' => 'integer', 'format' => 'int32', 'example' => '100'."\n"],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'errorCodes' => [
                400 => [
                    ['errorCode' => 'Memory.MaxResultsInvalid', 'errorMessage' => 'Input parameter maxResults is invalid.', 'description' => 'Input parameter maxResults is invalid.'],
                    ['errorCode' => 'Memory.MemoryNodeContentInvalid', 'errorMessage' => 'Memory node content is invalid.', 'description' => 'Memory node content is invalid.'],
                    ['errorCode' => 'Memory.NextTokenInvalid', 'errorMessage' => 'Input parameter nextToken is invalid.', 'description' => 'The input nextToken is invalid.'],
                ],
                404 => [
                    ['errorCode' => 'Memory.MemoryIdNotFound', 'errorMessage' => 'Memory Id not exist or is not authorized.', 'description' => 'memoryId not found'],
                    ['errorCode' => 'Memory.MemoryNodeNotFound', 'errorMessage' => 'MemoryNode not found.', 'description' => 'MemoryNode not found'],
                ],
                500 => [
                    ['errorCode' => 'Memory.InternalError', 'errorMessage' => 'Memory service inner exception.', 'description' => 'Memory service inner exception.'."\n"],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"maxResults\\": 20,\\n  \\"memoryNodes\\": [\\n    {\\n      \\"content\\": \\"用户喜欢吃西红柿炒鸡蛋\\\\n\\",\\n      \\"memoryNodeId\\": \\"68de06c95368463a8be4a84efc872cc5\\"\\n    }\\n  ],\\n  \\"nextToken\\": \\"dc270401186b433f975d7e1faaa34e0e\\\\n\\",\\n  \\"requestId\\": \\"6a71f2d9-f1c9-913b-818b-114029103cad\\\\n\\",\\n  \\"totalCount\\": 100\\n}","type":"json"}]',
            'title' => 'Retrieve memory node list',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [
                    ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListMemoryNodes'],
                ],
            ],
            'ramActions' => [
                [
                    'operationType' => 'list',
                    'ramAction' => [
                        'action' => 'sfm:ListMemoryNodes',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
        ],
        'ListPromptTemplates' => [
            'summary' => 'Obtains a list of prompt templates.',
            'path' => '/{workspaceId}/promptTemplates',
            'methods' => ['get'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'read',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'workspaceId',
                    'in' => 'path',
                    'schema' => ['title' => '', 'description' => 'The workspace ID.'."\n", 'type' => 'string', 'required' => true, 'example' => 'llm-us9hjmt32nysdxxx'],
                ],
                [
                    'name' => 'name',
                    'in' => 'query',
                    'schema' => ['title' => '', 'description' => 'The keyword that is used to search for templates.'."\n", 'type' => 'string', 'required' => false, 'example' => '小红书'],
                ],
                [
                    'name' => 'type',
                    'in' => 'query',
                    'schema' => ['title' => '', 'description' => 'The type of the template. Valid values: · System · Custom'."\n", 'type' => 'string', 'required' => false, 'example' => 'System'],
                ],
                [
                    'name' => 'maxResults',
                    'in' => 'query',
                    'schema' => ['title' => '', 'description' => 'The maximum number of returned entries.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'],
                ],
                [
                    'name' => 'nextToken',
                    'in' => 'query',
                    'schema' => ['title' => '', 'description' => 'The token that determines the start position of the query. Set this parameter to the value of the NextToken parameter that is returned from the last call.'."\n", 'type' => 'string', 'required' => false, 'example' => 'dc270401186b433f975d7e1faaa34e0e'],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => 'Schema of Response',
                        'description' => 'Schema of Response'."\n",
                        'type' => 'object',
                        'properties' => [
                            'maxResults' => ['title' => '', 'description' => 'The maximum number of returned entries.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
                            'nextToken' => ['title' => '', 'description' => 'The token that determines the start position of the next query.'."\n", 'type' => 'string', 'example' => 'dc270401186b433f975d7e1faaa34e0e'],
                            'promptTemplates' => [
                                'title' => '',
                                'description' => 'The templates.'."\n",
                                'type' => 'array',
                                'items' => [
                                    'type' => 'object',
                                    'properties' => [
                                        'content' => ['title' => '', 'description' => 'The template content'."\n", 'type' => 'string', 'example' => '请写一篇小红书种草笔记,增加丰富的emoji元素,结尾作总结,并加上相关标签。主题为:${theme}'],
                                        'name' => ['title' => '', 'description' => 'The template name.'."\n", 'type' => 'string', 'example' => '小红书文案'."\n"],
                                        'promptTemplateId' => ['title' => '', 'description' => 'The template ID.'."\n", 'type' => 'string', 'example' => 'd6935b7efbe34d11b13df9307151cf8c'],
                                        'type' => ['title' => '', 'description' => 'The template type.'."\n", 'type' => 'string', 'example' => '"System"'],
                                        'variables' => [
                                            'title' => '',
                                            'description' => 'The variables of the template.'."\n",
                                            'type' => 'array',
                                            'items' => ['description' => 'The template variable.'."\n", 'type' => 'string', 'example' => '"theme"', 'title' => ''],
                                            'example' => '',
                                        ],
                                    ],
                                    'description' => '',
                                    'title' => '',
                                    'example' => '',
                                ],
                                'example' => '',
                            ],
                            'requestId' => ['title' => '', 'description' => 'The request ID.'."\n", 'type' => 'string', 'example' => 'FE9B6CBF-47E6-5D76-9C5D-B814DD5AB071'],
                            'totalCount' => ['title' => '', 'description' => 'The total number of entries returned.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '15'],
                            'workspaceId' => ['title' => '', 'description' => 'The workspace ID.'."\n", 'type' => 'string', 'example' => 'llm-us9hjmt32nysdxxx'."\n"],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'errorCodes' => [
                400 => [
                    ['errorCode' => 'PromptTemplate.MaxResultsInvalid', 'errorMessage' => 'Input parameter MaxResults is invalid.', 'description' => 'The input parameter maxResults format is invalid.'],
                    ['errorCode' => 'PromptTemplate.NameInvalid', 'errorMessage' => 'Input parameter Name is invalid.', 'description' => 'The format of the input parameter Name is invalid.'],
                    ['errorCode' => 'PromptTemplate.NextTokenInvalid', 'errorMessage' => 'Input parameter NextToken is invalid.', 'description' => 'The input nextToken is invalid.'],
                    ['errorCode' => 'PromptTemplate.TypeInvalid', 'errorMessage' => 'Input parameter type is invalid.', 'description' => 'input type format is invalid'],
                ],
                500 => [
                    ['errorCode' => 'PromptTemplate.InternalError', 'errorMessage' => 'Prompt template service inner exception.', 'description' => 'prompt template service internal exception'],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"maxResults\\": 10,\\n  \\"nextToken\\": \\"dc270401186b433f975d7e1faaa34e0e\\",\\n  \\"promptTemplates\\": [\\n    {\\n      \\"content\\": \\"请写一篇小红书种草笔记,增加丰富的emoji元素,结尾作总结,并加上相关标签。主题为:${theme}\\",\\n      \\"name\\": \\"小红书文案\\\\n\\",\\n      \\"promptTemplateId\\": \\"d6935b7efbe34d11b13df9307151cf8c\\",\\n      \\"type\\": \\"\\\\\\"System\\\\\\"\\",\\n      \\"variables\\": [\\n        \\"\\\\\\"theme\\\\\\"\\"\\n      ]\\n    }\\n  ],\\n  \\"requestId\\": \\"FE9B6CBF-47E6-5D76-9C5D-B814DD5AB071\\",\\n  \\"totalCount\\": 15,\\n  \\"workspaceId\\": \\"llm-us9hjmt32nysdxxx\\\\n\\"\\n}","type":"json"}]',
            'title' => 'ListPromptTemplates',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [
                    ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListPromptTemplates'],
                ],
            ],
            'ramActions' => [
                [
                    'operationType' => 'list',
                    'ramAction' => [
                        'action' => 'sfm:ListPromptTemplates',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
        ],
        'Retrieve' => [
            'path' => '/{WorkspaceId}/index/retrieve',
            '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' => 'Query',
                    'in' => 'query',
                    'schema' => ['description' => 'The query, which is the original user prompt. There are no limits on the length of the query.', 'type' => 'string', 'required' => false, 'example' => '阿里云百炼平台介绍', 'title' => ''],
                ],
                [
                    'name' => 'DenseSimilarityTopK',
                    'in' => 'query',
                    'schema' => ['description' => 'The number of top-K similar text chunks to retrieve using vector retrieval. This is achieved by generating a vector representation of the query and searching the knowledge base for the K text chunks with the most similar vectors. The value must be an integer from 0 to 100. The sum of `DenseSimilarityTopK` and `SparseSimilarityTopK` must not exceed 200.'."\n"
                        ."\n"
                        .'Default value: 100.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '100', 'title' => ''],
                ],
                [
                    'name' => 'EnableReranking',
                    'in' => 'query',
                    'schema' => [
                        'description' => 'Specifies whether to enable reranking. For more information, see [Knowledge base](~~2807740~~). Valid values:'."\n"
                            ."\n"
                            .'- `true`: Enables reranking.'."\n"
                            ."\n"
                            .'- `false`: Disables reranking.'."\n"
                            ."\n"
                            .'Default value: `true`.',
                        'enumValueTitles' => ['true' => 'Enabled', 'false' => 'Disabled'],
                        'type' => 'boolean',
                        'required' => false,
                        'example' => 'true',
                        'title' => '',
                    ],
                ],
                [
                    'name' => 'EnableRewrite',
                    'in' => 'query',
                    'schema' => [
                        'description' => 'Specifies whether to enable <props="china">[conversational query rewriting](https://help.aliyun.com/model-studio/use-cases/rag-optimization#b7031e2ad6cji)</props><props="intl">[conversational query rewriting](https://www.alibabacloud.com/help/model-studio/use-cases/rag-optimization#b7031e2ad6cji)</props>.'."\n"
                            .'Valid values:'."\n"
                            ."\n"
                            .'- `true`: Enables conversational query rewriting.'."\n"
                            ."\n"
                            .'- `false`: Disables conversational query rewriting.'."\n"
                            ."\n"
                            .'Default value: `false`.',
                        'enumValueTitles' => ['true' => 'Enabled', 'false' => 'Disabled'],
                        'type' => 'boolean',
                        'required' => false,
                        'example' => 'false',
                        'title' => '',
                    ],
                ],
                [
                    'name' => 'Rerank',
                    'in' => 'query',
                    'style' => 'json',
                    'schema' => [
                        'description' => 'The reranking configurations.',
                        'type' => 'array',
                        'items' => [
                            'description' => 'An object containing reranking configurations.',
                            'type' => 'object',
                            'properties' => [
                                'ModelName' => [
                                    'description' => 'The reranking model to use. Specifying a model here overrides the default model selected when the knowledge base was created. Valid values:'."\n"
                                        ."\n"
                                        .'<props="china">'."\n"
                                        ."\n"
                                        .'- `qwen3-rerank-hybrid`: Performs reranking by using the qwen3-rerank (hybrid) model.'."\n"
                                        ."\n"
                                        .'- `qwen3-rerank`: Performs reranking by using the qwen3-rerank model.'."\n"
                                        ."\n"
                                        .'- `gte-rerank-hybrid`: Performs reranking by using the gte-rerank (hybrid) model.'."\n"
                                        ."\n"
                                        .'- `gte-rerank`: Performs reranking by using the gte-rerank model.'."\n"
                                        ."\n"
                                        .'</props>'."\n"
                                        ."\n"
                                        .'<props="intl">'."\n"
                                        ."\n"
                                        .'- `gte-rerank-hybrid`: Performs reranking by using the gte-rerank (hybrid) model.'."\n"
                                        ."\n"
                                        .'- `gte-rerank`: Performs reranking by using the gte-rerank model.'."\n"
                                        ."\n"
                                        .'</props>'."\n"
                                        ."\n"
                                        .'If you do not specify this parameter, the model configured for the knowledge base is used.'."\n"
                                        ."\n"
                                        .'<props="china">'."\n"
                                        ."\n"
                                        .'> Use `qwen3-rerank` for semantic ranking only. We recommend `qwen3-rerank-hybrid` if you require both semantic ranking and text matching features for higher relevance.'."\n"
                                        ."\n"
                                        .'</props>'."\n"
                                        ."\n"
                                        .'<props="intl">'."\n"
                                        ."\n"
                                        .'> Use `gte-rerank` for semantic ranking only. We recommend `gte-rerank-hybrid` if you require both semantic ranking and text matching features for higher relevance.'."\n"
                                        ."\n"
                                        .'</props>'."\n"
                                        ."\n"
                                        .'<props="china">'."\n"
                                        ."\n"
                                        .'> The `gte-rerank-hybrid` and `gte-rerank` models are no longer updated and are not recommended for use.'."\n"
                                        ."\n"
                                        .'</props>',
                                    'enumValueTitles' => ['gte-rerank-hybrid' => 'Performs reranking by using the gte-rerank (hybrid) model.', 'gte-rerank' => 'Performs reranking by using the gte-rerank model.'],
                                    'type' => 'string',
                                    'required' => false,
                                    'example' => 'gte-rerank-hybrid',
                                    'title' => '',
                                ],
                                'RerankMode' => [
                                    'description' => '<props="china">'."\n"
                                        ."\n"
                                        .'Specifies the instruction intervention mode for the reranking model. This mode determines the model\'s scoring preference.'."\n"
                                        ."\n"
                                        .'**Valid values:**'."\n"
                                        ."\n"
                                        .'- `qa`: (Default) Q\\&A mode. The model assigns higher scores to candidates that directly answer the query. Recommended for Q\\&A scenarios.'."\n"
                                        ."\n"
                                        .'- `similar`: Similarity mode. The model assigns higher scores to candidates with high content similarity to the query. Recommended for match-based retrieval scenarios.'."\n"
                                        ."\n"
                                        .'- `custom`: Custom mode. The model\'s ranking behavior is determined by the instructions in the `RerankInstruct` parameter.'."\n"
                                        ."\n"
                                        .'</props>'."\n"
                                        ."\n"
                                        .'<props="intl">'."\n"
                                        ."\n"
                                        .'This parameter is not yet available. Do not specify a value for it.'."\n"
                                        ."\n"
                                        .'</props>',
                                    'enumValueTitles' => ['similar: 相似模式。' => '`similar`: Similarity mode.', 'custom: 自定义模式。' => '`custom`: Custom mode.', 'qa:(默认值) 问答模式。' => '`qa`: (Default) Q\\&A mode.'],
                                    'type' => 'string',
                                    'required' => false,
                                    'example' => 'qa',
                                    'title' => '',
                                ],
                                'RerankInstruct' => ['description' => '<props="intl">'."\n"
                                    ."\n"
                                    .'This parameter is not yet available. Do not specify a value for it.'."\n"
                                    ."\n"
                                    .'</props>'."\n"
                                    ."\n"
                                    .'<props="china">'."\n"
                                    ."\n"
                                    .'A natural language instruction to fine-tune the behavior of the reranking model.'."\n"
                                    ."\n"
                                    .'><notice>'."\n"
                                    ."\n"
                                    .'This parameter takes effect only when `RerankMode` is set to `custom`.'."\n"
                                    ."\n"
                                    .'></notice>'."\n"
                                    ."\n"
                                    .'</props>', 'type' => 'string', 'required' => false, 'title' => '', 'example' => ''],
                            ],
                            'required' => false,
                            'title' => '',
                            'example' => '',
                        ],
                        'required' => false,
                        'title' => '',
                        'example' => '',
                    ],
                ],
                [
                    'name' => 'RerankMinScore',
                    'in' => 'query',
                    'schema' => ['description' => 'The similarity threshold for reranking. Only text chunks with a similarity score greater than this value are returned. The value must be between 0.01 and 1.00, inclusive. This parameter overrides the similarity threshold setting of the knowledge base.'."\n"
                        ."\n"
                        .'If not specified, the threshold configured for the knowledge base is used.', 'type' => 'number', 'format' => 'float', 'required' => false, 'example' => '0.20', 'title' => ''],
                ],
                [
                    'name' => 'RerankTopN',
                    'in' => 'query',
                    'schema' => ['description' => 'The number of top-ranked text chunks to return after reranking. The value must be an integer from 1 to 20. Default value: 5.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '5', 'title' => ''],
                ],
                [
                    'name' => 'Rewrite',
                    'in' => 'query',
                    'style' => 'json',
                    'schema' => [
                        'description' => 'Configuration for conversational query rewriting.',
                        'type' => 'array',
                        'items' => [
                            'description' => 'An object containing configurations for conversational query rewriting.',
                            'type' => 'object',
                            'properties' => [
                                'ModelName' => [
                                    'description' => 'Specifies the model for conversational query rewriting, which automatically rewrites the original query based on the conversation context to improve retrieval results. Valid value:'."\n"
                                        ."\n"
                                        .'- `conv-rewrite-qwen-1.8b`: The only model currently supported for this feature.'."\n"
                                        ."\n"
                                        .'If this parameter is not specified, `conv-rewrite-qwen-1.8b` is used by default.',
                                    'enumValueTitles' => ['conv-rewrite-qwen-1.8b' => 'The conv-rewrite-qwen-1.8b model'],
                                    'type' => 'string',
                                    'required' => false,
                                    'example' => 'conv-rewrite-qwen-1.8b',
                                    'title' => '',
                                ],
                            ],
                            'required' => false,
                            'title' => '',
                            'example' => '',
                        ],
                        'required' => false,
                        'title' => '',
                        'example' => '',
                    ],
                ],
                [
                    'name' => 'SparseSimilarityTopK',
                    'in' => 'query',
                    'schema' => ['description' => 'The number of top-K text chunks to retrieve using keyword retrieval. This feature finds text chunks in the knowledge base that exactly match the keywords in the query. It helps filter out irrelevant text chunks and provide more accurate results.'."\n"
                        .'The value must be an integer from 0 to 100.'."\n"
                        .'The sum of `DenseSimilarityTopK` and `SparseSimilarityTopK` must not exceed 200.'."\n"
                        ."\n"
                        .'Default value: 100.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '100', 'title' => ''],
                ],
                [
                    'name' => 'WorkspaceId',
                    'in' => 'path',
                    'schema' => ['description' => 'The ID of the workspace that contains the knowledge base. For more information, see [How to use workspaces](~~2587495~~).', 'type' => 'string', 'required' => true, 'example' => 'llm-3shx2gu255oqxxxx'."\n", 'title' => ''],
                ],
                [
                    'name' => 'IndexId',
                    'in' => 'query',
                    'schema' => ['description' => 'The ID of the knowledge base. This is the `Data.Id` value returned by the `CreateIndex` operation.'."\n"
                        ."\n"
                        .'> - Ensure the specified knowledge base exists and has not been deleted.', 'type' => 'string', 'required' => true, 'example' => '5pwe0mxxxx', 'title' => ''],
                ],
                [
                    'name' => 'SaveRetrieverHistory',
                    'in' => 'query',
                    'schema' => ['description' => 'Specifies whether to save the retrieval history for testing purposes. Valid values:'."\n"
                        ."\n"
                        .'- `true`: Saves the retrieval history.'."\n"
                        ."\n"
                        .'- `false`: Does not save the retrieval history.'."\n"
                        ."\n"
                        .'Default value: `false`.', 'type' => 'boolean', 'default' => 'false', 'required' => false, 'example' => 'false', 'title' => ''],
                ],
                [
                    'name' => 'SearchFilters',
                    'in' => 'query',
                    'style' => 'json',
                    'schema' => [
                        'description' => 'Specifies custom retrieval conditions, such as tags, to filter semantic retrieval results and exclude irrelevant information.'."\n"
                            .'The filtering logic is applied only when the `is_displayed_chunk_content` parameter is set to `true`. For more information, see [SearchFilters for a knowledge base](~~2869641~~).',
                        'type' => 'array',
                        'items' => [
                            'description' => 'A search condition object.',
                            'type' => 'object',
                            'required' => false,
                            'additionalProperties' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
                            'title' => '',
                            'example' => '',
                        ],
                        'required' => false,
                        'title' => '',
                        'example' => '',
                    ],
                ],
                [
                    'name' => 'Images',
                    'in' => 'query',
                    'allowEmptyValue' => true,
                    'style' => 'simple',
                    'schema' => [
                        'type' => 'array',
                        'items' => ['description' => '<props="china">'."\n"
                            ."\n"
                            .'When you retrieve information from an image-based Q\\&A knowledge base, you can provide image URLs. If an image index exists in the knowledge base, the system converts the input image into a vector to retrieve relevant records. If no image index exists, the input image is not used for retrieval.'."\n"
                            ."\n"
                            .'> This field is not supported for knowledge bases of the document search, data query, or audio/video search type. This field has no effect if specified.'."\n"
                            ."\n"
                            .'> Make sure that the link is publicly accessible and points to a valid image file. Example: https\\://example.com/downloads/pic.jpg'."\n"
                            ."\n"
                            .'</props>'."\n"
                            ."\n"
                            .'<props="intl">'."\n"
                            ."\n"
                            .'When you retrieve information from an image-based Q\\&A knowledge base, you can provide image URLs. If an image index exists in the knowledge base, the system converts the input image into a vector to retrieve relevant records. If no image index exists, the input image is not used for retrieval.'."\n"
                            ."\n"
                            .'> This field is not supported for knowledge bases of the document search or data query type. This field has no effect if specified.'."\n"
                            ."\n"
                            .'> Make sure that the link is publicly accessible and points to a valid image file. Example: https\\://example.com/downloads/pic.jpg'."\n"
                            ."\n"
                            .'</props>', 'type' => 'string', 'required' => false, 'example' => 'https://example.com/downloads/pic.jpg', 'title' => ''],
                        'required' => false,
                        'description' => 'The URLs of images to include in the query.',
                        'title' => '',
                        'example' => '',
                    ],
                ],
                [
                    'name' => 'QueryHistory',
                    'in' => 'query',
                    'allowEmptyValue' => false,
                    'style' => 'json',
                    'schema' => [
                        'type' => 'array',
                        'items' => [
                            'type' => 'object',
                            'properties' => [
                                'role' => ['description' => 'The role of the entity that sent the message.'."\n"
                                    ."\n"
                                    .'Valid values:'."\n"
                                    ."\n"
                                    .'- `user`: Indicates that the `content` is from the end user.'."\n"
                                    ."\n"
                                    .'- `assistant`: Indicates that the `content` is a response from the Model Studio application.', 'type' => 'string', 'required' => false, 'example' => 'user'."\n", 'title' => ''],
                                'content' => ['description' => 'The content of the message for the specified `role`.', 'type' => 'string', 'required' => false, 'example' => '代表一段文本。', 'title' => ''],
                            ],
                            'required' => false,
                            'description' => '',
                            'title' => '',
                            'example' => '',
                        ],
                        'description' => 'The conversation history, used for <props="china">[conversational query rewriting](https://help.aliyun.com/model-studio/use-cases/rag-optimization#b7031e2ad6cji)</props><props="intl">[conversational query rewriting](https://www.alibabacloud.com/help/model-studio/use-cases/rag-optimization#b7031e2ad6cji)</props>. This parameter is effective only when `EnableRewrite` is set to `true`.',
                        'required' => false,
                        'title' => '',
                        'example' => '',
                    ],
                ],
                [
                    'name' => 'Extra',
                    'in' => 'query',
                    'style' => 'json',
                    'schema' => [
                        'type' => 'object',
                        'properties' => [
                            'uniqueId' => ['type' => 'string', 'maxLength' => 512, 'description' => '', 'title' => '', 'example' => ''],
                        ],
                        'description' => '',
                        'title' => '',
                        'example' => '',
                    ],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'type' => 'object',
                        'properties' => [
                            'Code' => ['description' => 'The error code.', 'type' => 'string', 'example' => 'Index.InvalidParameter', 'title' => ''],
                            'Data' => [
                                'description' => 'The business data returned by the API.',
                                'type' => 'object',
                                'properties' => [
                                    'Nodes' => [
                                        'description' => 'An array of retrieved text chunks.',
                                        'type' => 'array',
                                        'items' => [
                                            'description' => 'A text chunk object.',
                                            'type' => 'object',
                                            'properties' => [
                                                'Metadata' => ['description' => '<props="china">'."\n"
                                                    ."\n"
                                                    .'A map of metadata for the text chunk.'."\n"
                                                    ."\n"
                                                    .'> For document search knowledge bases, the `file_path` field in the metadata map is not applicable and should not be used in your application code.'."\n"
                                                    ."\n"
                                                    .'> When you retrieve data from a document search knowledge base, if a text chunk contains an image, its URL is returned in the `image_url` field of the metadata map. This URL expires.'."\n"
                                                    ."\n"
                                                    .'> When you retrieve data from an audio/video search knowledge base, if a text chunk contains audio, its URL is returned in the `audio_url` field of the metadata map. This URL expires.'."\n"
                                                    ."\n"
                                                    .'> When you retrieve data from an audio/video search knowledge base, if a text chunk contains video, its URL is returned in the `video_url` field of the metadata map. This URL expires.'."\n"
                                                    ."\n"
                                                    .'</props>'."\n"
                                                    ."\n"
                                                    .'<props="intl">'."\n"
                                                    ."\n"
                                                    .'A map of metadata for the text chunk.'."\n"
                                                    ."\n"
                                                    .'> For document search knowledge bases, the `file_path` field in the metadata map is not applicable and should not be used in your application code.'."\n"
                                                    ."\n"
                                                    .'> When you retrieve data from a document search knowledge base, if a text chunk contains an image, its URL is returned in the `image_url` field of the metadata map. This URL expires.'."\n"
                                                    ."\n"
                                                    .'</props>', 'type' => 'any', 'example' => '{'."\n"
                                                    .'  "parent": "",'."\n"
                                                    .'  "file_path": "https://***",'."\n"
                                                    .'  "image_url": ['."\n"
                                                    .'    "http://***"'."\n"
                                                    .'  ],'."\n"
                                                    .'  "nid": "***",'."\n"
                                                    .'  "title": "阿里云百炼文档",'."\n"
                                                    .'  "doc_id": "doc_***",'."\n"
                                                    .'  "content": "阿里云百炼是基于通义大模型、行业大模型以及三方大模型的一站式大模型开发平台。面向企业客户和个人开发者,提供完整的模型服务工具和全链路应用开发套件,预置丰富的能力插件,提供API及SDK等便捷的集成方式,高效完成大模型应用构建",'."\n"
                                                    .'  "workspace_id": "ws_***",'."\n"
                                                    .'  "hier_title": "阿里云百炼文档",'."\n"
                                                    .'  "doc_name": "阿里云百炼文档介绍.pdpf",'."\n"
                                                    .'  "pipeline_id": "rhd***",'."\n"
                                                    .'  "_id": "ws_***"'."\n"
                                                    .'}', 'title' => ''],
                                                'Score' => ['description' => 'The similarity score of the text chunk, ranging from 0 to 1.', 'type' => 'number', 'format' => 'double', 'example' => '0.3', 'title' => ''],
                                                'Text' => ['description' => 'The content of the text chunk.', 'type' => 'string', 'example' => '阿里云百炼是基于通义大模型、行业大模型以及三方大模型的一站式大模型开发平台。面向企业客户和个人开发者,提供完整的模型服务工具和全链路应用开发套件,预置丰富的能力插件,提供API及SDK等便捷的集成方式,高效完成大模型应用构建。', 'title' => ''],
                                            ],
                                            'title' => '',
                                            'example' => '',
                                        ],
                                        'title' => '',
                                        'example' => '',
                                    ],
                                ],
                                'title' => '',
                                'example' => '',
                            ],
                            'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'Required parameter(%s) missing or invalid, please check the request parameters.', 'title' => ''],
                            'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => '17204B98-7734-4F9A-8464-2446A84821CA'],
                            'Status' => ['description' => 'The HTTP status code of the response.', 'type' => 'string', 'example' => '200', 'title' => ''],
                            'Success' => ['description' => 'Indicates whether the API call was successful. Valid values:'."\n"
                                ."\n"
                                .'- true: The call succeeded.'."\n"
                                ."\n"
                                .'- false: The call failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
                        ],
                        'description' => '',
                        'title' => '',
                        'example' => '',
                    ],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'title' => 'Retrieve',
            'summary' => 'Retrieves information from a specified knowledge base.',
            'description' => '<props="china">'."\n"
                ."\n"
                .'- **How to call**: To retrieve information from a knowledge base, use the latest [Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29) with an [AccessKey](~~116401~~) or [Spring AI Alibaba](~~2990886~~) with an Alibaba Cloud Model Studio [API key](~~2712195~~). Both tools simplify your API calls by handling the complex signature calculation.'."\n"
                ."\n"
                .'- **Required permissions**:'."\n"
                ."\n"
                .'  - **RAM user (sub-account)**: To call this API, a RAM user must be granted [API permissions](~~2848578~~) for Alibaba Cloud Model Studio and [join a workspace](~~2851098~~). You can use the `AliyunBailianDataFullAccess` policy, which includes the required `sfm:Retrieve` permission.'."\n"
                ."\n"
                .'  - **Alibaba Cloud account (main account)**: This account has the required permissions by default and can call the API directly.'."\n"
                ."\n"
                .'- **Response latency**: This API call involves complex retrieval and matching operations, which can cause longer response times. We recommend configuring appropriate request timeouts and retry strategies.'."\n"
                ."\n"
                .'- **Idempotency**: This API is idempotent.'."\n"
                ."\n"
                .'</props>'."\n"
                ."\n"
                .'<props="intl">'."\n"
                ."\n"
                .'- **How to call**: We recommend using the latest [Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29) to call this API. The SDK simplifies API calls by handling the complex signature calculation.'."\n"
                ."\n"
                .'- **Required permissions**:'."\n"
                ."\n"
                .'  - **RAM user (sub-account)**: To call this API, a RAM user must be granted [API permissions](~~2848578~~) for Alibaba Cloud Model Studio and [join a workspace](~~2851098~~). You can use the `AliyunBailianDataFullAccess` policy, which includes the required `sfm:Retrieve` permission.'."\n"
                ."\n"
                .'  - **Alibaba Cloud account (main account)**: This account has the required permissions by default and can call the API directly.'."\n"
                ."\n"
                .'- **Response latency**: This API call involves complex retrieval and matching operations, which can cause longer response times. We recommend configuring appropriate request timeouts and retry strategies.'."\n"
                ."\n"
                .'- **Idempotency**: This API is idempotent.'."\n"
                ."\n"
                .'</props>',
            'changeSet' => [
                ['createdAt' => '2025-04-10T01:52:18.000Z', 'description' => 'Request parameters changed'],
                ['createdAt' => '2025-03-13T02:55:14.000Z', 'description' => 'Request parameters changed'],
                ['createdAt' => '2024-09-17T11:06:28.000Z', 'description' => 'Request parameters changed'],
                ['createdAt' => '2024-07-23T07:45:53.000Z', 'description' => 'Request parameters changed'],
            ],
            'flowControl' => [
                'flowControlList' => [
                    ['threshold' => '2000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'Retrieve'],
                ],
            ],
            'ramActions' => [
                [
                    'operationType' => 'none',
                    'ramAction' => [
                        'action' => 'sfm:Retrieve',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"Code\\": \\"Index.InvalidParameter\\",\\n  \\"Data\\": {\\n    \\"Nodes\\": [\\n      {\\n        \\"Metadata\\": \\"{\\\\n  \\\\\\"parent\\\\\\": \\\\\\"\\\\\\",\\\\n  \\\\\\"file_path\\\\\\": \\\\\\"https://***\\\\\\",\\\\n  \\\\\\"image_url\\\\\\": [\\\\n    \\\\\\"http://***\\\\\\"\\\\n  ],\\\\n  \\\\\\"nid\\\\\\": \\\\\\"***\\\\\\",\\\\n  \\\\\\"title\\\\\\": \\\\\\"阿里云百炼文档\\\\\\",\\\\n  \\\\\\"doc_id\\\\\\": \\\\\\"doc_***\\\\\\",\\\\n  \\\\\\"content\\\\\\": \\\\\\"阿里云百炼是基于通义大模型、行业大模型以及三方大模型的一站式大模型开发平台。面向企业客户和个人开发者,提供完整的模型服务工具和全链路应用开发套件,预置丰富的能力插件,提供API及SDK等便捷的集成方式,高效完成大模型应用构建\\\\\\",\\\\n  \\\\\\"workspace_id\\\\\\": \\\\\\"ws_***\\\\\\",\\\\n  \\\\\\"hier_title\\\\\\": \\\\\\"阿里云百炼文档\\\\\\",\\\\n  \\\\\\"doc_name\\\\\\": \\\\\\"阿里云百炼文档介绍.pdpf\\\\\\",\\\\n  \\\\\\"pipeline_id\\\\\\": \\\\\\"rhd***\\\\\\",\\\\n  \\\\\\"_id\\\\\\": \\\\\\"ws_***\\\\\\"\\\\n}\\",\\n        \\"Score\\": 0.3,\\n        \\"Text\\": \\"阿里云百炼是基于通义大模型、行业大模型以及三方大模型的一站式大模型开发平台。面向企业客户和个人开发者,提供完整的模型服务工具和全链路应用开发套件,预置丰富的能力插件,提供API及SDK等便捷的集成方式,高效完成大模型应用构建。\\"\\n      }\\n    ]\\n  },\\n  \\"Message\\": \\"Required parameter(%s) missing or invalid, please check the request parameters.\\",\\n  \\"RequestId\\": \\"17204B98-7734-4F9A-8464-2446A84821CA\\",\\n  \\"Status\\": \\"200\\",\\n  \\"Success\\": true\\n}","type":"json"}]',
        ],
        'SubmitIndexAddDocumentsJob' => [
            'path' => '/{WorkspaceId}/index/add_documents_to_index',
            'methods' => ['post'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'readAndWrite',
            'deprecated' => false,
            'systemTags' => [
                'operationType' => 'create',
                'riskType' => 'none',
                'chargeType' => 'free',
                'abilityTreeNodes' => ['FEATUREsfm4VA8MJ'],
            ],
            'parameters' => [
                [
                    'name' => 'WorkspaceId',
                    'in' => 'path',
                    'schema' => ['description' => 'The ID of the workspace that contains the knowledge base. To obtain the ID, see [How to use workspaces](~~2587495~~).', 'type' => 'string', 'required' => true, 'example' => 'llm-3shx2gu255oqxxxx'."\n", 'title' => ''],
                ],
                [
                    'name' => 'IndexId',
                    'in' => 'query',
                    'schema' => ['description' => 'The knowledge base ID. This is the `Data.Id` returned by the **CreateIndex** API.', 'type' => 'string', 'required' => true, 'example' => '79c0alxxxx', 'title' => ''],
                ],
                [
                    'name' => 'SourceType',
                    'in' => 'query',
                    'schema' => [
                        'description' => 'The type of the data source. Valid values:'."\n"
                            ."\n"
                            .'- DATA\\_CENTER\\_CATEGORY: Imports all documents from specified categories in <props="china">[application data](https://bailian.console.aliyun.com/?tab=app#/data-center)</props><props="intl">[application data](https://modelstudio.console.alibabacloud.com/?tab=app#/data-center)</props>. You can import documents from multiple categories.'."\n"
                            ."\n"
                            .'- DATA\\_CENTER\\_FILE: Imports specified files from <props="china">[application data](https://bailian.console.aliyun.com/?tab=app#/data-center)</props><props="intl">[application data](https://modelstudio.console.alibabacloud.com/?tab=app#/data-center)</props>. You can import multiple files.'."\n"
                            ."\n"
                            .'> If you set this parameter to `DATA_CENTER_CATEGORY`, you must specify the `CategoryIds` parameter. If you set this parameter to `DATA_CENTER_FILE`, you must specify the `DocumentIds` parameter.',
                        'enumValueTitles' => ['DATA_CENTER_CATEGORY' => 'Imports documents by category.', 'DATA_CENTER_FILE' => 'Imports documents by file.'],
                        'type' => 'string',
                        'required' => true,
                        'example' => 'DATA_CENTER_FILE',
                        'title' => '',
                    ],
                ],
                [
                    'name' => 'DocumentIds',
                    'in' => 'query',
                    'style' => 'json',
                    'schema' => [
                        'description' => 'A list of file IDs.',
                        'type' => 'array',
                        'items' => ['description' => 'The file ID. This is the `FileId` returned by the **AddFile** API. You can also obtain the ID on the <props="china">[application data](https://bailian.console.aliyun.com/?tab=app#/data-center)</props><props="intl">[application data](https://modelstudio.console.alibabacloud.com/?tab=app#/data-center)</props> page by clicking the ID icon next to the file name.', 'type' => 'string', 'required' => false, 'example' => 'doc_ea4a504d9ce545508d8aa6d90371bf54xxxxxxxx', 'title' => ''],
                        'required' => false,
                        'title' => '',
                        'example' => '',
                    ],
                ],
                [
                    'name' => 'CategoryIds',
                    'in' => 'query',
                    'style' => 'json',
                    'schema' => [
                        'description' => 'A list of category IDs.',
                        'type' => 'array',
                        'items' => ['description' => 'The category ID. This is the `CategoryId` returned by the **AddCategory** API. You can also obtain the ID on the **File** tab of the <props="china">[application data](https://bailian.console.aliyun.com/?tab=app#/data-center)</props><props="intl">[application data](https://modelstudio.console.alibabacloud.com/?tab=app#/data-center)</props> page by clicking the ID icon next to the category name.', 'type' => 'string', 'required' => false, 'example' => 'cate_21a407a3372c4ba7aedc649709143f0cxxxxxxxx'."\n", 'title' => ''],
                        'required' => false,
                        'title' => '',
                        'example' => '',
                    ],
                ],
                [
                    'name' => 'ChunkMode',
                    'in' => 'query',
                    'schema' => ['description' => '<props="china">'."\n"
                        ."\n"
                        .'The custom chunking mode. This setting applies only to the documents added in the current job. For more information, see [knowledge base](~~2807740~~). Valid values (you can specify only one value):'."\n"
                        ."\n"
                        .'- **length**: Splits the text by a fixed length. The chunking strictly follows the specified `ChunkSize` and `OverlapSize`. If you do not specify these parameters, the system uses the default values: a `ChunkSize` of 500 and an `OverlapSize` of 100. This mode ignores the `Separator` parameter.'."\n"
                        ."\n"
                        .'- **page**: Splits the text by page. If `ChunkSize` is specified, its value is also applied during chunking. If `ChunkSize` is not set, a default value of 500 is used. This mode ignores the `OverlapSize` and `Separator` parameters.'."\n"
                        ."\n"
                        .'- **h1**: Splits the text by level-1 headings. If `ChunkSize` is specified, its value is also applied during chunking. If `ChunkSize` is not set, a default value of 500 is used. This mode ignores the `OverlapSize` and `Separator` parameters.'."\n"
                        ."\n"
                        .'- **h2**: Splits the text by level-2 headings. If `ChunkSize` is specified, its value is also applied during chunking. If `ChunkSize` is not set, a default value of 500 is used. This mode ignores the `OverlapSize` and `Separator` parameters.'."\n"
                        ."\n"
                        .'- **regex**: Splits the text by using a regular expression. The `Separator` parameter is required for this mode. If `ChunkSize` is specified, its value is also applied during chunking. If `ChunkSize` is not set, a default value of 500 is used. This mode ignores the `OverlapSize` parameter.'."\n"
                        ."\n"
                        .'If this parameter is not set, intelligent chunking is used by default.'."\n"
                        ."\n"
                        .'</props>'."\n"
                        ."\n"
                        .'<props="intl">'."\n"
                        ."\n"
                        .'> This parameter is not available. Do not specify it.'."\n"
                        ."\n"
                        .'</props>', 'type' => 'string', 'required' => false, 'example' => 'length', 'title' => ''],
                ],
                [
                    'name' => 'Separator',
                    'in' => 'query',
                    'schema' => ['description' => '<props="china">'."\n"
                        ."\n"
                        .'The separator for chunking. This parameter is used only when `ChunkMode` is set to **regex**. You can specify a single regular expression (multiple expressions are not supported) to split the file into smaller text chunks. For more information, see [knowledge base](~~2807740~~).'."\n"
                        ."\n"
                        .'When you use intelligent chunking (when `ChunkMode` is not specified), leave this parameter empty.'."\n"
                        ."\n"
                        .'</props>'."\n"
                        ."\n"
                        .'<props="intl">'."\n"
                        ."\n"
                        .'> This parameter is not available. Do not specify it.'."\n"
                        ."\n"
                        .'</props>', 'type' => 'string', 'required' => false, 'example' => '(?<=。)', 'title' => ''],
                ],
                [
                    'name' => 'ChunkSize',
                    'in' => 'query',
                    'schema' => ['description' => '<props="china">'."\n"
                        ."\n"
                        .'The chunk size. Specifies the maximum number of characters for each text chunk. This setting applies only to the documents added in the current job. If a text segment exceeds this size, the behavior depends on the chunking mode:'."\n"
                        ."\n"
                        .'- **Intelligent chunking** (if `ChunkMode` is not set): The text may be truncated.'."\n"
                        ."\n"
                        .'- **Custom chunking** (if `ChunkMode` is set): The text is forcibly split.'."\n"
                        ."\n"
                        .'The value must be in the range of \\[1, 6000]. Defaults to 500 if not specified.'."\n"
                        ."\n"
                        .'For more information, see [knowledge base](~~2807740~~).'."\n"
                        ."\n"
                        .'> If you specify a `ChunkSize` less than 100, you must also specify the `OverlapSize` parameter. You can also omit both parameters to use the system defaults.'."\n"
                        ."\n"
                        .'</props>'."\n"
                        ."\n"
                        .'<props="intl">'."\n"
                        ."\n"
                        .'> This parameter is not available. Do not specify it.'."\n"
                        ."\n"
                        .'</props>', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '128', 'title' => ''],
                ],
                [
                    'name' => 'OverlapSize',
                    'in' => 'query',
                    'schema' => ['description' => '<props="china">'."\n"
                        ."\n"
                        .'Specifies the number of overlapping characters between adjacent text chunks. This setting applies only to the documents added in the current job. For more information, see [knowledge base](~~2807740~~). The value must be in the range of \\[0, 1024].'."\n"
                        ."\n"
                        .'Defaults to 100 if not specified.'."\n"
                        ."\n"
                        .'> The value of `OverlapSize` must be less than the value of `ChunkSize`. Otherwise, the chunking process may fail.'."\n"
                        ."\n"
                        .'</props>'."\n"
                        ."\n"
                        .'<props="intl">'."\n"
                        ."\n"
                        .'> This parameter is not available. Do not specify it.'."\n"
                        ."\n"
                        .'</props>', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '16', 'title' => ''],
                ],
                [
                    'name' => 'EnableHeaders',
                    'in' => 'query',
                    'schema' => [
                        'description' => 'Specifies whether to include Excel file headers. If set to `true`, the knowledge base treats the first row of all .xlsx and .xls files as the header and automatically prepends it to each text chunk (data row). This prevents the large language model (LLM) from misinterpreting the header as a regular data row.'."\n"
                            ."\n"
                            .'> Enable this parameter only if all imported documents are Excel files that contain a header.'."\n"
                            ."\n"
                            .'Valid values:'."\n"
                            ."\n"
                            .'- true: Enabled.'."\n"
                            ."\n"
                            .'- false: Disabled.'."\n"
                            ."\n"
                            .'Default value: false.',
                        'enumValueTitles' => ['true' => 'Enabled', 'false' => 'Disabled'],
                        'type' => 'boolean',
                        'required' => false,
                        'example' => 'false',
                        'title' => '',
                    ],
                ],
                [
                    'name' => 'Extra',
                    'in' => 'query',
                    'style' => 'json',
                    'schema' => [
                        'type' => 'object',
                        'properties' => [
                            'uniqueId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
                        ],
                        'description' => '',
                        'title' => '',
                        'example' => '',
                    ],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => 'Schema of Response',
                        'description' => 'The response object.',
                        'type' => 'object',
                        'properties' => [
                            'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => '778C0B3B-xxxx-5FC1-A947-36EDD13606AB'],
                            'Data' => [
                                'description' => 'The business data.',
                                'type' => 'object',
                                'properties' => [
                                    'Id' => ['description' => 'The job ID, also known as `JobId`.', 'type' => 'string', 'example' => '42687eb254a34802bed398357f5498ae', 'title' => ''],
                                ],
                                'title' => '',
                                'example' => '',
                            ],
                            'Status' => ['description' => 'The response status code.', 'type' => 'string', 'example' => '200', 'title' => ''],
                            'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
                                ."\n"
                                .'- true: The request was successful.'."\n"
                                ."\n"
                                .'- false: The request failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
                            'Message' => ['description' => 'The error message returned on failure.', 'type' => 'string', 'example' => 'Required parameter(%s) missing or invalid, please check the request parameters.', 'title' => ''],
                            'Code' => ['description' => 'The error code returned on failure.', 'type' => 'string', 'example' => 'Index.InvalidParameter', 'title' => ''],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'errorCodes' => [
                400 => [
                    ['errorCode' => 'IdempotentParameterMismatch', 'errorMessage' => 'The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical.', 'description' => ''],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'title' => 'Submit a knowledge base append job',
            'summary' => 'Adds parsed files to the specified knowledge base.',
            'description' => '<props="china">'."\n"
                ."\n"
                .'- This API does not support knowledge bases for data queries or image Q\\&A. To update these knowledge bases, see the [knowledge base](~~2807740~~) documentation.'."\n"
                ."\n"
                .'</props>'."\n"
                ."\n\n"
                .'<props="intl">'."\n"
                ."\n"
                .'- This API does not support knowledge bases for data queries or image Q\\&A. To update these knowledge bases, see the [knowledge base](~~2807740~~) documentation.'."\n"
                ."\n"
                .'</props>'."\n"
                ."\n\n"
                .'- A RAM user (sub-account) can call this API only after being granted the required [api permission](~~2848578~~) for Alibaba Cloud Model Studio (specifically, the `AliyunBailianDataFullAccess` policy, which includes the `sfm:SubmitIndexAddDocumentsJob` permission) and joining a [workspace](~~2851098~~). An Alibaba Cloud account can call this API directly without authorization. We recommend using the latest version of the <props="china">[Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)</props><props="intl">[Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29)</props> to call this API.'."\n"
                ."\n"
                .'- Before calling this API, ensure your knowledge base exists and has a valid knowledge base ID (`IndexId`).'."\n"
                ."\n"
                .'- Before calling this API, you must first upload files to Alibaba Cloud Model Studio using the **AddFile** API.'."\n"
                ."\n"
                .'- After calling this API, the job runs in the background and may take several hours to complete, especially during peak times. Do not submit duplicate requests until the job is complete. To check the job status, call the **GetIndexJobStatus** API. The `Documents` file list returned by the GetIndexJobStatus API contains all files for the job, which is uniquely identified by the `job_id` you provided. You can check this list to verify whether each file was imported (parsed) successfully. Note that frequent calls to the GetIndexJobStatus API are subject to rate limiting. Do not exceed 20 calls per minute.'."\n"
                ."\n"
                .'- A successful API call indicates the job has been submitted for processing, which takes time. This API is not idempotent, so do not send duplicate requests; doing so will create multiple jobs.'."\n"
                ."\n"
                .'**Rate limiting:** This API is limited to 10 calls per second. If you exceed this limit, wait before retrying.',
            'changeSet' => [
                ['createdAt' => '2025-07-30T09:21:00.000Z', 'description' => 'Request parameters changed'],
                ['createdAt' => '2025-04-27T08:48:18.000Z', 'description' => 'Request parameters changed'],
            ],
            'flowControl' => [
                'flowControlList' => [
                    ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'SubmitIndexAddDocumentsJob'],
                ],
            ],
            'ramActions' => [
                [
                    'operationType' => 'create',
                    'ramAction' => [
                        'action' => 'sfm:SubmitIndexAddDocumentsJob',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"RequestId\\": \\"778C0B3B-xxxx-5FC1-A947-36EDD13606AB\\",\\n  \\"Data\\": {\\n    \\"Id\\": \\"42687eb254a34802bed398357f5498ae\\"\\n  },\\n  \\"Status\\": \\"200\\",\\n  \\"Success\\": true,\\n  \\"Message\\": \\"Required parameter(%s) missing or invalid, please check the request parameters.\\",\\n  \\"Code\\": \\"Index.InvalidParameter\\"\\n}","type":"json"}]',
        ],
        'SubmitIndexJob' => [
            'summary' => 'Submits a specified CreateIndex task to complete knowledge base creation.',
            'path' => '/{WorkspaceId}/index/submit_index_job',
            'methods' => ['post'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'write',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'WorkspaceId',
                    'in' => 'path',
                    'schema' => ['description' => 'The workspace ID to which the knowledge base belongs. For information about how to obtain the workspace ID, see [How to use a workspace](~~2587495~~).', 'type' => 'string', 'required' => true, 'example' => 'llm-3shx2gu255oqxxxx'."\n", 'title' => ''],
                ],
                [
                    'name' => 'IndexId',
                    'in' => 'query',
                    'schema' => ['description' => 'The knowledge base ID, which is the `Data.Id` returned by the **CreateIndex** operation.', 'type' => 'string', 'required' => true, 'example' => '79c0alxxxx', 'title' => ''],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => '',
                        'description' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'Code' => ['description' => 'The error code.', 'type' => 'string', 'example' => 'Index.InvalidParameter', 'title' => ''],
                            'Data' => [
                                'description' => 'The business data returned by the operation.',
                                'type' => 'object',
                                'properties' => [
                                    'Id' => ['description' => 'The task ID, which is the `JobId` required when calling the **GetIndexJobStatus** operation.', 'type' => 'string', 'example' => 'eFDr2fGRzP9gdDZWAdo3xxxx', 'title' => ''],
                                    'IndexId' => ['description' => 'The knowledge base ID.', 'type' => 'string', 'example' => '79c0alxxxx', 'title' => ''],
                                ],
                                'title' => '',
                                'example' => '',
                            ],
                            'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'Required parameter(%s) missing or invalid, please check the request parameters.', 'title' => ''],
                            'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '17204B98-xxxx-4F9A-8464-2446A84821CA'],
                            'Status' => ['description' => 'The status code returned by the operation.', 'type' => 'string', 'example' => '200', 'title' => ''],
                            'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
                                .'- true: Successful.'."\n"
                                .'- false: Failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'errorCodes' => [
                400 => [
                    ['errorCode' => 'RagIndex.IdempotentParameterMismatch', 'errorMessage' => 'The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical.', 'description' => 'This request uses the same client token as the previous but different request. Do not reuse client tokens with different requests unless the request is the same.'],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"Code\\": \\"Index.InvalidParameter\\",\\n  \\"Data\\": {\\n    \\"Id\\": \\"eFDr2fGRzP9gdDZWAdo3xxxx\\",\\n    \\"IndexId\\": \\"79c0alxxxx\\"\\n  },\\n  \\"Message\\": \\"Required parameter(%s) missing or invalid, please check the request parameters.\\",\\n  \\"RequestId\\": \\"17204B98-xxxx-4F9A-8464-2446A84821CA\\",\\n  \\"Status\\": \\"200\\",\\n  \\"Success\\": true\\n}","type":"json"}]',
            'title' => 'Submit a knowledge base creation task',
            'description' => '- Resource Access Management (RAM) users must first obtain [API permissions](~~2848578~~) for Model Studio (requires `AliyunBailianDataFullAccess`, which includes the sfm:SubmitIndexJob permission), and [join a workspace](~~2851098~~) before invoking this operation. Alibaba Cloud accounts can invoke this operation directly without authorization. Use the latest <props="china">[Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)</props><props="intl">[Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29)</props> to invoke this operation.'."\n"
                .'- Before invoking this operation, you must invoke the **CreateIndex** operation and obtain the corresponding `IndexId`.'."\n"
                .'- After invoking this operation, the node requires time to execute and may take several hours during peak periods. Do not submit duplicate requests before the node completes. To query the node execution status, invoke the **GetIndexJobStatus** operation.'."\n"
                .'- After the knowledge base is created, you can associate it with an agent application<props="china"> or workflow application</props> in the same workspace through <props="china">[Application Management](https://bailian.console.aliyun.com/?tab=app#/app-center)</props><props="intl">[Application Management](https://modelstudio.console.alibabacloud.com/?tab=app#/app-center)</props> (or pass the `IndexID` through `rag_options` in [Application Calls](~~2846132~~)) to supplement your Model Studio application with private knowledge and up-to-date information. You can also choose not to use a Model Studio application and directly query the knowledge base by invoking the **Retrieve** operation.'."\n"
                .'- This operation does not support idempotence.'."\n"
                ."\n"
                .'**Rate limit:**'."\n"
                .'This operation is throttled if called too frequently. Do not exceed 10 calls per second. If throttled, retry later.',
            'changeSet' => [
                ['createdAt' => '2024-10-17T04:11:14.000Z', 'description' => 'Error codes changed'],
            ],
            'flowControl' => [
                'flowControlList' => [
                    ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'SubmitIndexJob'],
                ],
            ],
            'ramActions' => [
                [
                    'operationType' => 'create',
                    'ramAction' => [
                        'action' => 'sfm:SubmitIndexJob',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
        ],
        'UpdateChunk' => [
            'summary' => 'Modifies the content and title of a specified text chunk in a knowledge base, and specifies whether the chunk participates in knowledge base retrieval.',
            'path' => '/{WorkspaceId}/chunk/update',
            'methods' => ['post'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'readAndWrite',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'PipelineId',
                    'in' => 'query',
                    'schema' => ['description' => 'The knowledge base ID. This is the `Data.Id` returned by the **CreateIndex** operation, or you can obtain it from the <props="china">[Knowledge Base](https://bailian.console.aliyun.com/?tab=app#/knowledge-base)</props><props="intl">[Knowledge Base](https://modelstudio.console.alibabacloud.com/?tab=app#/knowledge-base)</props> page.', 'type' => 'string', 'required' => true, 'example' => '79c0alxxxx'."\n", 'title' => ''],
                ],
                [
                    'name' => 'DataId',
                    'in' => 'query',
                    'schema' => ['description' => 'The file ID. This is the `FileId` returned by the **AddFile** operation. You can also obtain it from the <props="china">[Application Data](https://bailian.console.aliyun.com/?tab=app#/data-center) - Files</props><props="intl">[Application Data](https://modelstudio.console.alibabacloud.com/?tab=app#/data-center) - Files</props> tab in the Model Studio console by clicking the ID icon next to the corresponding file.', 'type' => 'string', 'required' => true, 'example' => 'doc_c134aa2073204a5d936d870bf960f56axxxxxxxx'."\n", 'title' => ''],
                ],
                [
                    'name' => 'ChunkId',
                    'in' => 'query',
                    'schema' => ['description' => 'The ID of the text chunk to modify. You can obtain this value by calling the **ListChunks** operation. The value is in the Node.Metadata._id field of the response.', 'type' => 'string', 'required' => true, 'example' => 'llm-5ip55o1zrzxx_09fe52x_xxxxx_033b551e10024029992e79767b151fxx_10024xx_0', 'title' => ''],
                ],
                [
                    'name' => 'IsDisplayedChunkContent',
                    'in' => 'query',
                    'schema' => ['description' => 'Specifies whether this text chunk participates in knowledge base retrieval. Valid values:'."\n"
                        ."\n"
                        .'- true: Participates.'."\n"
                        .'- false: Does not participate.'."\n"
                        ."\n"
                        .'Default value: true.', 'type' => 'boolean', 'required' => true, 'example' => 'true', 'title' => ''],
                ],
                [
                    'name' => 'content',
                    'in' => 'query',
                    'schema' => ['description' => 'The new content of the text chunk. The content length must be between 10 and 6000 characters and cannot exceed the maximum segment length specified when the knowledge base was created.', 'type' => 'string', 'required' => true, 'example' => '在哲学中所获得的确定性类型不是科学的确定性(即对每个人的理智来说都一样的确定性),而是一种要在人类的整体本质中才能获得的亲证。哲学的每一形态都不同于科学,因为所有的哲学都没有得到一致的认可...', 'title' => ''],
                ],
                [
                    'name' => 'WorkspaceId',
                    'in' => 'path',
                    'schema' => ['description' => 'The workspace ID of the knowledge base. For information about how to obtain the workspace ID, see [How to use a workspace](~~2587495~~).', 'type' => 'string', 'required' => true, 'example' => 'llm-3z7uw7fwz0vexxxx'."\n", 'title' => ''],
                ],
                [
                    'name' => 'title',
                    'in' => 'query',
                    'schema' => ['description' => 'The new title of the text chunk. The length is limited to 0 to 50 characters. An empty string is allowed. If you pass an empty string, the existing title is cleared. If you do not pass this parameter, the original title is retained.', 'type' => 'string', 'required' => false, 'example' => '什么是哲学', 'title' => ''],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => '',
                        'description' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '35A267BF-xxxx-54DB-8394-AA3B0742D833'],
                            'Code' => ['description' => 'The error status code.', 'type' => 'string', 'title' => '', 'example' => ''],
                            'Message' => ['description' => 'The error message.', 'type' => 'string', 'title' => '', 'example' => ''],
                            'Success' => ['description' => 'Indicates whether the operation was successful. Valid values:'."\n"
                                ."\n"
                                .'- true: Succeeded.'."\n"
                                .'- false: Failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
                            'Data' => ['description' => 'The business data returned upon a successful request.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
                            'Status' => ['description' => 'The status code returned by the operation.', 'type' => 'string', 'example' => '"200"', 'title' => ''],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"RequestId\\": \\"35A267BF-xxxx-54DB-8394-AA3B0742D833\\",\\n  \\"Code\\": \\"\\",\\n  \\"Message\\": \\"\\",\\n  \\"Success\\": true,\\n  \\"Data\\": true,\\n  \\"Status\\": \\"\\\\\\"200\\\\\\"\\"\\n}","type":"json"}]',
            'title' => 'Update a chunk',
            'description' => '- **Key limits**: This operation supports only document search knowledge bases. Data query and image Q&A knowledge bases are not supported.'."\n"
                .'- **Permission requirements**:'."\n"
                .'  - **Resource Access Management (RAM) user**: Before invoking this operation, obtain [API permissions](~~2848578~~) for Model Studio (you can use the `AliyunBailianDataFullAccess` policy, which includes the sfm:UpdateChunk permission required by this operation), and [join a workspace](~~2851098~~).'."\n"
                .'  - **Alibaba Cloud account**: Has permissions by default and can invoke this operation directly.'."\n"
                .'- **Calling method**: Use the latest <props="china">[Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)</props><props="intl">[Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29)</props>. The SDK provides encapsulation of complex signature calculation logic and simplifies the invocation procedure.'."\n"
                .'- **Effective latency**: Updates typically take effect immediately. During peak hours, a slight delay (seconds) may occur.'."\n"
                .'- **Idempotence**: This operation is idempotent. If you repeat the operation on a text chunk that has already been updated, the operation returns a success response.'."\n"
                ."\n"
                .'**Rate limit:**'."\n"
                .'This operation is throttled if called too frequently. Do not exceed 10 calls per second. If you are throttled, retry later.',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [],
            ],
            'ramActions' => [
                [
                    'operationType' => 'update',
                    'ramAction' => [
                        'action' => 'sfm:UpdateChunk',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
        ],
        'UpdateConnector' => [
            'summary' => 'Updates a connector.',
            'path' => '/{WorkspaceId}/datacenter/connector/{ConnectorId}',
            'methods' => ['put'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'readAndWrite',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', 'autoTest' => true],
            'parameters' => [
                [
                    'name' => 'WorkspaceId',
                    'in' => 'path',
                    'schema' => ['description' => 'The ID of the workspace.', 'type' => 'string', 'required' => true, 'example' => 'llm-3z7uw7fwz0vexxxx', 'title' => ''],
                ],
                [
                    'name' => 'ConnectorId',
                    'in' => 'path',
                    'schema' => ['description' => 'The instance ID of the connector. You can find this ID in the Model Studio console.', 'type' => 'string', 'required' => true, 'example' => 'conn_xxxx', 'title' => ''],
                ],
                [
                    'name' => 'ConnectorName',
                    'in' => 'formData',
                    'schema' => ['description' => 'The name of the connector.', 'type' => 'string', 'required' => true, 'maxLength' => 20, 'minLength' => 1, 'title' => '', 'example' => 'test-connector'],
                ],
                [
                    'name' => 'Description',
                    'in' => 'formData',
                    'schema' => ['description' => 'A description of the connector.', 'type' => 'string', 'required' => true, 'maxLength' => 200, 'minLength' => 1, 'title' => '', 'example' => 'never_delete_aeip_95_us-west-1'],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'type' => 'object',
                        'properties' => [
                            'Code' => ['description' => 'The error code.', 'type' => 'string', 'example' => 'Index.Forbidden', 'title' => ''],
                            'Data' => [
                                'type' => 'object',
                                'properties' => [
                                    'ConnectorId' => ['description' => 'The ID of the connector.', 'type' => 'string', 'title' => '', 'example' => 'conn_file_e0c9db4030b2465a9478028f7d76cd92_1234'],
                                ],
                                'description' => 'The data returned by the operation.',
                                'title' => '',
                                'example' => '',
                            ],
                            'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'Required parameter(%s) missing or invalid, please check the request parameters.', 'title' => ''],
                            'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '778C0B3B-03C1-5FC1-A947-36EDD13606AB'],
                            'Status' => ['description' => 'The status code of the response.', 'type' => 'string', 'example' => '200', 'title' => ''],
                            'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
                        ],
                        'title' => '',
                        'description' => 'The response object.',
                        'example' => '',
                    ],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'title' => 'UpdateConnector',
            'description' => '- A RAM user can call this operation only after they join a workspace and are granted the required [API permission](~~2848578~~) for Alibaba Cloud Model Studio (Bailian). The `AliyunBailianDataFullAccess` policy, which includes the `sfm:UpdateConnector` permission, is required. An Alibaba Cloud account can call this operation directly. Use the latest version of the <props="china">[Alibaba Cloud Model Studio (Bailian) SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)</props><props="intl">[Alibaba Cloud Model Studio (Bailian) SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29)</props> to call this operation.'."\n"
                ."\n"
                .'- This operation is not idempotent.'."\n"
                ."\n"
                .'**Throttling:** If you call this operation too frequently, the system may throttle your requests. Do not exceed a frequency of 5 calls per second. If a request is throttled, try again later.',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [],
            ],
            'ramActions' => [
                [
                    'operationType' => 'update',
                    'ramAction' => [
                        'action' => 'sfm:UpdateConnector',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"Code\\": \\"Index.Forbidden\\",\\n  \\"Data\\": {\\n    \\"ConnectorId\\": \\"conn_file_e0c9db4030b2465a9478028f7d76cd92_1234\\"\\n  },\\n  \\"Message\\": \\"Required parameter(%s) missing or invalid, please check the request parameters.\\",\\n  \\"RequestId\\": \\"778C0B3B-03C1-5FC1-A947-36EDD13606AB\\",\\n  \\"Status\\": \\"200\\",\\n  \\"Success\\": true\\n}","type":"json"}]',
        ],
        'UpdateFileTag' => [
            'summary' => 'Updates the tags for a specified file.',
            'path' => '/{WorkspaceId}/datacenter/file/{FileId}',
            'methods' => ['put'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'readAndWrite',
            'deprecated' => false,
            'systemTags' => [
                'operationType' => 'update',
                'riskType' => 'none',
                'chargeType' => 'free',
                'abilityTreeNodes' => ['FEATUREsfm8JET0F'],
                'autoTest' => true,
                'tenantRelevance' => 'tenant',
            ],
            'parameters' => [
                [
                    'name' => 'WorkspaceId',
                    'in' => 'path',
                    'schema' => ['description' => 'The ID of the workspace that contains the file. For instructions on obtaining the ID, see [How to use workspaces](~~2587495~~).', 'type' => 'string', 'required' => true, 'example' => 'llm-3z7uw7fwz0vxxxx', 'title' => ''],
                ],
                [
                    'name' => 'FileId',
                    'in' => 'path',
                    'schema' => ['description' => 'The ID of the file. You can obtain the ID from the <props="china">[application data](https://bailian.console.aliyun.com/?tab=app#/data-center)</props><props="intl">[application data](https://modelstudio.console.alibabacloud.com/?tab=app#/data-center)</props> page by clicking the ID icon next to the file name.', 'type' => 'string', 'required' => true, 'example' => 'file_9a65732555b54d5ea10796ca5742ba22_xxxxxxxx', 'title' => ''],
                ],
                [
                    'name' => 'Tags',
                    'in' => 'formData',
                    'style' => 'json',
                    'schema' => [
                        'title' => '',
                        'description' => '- The list of tags to associate with the file. You can specify a maximum of 100 tags. The combined length of all tag values cannot exceed 700 characters.',
                        'type' => 'array',
                        'items' => ['description' => 'The value of a tag. Each tag can be up to 32 characters long. Supported characters include Unicode letters (such as English and Chinese characters), digits, underscores (\\_), and hyphens (-). A tag cannot contain spaces.', 'type' => 'string', 'required' => false, 'example' => '标签A', 'title' => ''],
                        'required' => true,
                        'maxItems' => 100,
                        'minItems' => 1,
                        'example' => '',
                    ],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => 'Schema of Response',
                        'description' => 'The response body.',
                        'type' => 'object',
                        'properties' => [
                            'Code' => ['description' => 'The result code. A value of `Success` indicates that the request was successful.', 'type' => 'string', 'example' => 'Success', 'title' => ''],
                            'Data' => [
                                'description' => 'The data returned.',
                                'type' => 'object',
                                'properties' => [
                                    'FileId' => ['description' => 'The ID of the file.', 'type' => 'string', 'example' => 'file_9a65732555b54d5ea10796ca5742ba22_xxxxxxxx', 'title' => ''],
                                ],
                                'title' => '',
                                'example' => '',
                            ],
                            'Message' => ['description' => 'The response message.', 'type' => 'string', 'example' => 'Requests throttling triggered.', 'title' => ''],
                            'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => '35A267BF-xxxx-54DB-8394-AA3B0742D833'],
                            'Status' => ['description' => 'The status code.', 'type' => 'string', 'example' => '200', 'title' => ''],
                            'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
                                ."\n"
                                .'- `true`: The request was successful.'."\n"
                                ."\n"
                                .'- `false`: The request failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"Code\\": \\"Success\\",\\n  \\"Data\\": {\\n    \\"FileId\\": \\"file_9a65732555b54d5ea10796ca5742ba22_xxxxxxxx\\"\\n  },\\n  \\"Message\\": \\"Requests throttling triggered.\\",\\n  \\"RequestId\\": \\"35A267BF-xxxx-54DB-8394-AA3B0742D833\\",\\n  \\"Status\\": \\"200\\",\\n  \\"Success\\": true\\n}","type":"json"}]',
            'title' => 'Update File Tag',
            'description' => '- A RAM User (sub-account) must be granted the required [API permissions](~~2848578~~) for Alibaba Cloud Model Studio (the `AliyunBailianDataFullAccess` policy, which includes the `sfm:UpdateFileTag` permission) and [join a workspace](~~2851098~~) before calling this operation. An Alibaba Cloud account (main account) can call this operation directly without authorization. We recommend using the latest version of the <props="china">[Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)</props><props="intl">[Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29)</props> to call this operation.'."\n"
                ."\n"
                .'**Throttling:** Do not call this operation more than 5 times per second. If a request is throttled, try again later.',
            'changeSet' => [
                ['createdAt' => '2025-09-28T10:20:10.000Z', 'description' => 'Request parameters changed'],
            ],
            'flowControl' => [
                'flowControlList' => [
                    ['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateFileTag'],
                ],
            ],
            'ramActions' => [
                [
                    'operationType' => 'update',
                    'ramAction' => [
                        'action' => 'sfm:UpdateFileTag',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
        ],
        'UpdateIndex' => [
            'summary' => 'Updates the configuration of a specified knowledge base.',
            'path' => '/{WorkspaceId}/index/update',
            'methods' => ['post'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'readAndWrite',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'WorkspaceId',
                    'in' => 'path',
                    'schema' => ['description' => 'The workspace ID.', 'type' => 'string', 'required' => true, 'example' => 'llm-3shx2gu255oqxxxx', 'title' => ''],
                ],
                [
                    'name' => 'Id',
                    'in' => 'query',
                    'allowEmptyValue' => false,
                    'schema' => ['title' => 'Idempotent parameter', 'description' => 'The knowledge base ID.', 'type' => 'string', 'required' => true, 'example' => '79c0alxxxx'],
                ],
                [
                    'name' => 'Name',
                    'in' => 'query',
                    'schema' => ['description' => 'The name of the knowledge base.', 'type' => 'string', 'required' => false, 'example' => '企业帮助文档库', 'title' => ''],
                ],
                [
                    'name' => 'Description',
                    'in' => 'query',
                    'schema' => ['description' => 'The description of the knowledge base.', 'type' => 'string', 'required' => false, 'example' => '企业知识库', 'title' => ''],
                ],
                [
                    'name' => 'RerankMinScore',
                    'in' => 'query',
                    'schema' => ['description' => 'The minimum score for sorting. The value must be between 0 and 1.', 'type' => 'string', 'required' => false, 'example' => '0.01', 'title' => ''],
                ],
                [
                    'name' => 'DenseSimilarityTopK',
                    'in' => 'query',
                    'schema' => ['description' => 'The number of most similar text segments to retrieve using vector search. A vector is generated for the input text, and the K most similar text segments are retrieved from the knowledge base. The value of K must be in the range of 0 to 100.'."\n"
                        .'The sum of `DenseSimilarityTopK` and `SparseSimilarityTopK` cannot exceed 200.'."\n"
                        ."\n"
                        .'Default value: 100.', 'type' => 'integer', 'format' => 'int32', 'maximum' => '100', 'minimum' => '0', 'default' => '100', 'required' => false, 'example' => '100', 'title' => ''],
                ],
                [
                    'name' => 'SparseSimilarityTopK',
                    'in' => 'query',
                    'schema' => ['description' => 'The number of text segments to retrieve using an exact keyword match. This helps filter out irrelevant text segments and provides more accurate results.'."\n"
                        .'The value must be in the range of 0 to 100.'."\n"
                        .'The sum of `DenseSimilarityTopK` and `SparseSimilarityTopK` cannot exceed 200.'."\n"
                        ."\n"
                        .'Default value: 100.', 'type' => 'integer', 'format' => 'int32', 'maximum' => '100', 'minimum' => '0', 'default' => '100', 'required' => false, 'example' => '100', 'title' => ''],
                ],
                [
                    'name' => 'PipelineCommercialType',
                    'in' => 'query',
                    'schema' => [
                        'description' => 'The edition of the knowledge base. Valid values:'."\n"
                            ."\n"
                            .'- standard: Standard Edition'."\n"
                            ."\n"
                            .'- enterprise: Ultimate Edition',
                        'type' => 'string',
                        'enum' => ['standard', 'enterprise'],
                        'required' => false,
                        'example' => 'standard',
                        'title' => '',
                    ],
                ],
                [
                    'name' => 'PipelineCommercialCu',
                    'in' => 'query',
                    'schema' => ['description' => 'The number of Retrieval Compute Units (RCUs) for the Ultimate Edition knowledge base. This parameter is required only when PipelineCommercialType is set to enterprise.'."\n"
                        ."\n"
                        .'The value must be in the range of 1 to 200.', 'type' => 'integer', 'format' => 'int32', 'maximum' => '200', 'minimum' => '1', 'required' => false, 'example' => '3', 'title' => ''],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'description' => 'The schema of the response.',
                        'title' => 'Schema of Response  ',
                        'type' => 'object',
                        'properties' => [
                            'RequestId' => ['title' => 'Id of the request  ', 'description' => 'The request ID.', 'type' => 'string', 'example' => '17204B98-7734-4F9A-8464-xxx'],
                            'Data' => [
                                'description' => 'The data returned.',
                                'type' => 'object',
                                'properties' => [
                                    'Id' => ['description' => 'The knowledge base ID.', 'type' => 'string', 'example' => '79c0alxxxx', 'title' => ''],
                                ],
                                'title' => '',
                                'example' => '',
                            ],
                            'Status' => ['description' => 'The status code returned by the API.', 'type' => 'string', 'example' => '200', 'title' => ''],
                            'Success' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
                                ."\n"
                                .'true: The request was successful.'."\n"
                                ."\n"
                                .'false: The request failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
                            'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'Required parameter(%s) missing or invalid, please check the request parameters.', 'title' => ''],
                            'Code' => ['description' => 'The status code.', 'type' => 'string', 'example' => 'Success', 'title' => ''],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'errorCodes' => [],
            'staticInfo' => ['returnType' => 'synchronous'],
            'title' => 'Update Knowledge Base  ',
            'description' => '<props="intl">This operation is not available on the Alibaba Cloud International Website (www\\.alibabacloud.com).</props><props="china"></props>'."\n"
                ."\n"
                .'Before a RAM user can call this operation, the RAM user must have the `AliyunBailianDataFullAccess` permission for Alibaba Cloud Model Studio. For more information, see [Grant permissions](~~2848578~~). The RAM user must also be added to a workspace. For more information, see [Add a member to a workspace](~~2851098~~). An Alibaba Cloud account can call this operation without authorization. Use the latest version of the Alibaba Cloud Model Studio SDK to call this operation. For more information, see [Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29).'."\n"
                .'Before you call this operation, ensure that the knowledge base is created and has not been deleted. The knowledge base ID (`Id`) must be valid.'."\n"
                .'This operation is idempotent.',
            'requestParamsDescription' => 'Note: Specify at least one of the following parameters: Name, Description, or RerankMinScore.',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [],
            ],
            'ramActions' => [
                [
                    'operationType' => 'update',
                    'ramAction' => [
                        'action' => 'sfm:UpdateIndex',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"RequestId\\": \\"17204B98-7734-4F9A-8464-xxx\\",\\n  \\"Data\\": {\\n    \\"Id\\": \\"79c0alxxxx\\"\\n  },\\n  \\"Status\\": \\"200\\",\\n  \\"Success\\": true,\\n  \\"Message\\": \\"Required parameter(%s) missing or invalid, please check the request parameters.\\",\\n  \\"Code\\": \\"Success\\"\\n}","type":"json"}]',
        ],
        'UpdateMemory' => [
            'summary' => 'Updates the description of a specified long-term memory.',
            'path' => '/{workspaceId}/memories/{memoryId}',
            'methods' => ['put'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'write',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'workspaceId',
                    'in' => 'path',
                    'schema' => ['title' => '', 'description' => 'The ID of the workspace to which the long-term memory belongs. For information about how to obtain the workspace ID, see [How to use a workspace](~~2587495~~).', 'type' => 'string', 'required' => true, 'example' => 'llm-3z7uw7fwz0vexxxx'],
                ],
                [
                    'name' => 'memoryId',
                    'in' => 'path',
                    'schema' => ['title' => '', 'description' => 'The ID of the long-term memory, which corresponds to the memoryId returned by the [CreateMemory](https://www.alibabacloud.com/help/en/model-studio/developer-reference/api-bailian-2023-12-29-creatememory) operation.', 'type' => 'string', 'required' => true, 'example' => '6bff4f317a14442fbc9f73d29dbdxxxx'],
                ],
                [
                    'name' => 'description',
                    'in' => 'query',
                    'schema' => ['title' => '', 'description' => 'The new description. The description must be 1 to 50 characters in length and can contain characters in the letter category of Unicode, which includes letters, Chinese characters, and digits. The description can also contain half-width colons (:), underscores (_), periods (.), or hyphens (-).', 'type' => 'string', 'required' => false, 'example' => '我的大模型应用$APP_ID关于B用户的长期记忆体'."\n"],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => '',
                        'description' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'requestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '6a71f2d9-f1c9-913b-818b-11402910xxxx'],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'errorCodes' => [
                400 => [
                    ['errorCode' => 'Memory.DescriptionInvalid', 'errorMessage' => 'Input parameter description is invalid.', 'description' => 'Memory\'s description is invalid'],
                ],
                404 => [
                    ['errorCode' => 'Memory.MemoryIdNotFound', 'errorMessage' => 'Memory Id not exist or is not authorized.', 'description' => 'memoryId not found'],
                ],
                500 => [
                    ['errorCode' => 'Memory.InternalError', 'errorMessage' => 'Memory service inner exception.', 'description' => 'Memory service inner exception.'."\n"],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"requestId\\": \\"6a71f2d9-f1c9-913b-818b-11402910xxxx\\"\\n}","type":"json"}]',
            'title' => 'Update long-term memory',
            'description' => '- This operation is idempotent.'."\n"
                ."\n"
                .'**Rate limit:** Ensure that the interval between two requests is at least 1 second. Otherwise, throttling may be triggered. If throttling occurs, retry later.',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [
                    ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateMemory'],
                ],
            ],
            'ramActions' => [
                [
                    'operationType' => 'update',
                    'ramAction' => [
                        'action' => 'sfm:UpdateMemory',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
        ],
        'UpdateMemoryNode' => [
            'summary' => 'Updates a memory fragment.',
            'path' => '/{workspaceId}/memories/{memoryId}/memoryNodes/{memoryNodeId}',
            'methods' => ['put'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'write',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'workspaceId',
                    'in' => 'path',
                    'schema' => ['title' => '', 'description' => 'The workspace ID.', 'type' => 'string', 'required' => true, 'example' => 'llm-us9hjmt32nysdm5v'."\n"],
                ],
                [
                    'name' => 'memoryId',
                    'in' => 'path',
                    'schema' => ['title' => '', 'description' => 'The long-term memory ID.', 'type' => 'string', 'required' => true, 'example' => '6bff4f317a14442fbc9f73d29dbd5fc3'."\n"],
                ],
                [
                    'name' => 'memoryNodeId',
                    'in' => 'path',
                    'schema' => ['title' => '', 'description' => 'The memory fragment ID.', 'type' => 'string', 'required' => true, 'example' => '68de06c95368463a8be4a84efc872cc5'],
                ],
                [
                    'name' => 'content',
                    'in' => 'query',
                    'schema' => ['title' => '', 'description' => 'The memory fragment content.', 'type' => 'string', 'required' => true, 'example' => '用户喜欢吃西红柿炒鸡蛋'."\n"],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => '',
                        'description' => 'Schema of Response',
                        'type' => 'object',
                        'properties' => [
                            'requestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '8C56C7AF-6573-19CE-B018-E05E1EDCF4C5'."\n"],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'errorCodes' => [
                400 => [
                    ['errorCode' => 'Memory.MemoryNodeContentInvalid', 'errorMessage' => 'Memory node content is invalid.', 'description' => 'Memory node content is invalid.'],
                ],
                404 => [
                    ['errorCode' => 'Memory.MemoryIdNotFound', 'errorMessage' => 'Memory Id not exist or is not authorized.', 'description' => 'memoryId not found'],
                    ['errorCode' => 'Memory.MemoryNodeNotFound', 'errorMessage' => 'MemoryNode not found.', 'description' => 'MemoryNode not found'],
                ],
                500 => [
                    ['errorCode' => 'Memory.InternalError', 'errorMessage' => 'Memory service inner exception.', 'description' => 'Memory service inner exception.'."\n"],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"requestId\\": \\"8C56C7AF-6573-19CE-B018-E05E1EDCF4C5\\\\n\\"\\n}","type":"json"}]',
            'title' => 'Update a memory fragment',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [
                    ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateMemoryNode'],
                ],
            ],
            'ramActions' => [
                [
                    'operationType' => 'update',
                    'ramAction' => [
                        'action' => 'sfm:UpdateMemoryNode',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
        ],
        'UpdatePromptTemplate' => [
            'summary' => 'Updates a prompt template based on the template ID.',
            'path' => '/{workspaceId}/promptTemplates/{promptTemplateId}',
            'methods' => ['patch'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'write',
            'deprecated' => false,
            'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'],
            'parameters' => [
                [
                    'name' => 'workspaceId',
                    'in' => 'path',
                    'schema' => ['title' => '', 'description' => 'The workspace ID.'."\n", 'type' => 'string', 'required' => true, 'example' => 'llm-us9hjmt32nysdxxx'],
                ],
                [
                    'name' => 'promptTemplateId',
                    'in' => 'path',
                    'schema' => ['title' => '', 'description' => 'The template ID.'."\n", 'type' => 'string', 'required' => true, 'example' => '6e49109bfeb94a39bb268f4e483ccxxx'],
                ],
                [
                    'name' => 'name',
                    'in' => 'query',
                    'schema' => ['title' => '', 'description' => 'The template name.'."\n", 'type' => 'string', 'required' => false, 'example' => '小红书文案助手'],
                ],
                [
                    'name' => 'content',
                    'in' => 'query',
                    'schema' => ['title' => '', 'description' => 'The template content.'."\n", 'type' => 'string', 'required' => false, 'example' => '请写一篇小红书种草笔记,增加丰富的emoji元素,结尾作总结,并加上相关标签。主题为:${theme}'],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'title' => 'Schema of Response',
                        'description' => 'Schema of Response'."\n",
                        'type' => 'object',
                        'properties' => [
                            'requestId' => ['title' => '', 'description' => 'The request ID.'."\n", 'type' => 'string', 'example' => 'FE9B6CBF-47E6-5D76-9C5D-B814DD5ABxxx'."\n"],
                        ],
                        'example' => '',
                    ],
                ],
            ],
            'errorCodes' => [
                400 => [
                    ['errorCode' => 'PromptTemplate.ContentInvalid', 'errorMessage' => 'Input parameter Content is invalid.', 'description' => 'The format of the input parameter Content is invalid.'],
                    ['errorCode' => 'PromptTemplate.NameInvalid', 'errorMessage' => 'Input parameter Name is invalid.', 'description' => 'The format of the input parameter Name is invalid.'],
                ],
                404 => [
                    ['errorCode' => 'PromptTemplate.TemplateNotFound', 'errorMessage' => 'Prompt template not found.', 'description' => 'Prompt template not found'],
                ],
                500 => [
                    ['errorCode' => 'PromptTemplate.InternalError', 'errorMessage' => 'Prompt template service inner exception.', 'description' => 'prompt template service internal exception'],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"requestId\\": \\"FE9B6CBF-47E6-5D76-9C5D-B814DD5ABxxx\\\\n\\"\\n}","type":"json"}]',
            'title' => 'UpdatePromptTemplate',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [
                    ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdatePromptTemplate'],
                ],
            ],
            'ramActions' => [
                [
                    'operationType' => 'update',
                    'ramAction' => [
                        'action' => 'sfm:UpdatePromptTemplate',
                        'authLevel' => 'operate',
                        'actionConditions' => [],
                        'resources' => [
                            ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                        ],
                    ],
                ],
            ],
        ],
        'UpdateTableFromAuthorizedOss' => [
            'summary' => 'Update a table in an Alibaba Cloud Model Studio data connector using a file from an authorized OSS bucket.',
            'path' => '/{WorkspaceId}/datacenter/table/fromoss/{TableId}',
            'methods' => ['put'],
            'schemes' => ['https'],
            'security' => [
                [
                    'AK' => [],
                ],
            ],
            'consumes' => ['application/json'],
            'produces' => ['application/json'],
            'operationType' => 'readAndWrite',
            'deprecated' => false,
            'systemTags' => [
                'operationType' => 'update',
                'riskType' => 'none',
                'chargeType' => 'free',
                'abilityTreeNodes' => ['FEATUREsfm8JET0F'],
                'autoTest' => true,
                'tenantRelevance' => 'tenant',
            ],
            'parameters' => [
                [
                    'name' => 'WorkspaceId',
                    'in' => 'path',
                    'schema' => ['description' => 'ID of the workspace that owns the file. For details, see [Use workspaces](~~2587495~~).', 'type' => 'string', 'required' => true, 'example' => 'llm-3z7uw7fwz0vxxxx', 'title' => ''],
                ],
                [
                    'name' => 'TableId',
                    'in' => 'path',
                    'schema' => ['description' => 'ID of the table to update.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'table_100b51399c404966b7d49f71e388a3fd_12738336'],
                ],
                [
                    'name' => 'OssBucket',
                    'in' => 'formData',
                    'schema' => ['description' => 'Name of the OSS bucket. For details, see [bucket](~~177682~~).', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'yinghuo-ai'],
                ],
                [
                    'name' => 'OssRegionId',
                    'in' => 'formData',
                    'schema' => ['description' => 'Region ID of the OSS bucket. For details, see [OSS regions and endpoints](~~31837~~).', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'cn-beijing'],
                ],
                [
                    'name' => 'OssKey',
                    'in' => 'formData',
                    'schema' => ['description' => 'Object key of the file in the OSS bucket. For details, see [object naming](~~273129~~).', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'a0deedbce4a8162b8d66c63ace28330c'],
                ],
                [
                    'name' => 'UpdateMode',
                    'in' => 'formData',
                    'schema' => [
                        'description' => 'Update mode. Valid values: APPEND and OVERWRITE.',
                        'type' => 'string',
                        'required' => true,
                        'enum' => ['APPEND', 'OVERWRITE'],
                        'title' => '',
                        'example' => 'OVERWRITE',
                    ],
                ],
            ],
            'responses' => [
                200 => [
                    'schema' => [
                        'type' => 'object',
                        'properties' => [
                            'Code' => ['description' => 'Error status code.', 'type' => 'string', 'example' => 'DataCenter.FileTooLarge', 'title' => ''],
                            'Data' => [
                                'type' => 'object',
                                'properties' => [
                                    'TableId' => ['description' => 'Same as the input TableId parameter.', 'type' => 'string', 'title' => '', 'example' => 'table_df96ebd5da8640e5a0991b3d15f39d4d_12792097'],
                                    'Status' => ['description' => 'Current table status. After upload, the status usually changes to TO\\_IMPORT. This means the system has accepted the uploaded file and is waiting to schedule it into the data table.', 'type' => 'string', 'title' => '', 'example' => 'TO_IMPORT'],
                                ],
                                'description' => 'Data field of the response.',
                                'title' => '',
                                'example' => '',
                            ],
                            'Message' => ['description' => 'Error message.', 'type' => 'string', 'example' => 'Required parameter(%s) missing or invalid, please check the request parameters.', 'title' => ''],
                            'RequestId' => ['description' => 'ID of the request.', 'type' => 'string', 'title' => '', 'example' => '7BA8ADD9-53D6-53F0-918F-A1E776AD230E'],
                            'Status' => ['description' => 'Status code returned by the operation.', 'type' => 'string', 'example' => '200', 'title' => ''],
                            'Success' => ['description' => 'Indicates whether the operation succeeded.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
                        ],
                        'title' => '',
                        'description' => 'Schema of Response',
                        'example' => '',
                    ],
                ],
            ],
            'staticInfo' => ['returnType' => 'synchronous'],
            'title' => 'UpdateTableFromAuthorizedOss',
            'description' => '- Ensure that the OSS bucket belongs to the same Alibaba Cloud account as your Alibaba Cloud Model Studio instance. You must also complete the authorization steps described in [Configure data import from OSS](~~2782155~~).'."\n"
                ."\n"
                .'  - The bucket storage class must not be Archive, Cold Archive, or Deep Cold Archive. Buckets with server-side encryption are supported. public-read-write, public-read, and private buckets are also supported.'."\n"
                ."\n"
                .'  - If you use a bucket with [Referer-based hotlink protection](~~2636937~~), you must add `*.console.aliyun.com` to the Referer whitelist. For more information, see [Allow access only from trusted websites](~~2636937~~).'."\n"
                ."\n"
                .'- Before a RAM user (sub-account) can call this operation, they must obtain [API permissions](~~2848578~~) for Alibaba Cloud Model Studio and [join a workspace](~~2851098~~). The AliyunBailianDataFullAccess policy includes the required `sfm:UpdateTableFromAuthorizedOss` permission. An Alibaba Cloud account (root account) can call this operation directly without additional permissions. We recommend that you use the latest version of the <props="china">[Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)</props> or <props="intl">[Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29)</props>.'."\n"
                ."\n"
                .'- This operation is not idempotent.'."\n"
                ."\n"
                .'**Rate limiting:** This operation is subject to rate limiting. Do not call it more than five times per second. If you reach the limit, wait before you try again.',
            'changeSet' => [],
            'flowControl' => [
                'flowControlList' => [],
            ],
            'ramActions' => [],
            'responseDemo' => '[{"errorExample":"","example":"{\\n  \\"Code\\": \\"DataCenter.FileTooLarge\\",\\n  \\"Data\\": {\\n    \\"TableId\\": \\"table_df96ebd5da8640e5a0991b3d15f39d4d_12792097\\",\\n    \\"Status\\": \\"TO_IMPORT\\"\\n  },\\n  \\"Message\\": \\"Required parameter(%s) missing or invalid, please check the request parameters.\\",\\n  \\"RequestId\\": \\"7BA8ADD9-53D6-53F0-918F-A1E776AD230E\\",\\n  \\"Status\\": \\"200\\",\\n  \\"Success\\": true\\n}","type":"json"}]',
        ],
    ],
    'endpoints' => [
        ['regionId' => 'cn-beijing', 'regionName' => 'China (Beijing)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'bailian.cn-beijing.aliyuncs.com', 'endpoint' => 'bailian.cn-beijing.aliyuncs.com', 'vpc' => 'bailian-vpc.cn-beijing.aliyuncs.com'],
        ['regionId' => 'ap-southeast-1', 'regionName' => 'Singapore', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'bailian.ap-southeast-1.aliyuncs.com', 'endpoint' => 'bailian.ap-southeast-1.aliyuncs.com', 'vpc' => 'bailian-vpc.ap-southeast-1.aliyuncs.com'],
    ],
    'errorCodes' => [
        ['code' => 'DataCenter.AccessFileFailed', 'message' => 'Failed to read the uploaded file. Check whether the file has been uploaded successfully.', 'http_code' => 400, 'description' => 'Failed to read the uploaded file. Check whether the file has been uploaded successfully.'],
        ['code' => 'DataCenter.ExceedLimit', 'message' => 'You have reached the maximum number of upload files limit.', 'http_code' => 400, 'description' => 'The maximum number of uploaded files allowed has been reached.'],
        ['code' => 'DataCenter.FileTooLarge', 'message' => 'The file size is too large.', 'http_code' => 400, 'description' => 'The file size exceeds the limit. For the maximum file limit, see Bailian official document library.'],
        ['code' => 'DataCenter.InternalError', 'message' => 'System inner exception.', 'http_code' => 500, 'description' => 'System inner exception.'],
        ['code' => 'DataCenter.Throttling', 'message' => 'Calls are too frequent, triggering system throttling.', 'http_code' => 429, 'description' => 'Calls are too frequent, triggering system throttling. Please ensure no less than 15 seconds between 2 requests.'],
        ['code' => 'EnterpriseData.UserDataIsEmpty', 'message' => 'Enterprise data user data is empty.', 'http_code' => 400, 'description' => 'Enterprise data user data is empty.'],
        ['code' => 'LLMService.ApiKey.TokenCreateFailed', 'message' => 'Large language model ApiKey Token creation failed.', 'http_code' => 400, 'description' => 'Large language model ApiKey Token creation failed.'],
        ['code' => 'LLMService.WorkspaceId.NotExists.', 'message' => 'you are not authorized to this workspace, or workspace not exists.', 'http_code' => 403, 'description' => 'The business space does not exist or has no permissions.'],
        ['code' => 'Memory.DescriptionInvalid', 'message' => 'Input parameter description is invalid.', 'http_code' => 400, 'description' => 'Memory\'s description is invalid'],
        ['code' => 'Memory.InternalError', 'message' => 'Memory service inner exception.', 'http_code' => 500, 'description' => 'Memory service inner exception.'."\n"],
        ['code' => 'Memory.MaxResultsInvalid', 'message' => 'Input parameter maxResults is invalid.', 'http_code' => 400, 'description' => 'Input parameter maxResults is invalid.'],
        ['code' => 'Memory.MemoryIdNotFound', 'message' => 'Memory Id not exist or is not authorized.', 'http_code' => 404, 'description' => 'memoryId not found'],
        ['code' => 'Memory.MemoryNodeContentInvalid', 'message' => 'Memory node content is invalid.', 'http_code' => 400, 'description' => 'Memory node content is invalid.'],
        ['code' => 'Memory.MemoryNodeNotFound', 'message' => 'MemoryNode not found.', 'http_code' => 404, 'description' => 'MemoryNode not found'],
        ['code' => 'Memory.NextTokenInvalid', 'message' => 'Input parameter nextToken is invalid.', 'http_code' => 400, 'description' => 'The input nextToken is invalid.'],
        ['code' => 'PromptTemplate.ContentInvalid', 'message' => 'Input parameter Content is invalid.', 'http_code' => 400, 'description' => 'The format of the input parameter Content is invalid.'],
        ['code' => 'PromptTemplate.InternalError', 'message' => 'Prompt template service inner exception.', 'http_code' => 500, 'description' => 'prompt template service internal exception'],
        ['code' => 'PromptTemplate.MaxResultsInvalid', 'message' => 'Input parameter MaxResults is invalid.', 'http_code' => 400, 'description' => 'The input parameter maxResults format is invalid.'],
        ['code' => 'PromptTemplate.NameInvalid', 'message' => 'Input parameter Name is invalid.', 'http_code' => 400, 'description' => 'The format of the input parameter Name is invalid.'],
        ['code' => 'PromptTemplate.NextTokenInvalid', 'message' => 'Input parameter NextToken is invalid.', 'http_code' => 400, 'description' => 'The input nextToken is invalid.'],
        ['code' => 'PromptTemplate.TemplateNotFound', 'message' => 'Prompt template not found.', 'http_code' => 404, 'description' => 'Prompt template not found'],
        ['code' => 'PromptTemplate.TypeInvalid', 'message' => 'Input parameter type is invalid.', 'http_code' => 400, 'description' => 'input type format is invalid'],
        ['code' => 'RagIndex.IdempotentParameterMismatch', 'message' => 'The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical.', 'http_code' => 400, 'description' => 'This request uses the same client token as the previous but different request. Do not reuse client tokens with different requests unless the request is the same.'],
        ['code' => 'Train.Unsupport.Release', 'message' => 'Before releasing the resource group, take the model managed by the resource group offline.', 'http_code' => 403, 'description' => 'Undownload the resource group management model before releasing the resource group.'],
    ],
    'changeSet' => [
        [
            'apis' => [
                ['description' => 'Request parameters changed', 'api' => 'CreateIndex'],
            ],
            'createdAt' => '2025-12-03T12:11:04.000Z',
            'description' => '',
        ],
        [
            'apis' => [
                ['description' => 'Request parameters changed', 'api' => 'Retrieve'],
            ],
            'createdAt' => '2024-07-23T08:07:57.000Z',
            'description' => '',
        ],
    ],
    'flowControl' => [
        'flowControlList' => [
            ['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteCategory'],
            ['threshold' => '2000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'Retrieve'],
            ['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'AddCategory'],
            ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteMemory'],
            ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetPromptTemplate'],
            ['threshold' => '-1', 'countWindow' => 1, 'regionId' => '*'],
            ['threshold' => '15', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListIndexDocuments'],
            ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListIndices'],
            ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListMemories'],
            ['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListFile'],
            ['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'AddFilesFromAuthorizedOss'],
            ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateIndex'],
            ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteIndex'],
            ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetMemoryNode'],
            ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdatePromptTemplate'],
            ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListPromptTemplates'],
            ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListChunks'],
            ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetMemory'],
            ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteFile'],
            ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeletePromptTemplate'],
            ['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetIndexJobStatus'],
            ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'AddFile'],
            ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteMemoryNode'],
            ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateMemory'],
            ['threshold' => '1', 'countWindow' => 10, 'regionId' => '*', 'api' => 'ApplyTempStorageLease'],
            ['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateFileTag'],
            ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreatePromptTemplate'],
            ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListMemoryNodes'],
            ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeFile'],
            ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ApplyFileUploadLease'],
            ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'SubmitIndexAddDocumentsJob'],
            ['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListCategory'],
            ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateMemoryNode'],
            ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateMemoryNode'],
            ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteIndexDocument'],
            ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateMemory'],
            ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'SubmitIndexJob'],
        ],
    ],
    'ram' => [
        'productCode' => 'SFM',
        'productName' => 'Alibaba Cloud Model Studio',
        'ramCodes' => ['sfm'],
        'ramLevel' => 'OPERATION',
        'ramConditions' => [],
        'ramActions' => [
            [
                'apiName' => 'AddConnector',
                'description' => '',
                'operationType' => 'create',
                'ramAction' => [
                    'action' => 'sfm:AddConnector',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'ChangeParseSetting',
                'description' => '',
                'operationType' => 'update',
                'ramAction' => [
                    'action' => 'sfm:ChangeParseSetting',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'UpdateConnector',
                'description' => '',
                'operationType' => 'update',
                'ramAction' => [
                    'action' => 'sfm:UpdateConnector',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'UpdateFileTag',
                'description' => '',
                'operationType' => 'update',
                'ramAction' => [
                    'action' => 'sfm:UpdateFileTag',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'AddCategory',
                'description' => '',
                'operationType' => 'create',
                'ramAction' => [
                    'action' => 'sfm:AddCategory',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'DeleteCategory',
                'description' => '',
                'operationType' => 'delete',
                'ramAction' => [
                    'action' => 'sfm:DeleteCategory',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'UpdatePromptTemplate',
                'description' => '',
                'operationType' => 'update',
                'ramAction' => [
                    'action' => 'sfm:UpdatePromptTemplate',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'DeleteChunk',
                'description' => '',
                'operationType' => 'delete',
                'ramAction' => [
                    'action' => 'sfm:DeleteChunk',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'GetAlipayTransferStatus',
                'description' => '',
                'operationType' => 'none',
                'ramAction' => [
                    'action' => 'sfm:GetAlipayTransferStatus',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'ListCategory',
                'description' => '',
                'operationType' => 'list',
                'ramAction' => [
                    'action' => 'sfm:ListCategory',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'CreateMemoryNode',
                'description' => '',
                'operationType' => 'create',
                'ramAction' => [
                    'action' => 'sfm:CreateMemoryNode',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'ListIndices',
                'description' => '',
                'operationType' => 'list',
                'ramAction' => [
                    'action' => 'sfm:ListIndex',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'UpdateMemory',
                'description' => '',
                'operationType' => 'update',
                'ramAction' => [
                    'action' => 'sfm:UpdateMemory',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'ListChunks',
                'description' => '',
                'operationType' => 'list',
                'ramAction' => [
                    'action' => 'sfm:ChunkList',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'SubmitIndexAddDocumentsJob',
                'description' => '',
                'operationType' => 'create',
                'ramAction' => [
                    'action' => 'sfm:SubmitIndexAddDocumentsJob',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'ListIndexFileDetails',
                'description' => '',
                'operationType' => 'list',
                'ramAction' => [
                    'action' => 'sfm:ListIndexFileDetails',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'UpdateTableFromAuthorizedOss',
                'description' => '',
                'operationType' => 'update',
                'ramAction' => [
                    'action' => 'sfm:UpdateTableFromAuthorizedOss',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'ListFile',
                'description' => '',
                'operationType' => 'list',
                'ramAction' => [
                    'action' => 'sfm:ListFile',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'Retrieve',
                'description' => '',
                'operationType' => 'none',
                'ramAction' => [
                    'action' => 'sfm:Retrieve',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'AddFile',
                'description' => '',
                'operationType' => 'create',
                'ramAction' => [
                    'action' => 'sfm:AddFile',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'ListMemories',
                'description' => '',
                'operationType' => 'list',
                'ramAction' => [
                    'action' => 'sfm:ListMemories',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'SubmitIndexJob',
                'description' => '',
                'operationType' => 'create',
                'ramAction' => [
                    'action' => 'sfm:SubmitIndexJob',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'DeleteFile',
                'description' => '',
                'operationType' => 'delete',
                'ramAction' => [
                    'action' => 'sfm:DeleteFile',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'AddTable',
                'description' => '',
                'operationType' => 'create',
                'ramAction' => [
                    'action' => 'sfm:AddTable',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'BatchUpdateFileTag',
                'description' => '',
                'operationType' => 'update',
                'ramAction' => [
                    'action' => 'sfm:BatchUpdateFileTag',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'GetParseSettings',
                'description' => '',
                'operationType' => 'get',
                'ramAction' => [
                    'action' => 'sfm:GetParseSettings',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'DeleteMemory',
                'description' => '',
                'operationType' => 'delete',
                'ramAction' => [
                    'action' => 'sfm:DeleteMemory',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'DeletePromptTemplate',
                'description' => '',
                'operationType' => 'delete',
                'ramAction' => [
                    'action' => 'sfm:DeletePromptTemplate',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'ListMemoryNodes',
                'description' => '',
                'operationType' => 'list',
                'ramAction' => [
                    'action' => 'sfm:ListMemoryNodes',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'CreateIndex',
                'description' => '',
                'operationType' => 'create',
                'ramAction' => [
                    'action' => 'sfm:CreateIndex',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'DeleteConnector',
                'description' => '',
                'operationType' => 'delete',
                'ramAction' => [
                    'action' => 'sfm:DeleteConnector',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'UpdateIndex',
                'description' => '',
                'operationType' => 'update',
                'ramAction' => [
                    'action' => 'sfm:UpdateIndex',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'UpdateMemoryNode',
                'description' => '',
                'operationType' => 'update',
                'ramAction' => [
                    'action' => 'sfm:UpdateMemoryNode',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'GetAvailableParserTypes',
                'description' => '',
                'operationType' => 'get',
                'ramAction' => [
                    'action' => 'sfm:GetAvailableParserTypes',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'ApplyTempStorageLease',
                'description' => '',
                'operationType' => 'none',
                'ramAction' => [
                    'action' => 'sfm:ApplyTempStorageLease',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'ListIndexDocuments',
                'description' => '',
                'operationType' => 'list',
                'ramAction' => [
                    'action' => 'sfm:ListIndexFiles',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'GetConnector',
                'description' => '',
                'operationType' => 'get',
                'ramAction' => [
                    'action' => 'sfm:GetConnector',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'DescribeFile',
                'description' => '',
                'operationType' => 'none',
                'ramAction' => [
                    'action' => 'sfm:DescribeFile',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'DeleteMemoryNode',
                'description' => '',
                'operationType' => 'delete',
                'ramAction' => [
                    'action' => 'sfm:DeleteMemoryNode',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'GetMemory',
                'description' => '',
                'operationType' => 'get',
                'ramAction' => [
                    'action' => 'sfm:GetMemory',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'CreateMemory',
                'description' => '',
                'operationType' => 'create',
                'ramAction' => [
                    'action' => 'sfm:CreateMemory',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'DeleteIndex',
                'description' => '',
                'operationType' => 'none',
                'ramAction' => [
                    'action' => 'sfm:DeleteIndex',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'DeleteIndexDocument',
                'description' => '',
                'operationType' => 'delete',
                'ramAction' => [
                    'action' => 'sfm:DeleteIndexDocument',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'GetIndexJobStatus',
                'description' => '',
                'operationType' => 'get',
                'ramAction' => [
                    'action' => 'sfm:GetIndexJobStatus',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'AddFilesFromAuthorizedOss',
                'description' => '',
                'operationType' => 'create',
                'ramAction' => [
                    'action' => 'sfm:AddFilesFromAuthorizedOss',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'GetPromptTemplate',
                'description' => '',
                'operationType' => 'get',
                'ramAction' => [
                    'action' => 'sfm:GetPromptTemplate',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'GetIndexMonitor',
                'description' => '',
                'operationType' => 'get',
                'ramAction' => [
                    'action' => 'sfm:GetIndexMonitor',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'UpdateChunk',
                'description' => '',
                'operationType' => 'update',
                'ramAction' => [
                    'action' => 'sfm:UpdateChunk',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'CreatePromptTemplate',
                'description' => '',
                'operationType' => 'create',
                'ramAction' => [
                    'action' => 'sfm:CreatePromptTemplate',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'ListPromptTemplates',
                'description' => '',
                'operationType' => 'list',
                'ramAction' => [
                    'action' => 'sfm:ListPromptTemplates',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'GetMemoryNode',
                'description' => '',
                'operationType' => 'get',
                'ramAction' => [
                    'action' => 'sfm:GetMemoryNode',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'DeleteFiles',
                'description' => '',
                'operationType' => 'delete',
                'ramAction' => [
                    'action' => 'sfm:DeleteFiles',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'GetAlipayUrl',
                'description' => '',
                'operationType' => 'none',
                'ramAction' => [
                    'action' => 'sfm:GetAlipayUrl',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
            [
                'apiName' => 'ApplyFileUploadLease',
                'description' => '',
                'operationType' => 'none',
                'ramAction' => [
                    'action' => 'sfm:ApplyFileUploadLease',
                    'authLevel' => 'operate',
                    'actionConditions' => [],
                    'resources' => [
                        ['validationType' => 'always', 'product' => 'SFM', 'resourceType' => 'All Resource', 'arn' => '*'],
                    ],
                ],
            ],
        ],
        'resourceTypes' => [],
    ],
];