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
|
<?php return [
'version' => '1.0',
'info' => ['style' => 'RPC', 'product' => 'AIRegistry', 'version' => '2026-03-17'],
'directories' => [
'CreateNamespace', 'CreatePrompt', 'CreatePromptVersion', 'CreateSkillDraft', 'DeleteNamespace', 'DeletePrompt', 'DeleteSkill', 'DownloadSkillVersionViaOss', 'ForcePublishSkillVersion', 'GetNamespace', 'GetPrompt', 'GetPromptVersion', 'GetSkillDetail', 'GetSkillImportFileUrl', 'GetSkillVersionDetail', 'ListNamespaces', 'ListPromptVersions', 'ListPrompts', 'ListSkills', 'OfflineSkill',
'OnlineSkill', 'PublishSkillVersion', 'SubmitPromptVersion', 'SubmitSkillVersion', 'UpdateNamespace', 'UpdatePrompt', 'UpdatePromptVersion', 'UpdateSkillBizTags', 'UpdateSkillDraft', 'UpdateSkillLabels', 'UpdateSkillScope', 'UploadSkillViaOss',
],
'components' => [
'schemas' => [],
],
'apis' => [
'CreateNamespace' => [
'summary' => '创建 AI Registry 的命名空间,返回对应的命名空间 ID',
'methods' => ['get', 'post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREmseSJUUGO'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'Name',
'in' => 'query',
'schema' => ['title' => '工作空间名称', 'description' => '工作空间名称', 'type' => 'string', 'required' => false, 'example' => '我的Prompt空间'],
],
[
'name' => 'Description',
'in' => 'query',
'schema' => ['title' => '工作空间描述', 'description' => '工作空间描述', 'type' => 'string', 'required' => false, 'example' => '用于管理客服场景的Prompt'],
],
[
'name' => 'Tags',
'in' => 'query',
'schema' => ['title' => '标签,多个用逗号分隔', 'description' => '标签,多个用逗号分隔', 'type' => 'string', 'required' => false, 'example' => 'customer-service,production'],
],
[
'name' => 'ScanPolicy',
'in' => 'query',
'schema' => ['title' => '扫描策略。', 'description' => '扫描策略。'."\n"
."\n"
.'包含两个配置项:'."\n"
.'- minBlockRiskLevel:风险等级拦截'."\n"
.' - high: 拦截高风险'."\n"
.' - medium: 拦截中 / 高风险'."\n"
.' - low: 拦截高 / 中 / 低所有风险'."\n"
.'- maxSkipRatio:最大跳过比例,若扫描跳过比例大于该值,视为不通过。', 'type' => 'string', 'required' => false, 'example' => '{"minBlockRiskLevel":"medium","maxSkipRatio":0.2}'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'RestResult<CreateNamespaceResult>',
'description' => 'RestResult<CreateNamespaceResult>',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求 ID', 'type' => 'string', 'example' => 'D9E87E66-9EF0-5C10-A5E6-924020A0C9B7'],
'Data' => [
'description' => '命名空间创建结果',
'type' => 'object',
'properties' => [
'NamespaceId' => ['description' => '命名空间ID。默认命名空间不可查询、更改或删除。', 'type' => 'string', 'example' => 'a2a9310a-9d91-4283-b4e2-844f6d45fe64'],
],
],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'NamespaceQuotaLimited', 'errorMessage' => 'User has reached the maximum namespace limit .', 'description' => '单个用户创建的命名空间数量达到上限'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '创建 AI Registry 命名空间',
'changeSet' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D9E87E66-9EF0-5C10-A5E6-924020A0C9B7\\",\\n \\"Data\\": {\\n \\"NamespaceId\\": \\"a2a9310a-9d91-4283-b4e2-844f6d45fe64\\"\\n }\\n}","type":"json"}]',
],
'CreatePrompt' => [
'summary' => '创建提示词,并创建该提示词的初始的草稿版本内容',
'methods' => ['get', 'post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREmseSJUUGO'],
],
'parameters' => [
[
'name' => 'NamespaceId',
'in' => 'query',
'schema' => ['title' => '工作空间 ID', 'description' => '工作空间 ID', 'type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000'],
],
[
'name' => 'PromptKey',
'in' => 'query',
'schema' => ['title' => 'Prompt 唯一标识', 'description' => '提示词 唯一标识', 'type' => 'string', 'required' => true, 'example' => 'customer-service-qa'],
],
[
'name' => 'Template',
'in' => 'query',
'schema' => ['title' => 'Prompt 模板内容', 'description' => '提示词初始草稿版本的模板内容', 'type' => 'string', 'required' => true, 'example' => '你是一个客服助手,请回答:{question}'],
],
[
'name' => 'TargetVersion',
'in' => 'query',
'schema' => ['title' => '指定草稿版本号,不填则默认 0.0.1', 'description' => '提示词初始草稿版本的版本号,不填则默认 0.0.1', 'type' => 'string', 'required' => false, 'example' => '0.0.1'],
],
[
'name' => 'Variables',
'in' => 'query',
'schema' => ['title' => '变量定义,JSON 数组字符串', 'description' => '变量定义,JSON 数组字符串,支持名称 name, 描述 description, 默认值 defaultValue 参数', 'type' => 'string', 'required' => false, 'example' => '[{"name":"question","defaultValue":"Hello"}]'],
],
[
'name' => 'CommitMsg',
'in' => 'query',
'schema' => ['title' => '提交说明', 'description' => '提交说明', 'type' => 'string', 'required' => false, 'example' => '初始版本'],
],
[
'name' => 'Description',
'in' => 'query',
'schema' => ['title' => 'Prompt 描述', 'description' => '提示词描述', 'type' => 'string', 'required' => false, 'example' => '客服问答 Prompt'],
],
[
'name' => 'BizTags',
'in' => 'query',
'schema' => ['title' => '业务标签,逗号分隔', 'description' => '业务标签,逗号分隔', 'type' => 'string', 'required' => false, 'example' => 'cs,qa,support'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'RestResult<String>',
'description' => 'RestResult<String>',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求 ID', 'type' => 'string', 'example' => 'D9E87E66-9EF0-5C10-A5E6-924020A0C9B7'],
'Data' => ['description' => '创建的提示词的草稿版本的版本号', 'type' => 'string', 'example' => '0.0.1'],
],
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => '当前用户没有操作对应资源的权限'],
],
409 => [
['errorCode' => 'PromptAlreadyExist', 'errorMessage' => 'The specified prompt already exists.', 'description' => '创建的提示词已经存在'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '创建提示词',
'changeSet' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D9E87E66-9EF0-5C10-A5E6-924020A0C9B7\\",\\n \\"Data\\": \\"0.0.1\\"\\n}","type":"json"}]',
],
'CreatePromptVersion' => [
'summary' => '新建提示词的版本,新版本默认为草稿状态。如果草稿版本已经存在,则会报错',
'methods' => ['get', 'post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREmseSJUUGO'],
],
'parameters' => [
[
'name' => 'NamespaceId',
'in' => 'query',
'schema' => ['title' => '工作空间 ID', 'description' => '工作空间 ID', 'type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000'],
],
[
'name' => 'PromptKey',
'in' => 'query',
'schema' => ['title' => 'Prompt 唯一标识', 'description' => 'Prompt 唯一标识', 'type' => 'string', 'required' => true, 'example' => 'customer-service-qa'],
],
[
'name' => 'Template',
'in' => 'query',
'schema' => ['title' => 'Prompt 模板内容,与 basedOnVersion 二选一', 'description' => 'Prompt 模板内容,与 basedOnVersion 二选一', 'type' => 'string', 'required' => false, 'example' => '你是一个客服助手,请回答:{question}'],
],
[
'name' => 'BasedOnVersion',
'in' => 'query',
'schema' => ['title' => '基于此版本 fork,与 template 二选一', 'description' => '基于此版本 fork,与 template 二选一', 'type' => 'string', 'required' => false, 'example' => '0.0.1'],
],
[
'name' => 'TargetVersion',
'in' => 'query',
'schema' => ['title' => '指定草稿版本号,不填则自动递增', 'description' => '指定草稿版本号,不填则自动递增', 'type' => 'string', 'required' => false, 'example' => '0.0.2'],
],
[
'name' => 'Variables',
'in' => 'query',
'schema' => ['title' => '变量定义,JSON 数组字符串', 'description' => '变量定义,JSON 数组字符串', 'type' => 'string', 'required' => false, 'example' => '[{"name":"question","defaultValue":"Hello"}]'],
],
[
'name' => 'CommitMsg',
'in' => 'query',
'schema' => ['title' => '提交说明', 'description' => '提交说明', 'type' => 'string', 'required' => false, 'example' => '初始版本'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'RestResult<String>',
'description' => 'RestResult<String>',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求 ID', 'type' => 'string', 'example' => 'D9E87E66-9EF0-5C10-A5E6-924020A0C9B7'],
'Data' => ['description' => '创建的草稿版本的版本号', 'type' => 'string', 'example' => '0.0.1'],
],
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => '当前用户没有操作对应资源的权限'],
],
409 => [
['errorCode' => 'PromptVersionAlreadyExist', 'errorMessage' => 'The specified prompt version already exist.', 'description' => '提示词版本已存在'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '新建提示词的版本',
'changeSet' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D9E87E66-9EF0-5C10-A5E6-924020A0C9B7\\",\\n \\"Data\\": \\"0.0.1\\"\\n}","type":"json"}]',
],
'CreateSkillDraft' => [
'summary' => '创建 Skill 草稿,返回 Skill 版本',
'methods' => ['get', 'post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREmseSJUUGO'],
],
'parameters' => [
[
'name' => 'NamespaceId',
'in' => 'query',
'schema' => ['title' => '工作空间 ID', 'description' => '工作空间 ID', 'type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000'],
],
[
'name' => 'SkillName',
'in' => 'query',
'schema' => ['title' => 'Skill 名称', 'description' => 'Skill 名称', 'type' => 'string', 'required' => true, 'example' => 'customer-service-skill'],
],
[
'name' => 'SkillCard',
'in' => 'query',
'schema' => ['title' => 'Skill 卡片 JSON 字符串,包含完整 Skill 信息', 'description' => 'Skill 卡片 JSON 字符串,包含完整 Skill 信息', 'type' => 'string', 'required' => false, 'example' => '{"name":"customer-service-skill","description":"customer-skill-desc","skillMd":"---\\nname: customer-service-skill\\ndescription: customer-skill-desc\\n---\\ncustomer-skill-content"}'],
],
[
'name' => 'BasedOnVersion',
'in' => 'query',
'schema' => ['title' => '基于此版本 fork,不填则创建新 Skill', 'description' => '基于此版本 fork,不填则基于最新版本创建新 Skill', 'type' => 'string', 'required' => false, 'example' => '0.0.1'],
],
[
'name' => 'TargetVersion',
'in' => 'query',
'schema' => ['title' => '指定草稿版本号,不填则自动递增', 'description' => '指定草稿版本号,不填则自动递增', 'type' => 'string', 'required' => false, 'example' => '0.0.2'],
],
[
'name' => 'CommitMsg',
'in' => 'query',
'schema' => ['title' => '提交说明', 'description' => '提交说明', 'type' => 'string', 'required' => false, 'example' => '初始版本'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'RestResult<String>',
'description' => 'RestResult<String>',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求 ID', 'type' => 'string', 'example' => 'D9E87E66-9EF0-5C10-A5E6-924020A0C9B7'],
'Data' => ['description' => 'Skill 版本。', 'type' => 'string', 'example' => '3aa3fb14dddd4bdb941cf4536e4e918b'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidParameter', 'errorMessage' => 'Parameter Error.', 'description' => '参数缺失、格式错误或校验不通过'],
],
403 => [
['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => '当前用户没有操作对应资源的权限'],
],
[
['errorCode' => 'SkillNotFound', 'errorMessage' => 'The specified skill does not exist.', 'description' => '当前操作的 Skill 不存在'],
],
409 => [
['errorCode' => 'SkillAlreadyExist', 'errorMessage' => 'Skill already exist.', 'description' => '对应的 Skill 已存在'],
],
500 => [
['errorCode' => 'SysyemError', 'errorMessage' => 'System error.', 'description' => '系统异常'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '创建Skill草稿',
'changeSet' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D9E87E66-9EF0-5C10-A5E6-924020A0C9B7\\",\\n \\"Data\\": \\"3aa3fb14dddd4bdb941cf4536e4e918b\\"\\n}","type":"json"}]',
],
'DeleteNamespace' => [
'summary' => '删除 AI 治理中心的指定命名空间,删除时会检查命名空间下有无使用中的资源存在(Skill/Prompt 等),如果存在则删除失败',
'methods' => ['get', 'post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREmseSJUUGO'],
],
'parameters' => [
[
'name' => 'NamespaceId',
'in' => 'query',
'schema' => ['title' => '工作空间 ID', 'description' => '工作空间 ID', 'type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'RestResult<Boolean>',
'description' => 'RestResult<Boolean>',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求 ID', 'type' => 'string', 'example' => 'D9E87E66-9EF0-5C10-A5E6-924020A0C9B7'],
'Data' => ['description' => '命名空间删除结果', 'type' => 'boolean', 'example' => 'True'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'NamespaceInUse', 'errorMessage' => 'The namespace is in use and cannot be deleted.', 'description' => '命名空间下使用中,还有未删除的资源'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '删除 AI 治理中心的指定命名空间',
'changeSet' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D9E87E66-9EF0-5C10-A5E6-924020A0C9B7\\",\\n \\"Data\\": true\\n}","type":"json"}]',
],
'DeletePrompt' => [
'methods' => ['get', 'post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREmseSJUUGO'],
],
'parameters' => [
[
'name' => 'NamespaceId',
'in' => 'query',
'schema' => ['title' => '工作空间 ID', 'description' => '工作空间 ID', 'type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000'],
],
[
'name' => 'PromptKey',
'in' => 'query',
'schema' => ['title' => 'Prompt 唯一标识', 'description' => 'Prompt 唯一标识', 'type' => 'string', 'required' => true, 'example' => 'customer-service-qa'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'RestResult<Boolean>',
'description' => 'RestResult<Boolean>',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求 ID', 'type' => 'string', 'example' => 'D9E87E66-9EF0-5C10-A5E6-924020A0C9B7'],
'Data' => ['description' => '是否成功', 'type' => 'boolean', 'example' => 'true'],
],
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => '当前用户没有操作对应资源的权限'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '删除提示词',
'summary' => '删除指定的提示词',
'changeSet' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D9E87E66-9EF0-5C10-A5E6-924020A0C9B7\\",\\n \\"Data\\": true\\n}","type":"json"}]',
],
'DeleteSkill' => [
'summary' => '删除指定 Skill。',
'methods' => ['get', 'post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREmseSJUUGO'],
],
'parameters' => [
[
'name' => 'NamespaceId',
'in' => 'query',
'schema' => ['title' => '工作空间 ID', 'description' => '工作空间 ID', 'type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000'],
],
[
'name' => 'SkillName',
'in' => 'query',
'schema' => ['title' => 'Skill 名称', 'description' => 'Skill 名称', 'type' => 'string', 'required' => true, 'example' => 'customer-service-skill'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'RestResult<Void>',
'description' => 'RestResult<Void>',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '195BF118-9AEF-5F3F-9A58-D88A77EB07DE'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidParameter', 'errorMessage' => 'Parameter Error.', 'description' => '参数缺失、格式错误或校验不通过'],
],
403 => [
['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => '当前用户没有操作对应资源的权限'],
],
[
['errorCode' => 'SkillNotFound', 'errorMessage' => 'The specified skill does not exist.', 'description' => '当前操作的 Skill 不存在'],
],
409 => [
['errorCode' => 'SkillAlreadyExist', 'errorMessage' => 'Skill already exist.', 'description' => '对应的 Skill 已存在'],
],
500 => [
['errorCode' => 'SysyemError', 'errorMessage' => 'System error.', 'description' => '系统异常'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '删除Skill',
'changeSet' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"195BF118-9AEF-5F3F-9A58-D88A77EB07DE\\"\\n}","type":"json"}]',
],
'DownloadSkillVersionViaOss' => [
'summary' => '通过 OSS 下载 Skill 版本 - 返回 OSS 下载 URL',
'methods' => ['get', 'post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREmseSJUUGO'],
],
'parameters' => [
[
'name' => 'NamespaceId',
'in' => 'query',
'schema' => ['title' => '工作空间 ID', 'description' => '工作空间 ID', 'type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000'],
],
[
'name' => 'SkillName',
'in' => 'query',
'schema' => ['title' => 'Skill 名称', 'description' => 'Skill 名称', 'type' => 'string', 'required' => true, 'example' => 'customer-service-skill'],
],
[
'name' => 'SkillVersion',
'in' => 'query',
'schema' => ['title' => '版本号', 'description' => '版本号', 'type' => 'string', 'required' => true, 'example' => '0.0.1'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'RestResult<String>',
'description' => 'RestResult<String>',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求 ID', 'type' => 'string', 'example' => 'D9E87E66-9EF0-5C10-A5E6-924020A0C9B7'],
'Data' => ['description' => '通过OSS下载 Skill 的 Url。', 'type' => 'string', 'example' => 'https://sample-bucket.oss-region.aliyuncs.com/xxxxxx'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidParameter', 'errorMessage' => 'Parameter Error.', 'description' => '参数缺失、格式错误或校验不通过'],
],
403 => [
['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => '当前用户没有操作对应资源的权限'],
],
[
['errorCode' => 'SkillNotFound', 'errorMessage' => 'The specified skill does not exist.', 'description' => '当前操作的 Skill 不存在'],
],
409 => [
['errorCode' => 'SkillAlreadyExist', 'errorMessage' => 'Skill already exist.', 'description' => '对应的 Skill 已存在'],
],
500 => [
['errorCode' => 'SysyemError', 'errorMessage' => 'System error.', 'description' => '系统异常'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '通过 OSS 下载 Skill',
'changeSet' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D9E87E66-9EF0-5C10-A5E6-924020A0C9B7\\",\\n \\"Data\\": \\"https://sample-bucket.oss-region.aliyuncs.com/xxxxxx\\"\\n}","type":"json"}]',
],
'ForcePublishSkillVersion' => [
'summary' => '强制发布版本',
'methods' => ['get', 'post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREmseSJUUGO'],
],
'parameters' => [
[
'name' => 'NamespaceId',
'in' => 'query',
'schema' => ['title' => '工作空间 ID', 'description' => '工作空间 ID', 'type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000'],
],
[
'name' => 'SkillName',
'in' => 'query',
'schema' => ['title' => 'Skill 名称', 'description' => 'Skill 名称', 'type' => 'string', 'required' => true, 'example' => 'customer-service-skill'],
],
[
'name' => 'SkillVersion',
'in' => 'query',
'schema' => ['title' => '版本号', 'description' => '版本号', 'type' => 'string', 'required' => true, 'example' => '0.0.2'],
],
[
'name' => 'UpdateLatestLabel',
'in' => 'query',
'schema' => ['title' => '是否更新 latest 标签', 'description' => '是否更新 latest 标签', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'RestResult<Void>',
'description' => 'RestResult<Void>',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => 'D9E87E66-9EF0-5C10-A5E6-924020A0C9B7'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidParameter', 'errorMessage' => 'Parameter Error.', 'description' => '参数缺失、格式错误或校验不通过'],
],
403 => [
['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => '当前用户没有操作对应资源的权限'],
],
[
['errorCode' => 'SkillNotFound', 'errorMessage' => 'The specified skill does not exist.', 'description' => '当前操作的 Skill 不存在'],
],
409 => [
['errorCode' => 'SkillAlreadyExist', 'errorMessage' => 'Skill already exist.', 'description' => '对应的 Skill 已存在'],
],
500 => [
['errorCode' => 'SysyemError', 'errorMessage' => 'System error.', 'description' => '系统异常'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '强制发布 Skill',
'changeSet' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D9E87E66-9EF0-5C10-A5E6-924020A0C9B7\\"\\n}","type":"json"}]',
],
'GetNamespace' => [
'methods' => ['get', 'post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREmseSJUUGO'],
],
'parameters' => [
[
'name' => 'NamespaceId',
'in' => 'query',
'schema' => ['title' => '工作空间 ID', 'description' => '工作空间 ID', 'type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'RestResult<NamespaceInfo>',
'description' => 'RestResult<NamespaceInfo>',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求 ID', 'type' => 'string', 'example' => 'D9E87E66-9EF0-5C10-A5E6-924020A0C9B7'],
'Data' => [
'description' => '命名空间信息。',
'type' => 'object',
'properties' => [
'NamespaceId' => ['description' => '命名空间ID。', 'type' => 'string', 'example' => 'a2a9310a-9d91-4283-b4e2-844f6d45fe64'],
'Name' => ['description' => '命名空间名称。', 'type' => 'string', 'example' => 'magic:magic-cn-1us4sed5d01'],
'Description' => ['description' => '命名空间的描述信息', 'type' => 'string', 'example' => 'secret for bbtadmin'],
'Tags' => ['description' => '命名空间的标签', 'type' => 'string', 'example' => '{}'],
'Source' => ['description' => '命名空间的来源', 'type' => 'string', 'example' => 'magic:magic-cn-1us4sed5d01'],
'SourceIndex' => ['description' => '命名空间来源序号', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
'PromptCount' => ['description' => '命名空间下的提示词数量', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'CreatedTime' => ['description' => '命名空间创建时间', 'type' => 'string', 'example' => '2025-11-17T09:57:38+08:00'],
'SkillCount' => ['description' => '命名空间下的技能数量', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'ScanPolicy' => ['description' => '扫描策略。'."\n"
."\n"
.'包含两个配置项:'."\n"
.'- minBlockRiskLevel:风险等级拦截'."\n"
.' - high: 拦截高风险'."\n"
.' - medium: 拦截中 / 高风险'."\n"
.' - low: 拦截高 / 中 / 低所有风险'."\n"
.'- maxSkipRatio:最大跳过比例,若扫描跳过比例大于该值,视为不通过。', 'type' => 'string', 'example' => '{"minBlockRiskLevel":"medium","maxSkipRatio":0.2}'],
'PublicAccessEnabled' => ['type' => 'boolean'],
'PublicDomain' => ['type' => 'string'],
'IpWhitelist' => ['type' => 'string'],
],
],
],
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => '当前用户没有操作对应资源的权限'],
],
[
['errorCode' => 'NamespaceNotFound', 'errorMessage' => 'The specified namespace does not exist.', 'description' => '指定的命名空间不存在'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '查询 AI 治理中心命名空间详情',
'summary' => '查询 AI 治理中心命名空间详细信息',
'changeSet' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D9E87E66-9EF0-5C10-A5E6-924020A0C9B7\\",\\n \\"Data\\": {\\n \\"NamespaceId\\": \\"a2a9310a-9d91-4283-b4e2-844f6d45fe64\\",\\n \\"Name\\": \\"magic:magic-cn-1us4sed5d01\\",\\n \\"Description\\": \\"secret for bbtadmin\\",\\n \\"Tags\\": \\"{}\\",\\n \\"Source\\": \\"magic:magic-cn-1us4sed5d01\\",\\n \\"SourceIndex\\": 0,\\n \\"PromptCount\\": 1,\\n \\"CreatedTime\\": \\"2025-11-17T09:57:38+08:00\\",\\n \\"SkillCount\\": 1,\\n \\"ScanPolicy\\": \\"{\\\\\\"minBlockRiskLevel\\\\\\":\\\\\\"medium\\\\\\",\\\\\\"maxSkipRatio\\\\\\":0.2}\\",\\n \\"PublicAccessEnabled\\": true,\\n \\"PublicDomain\\": \\"\\",\\n \\"IpWhitelist\\": \\"\\"\\n }\\n}","type":"json"}]',
],
'GetPrompt' => [
'methods' => ['get', 'post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREmseSJUUGO'],
],
'parameters' => [
[
'name' => 'NamespaceId',
'in' => 'query',
'schema' => ['title' => '工作空间 ID', 'description' => '工作空间 ID', 'type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000'],
],
[
'name' => 'PromptKey',
'in' => 'query',
'schema' => ['title' => 'Prompt 唯一标识', 'description' => 'Prompt 唯一标识', 'type' => 'string', 'required' => true, 'example' => 'customer-service-qa'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'RestResult<PromptGovernanceInfo>',
'description' => 'RestResult<PromptGovernanceInfo>',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求 ID', 'type' => 'string', 'example' => 'D9E87E66-9EF0-5C10-A5E6-924020A0C9B7'],
'Data' => [
'description' => '返回结果',
'type' => 'object',
'properties' => [
'SchemaVersion' => ['description' => '模式版本', 'type' => 'integer', 'format' => 'int32', 'example' => '1.0'],
'PromptKey' => ['description' => '提示词 唯一标识', 'type' => 'string', 'example' => 'customer-service-qa'],
'Description' => ['description' => '提示词描述', 'type' => 'string', 'example' => 'Prompt for test'],
'BizTags' => [
'description' => '业务标签列表',
'type' => 'array',
'items' => ['description' => '业务标签', 'type' => 'string', 'example' => 'image-generation'],
],
'LatestVersion' => ['description' => '该提示词最新版本的版本号', 'type' => 'string', 'example' => '0.0.1'],
'GmtModified' => ['description' => '提示词修改时间', 'type' => 'integer', 'format' => 'int64', 'example' => '2025-11-13T02:11:53Z'],
'EditingVersion' => ['description' => '草稿版本的版本号,如果不存在草稿版本,则为空', 'type' => 'string', 'example' => '0.0.1'],
'ReviewingVersion' => ['description' => '提示词审核中的版本的版本号', 'type' => 'string', 'example' => '0.0.1'],
'OnlineCnt' => ['description' => '提示词在线的版本数量', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'Labels' => [
'description' => '提示词标签和版本的映射关系',
'type' => 'object',
'additionalProperties' => ['type' => 'string', 'example' => '{"prod":"0.0.1"}', 'description' => '提示词标签和版本的键值对'],
],
'Versions' => [
'description' => '版本号列表',
'type' => 'array',
'items' => ['description' => '版本号', 'type' => 'string', 'example' => '0.0.1'],
],
'VersionDetails' => [
'description' => '版本详细信息的列表',
'type' => 'array',
'items' => [
'description' => '版本详细信息',
'type' => 'object',
'properties' => [
'PromptKey' => ['description' => '提示词 唯一标识', 'type' => 'string', 'example' => 'customer-service-qa'],
'Version' => ['description' => '版本号', 'type' => 'string', 'example' => '0.0.1'],
'Status' => ['description' => '版本状态。草稿 draft / 正式 online', 'type' => 'string', 'example' => 'online'],
'CommitMsg' => ['description' => '该版本的提交信息', 'type' => 'string', 'example' => 'This is a test Version'],
'SrcUser' => ['description' => '该版本的创建者', 'type' => 'string', 'example' => 'admin'],
'GmtModified' => ['description' => '修改时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1627545952000'],
],
],
],
],
],
],
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => '当前用户没有操作对应资源的权限'],
],
[
['errorCode' => 'PromptNotFound', 'errorMessage' => 'The specified prompt does not exist.', 'description' => '当前操作的 Prompt 不存在'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '查询 Prompt 详情信息',
'summary' => '获取 Prompt 详情信息',
'changeSet' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D9E87E66-9EF0-5C10-A5E6-924020A0C9B7\\",\\n \\"Data\\": {\\n \\"SchemaVersion\\": 1,\\n \\"PromptKey\\": \\"customer-service-qa\\",\\n \\"Description\\": \\"Prompt for test\\",\\n \\"BizTags\\": [\\n \\"image-generation\\"\\n ],\\n \\"LatestVersion\\": \\"0.0.1\\",\\n \\"GmtModified\\": 0,\\n \\"EditingVersion\\": \\"0.0.1\\",\\n \\"ReviewingVersion\\": \\"0.0.1\\",\\n \\"OnlineCnt\\": 1,\\n \\"Labels\\": {\\n \\"key\\": \\"{\\\\\\"prod\\\\\\":\\\\\\"0.0.1\\\\\\"}\\"\\n },\\n \\"Versions\\": [\\n \\"0.0.1\\"\\n ],\\n \\"VersionDetails\\": [\\n {\\n \\"PromptKey\\": \\"customer-service-qa\\",\\n \\"Version\\": \\"0.0.1\\",\\n \\"Status\\": \\"online\\",\\n \\"CommitMsg\\": \\"This is a test Version\\",\\n \\"SrcUser\\": \\"admin\\",\\n \\"GmtModified\\": 1627545952000\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'GetPromptVersion' => [
'summary' => '查询提示词指定版本的详细信息。',
'methods' => ['get', 'post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREmseSJUUGO'],
],
'parameters' => [
[
'name' => 'NamespaceId',
'in' => 'query',
'schema' => ['title' => '工作空间 ID', 'description' => '工作空间 ID', 'type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000'],
],
[
'name' => 'PromptKey',
'in' => 'query',
'schema' => ['title' => 'Prompt 唯一标识', 'description' => 'Prompt 唯一标识', 'type' => 'string', 'required' => true, 'example' => 'customer-service-qa'],
],
[
'name' => 'PromptVersion',
'in' => 'query',
'schema' => ['title' => '版本号', 'description' => '版本号', 'type' => 'string', 'required' => true, 'example' => '0.0.1'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'RestResult<PromptVersionDetailInfo>',
'description' => 'RestResult<PromptVersionDetailInfo>',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求 ID', 'type' => 'string', 'example' => 'D9E87E66-9EF0-5C10-A5E6-924020A0C9B7'],
'Data' => [
'description' => '查询结果',
'type' => 'object',
'properties' => [
'PromptKey' => ['description' => '提示词 唯一标识', 'type' => 'string', 'example' => 'customer-service-qa'],
'Version' => ['description' => '版本号', 'type' => 'string', 'example' => '0.0.1'],
'Status' => ['description' => '版本状态。草稿 draft / 正式 online', 'type' => 'string', 'example' => 'online'],
'Template' => ['description' => '提示词版本的模板内容', 'type' => 'string', 'example' => 'You are a {{domain}} expert.'],
'CommitMsg' => ['description' => '该版本的提交信息', 'type' => 'string', 'example' => 'This is a test version'],
'SrcUser' => ['description' => '版本的创建者', 'type' => 'string', 'example' => 'admin'],
'GmtModified' => ['description' => '提示词修改时间', 'type' => 'integer', 'format' => 'int64', 'example' => '1605345828000'],
'Md5' => ['description' => '该版本提示词内容的md5', 'type' => 'string', 'example' => '93EF3AC0C56DDACB5A9E528BB1C825C8'],
'Variables' => [
'description' => '该版本的变量列表',
'type' => 'array',
'items' => [
'description' => '提示词变量',
'type' => 'object',
'properties' => [
'Name' => ['description' => '变量名称', 'type' => 'string', 'example' => 'domain'],
'DefaultValue' => ['description' => '默认值', 'type' => 'string', 'example' => 'code'],
'Description' => ['description' => '变量描述', 'type' => 'string', 'example' => 'domain'],
],
],
],
],
],
],
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => '当前用户没有操作对应资源的权限'],
],
[
['errorCode' => 'PromptVersionNotFound', 'errorMessage' => 'The specificed prompt version is illegal or not found.', 'description' => '指定的提示词版本不存在或者非法'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '查询提示词版本详细信息',
'changeSet' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D9E87E66-9EF0-5C10-A5E6-924020A0C9B7\\",\\n \\"Data\\": {\\n \\"PromptKey\\": \\"customer-service-qa\\",\\n \\"Version\\": \\"0.0.1\\",\\n \\"Status\\": \\"online\\",\\n \\"Template\\": \\"You are a {{domain}} expert.\\",\\n \\"CommitMsg\\": \\"This is a test version\\",\\n \\"SrcUser\\": \\"admin\\",\\n \\"GmtModified\\": 1605345828000,\\n \\"Md5\\": \\"93EF3AC0C56DDACB5A9E528BB1C825C8\\",\\n \\"Variables\\": [\\n {\\n \\"Name\\": \\"domain\\",\\n \\"DefaultValue\\": \\"code\\",\\n \\"Description\\": \\"domain\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'GetSkillDetail' => [
'summary' => '获取 Skill 的元数据和版本信息。',
'methods' => ['get', 'post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREmseSJUUGO'],
],
'parameters' => [
[
'name' => 'NamespaceId',
'in' => 'query',
'schema' => ['title' => '工作空间 ID', 'description' => '工作空间 ID', 'type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000'],
],
[
'name' => 'SkillName',
'in' => 'query',
'schema' => ['title' => 'Skill 名称', 'description' => 'Skill 名称', 'type' => 'string', 'required' => true, 'example' => 'customer-service-skill'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'RestResult<SkillGovernanceInfo>',
'description' => 'RestResult<SkillGovernanceInfo>',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '阿里云为该请求生成的唯一标识符。', 'type' => 'string', 'example' => 'C5272879-3C44-5E5A-8056-CB4E8EB36DCD'],
'Data' => [
'description' => '录像计划详细信息。',
'type' => 'object',
'properties' => [
'Versions' => [
'title' => '所有版本摘要列表',
'description' => '所有版本摘要列表',
'type' => 'array',
'items' => [
'description' => '数据结构。',
'type' => 'object',
'properties' => [
'Version' => ['description' => '版本号。', 'type' => 'string', 'example' => '2017-08-01'],
'Status' => ['description' => '资源状态', 'type' => 'string', 'example' => 'online'],
'Author' => ['description' => '作者', 'type' => 'string', 'example' => '22618'],
'Description' => ['description' => '备注。', 'type' => 'string', 'example' => 'dataphin_300067022_pre'],
'CreateTime' => ['description' => '文件创建的时间戳,单位为毫秒。', 'type' => 'integer', 'format' => 'int64', 'example' => '2025-12-02T02:12:01Z'],
'UpdateTime' => ['description' => '更新时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '2021-05-06T06:37Z'],
'PublishPipelineInfo' => ['description' => 'Skill 审核信息。', 'type' => 'string', 'example' => '{'."\n"
.' "executionId": "54408ebe-3c19-4e2e-82a3-f400cedfcd24",'."\n"
.' "status": "APPROVED",'."\n"
.' "pipeline": ['."\n"
.' {'."\n"
.' "nodeId": "fence",'."\n"
.' "executedAt": "2026-05-21T07:42:24.684194457Z",'."\n"
.' "passed": true,'."\n"
.' "messageType": "json",'."\n"
.' "message": {'."\n"
.' "resultCode": "PASS_PARTIAL_SKIP",'."\n"
.' "reports": ['."\n"
.' {'."\n"
.' "file": "SKILL.md",'."\n"
.' "taskId": "E25BDA44-6E10-51AF-B6AB-417EBB4CEF40",'."\n"
.' "riskLevel": "none"'."\n"
.' },'."\n"
.' {'."\n"
.' "file": "pdf-3/presentation.pptx",'."\n"
.' "taskId": "BEEC2D66-B9AE-5C4F-828D-BFAB6E561891",'."\n"
.' "riskLevel": "skip",'."\n"
.' "errorCode": "500",'."\n"
.' "errorMessage": "Scan failed. Please contact us through the online service."'."\n"
.' }'."\n"
.' ]'."\n"
.' },'."\n"
.' "checkpoints": ['."\n"
.' {'."\n"
.' "title": "promptAttack",'."\n"
.' "passed": true'."\n"
.' },'."\n"
.' {'."\n"
.' "title": "contentModeration",'."\n"
.' "passed": true'."\n"
.' }'."\n"
.' ],'."\n"
.' "durationMs": 18933'."\n"
.' }'."\n"
.' ]'."\n"
.'}'],
'DownloadCount' => ['description' => '下载次数', 'type' => 'integer', 'format' => 'int64', 'example' => '100'],
'CommitMsg' => ['description' => '版本提交信息。', 'type' => 'string', 'example' => '版本1说明。'],
],
],
],
'Writeable' => ['description' => '是否可以编辑。', 'type' => 'boolean', 'example' => 'true'],
'UpdateTime' => ['title' => '更新时间', 'description' => '更新时间', 'type' => 'integer', 'format' => 'int64', 'example' => '2021-05-06T06:37Z'],
'Enable' => ['title' => '是否启用', 'description' => '是否启用', 'type' => 'boolean', 'example' => 'false'],
'BizTags' => ['title' => '业务标签 JSON 数组字符串', 'description' => '业务标签 JSON 数组字符串', 'type' => 'string', 'example' => 'test'],
'From' => ['title' => '来源标记', 'description' => '来源标记', 'type' => 'string', 'example' => 'aqs'],
'Scope' => ['title' => '可见性范围', 'description' => '可见性范围', 'type' => 'string', 'example' => 'PUBLIC'],
'Labels' => [
'title' => '标签映射',
'description' => '版本标签映射',
'type' => 'object',
'additionalProperties' => ['type' => 'string', 'example' => '0.0.1', 'description' => 'Skill 版本'],
],
'EditingVersion' => ['title' => '正在编辑的版本', 'description' => '正在编辑的版本', 'type' => 'string', 'example' => '0.0.3'],
'ReviewingVersion' => ['title' => '审核中的版本', 'description' => '审核中的版本', 'type' => 'string', 'example' => '0.0.2'],
'OnlineCnt' => ['title' => '在线版本数量', 'description' => '在线版本数量', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'DownloadCount' => ['title' => '总下载次数', 'description' => '总下载次数', 'type' => 'integer', 'format' => 'int64', 'example' => '100'],
'NamespaceId' => ['description' => '命名空间ID。', 'type' => 'string', 'example' => 'cn-beijing:beta'],
'Name' => ['description' => 'Skill 名称。', 'type' => 'string', 'example' => '0521B历史1'],
'Description' => ['description' => 'Skill 描述。', 'type' => 'string', 'example' => 'kms-rds-rduphoenix-val-mysql kms key'],
'Owner' => ['description' => '负责人的UID。', 'type' => 'string', 'example' => '199458752209xxxx'],
],
],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidParameter', 'errorMessage' => 'Parameter Error.', 'description' => '参数缺失、格式错误或校验不通过'],
],
403 => [
['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => '当前用户没有操作对应资源的权限'],
],
[
['errorCode' => 'SkillNotFound', 'errorMessage' => 'The specified skill does not exist.', 'description' => '当前操作的 Skill 不存在'],
],
409 => [
['errorCode' => 'SkillAlreadyExist', 'errorMessage' => 'Skill already exist.', 'description' => '对应的 Skill 已存在'],
],
500 => [
['errorCode' => 'SysyemError', 'errorMessage' => 'System error.', 'description' => '系统异常'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '获取 Skill 详情',
'changeSet' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"C5272879-3C44-5E5A-8056-CB4E8EB36DCD\\",\\n \\"Data\\": {\\n \\"Versions\\": [\\n {\\n \\"Version\\": \\"2017-08-01\\",\\n \\"Status\\": \\"online\\",\\n \\"Author\\": \\"22618\\",\\n \\"Description\\": \\"dataphin_300067022_pre\\",\\n \\"CreateTime\\": 0,\\n \\"UpdateTime\\": 0,\\n \\"PublishPipelineInfo\\": \\"{\\\\n \\\\\\"executionId\\\\\\": \\\\\\"54408ebe-3c19-4e2e-82a3-f400cedfcd24\\\\\\",\\\\n \\\\\\"status\\\\\\": \\\\\\"APPROVED\\\\\\",\\\\n \\\\\\"pipeline\\\\\\": [\\\\n {\\\\n \\\\\\"nodeId\\\\\\": \\\\\\"fence\\\\\\",\\\\n \\\\\\"executedAt\\\\\\": \\\\\\"2026-05-21T07:42:24.684194457Z\\\\\\",\\\\n \\\\\\"passed\\\\\\": true,\\\\n \\\\\\"messageType\\\\\\": \\\\\\"json\\\\\\",\\\\n \\\\\\"message\\\\\\": {\\\\n \\\\\\"resultCode\\\\\\": \\\\\\"PASS_PARTIAL_SKIP\\\\\\",\\\\n \\\\\\"reports\\\\\\": [\\\\n {\\\\n \\\\\\"file\\\\\\": \\\\\\"SKILL.md\\\\\\",\\\\n \\\\\\"taskId\\\\\\": \\\\\\"E25BDA44-6E10-51AF-B6AB-417EBB4CEF40\\\\\\",\\\\n \\\\\\"riskLevel\\\\\\": \\\\\\"none\\\\\\"\\\\n },\\\\n {\\\\n \\\\\\"file\\\\\\": \\\\\\"pdf-3/presentation.pptx\\\\\\",\\\\n \\\\\\"taskId\\\\\\": \\\\\\"BEEC2D66-B9AE-5C4F-828D-BFAB6E561891\\\\\\",\\\\n \\\\\\"riskLevel\\\\\\": \\\\\\"skip\\\\\\",\\\\n \\\\\\"errorCode\\\\\\": \\\\\\"500\\\\\\",\\\\n \\\\\\"errorMessage\\\\\\": \\\\\\"Scan failed. Please contact us through the online service.\\\\\\"\\\\n }\\\\n ]\\\\n },\\\\n \\\\\\"checkpoints\\\\\\": [\\\\n {\\\\n \\\\\\"title\\\\\\": \\\\\\"promptAttack\\\\\\",\\\\n \\\\\\"passed\\\\\\": true\\\\n },\\\\n {\\\\n \\\\\\"title\\\\\\": \\\\\\"contentModeration\\\\\\",\\\\n \\\\\\"passed\\\\\\": true\\\\n }\\\\n ],\\\\n \\\\\\"durationMs\\\\\\": 18933\\\\n }\\\\n ]\\\\n}\\",\\n \\"DownloadCount\\": 100,\\n \\"CommitMsg\\": \\"版本1说明。\\"\\n }\\n ],\\n \\"Writeable\\": true,\\n \\"UpdateTime\\": 0,\\n \\"Enable\\": false,\\n \\"BizTags\\": \\"test\\",\\n \\"From\\": \\"aqs\\",\\n \\"Scope\\": \\"PUBLIC\\",\\n \\"Labels\\": {\\n \\"key\\": \\"0.0.1\\"\\n },\\n \\"EditingVersion\\": \\"0.0.3\\",\\n \\"ReviewingVersion\\": \\"0.0.2\\",\\n \\"OnlineCnt\\": 1,\\n \\"DownloadCount\\": 100,\\n \\"NamespaceId\\": \\"cn-beijing:beta\\",\\n \\"Name\\": \\"0521B历史1\\",\\n \\"Description\\": \\"kms-rds-rduphoenix-val-mysql kms key\\",\\n \\"Owner\\": \\"199458752209xxxx\\"\\n }\\n}","type":"json"}]',
],
'GetSkillImportFileUrl' => [
'summary' => '获取上传 Skill 到 OSS 的 URL,客户端使用返回的 URL 执行 PUT 上传 Skill。',
'methods' => ['get', 'post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREmseSJUUGO'],
],
'parameters' => [
[
'name' => 'NamespaceId',
'in' => 'query',
'schema' => ['title' => '工作空间 ID', 'description' => '工作空间 ID', 'type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000'],
],
[
'name' => 'ContentType',
'in' => 'query',
'schema' => ['title' => '上传文件 Content-Type,默认 application/zip', 'description' => '上传文件 Content-Type,默认 application/zip', 'type' => 'string', 'required' => false, 'example' => 'application/zip'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'RestResult<AiRegistrySkillImportFileUrlResponse>',
'description' => 'RestResult<AiRegistrySkillImportFileUrlResponse>',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => 'D9E87E66-9EF0-5C10-A5E6-924020A0C9B7'],
'Data' => [
'description' => '返回结果',
'type' => 'object',
'properties' => [
'UploadUrl' => ['description' => '文件上传 URL,客户端使用此 URL 上传文件', 'type' => 'string', 'example' => 'https://mse-shared-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/skill/import/199xxxxxxxx0842/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx/2026/06/10/xxxx-xxxx-xxxx-xxxx-xxxxxxxxxx/1781082579097.zip?Expires=1781083479&OSSAccessKeyId=STS.NZXGXTD2yoDLd5PfsYxjFrvBJ&Signature=Loyyzzzzzzzz%3D&security-token=CAIStgxxxxxxx'],
'OssObjectName' => ['description' => '已授权OSS空间的文件名。'."\n"
."\n"
.'> 在FaceContrastPicture、FaceContrastPictureUrl、CertifyId、OSS四种图片传入方式中,选择其中一种传入即可。', 'type' => 'string', 'example' => '1190239587066411/skill/import/5e993afe-f629-4619-9ac2-51b125300cdd/2026/06/09/35059076-5992-4a71-a706-89230e57f2a2/ui-ux-pro-max.zip'],
'ContentType' => ['description' => '文件类型。', 'type' => 'string', 'example' => 'application/zip'],
'MaxSize' => ['description' => '允许上传文件的最大大小(单位MB)。', 'type' => 'string', 'example' => '10'],
],
],
],
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '获取上传 Skill 到 OSS 的链接',
'changeSet' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D9E87E66-9EF0-5C10-A5E6-924020A0C9B7\\",\\n \\"Data\\": {\\n \\"UploadUrl\\": \\"https://mse-shared-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/skill/import/199xxxxxxxx0842/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx/2026/06/10/xxxx-xxxx-xxxx-xxxx-xxxxxxxxxx/1781082579097.zip?Expires=1781083479&OSSAccessKeyId=STS.NZXGXTD2yoDLd5PfsYxjFrvBJ&Signature=Loyyzzzzzzzz%3D&security-token=CAIStgxxxxxxx\\",\\n \\"OssObjectName\\": \\"1190239587066411/skill/import/5e993afe-f629-4619-9ac2-51b125300cdd/2026/06/09/35059076-5992-4a71-a706-89230e57f2a2/ui-ux-pro-max.zip\\",\\n \\"ContentType\\": \\"application/zip\\",\\n \\"MaxSize\\": \\"10\\"\\n }\\n}","type":"json"}]',
],
'GetSkillVersionDetail' => [
'summary' => '获取指定版本详情',
'methods' => ['get', 'post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREmseSJUUGO'],
],
'parameters' => [
[
'name' => 'NamespaceId',
'in' => 'query',
'schema' => ['title' => '工作空间 ID', 'description' => '工作空间 ID', 'type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000'],
],
[
'name' => 'SkillName',
'in' => 'query',
'schema' => ['title' => 'Skill 名称', 'description' => 'Skill 名称', 'type' => 'string', 'required' => true, 'example' => 'customer-service-skill'],
],
[
'name' => 'SkillVersion',
'in' => 'query',
'schema' => ['title' => '版本号', 'description' => '版本号', 'type' => 'string', 'required' => true, 'example' => '0.0.1'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'RestResult<SkillVersionDetailInfo>',
'description' => 'RestResult<SkillVersionDetailInfo>',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '阿里云为该请求生成的唯一标识符。', 'type' => 'string', 'example' => '3EF4C9EC-0D5B-5AD6-8585-4D2AAA22B1E3'],
'Data' => [
'description' => '录像计划详细信息。',
'type' => 'object',
'properties' => [
'SkillMd' => ['title' => 'Skill 卡片内容(SKILL.md)', 'description' => 'Skill 卡片内容(SKILL.md)', 'type' => 'string', 'example' => '---'."\n"
.'name: hello-world'."\n"
.'description: Say hello to users'."\n"
.'---'."\n"
."\n"
.'Hello World Skill'],
'Resource' => [
'title' => '资源映射(key 为资源名称)',
'description' => '资源映射(key 为资源名称)',
'type' => 'object',
'additionalProperties' => [
'type' => 'object',
'properties' => [
'Name' => ['title' => '资源名称(包含文件扩展名)', 'description' => '资源名称(包含文件扩展名)', 'type' => 'string', 'example' => 'sample.md'],
'Type' => ['title' => '资源类型:template, data, script 等', 'description' => '资源类型:template, data, script 等', 'type' => 'string', 'example' => 'script'],
'Content' => ['title' => '资源内容', 'description' => '资源内容', 'type' => 'string', 'example' => '这是一个示例文件'],
'Metadata' => [
'title' => '资源元数据',
'description' => '资源元数据',
'type' => 'object',
'additionalProperties' => ['type' => 'any', 'description' => '元数据的 key', 'example' => 'version'],
],
],
'description' => 'Resource Key',
],
],
'NamespaceId' => ['description' => '应用所属的命名空间ID。', 'type' => 'string', 'example' => 'f52aea1c-774e-4cc1-9dd1-d91432484d44'],
'Name' => ['description' => 'Skill 名称。', 'type' => 'string', 'example' => '业务模式'],
'Description' => ['description' => '当前版本的 Skill 的描述。', 'type' => 'string', 'example' => 'secret for bbtadmin'],
],
],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidParameter', 'errorMessage' => 'Parameter Error.', 'description' => '参数缺失、格式错误或校验不通过'],
],
403 => [
['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => '当前用户没有操作对应资源的权限'],
],
[
['errorCode' => 'SkillNotFound', 'errorMessage' => 'The specified skill does not exist.', 'description' => '当前操作的 Skill 不存在'],
],
409 => [
['errorCode' => 'SkillAlreadyExist', 'errorMessage' => 'Skill already exist.', 'description' => '对应的 Skill 已存在'],
],
500 => [
['errorCode' => 'SysyemError', 'errorMessage' => 'System error.', 'description' => '系统异常'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '获取 Skill 版本详情',
'changeSet' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"3EF4C9EC-0D5B-5AD6-8585-4D2AAA22B1E3\\",\\n \\"Data\\": {\\n \\"SkillMd\\": \\"---\\\\nname: hello-world\\\\ndescription: Say hello to users\\\\n---\\\\n\\\\nHello World Skill\\",\\n \\"Resource\\": {\\n \\"key\\": {\\n \\"Name\\": \\"sample.md\\",\\n \\"Type\\": \\"script\\",\\n \\"Content\\": \\"这是一个示例文件\\",\\n \\"Metadata\\": {\\n \\"key\\": \\"version\\"\\n }\\n }\\n },\\n \\"NamespaceId\\": \\"f52aea1c-774e-4cc1-9dd1-d91432484d44\\",\\n \\"Name\\": \\"业务模式\\",\\n \\"Description\\": \\"secret for bbtadmin\\"\\n }\\n}","type":"json"}]',
],
'ListNamespaces' => [
'summary' => '列出 AI 治理中心的命名空间列表。',
'methods' => ['get', 'post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREmseSJUUGO'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'Tags',
'in' => 'query',
'schema' => ['title' => '按标签过滤,多个用逗号分隔,取交集匹配', 'description' => '按标签过滤,多个用逗号分隔,取交集匹配', 'type' => 'string', 'required' => false, 'example' => 'production,customer-service'],
],
[
'name' => 'Name',
'in' => 'query',
'schema' => ['title' => '按名称模糊搜索', 'description' => '按名称模糊搜索', 'type' => 'string', 'required' => false, 'example' => 'test-namespace'],
],
[
'name' => 'PageNo',
'in' => 'query',
'schema' => ['title' => '页码,默认 1', 'description' => '页码,默认 1', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['title' => '每页数量,默认 10', 'description' => '每页数量,默认 10', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'RestResult<PageNamespaceInfo>',
'description' => 'RestResult<PageNamespaceInfo>',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求 ID', 'type' => 'string', 'example' => 'D9E87E66-9EF0-5C10-A5E6-924020A0C9B7'],
'Data' => [
'description' => '命名空间创建结果',
'type' => 'object',
'properties' => [
'TotalCount' => ['description' => '总个数', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
'PageNumber' => ['description' => '页码', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'PageSize' => ['description' => '分页大小,默认为10。', 'type' => 'integer', 'format' => 'int32', 'example' => '50'],
'Items' => [
'description' => '返回数据条目',
'type' => 'array',
'items' => [
'description' => '-',
'type' => 'object',
'properties' => [
'NamespaceId' => ['description' => '命名空间ID。', 'type' => 'string', 'example' => '76d4b6e4-31bf-475a-8710-6217ec049c1f'],
'Name' => ['description' => '命名空间名称。', 'type' => 'string', 'example' => 'magic:magic-cn-1us4sed5d01'],
'Description' => ['description' => '命名空间的描述信息', 'type' => 'string', 'example' => 'Default project, auto-created by EMR.'],
'Tags' => ['description' => '命名空间的标签', 'type' => 'string', 'example' => 'qa,test'],
'Source' => ['description' => '命名空间的来源', 'type' => 'string', 'example' => 'magic:magic-cn-fpi4secsq01'],
'SourceIndex' => ['description' => '命名空间来源序号', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
'PromptCount' => ['description' => '命名空间下的提示词数量', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'CreatedTime' => ['description' => '命名空间创建时间', 'type' => 'string', 'example' => '2022-07-11T09:32:03+08:00'],
'SkillCount' => ['description' => '命名空间下的技能数量', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'PublicAccessEnabled' => ['title' => '是否开启公网访问。', 'type' => 'boolean'],
'PublicDomain' => ['title' => '公网访问域名。', 'type' => 'string'],
'IpWhitelist' => ['title' => '公网访问 IP 白名单。', 'type' => 'string'],
],
],
],
],
],
],
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '列出 AI 治理中心的命名空间',
'changeSet' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D9E87E66-9EF0-5C10-A5E6-924020A0C9B7\\",\\n \\"Data\\": {\\n \\"TotalCount\\": 2,\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 50,\\n \\"Items\\": [\\n {\\n \\"NamespaceId\\": \\"76d4b6e4-31bf-475a-8710-6217ec049c1f\\",\\n \\"Name\\": \\"magic:magic-cn-1us4sed5d01\\",\\n \\"Description\\": \\"Default project, auto-created by EMR.\\",\\n \\"Tags\\": \\"qa,test\\",\\n \\"Source\\": \\"magic:magic-cn-fpi4secsq01\\",\\n \\"SourceIndex\\": 0,\\n \\"PromptCount\\": 1,\\n \\"CreatedTime\\": \\"2022-07-11T09:32:03+08:00\\",\\n \\"SkillCount\\": 1,\\n \\"PublicAccessEnabled\\": true,\\n \\"PublicDomain\\": \\"\\",\\n \\"IpWhitelist\\": \\"\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'ListPromptVersions' => [
'methods' => ['get', 'post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREmseSJUUGO'],
],
'parameters' => [
[
'name' => 'NamespaceId',
'in' => 'query',
'schema' => ['title' => '工作空间 ID', 'description' => '工作空间 ID', 'type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000'],
],
[
'name' => 'PromptKey',
'in' => 'query',
'schema' => ['title' => 'Prompt 唯一标识', 'description' => 'Prompt 唯一标识', 'type' => 'string', 'required' => true, 'example' => 'customer-service-qa'],
],
[
'name' => 'PageNo',
'in' => 'query',
'schema' => ['title' => '页码,默认 1', 'description' => '页码,默认 1', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['title' => '每页数量,默认 10', 'description' => '每页数量,默认 10', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'RestResult<PagePromptVersionInfo>',
'description' => 'RestResult<PagePromptVersionInfo>',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求 ID', 'type' => 'string', 'example' => 'D9E87E66-9EF0-5C10-A5E6-924020A0C9B7'],
'Data' => [
'description' => '创建的提示词的草稿版本的版本号',
'type' => 'object',
'properties' => [
'TotalCount' => ['description' => '总数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'PageNumber' => ['description' => '分页序号,范围1-100。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'."\n"],
'PagesAvailable' => ['description' => '可用页数', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'PageItems' => [
'description' => '提示词版本列表',
'type' => 'array',
'items' => [
'description' => '提示词版本信息',
'type' => 'object',
'properties' => [
'PromptKey' => ['description' => '提示词唯一标识', 'type' => 'string', 'example' => 'customer-service-qa'],
'Version' => ['description' => '版本号', 'type' => 'string', 'example' => '0.0.1'],
'Status' => ['description' => '提示词版本状态', 'type' => 'string', 'example' => 'draft'],
'CommitMsg' => ['description' => '提示词版本提交信息', 'type' => 'string', 'example' => 'This is a test version'],
'SrcUser' => ['description' => '提示词版本创建者', 'type' => 'string', 'example' => 'admin'],
'GmtModified' => ['description' => '修改日期'."\n"
."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '2026-01-04T16:09:29+08:00'],
],
],
],
],
],
],
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => '当前用户没有操作对应资源的权限'],
],
[
['errorCode' => 'PromptNotFound', 'errorMessage' => 'The specified prompt does not exist.', 'description' => '当前操作的 Prompt 不存在'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '列出指定提示词的所有版本',
'summary' => '列出Prompt版本列表',
'changeSet' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D9E87E66-9EF0-5C10-A5E6-924020A0C9B7\\",\\n \\"Data\\": {\\n \\"TotalCount\\": 1,\\n \\"PageNumber\\": 1,\\n \\"PagesAvailable\\": 1,\\n \\"PageItems\\": [\\n {\\n \\"PromptKey\\": \\"customer-service-qa\\",\\n \\"Version\\": \\"0.0.1\\",\\n \\"Status\\": \\"draft\\",\\n \\"CommitMsg\\": \\"This is a test version\\",\\n \\"SrcUser\\": \\"admin\\",\\n \\"GmtModified\\": 0\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'ListPrompts' => [
'summary' => '列出命名空间下的提示词列表。',
'methods' => ['get', 'post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREmseSJUUGO'],
],
'parameters' => [
[
'name' => 'NamespaceId',
'in' => 'query',
'schema' => ['title' => '工作空间 ID', 'description' => '命名空间 ID', 'type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000'],
],
[
'name' => 'PromptKey',
'in' => 'query',
'schema' => ['title' => '过滤关键词', 'description' => '要查找的提示词的标识,可选', 'type' => 'string', 'required' => false, 'example' => 'customer'],
],
[
'name' => 'Search',
'in' => 'query',
'schema' => ['title' => '搜索模式:accurate(精确)或 blur(模糊)', 'description' => '搜索模式:accurate(精确)或 blur(模糊)', 'type' => 'string', 'required' => false, 'example' => 'blur'],
],
[
'name' => 'BizTags',
'in' => 'query',
'schema' => ['title' => '按业务标签过滤,逗号分隔', 'description' => '按业务标签过滤,逗号分隔', 'type' => 'string', 'required' => false, 'example' => 'cs,qa'],
],
[
'name' => 'PageNo',
'in' => 'query',
'schema' => ['title' => '页码,默认 1', 'description' => '页码,默认 1', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['title' => '每页数量,默认 10,最大 50', 'description' => '每页数量,默认 10,最大 50', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'RestResult<PagePromptInfo>',
'description' => 'RestResult<PagePromptInfo>',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求 ID', 'type' => 'string', 'example' => 'D9E87E66-9EF0-5C10-A5E6-924020A0C9B7'],
'Data' => [
'description' => '返回结果',
'type' => 'object',
'properties' => [
'TotalCount' => ['description' => '提示词总数量', 'type' => 'integer', 'format' => 'int32', 'example' => '5'],
'PageNumber' => ['description' => '页码', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'PagesAvailable' => ['description' => '可用页数', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'PageItems' => [
'description' => '提示词列表',
'type' => 'array',
'items' => [
'description' => '提示词信息',
'type' => 'object',
'properties' => [
'SchemaVersion' => ['description' => '提示词模式版本号', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'PromptKey' => ['description' => '提示词唯一标识', 'type' => 'string', 'example' => 'customer'],
'Description' => ['description' => '描述。', 'type' => 'string', 'example' => 'test prompt'],
'BizTags' => [
'description' => '业务标签列表',
'type' => 'array',
'items' => ['description' => '业务标签', 'type' => 'string', 'example' => 'test'],
],
'LatestVersion' => ['description' => '该提示词的最新版本号', 'type' => 'string', 'example' => '0.0.1'],
'GmtModified' => ['description' => '提示词修改时间', 'type' => 'integer', 'format' => 'int64', 'example' => '2026-04-22 11:51:03'],
'EditingVersion' => ['description' => '提示词草稿版本的版本号,如果不存在草稿版本,则为空', 'type' => 'string', 'example' => '0.0.1'],
'ReviewingVersion' => ['description' => '提示词正在审核中的版本的版本号,如果不存在审核中的版本,则为空', 'type' => 'string', 'example' => '0.0.1'],
'OnlineCnt' => ['description' => '提示词在线版本的数量', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'Labels' => [
'description' => '提示词版本和标签的映射关系',
'type' => 'object',
'additionalProperties' => ['type' => 'string', 'example' => '{"prod":"0.0.1"}', 'description' => '提示词版本标签的键值对'],
],
],
],
],
],
],
],
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => '当前用户没有操作对应资源的权限'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '列出命名空间下的提示词列表',
'changeSet' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D9E87E66-9EF0-5C10-A5E6-924020A0C9B7\\",\\n \\"Data\\": {\\n \\"TotalCount\\": 5,\\n \\"PageNumber\\": 1,\\n \\"PagesAvailable\\": 1,\\n \\"PageItems\\": [\\n {\\n \\"SchemaVersion\\": 1,\\n \\"PromptKey\\": \\"customer\\",\\n \\"Description\\": \\"test prompt\\",\\n \\"BizTags\\": [\\n \\"test\\"\\n ],\\n \\"LatestVersion\\": \\"0.0.1\\",\\n \\"GmtModified\\": 0,\\n \\"EditingVersion\\": \\"0.0.1\\",\\n \\"ReviewingVersion\\": \\"0.0.1\\",\\n \\"OnlineCnt\\": 1,\\n \\"Labels\\": {\\n \\"key\\": \\"{\\\\\\"prod\\\\\\":\\\\\\"0.0.1\\\\\\"}\\"\\n }\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'ListSkills' => [
'summary' => '列出 Skills',
'methods' => ['get', 'post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREmseSJUUGO'],
],
'parameters' => [
[
'name' => 'NamespaceId',
'in' => 'query',
'schema' => ['title' => '工作空间 ID', 'description' => '工作空间 ID', 'type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000'],
],
[
'name' => 'SkillName',
'in' => 'query',
'schema' => ['title' => '过滤关键词', 'description' => '过滤关键词', 'type' => 'string', 'required' => false, 'example' => 'customer'],
],
[
'name' => 'Search',
'in' => 'query',
'schema' => ['title' => '搜索模式:accurate(精确)或 blur(模糊)', 'description' => '搜索模式:accurate(精确)或 blur(模糊)', 'type' => 'string', 'required' => false, 'example' => 'blur'],
],
[
'name' => 'OrderBy',
'in' => 'query',
'schema' => ['title' => '排序字段,支持 download_count,默认为 gmt_modified', 'description' => '排序字段,支持 download_count,默认为 gmt_modified', 'type' => 'string', 'required' => false, 'example' => 'download_count'],
],
[
'name' => 'Owner',
'in' => 'query',
'schema' => ['title' => '按所有者过滤', 'description' => '按所有者过滤', 'type' => 'string', 'required' => false, 'example' => 'user123'],
],
[
'name' => 'Scope',
'in' => 'query',
'schema' => ['title' => '按可见性过滤:PUBLIC 或 PRIVATE', 'description' => '按可见性过滤:PUBLIC 或 PRIVATE', 'type' => 'string', 'required' => false, 'example' => 'PUBLIC'],
],
[
'name' => 'PageNo',
'in' => 'query',
'schema' => ['title' => '页码,默认 1', 'description' => '页码,默认 1', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
],
[
'name' => 'PageSize',
'in' => 'query',
'schema' => ['title' => '每页数量,默认 10,最大 50', 'description' => '每页数量,默认 10,最大 50', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'RestResult<PageSkillInfo>',
'description' => 'RestResult<PageSkillInfo>',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '195BF118-9AEF-5F3F-9A58-D88A77EB07DE'],
'Data' => [
'description' => '调用成功时,返回的规则信息列表。详情参见**RuleInfo**信息。'."\n"
."\n"
.'> 返回规则信息按照规则创建时间倒序排列。',
'type' => 'object',
'properties' => [
'TotalCount' => ['description' => '任务总数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
'PageNumber' => ['description' => '分页序号', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'PagesAvailable' => ['description' => 'pagesAvailable.', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
'PageItems' => [
'description' => 'mcp server信息',
'type' => 'array',
'items' => [
'description' => 'mcp server信息',
'type' => 'object',
'properties' => [
'UpdateTime' => ['title' => '更新时间', 'description' => '更新时间', 'type' => 'integer', 'format' => 'int64', 'example' => '2025-03-05T19:24:43.798'],
'Enable' => ['title' => '是否启用', 'description' => '是否启用', 'type' => 'boolean', 'example' => 'false'],
'BizTags' => ['title' => '业务标签 JSON 数组字符串', 'description' => '业务标签 JSON 数组字符串', 'type' => 'string', 'example' => 'test'],
'From' => ['title' => '来源标记', 'description' => '来源标记', 'type' => 'string', 'example' => 'aqs'],
'Scope' => ['title' => '可见性范围', 'description' => '可见性范围', 'type' => 'string', 'example' => 'rd-yORclL'],
'Labels' => [
'title' => '标签映射',
'description' => '标签映射',
'type' => 'object',
'additionalProperties' => ['type' => 'string', 'example' => 'latest', 'description' => '标签的Key。'],
],
'EditingVersion' => ['title' => '正在编辑的版本', 'description' => '正在编辑的版本', 'type' => 'string', 'example' => '0.0.3'],
'ReviewingVersion' => ['title' => '审核中的版本', 'description' => '审核中的版本', 'type' => 'string', 'example' => '0.0.2'],
'OnlineCnt' => ['title' => '在线版本数量', 'description' => '在线版本数量', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'DownloadCount' => ['title' => '总下载次数', 'description' => '总下载次数', 'type' => 'integer', 'format' => 'int64', 'example' => '100'],
'NamespaceId' => ['description' => '库所属组或者企业空间 ID', 'type' => 'string', 'example' => 'cn-hangzhou:creatulize-test'],
'Name' => ['description' => '名称', 'type' => 'string', 'example' => 'OCR品牌'],
'Description' => ['description' => '描述。', 'type' => 'string', 'example' => 'secret for bbtadmin'],
'Owner' => ['description' => '责任人的账号 ID。', 'type' => 'string', 'example' => 'manual'],
'Writeable' => ['description' => '是否可以编辑。', 'type' => 'boolean'],
],
],
],
],
],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidParameter', 'errorMessage' => 'Parameter Error.', 'description' => '参数缺失、格式错误或校验不通过'],
],
403 => [
['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => '当前用户没有操作对应资源的权限'],
],
[
['errorCode' => 'SkillNotFound', 'errorMessage' => 'The specified skill does not exist.', 'description' => '当前操作的 Skill 不存在'],
],
409 => [
['errorCode' => 'SkillAlreadyExist', 'errorMessage' => 'Skill already exist.', 'description' => '对应的 Skill 已存在'],
],
500 => [
['errorCode' => 'SysyemError', 'errorMessage' => 'System error.', 'description' => '系统异常'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '列出 Skills',
'changeSet' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"195BF118-9AEF-5F3F-9A58-D88A77EB07DE\\",\\n \\"Data\\": {\\n \\"TotalCount\\": 0,\\n \\"PageNumber\\": 1,\\n \\"PagesAvailable\\": 10,\\n \\"PageItems\\": [\\n {\\n \\"UpdateTime\\": 0,\\n \\"Enable\\": false,\\n \\"BizTags\\": \\"test\\",\\n \\"From\\": \\"aqs\\",\\n \\"Scope\\": \\"rd-yORclL\\",\\n \\"Labels\\": {\\n \\"key\\": \\"latest\\"\\n },\\n \\"EditingVersion\\": \\"0.0.3\\",\\n \\"ReviewingVersion\\": \\"0.0.2\\",\\n \\"OnlineCnt\\": 1,\\n \\"DownloadCount\\": 100,\\n \\"NamespaceId\\": \\"cn-hangzhou:creatulize-test\\",\\n \\"Name\\": \\"OCR品牌\\",\\n \\"Description\\": \\"secret for bbtadmin\\",\\n \\"Owner\\": \\"manual\\",\\n \\"Writeable\\": true\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'OfflineSkill' => [
'summary' => '下线 Skill 或者 Skill 的某个版本。',
'methods' => ['get', 'post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREmseSJUUGO'],
],
'parameters' => [
[
'name' => 'NamespaceId',
'in' => 'query',
'schema' => ['title' => '工作空间 ID', 'description' => '工作空间 ID', 'type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000'],
],
[
'name' => 'SkillName',
'in' => 'query',
'schema' => ['title' => 'Skill 名称', 'description' => 'Skill 名称', 'type' => 'string', 'required' => true, 'example' => 'customer-service-skill'],
],
[
'name' => 'Scope',
'in' => 'query',
'schema' => ['title' => '操作范围:skill(整个 Skill)或 version(指定版本)', 'description' => '操作范围:skill(整个 Skill)或 version(指定版本)', 'type' => 'string', 'required' => false, 'example' => 'version'],
],
[
'name' => 'SkillVersion',
'in' => 'query',
'schema' => ['title' => '版本号(当 scope 为 version 时必填)', 'description' => '版本号(当 scope 为 version 时必填)', 'type' => 'string', 'required' => false, 'example' => '0.0.2'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'RestResult<Void>',
'description' => 'RestResult<Void>',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求 ID', 'type' => 'string', 'example' => 'D9E87E66-9EF0-5C10-A5E6-924020A0C9B7'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidParameter', 'errorMessage' => 'Parameter Error.', 'description' => '参数缺失、格式错误或校验不通过'],
],
403 => [
['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => '当前用户没有操作对应资源的权限'],
],
[
['errorCode' => 'SkillNotFound', 'errorMessage' => 'The specified skill does not exist.', 'description' => '当前操作的 Skill 不存在'],
],
409 => [
['errorCode' => 'SkillAlreadyExist', 'errorMessage' => 'Skill already exist.', 'description' => '对应的 Skill 已存在'],
],
500 => [
['errorCode' => 'SysyemError', 'errorMessage' => 'System error.', 'description' => '系统异常'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '下线 Skill',
'changeSet' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D9E87E66-9EF0-5C10-A5E6-924020A0C9B7\\"\\n}","type":"json"}]',
],
'OnlineSkill' => [
'summary' => '上线 Skill 或者 Skill 的某个版本。',
'methods' => ['get', 'post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREmseSJUUGO'],
],
'parameters' => [
[
'name' => 'NamespaceId',
'in' => 'query',
'schema' => ['title' => '工作空间 ID', 'description' => '工作空间 ID', 'type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000'],
],
[
'name' => 'SkillName',
'in' => 'query',
'schema' => ['title' => 'Skill 名称', 'description' => 'Skill 名称', 'type' => 'string', 'required' => true, 'example' => 'customer-service-skill'],
],
[
'name' => 'Scope',
'in' => 'query',
'schema' => ['title' => '操作范围:skill(整个 Skill)或 version(指定版本)', 'description' => '操作范围:skill(整个 Skill)或 version(指定版本)', 'type' => 'string', 'required' => false, 'example' => 'version'],
],
[
'name' => 'SkillVersion',
'in' => 'query',
'schema' => ['title' => '版本号(当 scope 为 version 时必填)', 'description' => '版本号(当 scope 为 version 时必填)', 'type' => 'string', 'required' => false, 'example' => '0.0.2'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'RestResult<Void>',
'description' => 'RestResult<Void>',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求 ID', 'type' => 'string', 'example' => 'D9E87E66-9EF0-5C10-A5E6-924020A0C9B7'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidParameter', 'errorMessage' => 'Parameter Error.', 'description' => '参数缺失、格式错误或校验不通过'],
],
403 => [
['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => '当前用户没有操作对应资源的权限'],
],
[
['errorCode' => 'SkillNotFound', 'errorMessage' => 'The specified skill does not exist.', 'description' => '当前操作的 Skill 不存在'],
],
409 => [
['errorCode' => 'SkillAlreadyExist', 'errorMessage' => 'Skill already exist.', 'description' => '对应的 Skill 已存在'],
],
500 => [
['errorCode' => 'SysyemError', 'errorMessage' => 'System error.', 'description' => '系统异常'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '上线 Skill',
'changeSet' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D9E87E66-9EF0-5C10-A5E6-924020A0C9B7\\"\\n}","type":"json"}]',
],
'PublishSkillVersion' => [
'summary' => '发布 Skill 的某个版本。',
'methods' => ['get', 'post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREmseSJUUGO'],
],
'parameters' => [
[
'name' => 'NamespaceId',
'in' => 'query',
'schema' => ['title' => '工作空间 ID', 'description' => '工作空间 ID', 'type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000'],
],
[
'name' => 'SkillName',
'in' => 'query',
'schema' => ['title' => 'Skill 名称', 'description' => 'Skill 名称', 'type' => 'string', 'required' => true, 'example' => 'customer-service-skill'],
],
[
'name' => 'SkillVersion',
'in' => 'query',
'schema' => ['title' => '版本号', 'description' => '版本号', 'type' => 'string', 'required' => true, 'example' => '0.0.2'],
],
[
'name' => 'UpdateLatestLabel',
'in' => 'query',
'schema' => ['title' => '是否更新 latest 标签', 'description' => '是否更新 latest 标签', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'RestResult<Void>',
'description' => 'RestResult<Void>',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '本次调用请求的ID,是由阿里云为该请求生成的唯一标识符,可用于排查和定位问题。', 'type' => 'string', 'example' => '5D26736A-7CB1-5133-9D51-7F7451BBB2C3'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidParameter', 'errorMessage' => 'Parameter Error.', 'description' => '参数缺失、格式错误或校验不通过'],
],
403 => [
['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => '当前用户没有操作对应资源的权限'],
],
[
['errorCode' => 'SkillNotFound', 'errorMessage' => 'The specified skill does not exist.', 'description' => '当前操作的 Skill 不存在'],
],
409 => [
['errorCode' => 'SkillAlreadyExist', 'errorMessage' => 'Skill already exist.', 'description' => '对应的 Skill 已存在'],
],
500 => [
['errorCode' => 'SysyemError', 'errorMessage' => 'System error.', 'description' => '系统异常'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '发布 Skill 版本',
'changeSet' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5D26736A-7CB1-5133-9D51-7F7451BBB2C3\\"\\n}","type":"json"}]',
],
'SubmitPromptVersion' => [
'methods' => ['get', 'post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREmseSJUUGO'],
],
'parameters' => [
[
'name' => 'NamespaceId',
'in' => 'query',
'schema' => ['title' => '工作空间 ID', 'description' => '工作空间 ID', 'type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000'],
],
[
'name' => 'PromptKey',
'in' => 'query',
'schema' => ['title' => 'Prompt 唯一标识', 'description' => 'Prompt 唯一标识', 'type' => 'string', 'required' => true, 'example' => 'customer-service-qa'],
],
[
'name' => 'PromptVersion',
'in' => 'query',
'schema' => ['title' => '要提交的版本号,不填则提交当前草稿', 'description' => '要提交的版本号,不填则默认提交当前的草稿版本', 'type' => 'string', 'required' => false, 'example' => '0.0.1'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'RestResult<String>',
'description' => 'RestResult<String>',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求 ID', 'type' => 'string', 'example' => 'D9E87E66-9EF0-5C10-A5E6-924020A0C9B7'],
'Data' => ['description' => '提交的版本的版本号', 'type' => 'string', 'example' => '0.0.1'],
],
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => '当前用户没有操作对应资源的权限'],
],
[
['errorCode' => 'PromptVersionNotFound', 'errorMessage' => 'The specificed prompt version is illegal or not found.', 'description' => '指定的提示词版本不存在或者非法'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '将提示词的草稿版本提交发布为正式版本',
'summary' => '将提示词的草稿版本提交发布为正式版本。要求指定的版本必须为草稿版本。',
'changeSet' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D9E87E66-9EF0-5C10-A5E6-924020A0C9B7\\",\\n \\"Data\\": \\"0.0.1\\"\\n}","type":"json"}]',
],
'SubmitSkillVersion' => [
'methods' => ['get', 'post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREmseSJUUGO'],
],
'parameters' => [
[
'name' => 'NamespaceId',
'in' => 'query',
'schema' => ['title' => '工作空间 ID', 'description' => '工作空间 ID', 'type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000'],
],
[
'name' => 'SkillName',
'in' => 'query',
'schema' => ['title' => 'Skill 名称', 'description' => 'Skill 名称', 'type' => 'string', 'required' => true, 'example' => 'customer-service-skill'],
],
[
'name' => 'SkillVersion',
'in' => 'query',
'schema' => ['title' => '草稿版本号', 'description' => '草稿版本号', 'type' => 'string', 'required' => true, 'example' => '0.0.2'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'RestResult<String>',
'description' => 'RestResult<String>',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求ID', 'type' => 'string', 'example' => 'BE66410A-37F8-55C5-8471-589CA195760C'],
'Data' => ['description' => 'Skill 版本。', 'type' => 'string', 'example' => 'ba9b5c2466dc408c9fcd9df72bcd762a'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidParameter', 'errorMessage' => 'Parameter Error.', 'description' => '参数缺失、格式错误或校验不通过'],
],
403 => [
['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => '当前用户没有操作对应资源的权限'],
],
[
['errorCode' => 'SkillNotFound', 'errorMessage' => 'The specified skill does not exist.', 'description' => '当前操作的 Skill 不存在'],
],
409 => [
['errorCode' => 'SkillAlreadyExist', 'errorMessage' => 'Skill already exist.', 'description' => '对应的 Skill 已存在'],
],
500 => [
['errorCode' => 'SysyemError', 'errorMessage' => 'System error.', 'description' => '系统异常'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '提交 Skill 版本',
'summary' => '将 Skill 的某个版本提交审核。',
'changeSet' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"BE66410A-37F8-55C5-8471-589CA195760C\\",\\n \\"Data\\": \\"ba9b5c2466dc408c9fcd9df72bcd762a\\"\\n}","type":"json"}]',
],
'UpdateNamespace' => [
'summary' => '更新命名空间信息',
'methods' => ['get', 'post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREmseSJUUGO'],
],
'parameters' => [
[
'name' => 'NamespaceId',
'in' => 'query',
'schema' => ['title' => '工作空间 ID', 'description' => '工作空间 ID', 'type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000'],
],
[
'name' => 'Name',
'in' => 'query',
'schema' => ['title' => '工作空间名称', 'description' => '工作空间名称', 'type' => 'string', 'required' => false, 'example' => '我的Prompt空间'],
],
[
'name' => 'Description',
'in' => 'query',
'schema' => ['title' => '工作空间描述', 'description' => '工作空间描述', 'type' => 'string', 'required' => false, 'example' => '用于管理客服场景的Prompt'],
],
[
'name' => 'Tags',
'in' => 'query',
'schema' => ['title' => '标签,多个用逗号分隔。传空串表示清空。', 'description' => '标签,多个用逗号分隔。传空串表示清空。', 'type' => 'string', 'required' => false, 'example' => 'customer-service,production'],
],
[
'name' => 'ScanPolicy',
'in' => 'query',
'schema' => ['description' => '扫描策略。'."\n"
."\n"
.'包含两个配置项:'."\n"
.'- minBlockRiskLevel:风险等级拦截'."\n"
.' - high: 拦截高风险'."\n"
.' - medium: 拦截中 / 高风险'."\n"
.' - low: 拦截高 / 中 / 低所有风险'."\n"
.'- maxSkipRatio:最大跳过比例,若扫描跳过比例大于该值,视为不通过。', 'type' => 'string', 'required' => false, 'example' => '{"minBlockRiskLevel":"medium","maxSkipRatio":0.2}'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'RestResult<Boolean>',
'description' => 'RestResult<Boolean>',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '阿里云为该请求生成的唯一标识符。', 'type' => 'string', 'example' => 'D9E87E66-9EF0-5C10-A5E6-924020A0C9B7'],
'Data' => ['description' => '是否成功', 'type' => 'boolean', 'example' => 'true'],
],
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '更新命名空间',
'changeSet' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D9E87E66-9EF0-5C10-A5E6-924020A0C9B7\\",\\n \\"Data\\": true\\n}","type":"json"}]',
],
'UpdatePrompt' => [
'summary' => '修改提示词的元数据,例如描述,业务标签等。',
'methods' => ['get', 'post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREmseSJUUGO'],
],
'parameters' => [
[
'name' => 'NamespaceId',
'in' => 'query',
'schema' => ['title' => '工作空间 ID', 'description' => '工作空间 ID', 'type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000'],
],
[
'name' => 'PromptKey',
'in' => 'query',
'schema' => ['title' => 'Prompt 唯一标识', 'description' => '提示词唯一标识', 'type' => 'string', 'required' => true, 'example' => 'customer-service-qa'],
],
[
'name' => 'Description',
'in' => 'query',
'schema' => ['title' => 'Prompt 描述', 'description' => '提示词描述', 'type' => 'string', 'required' => false, 'example' => '客服问答 Prompt'],
],
[
'name' => 'BizTags',
'in' => 'query',
'style' => 'json',
'schema' => [
'title' => '业务标签,字符串数组',
'description' => '业务标签列表,字符串数组',
'type' => 'array',
'items' => ['description' => '业务标签', 'type' => 'string', 'required' => false, 'example' => 'cs'],
'required' => false,
'example' => '["cs","qa","support"]',
],
],
[
'name' => 'Labels',
'in' => 'query',
'style' => 'json',
'schema' => ['description' => '提示词版本和标签的映射关系', 'type' => 'object', 'required' => false, 'example' => '{"latest":"0.0.1","stable":"0.0.1"}'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'RestResult<Boolean>',
'description' => 'RestResult<Boolean>',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求 ID', 'type' => 'string', 'example' => 'D9E87E66-9EF0-5C10-A5E6-924020A0C9B7'],
'Data' => ['description' => '修改结果', 'type' => 'boolean', 'example' => 'true'],
],
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => '当前用户没有操作对应资源的权限'],
],
[
['errorCode' => 'PromptNotFound', 'errorMessage' => 'The specified prompt does not exist.', 'description' => '当前操作的 Prompt 不存在'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '修改提示词的元数据',
'changeSet' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D9E87E66-9EF0-5C10-A5E6-924020A0C9B7\\",\\n \\"Data\\": true\\n}","type":"json"}]',
],
'UpdatePromptVersion' => [
'methods' => ['get', 'post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREmseSJUUGO'],
],
'parameters' => [
[
'name' => 'NamespaceId',
'in' => 'query',
'schema' => ['title' => '工作空间 ID', 'description' => '工作空间 ID', 'type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000'],
],
[
'name' => 'PromptKey',
'in' => 'query',
'schema' => ['title' => 'Prompt 唯一标识', 'description' => 'Prompt 唯一标识', 'type' => 'string', 'required' => true, 'example' => 'customer-service-qa'],
],
[
'name' => 'Template',
'in' => 'query',
'schema' => ['title' => '更新后的模板内容', 'description' => '更新后的模板内容', 'type' => 'string', 'required' => true, 'example' => '你是一个客服助手,请回答:{question}'],
],
[
'name' => 'Variables',
'in' => 'query',
'schema' => ['title' => '更新后的变量定义 JSON', 'description' => '更新后的变量定义 JSON', 'type' => 'string', 'required' => false, 'example' => '[{"name":"question","defaultValue":"Hello"}]'],
],
[
'name' => 'CommitMsg',
'in' => 'query',
'schema' => ['title' => '提交说明', 'description' => '提交说明', 'type' => 'string', 'required' => false, 'example' => '优化回答语气'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'RestResult<Boolean>',
'description' => 'RestResult<Boolean>',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '请求 ID', 'type' => 'string', 'example' => 'D9E87E66-9EF0-5C10-A5E6-924020A0C9B7'],
'Data' => ['description' => '修改结果', 'type' => 'boolean', 'example' => 'true'],
],
],
],
],
'errorCodes' => [
403 => [
['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => '当前用户没有操作对应资源的权限'],
],
[
['errorCode' => 'PromptVersionNotFound', 'errorMessage' => 'The specificed prompt version is illegal or not found.', 'description' => '指定的提示词版本不存在或者非法'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '更新提示词的草稿版本',
'summary' => '更新提示词版本内容。只支持修改提示词的草稿版本',
'changeSet' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D9E87E66-9EF0-5C10-A5E6-924020A0C9B7\\",\\n \\"Data\\": true\\n}","type":"json"}]',
],
'UpdateSkillBizTags' => [
'summary' => '更新业务标签',
'methods' => ['get', 'post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREmseSJUUGO'],
],
'parameters' => [
[
'name' => 'NamespaceId',
'in' => 'query',
'schema' => ['title' => '工作空间 ID', 'type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000', 'description' => '工作空间 ID'],
],
[
'name' => 'SkillName',
'in' => 'query',
'schema' => ['title' => 'Skill 名称', 'type' => 'string', 'required' => true, 'example' => 'customer-service-skill', 'description' => 'Skill 名称'],
],
[
'name' => 'BizTags',
'in' => 'query',
'schema' => ['title' => '业务标签 JSON 数组字符串', 'type' => 'string', 'required' => true, 'example' => '["cs","qa","support"]', 'description' => '业务标签 JSON 数组字符串'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'RestResult<Void>',
'type' => 'object',
'properties' => [
'RequestId' => ['type' => 'string', 'description' => ''],
],
'description' => 'RestResult<Void>',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidParameter', 'errorMessage' => 'Parameter Error.', 'description' => '参数缺失、格式错误或校验不通过'],
],
403 => [
['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => '当前用户没有操作对应资源的权限'],
],
[
['errorCode' => 'SkillNotFound', 'errorMessage' => 'The specified skill does not exist.', 'description' => '当前操作的 Skill 不存在'],
],
409 => [
['errorCode' => 'SkillAlreadyExist', 'errorMessage' => 'Skill already exist.', 'description' => '对应的 Skill 已存在'],
],
500 => [
['errorCode' => 'SysyemError', 'errorMessage' => 'System error.', 'description' => '系统异常'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '更新 Skill 业务标签',
'changeSet' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"\\"\\n}","type":"json"}]',
],
'UpdateSkillDraft' => [
'summary' => '更新 Draft',
'methods' => ['get', 'post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREmseSJUUGO'],
],
'parameters' => [
[
'name' => 'NamespaceId',
'in' => 'query',
'schema' => ['title' => '工作空间 ID', 'description' => '工作空间 ID', 'type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000'],
],
[
'name' => 'SkillName',
'in' => 'query',
'schema' => ['title' => 'Skill 名称', 'description' => 'Skill 名称', 'type' => 'string', 'required' => true, 'example' => 'customer-service-skill'],
],
[
'name' => 'SkillCard',
'in' => 'query',
'schema' => ['title' => 'Skill 卡片 JSON 字符串,包含完整 Skill 信息', 'description' => 'Skill 卡片 JSON 字符串,包含完整 Skill 信息', 'type' => 'string', 'required' => true, 'example' => '{"name":"customer-service-skill","description":"..."}'],
],
[
'name' => 'CommitMsg',
'in' => 'query',
'schema' => ['title' => '提交说明', 'description' => '提交说明', 'type' => 'string', 'required' => false, 'example' => '更新说明'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'RestResult<Void>',
'description' => 'RestResult<Void>',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '阿里云为该请求生成的唯一标识符。', 'type' => 'string', 'example' => '6F402E85-E6D9-5A79-9EAF-8A1B6DCE7F79'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidParameter', 'errorMessage' => 'Parameter Error.', 'description' => '参数缺失、格式错误或校验不通过'],
],
403 => [
['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => '当前用户没有操作对应资源的权限'],
],
[
['errorCode' => 'SkillNotFound', 'errorMessage' => 'The specified skill does not exist.', 'description' => '当前操作的 Skill 不存在'],
],
409 => [
['errorCode' => 'SkillAlreadyExist', 'errorMessage' => 'Skill already exist.', 'description' => '对应的 Skill 已存在'],
],
500 => [
['errorCode' => 'SysyemError', 'errorMessage' => 'System error.', 'description' => '系统异常'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '更新 Skill 草稿',
'changeSet' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"6F402E85-E6D9-5A79-9EAF-8A1B6DCE7F79\\"\\n}","type":"json"}]',
],
'UpdateSkillLabels' => [
'summary' => '更新版本标签',
'methods' => ['get', 'post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREmseSJUUGO'],
],
'parameters' => [
[
'name' => 'NamespaceId',
'in' => 'query',
'schema' => ['title' => '工作空间 ID', 'description' => '工作空间 ID', 'type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000'],
],
[
'name' => 'SkillName',
'in' => 'query',
'schema' => ['title' => 'Skill 名称', 'description' => 'Skill 名称', 'type' => 'string', 'required' => true, 'example' => 'customer-service-skill'],
],
[
'name' => 'Labels',
'in' => 'query',
'schema' => ['title' => '版本标签映射 JSON 字符串', 'description' => '版本标签映射 JSON 字符串', 'type' => 'string', 'required' => true, 'example' => '{"latest":"0.0.2","stable":"0.0.1"}'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'RestResult<Void>',
'description' => 'RestResult<Void>',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '阿里云为该请求生成的唯一标识符。', 'type' => 'string', 'example' => '195BF118-9AEF-5F3F-9A58-D88A77EB07DE'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidParameter', 'errorMessage' => 'Parameter Error.', 'description' => '参数缺失、格式错误或校验不通过'],
],
403 => [
['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => '当前用户没有操作对应资源的权限'],
],
[
['errorCode' => 'SkillNotFound', 'errorMessage' => 'The specified skill does not exist.', 'description' => '当前操作的 Skill 不存在'],
],
409 => [
['errorCode' => 'SkillAlreadyExist', 'errorMessage' => 'Skill already exist.', 'description' => '对应的 Skill 已存在'],
],
500 => [
['errorCode' => 'SysyemError', 'errorMessage' => 'System error.', 'description' => '系统异常'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '更新 Skill 版本标签',
'changeSet' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"195BF118-9AEF-5F3F-9A58-D88A77EB07DE\\"\\n}","type":"json"}]',
],
'UpdateSkillScope' => [
'summary' => '更新可见性',
'methods' => ['get', 'post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREmseSJUUGO'],
],
'parameters' => [
[
'name' => 'NamespaceId',
'in' => 'query',
'schema' => ['title' => '工作空间 ID', 'description' => '工作空间 ID', 'type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000'],
],
[
'name' => 'SkillName',
'in' => 'query',
'schema' => ['title' => 'Skill 名称', 'description' => 'Skill 名称', 'type' => 'string', 'required' => true, 'example' => 'customer-service-skill'],
],
[
'name' => 'Scope',
'in' => 'query',
'schema' => ['title' => '可见性', 'description' => '可见性', 'type' => 'string', 'required' => true, 'example' => 'PUBLIC'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'RestResult<Void>',
'description' => 'RestResult<Void>',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => '阿里云为该请求生成的唯一标识符。', 'type' => 'string', 'example' => 'F4BFD370-7466-5F56-ACE5-A2D11A26C6BB'],
],
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidParameter', 'errorMessage' => 'Parameter Error.', 'description' => '参数缺失、格式错误或校验不通过'],
],
403 => [
['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => '当前用户没有操作对应资源的权限'],
],
[
['errorCode' => 'SkillNotFound', 'errorMessage' => 'The specified skill does not exist.', 'description' => '当前操作的 Skill 不存在'],
],
409 => [
['errorCode' => 'SkillAlreadyExist', 'errorMessage' => 'Skill already exist.', 'description' => '对应的 Skill 已存在'],
],
500 => [
['errorCode' => 'SysyemError', 'errorMessage' => 'System error.', 'description' => '系统异常'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '更新 Skill 的可见性',
'changeSet' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F4BFD370-7466-5F56-ACE5-A2D11A26C6BB\\"\\n}","type":"json"}]',
],
'UploadSkillViaOss' => [
'methods' => ['get', 'post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREmseSJUUGO'],
],
'parameters' => [
[
'name' => 'NamespaceId',
'in' => 'query',
'schema' => ['title' => '工作空间 ID', 'type' => 'string', 'required' => true, 'example' => '550e8400-e29b-41d4-a716-446655440000', 'description' => ''],
],
[
'name' => 'OssObjectName',
'in' => 'query',
'schema' => ['title' => 'OSS 对象名称(路径)', 'type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'Overwrite',
'in' => 'query',
'schema' => ['title' => '是否覆盖已存在的 Skill,默认 false', 'type' => 'boolean', 'example' => 'false', 'description' => ''],
],
[
'name' => 'CommitMsg',
'in' => 'query',
'schema' => ['type' => 'string'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'RestResult<String>',
'type' => 'object',
'properties' => [
'RequestId' => ['type' => 'string', 'description' => ''],
'Data' => ['type' => 'string', 'description' => ''],
],
'description' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'InvalidParameter', 'errorMessage' => 'Parameter Error.', 'description' => '参数缺失、格式错误或校验不通过'],
],
403 => [
['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to access this resource.', 'description' => '当前用户没有操作对应资源的权限'],
],
[
['errorCode' => 'SkillNotFound', 'errorMessage' => 'The specified skill does not exist.', 'description' => '当前操作的 Skill 不存在'],
],
409 => [
['errorCode' => 'SkillAlreadyExist', 'errorMessage' => 'Skill already exist.', 'description' => '对应的 Skill 已存在'],
],
500 => [
['errorCode' => 'SysyemError', 'errorMessage' => 'System error.', 'description' => '系统异常'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '通过 OSS 上传 Skill',
'summary' => '通过 OSS 上传 Skill (ZIP) - 从 OSS 拉取文件内容后上传到 Nacos',
'changeSet' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"\\",\\n \\"Data\\": \\"\\"\\n}","type":"json"}]',
],
],
'endpoints' => [],
'errorCodes' => [
['code' => 'AgentSpecAlreadyExist', 'message' => 'AgentSpec already exist.', 'http_code' => 409, 'description' => '对应的 AgentSpec 已经存在'],
['code' => 'AgentSpecNotFound', 'message' => 'Corresponding agent spec not found.', 'http_code' => 404, 'description' => '对应的 AgentSpec 不存在'],
['code' => 'AlreadyExist', 'message' => 'Skill already exist.', 'http_code' => 409, 'description' => '对应的 Skill 已经存在'],
['code' => 'InvalidParameter', 'message' => 'Parameter Error.', 'http_code' => 400, 'description' => '参数缺失、格式错误或校验不通过'],
['code' => 'NamespaceInUse', 'message' => 'The namespace is in use and cannot be deleted.', 'http_code' => 400, 'description' => '命名空间下使用中,还有未删除的资源'],
['code' => 'NamespaceNotFound', 'message' => 'The specified namespace does not exist.', 'http_code' => 404, 'description' => '指定的命名空间不存在'],
['code' => 'NamespaceQuotaLimit', 'message' => 'User has reached the maximum namespace limit .', 'http_code' => 400, 'description' => '单个用户创建的命名空间数量达到上限'],
['code' => 'NamespaceQuotaLimited', 'message' => 'User has reached the maximum namespace limit .', 'http_code' => 400, 'description' => '单个用户创建的命名空间数量达到上限'],
['code' => 'NoPermission', 'message' => 'You are not authorized to access this resource.', 'http_code' => 403, 'description' => '当前用户没有操作对应资源的权限'],
['code' => 'PromptAlreadyExist', 'message' => 'The specified prompt already exists.', 'http_code' => 409, 'description' => '创建的提示词已经存在'],
['code' => 'PromptNotFound', 'message' => 'The specified prompt does not exist.', 'http_code' => 404, 'description' => '当前操作的 Prompt 不存在'],
['code' => 'PromptVersionAlreadyExist', 'message' => 'The specified prompt version already exist.', 'http_code' => 409, 'description' => '提示词版本已存在'],
['code' => 'PromptVersionNotFound', 'message' => 'The specificed prompt version is illegal or not found.', 'http_code' => 404, 'description' => '指定的提示词版本不存在或者非法'],
['code' => 'SkillAlreadyExist', 'message' => 'Skill already exist.', 'http_code' => 409, 'description' => '对应的 Skill 已存在'],
['code' => 'SkillNotFound', 'message' => 'The specified skill does not exist.', 'http_code' => 404, 'description' => '当前操作的 Skill 不存在'],
['code' => 'SysyemError', 'message' => 'System error.', 'http_code' => 500, 'description' => '系统异常'],
],
'changeSet' => [],
];
|