extract_capability.schema.json 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  1. {
  2. "$schema": "http://json-schema.org/draft-07/schema#",
  3. "title": "extract_capability_output_v5",
  4. "type": "object",
  5. "required": [
  6. "skip",
  7. "skip_reason",
  8. "capabilities"
  9. ],
  10. "properties": {
  11. "skip": {
  12. "type": "boolean"
  13. },
  14. "skip_reason": {
  15. "type": "string"
  16. },
  17. "capabilities": {
  18. "type": "array",
  19. "items": {
  20. "type": "object",
  21. "required": [
  22. "action",
  23. "inputs",
  24. "outputs",
  25. "body",
  26. "effects",
  27. "stage",
  28. "tools",
  29. "criterion",
  30. "apply_to_draft",
  31. "unstructured_what"
  32. ],
  33. "properties": {
  34. "action": {
  35. "type": "object",
  36. "required": [
  37. "main_action",
  38. "mechanism"
  39. ],
  40. "properties": {
  41. "main_action": {
  42. "type": "string",
  43. "minLength": 1,
  44. "description": "主动作:生成、编辑、提取、改写、合成、修复、增强、训练、评估、剪辑、模板化、排版、转写、配音、匹配、扩展、导出"
  45. },
  46. "mechanism": {
  47. "type": "string",
  48. "minLength": 1,
  49. "description": "动作方式:直接生成、一致性保持、结构约束、质量收束、局部重绘、扩图、换背景等"
  50. }
  51. }
  52. },
  53. "inputs": {
  54. "type": "array",
  55. "items": {
  56. "type": "object",
  57. "required": [
  58. "role",
  59. "modality",
  60. "artifact_type",
  61. "control_target",
  62. "target_scope",
  63. "constraint_strength",
  64. "source",
  65. "lifecycle",
  66. "description"
  67. ],
  68. "properties": {
  69. "role": {
  70. "type": "string",
  71. "minLength": 1,
  72. "description": "流程角色:生成指令、编辑指令、约束条件、参考素材、控制信号、区域控制、参数配置、模型资源、源素材、中间产物、成品、模板、评估结果"
  73. },
  74. "modality": {
  75. "type": "string",
  76. "minLength": 1,
  77. "description": "模态:文本、图片、视频、音频、特征点、参数、模型、向量、表格"
  78. },
  79. "artifact_type": {
  80. "type": "string",
  81. "minLength": 1,
  82. "description": "工件类型:正向提示词、负面提示词、编辑提示词、结构化提示词、角色参考图、风格参考图、原始图片、蒙版、深度图、骨骼图、姿势关键点、LoRA、checkpoint、embedding、静态图"
  83. },
  84. "control_target": {
  85. "type": "array",
  86. "items": {
  87. "type": "string"
  88. },
  89. "description": "控制目标:主体、身份一致性、脸部特征、姿势、构图、场景、光线、色彩、质感、画质、局部区域、瑕疵排除"
  90. },
  91. "target_scope": {
  92. "type": "array",
  93. "items": {
  94. "type": "string"
  95. },
  96. "description": "作用范围:整图、人物、脸部、身体、背景、局部区域"
  97. },
  98. "constraint_strength": {
  99. "type": "string",
  100. "description": "约束强度:硬约束、软约束、参考倾向、排除项"
  101. },
  102. "source": {
  103. "type": "string",
  104. "description": "来源:原帖文本、用户上传、上一步产物、模型生成、外部资源"
  105. },
  106. "lifecycle": {
  107. "type": "string",
  108. "description": "生命周期:原始输入、中间产物、最终成品、可复用模板"
  109. },
  110. "description": {
  111. "type": "string",
  112. "minLength": 1,
  113. "description": "功能性描述,不写具体内容what"
  114. }
  115. }
  116. }
  117. },
  118. "outputs": {
  119. "type": "array",
  120. "items": {
  121. "type": "object",
  122. "required": [
  123. "role",
  124. "modality",
  125. "artifact_type",
  126. "control_target",
  127. "target_scope",
  128. "constraint_strength",
  129. "source",
  130. "lifecycle",
  131. "description"
  132. ],
  133. "properties": {
  134. "role": {
  135. "type": "string",
  136. "minLength": 1
  137. },
  138. "modality": {
  139. "type": "string",
  140. "minLength": 1
  141. },
  142. "artifact_type": {
  143. "type": "string",
  144. "minLength": 1
  145. },
  146. "control_target": {
  147. "type": "array",
  148. "items": {
  149. "type": "string"
  150. }
  151. },
  152. "target_scope": {
  153. "type": "array",
  154. "items": {
  155. "type": "string"
  156. }
  157. },
  158. "constraint_strength": {
  159. "type": "string"
  160. },
  161. "source": {
  162. "type": "string"
  163. },
  164. "lifecycle": {
  165. "type": "string"
  166. },
  167. "description": {
  168. "type": "string",
  169. "minLength": 1
  170. }
  171. }
  172. }
  173. },
  174. "body": {
  175. "type": "string",
  176. "minLength": 1
  177. },
  178. "effects": {
  179. "type": "array",
  180. "items": {
  181. "type": "object",
  182. "required": [
  183. "statement",
  184. "criteria",
  185. "judge_method",
  186. "negative_examples"
  187. ],
  188. "properties": {
  189. "statement": {
  190. "type": "string",
  191. "pattern": "^实现"
  192. },
  193. "criteria": {
  194. "type": "string",
  195. "minLength": 1
  196. },
  197. "judge_method": {
  198. "type": "string",
  199. "enum": [
  200. "llm",
  201. "vlm",
  202. "rule",
  203. "human"
  204. ]
  205. },
  206. "negative_examples": {
  207. "type": "array",
  208. "items": {
  209. "type": "string",
  210. "minLength": 1
  211. },
  212. "default": []
  213. }
  214. }
  215. }
  216. },
  217. "stage": {
  218. "type": "array",
  219. "items": {
  220. "type": "string",
  221. "enum": [
  222. "preprocess",
  223. "generate",
  224. "refine"
  225. ]
  226. }
  227. },
  228. "tools": {
  229. "type": "array",
  230. "items": {
  231. "type": "string"
  232. }
  233. },
  234. "criterion": {
  235. "type": [
  236. "string",
  237. "null"
  238. ]
  239. },
  240. "apply_to_draft": {
  241. "type": "object",
  242. "required": [
  243. "实质",
  244. "形式"
  245. ],
  246. "properties": {
  247. "实质": {
  248. "type": "array",
  249. "items": {
  250. "type": "string"
  251. }
  252. },
  253. "形式": {
  254. "type": "array",
  255. "items": {
  256. "type": "string"
  257. }
  258. }
  259. }
  260. },
  261. "unstructured_what": {
  262. "type": "array",
  263. "items": {
  264. "type": "string"
  265. }
  266. }
  267. }
  268. }
  269. }
  270. }
  271. }