extract_workflow.schema.json 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. {
  2. "$schema": "http://json-schema.org/draft-07/schema#",
  3. "title": "extract_workflow_output_v5",
  4. "type": "object",
  5. "required": [
  6. "skip",
  7. "skip_reason",
  8. "strategy"
  9. ],
  10. "properties": {
  11. "skip": {
  12. "type": "boolean"
  13. },
  14. "skip_reason": {
  15. "type": "string"
  16. },
  17. "strategy": {
  18. "anyOf": [
  19. {
  20. "type": "null"
  21. },
  22. {
  23. "type": "object",
  24. "required": [
  25. "steps",
  26. "effects",
  27. "criterion",
  28. "unstructured_what"
  29. ],
  30. "properties": {
  31. "steps": {
  32. "type": "array",
  33. "minItems": 1,
  34. "items": {
  35. "type": "object",
  36. "required": [
  37. "order",
  38. "phase",
  39. "action",
  40. "body",
  41. "inputs",
  42. "outputs",
  43. "tools",
  44. "apply_to_draft"
  45. ],
  46. "properties": {
  47. "order": {
  48. "type": "integer",
  49. "minimum": 1
  50. },
  51. "phase": {
  52. "type": "string",
  53. "enum": [
  54. "非制作",
  55. "预处理",
  56. "生成",
  57. "编辑"
  58. ]
  59. },
  60. "action": {
  61. "type": "object",
  62. "required": [
  63. "main_action",
  64. "mechanism"
  65. ],
  66. "properties": {
  67. "main_action": {
  68. "type": "string",
  69. "minLength": 1,
  70. "description": "主动作:生成、编辑、提取、改写、合成、修复、增强、训练、评估、剪辑、模板化、排版、转写、配音、匹配、扩展、导出"
  71. },
  72. "mechanism": {
  73. "type": "string",
  74. "minLength": 1,
  75. "description": "动作方式:直接生成、一致性保持、结构约束、质量收束、局部重绘、扩图、换背景等"
  76. }
  77. }
  78. },
  79. "body": {
  80. "type": [
  81. "string",
  82. "null"
  83. ]
  84. },
  85. "inputs": {
  86. "type": "array",
  87. "items": {
  88. "type": "object",
  89. "required": [
  90. "modality",
  91. "description"
  92. ],
  93. "properties": {
  94. "modality": {
  95. "type": "string",
  96. "minLength": 1,
  97. "description": "模态:文本、图片、视频、音频、特征点、参数、模型、向量、表格"
  98. },
  99. "description": {
  100. "type": "string",
  101. "minLength": 1,
  102. "description": "功能性描述,不写具体内容what"
  103. }
  104. }
  105. }
  106. },
  107. "outputs": {
  108. "type": "array",
  109. "items": {
  110. "type": "object",
  111. "required": [
  112. "modality",
  113. "description"
  114. ],
  115. "properties": {
  116. "modality": {
  117. "type": "string",
  118. "minLength": 1
  119. },
  120. "description": {
  121. "type": "string",
  122. "minLength": 1
  123. }
  124. }
  125. }
  126. },
  127. "tools": {
  128. "type": "array",
  129. "items": {
  130. "type": "string"
  131. }
  132. },
  133. "apply_to_draft": {
  134. "type": "object",
  135. "required": [
  136. "实质",
  137. "形式"
  138. ],
  139. "properties": {
  140. "实质": {
  141. "type": "array",
  142. "items": {
  143. "type": "string"
  144. }
  145. },
  146. "形式": {
  147. "type": "array",
  148. "items": {
  149. "type": "string"
  150. }
  151. }
  152. }
  153. }
  154. }
  155. }
  156. },
  157. "effects": {
  158. "type": "array",
  159. "items": {
  160. "type": "string",
  161. "pattern": "^实现"
  162. }
  163. },
  164. "criterion": {
  165. "type": [
  166. "string",
  167. "null"
  168. ]
  169. },
  170. "unstructured_what": {
  171. "type": "array",
  172. "items": {
  173. "type": "string"
  174. }
  175. }
  176. }
  177. }
  178. ]
  179. }
  180. }
  181. }