extract_capability.schema.json 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. {
  2. "$schema": "http://json-schema.org/draft-07/schema#",
  3. "title": "extract_capability_output_v5",
  4. "type": "object",
  5. "required": ["skip", "skip_reason", "capabilities"],
  6. "properties": {
  7. "skip": { "type": "boolean" },
  8. "skip_reason": { "type": "string" },
  9. "capabilities": {
  10. "type": "array",
  11. "items": {
  12. "type": "object",
  13. "required": ["action", "inputs", "outputs", "body", "effects", "stage", "tools", "criterion", "apply_to_draft", "unstructured_what"],
  14. "properties": {
  15. "action": {
  16. "type": "object",
  17. "required": ["main_action", "mechanism"],
  18. "properties": {
  19. "main_action": {
  20. "type": "string",
  21. "minLength": 1,
  22. "description": "主动作:生成、编辑、提取、改写、合成、修复、增强、训练、评估、剪辑、模板化、排版、转写、配音、匹配、扩展、导出"
  23. },
  24. "mechanism": {
  25. "type": "string",
  26. "minLength": 1,
  27. "description": "动作方式:直接生成、一致性保持、结构约束、质量收束、局部重绘、扩图、换背景等"
  28. }
  29. }
  30. },
  31. "inputs": {
  32. "type": "array",
  33. "items": {
  34. "type": "object",
  35. "required": ["role", "modality", "artifact_type", "control_target", "target_scope", "constraint_strength", "source", "lifecycle", "description"],
  36. "properties": {
  37. "role": {
  38. "type": "string",
  39. "minLength": 1,
  40. "description": "流程角色:生成指令、编辑指令、约束条件、参考素材、控制信号、区域控制、参数配置、模型资源、源素材、中间产物、成品、模板、评估结果"
  41. },
  42. "modality": {
  43. "type": "string",
  44. "minLength": 1,
  45. "description": "模态:文本、图片、视频、音频、特征点、参数、模型、向量、表格"
  46. },
  47. "artifact_type": {
  48. "type": "string",
  49. "minLength": 1,
  50. "description": "工件类型:正向提示词、负面提示词、编辑提示词、结构化提示词、角色参考图、风格参考图、原始图片、蒙版、深度图、骨骼图、姿势关键点、LoRA、checkpoint、embedding、静态图"
  51. },
  52. "control_target": {
  53. "type": "array",
  54. "items": { "type": "string" },
  55. "description": "控制目标:主体、身份一致性、脸部特征、姿势、构图、场景、光线、色彩、质感、画质、局部区域、瑕疵排除"
  56. },
  57. "target_scope": {
  58. "type": "array",
  59. "items": { "type": "string" },
  60. "description": "作用范围:整图、人物、脸部、身体、背景、局部区域"
  61. },
  62. "constraint_strength": {
  63. "type": "string",
  64. "description": "约束强度:硬约束、软约束、参考倾向、排除项"
  65. },
  66. "source": {
  67. "type": "string",
  68. "description": "来源:原帖文本、用户上传、上一步产物、模型生成、外部资源"
  69. },
  70. "lifecycle": {
  71. "type": "string",
  72. "description": "生命周期:原始输入、中间产物、最终成品、可复用模板"
  73. },
  74. "description": {
  75. "type": "string",
  76. "minLength": 1,
  77. "description": "功能性描述,不写具体内容what"
  78. }
  79. }
  80. }
  81. },
  82. "outputs": {
  83. "type": "array",
  84. "items": {
  85. "type": "object",
  86. "required": ["role", "modality", "artifact_type", "control_target", "target_scope", "constraint_strength", "source", "lifecycle", "description"],
  87. "properties": {
  88. "role": { "type": "string", "minLength": 1 },
  89. "modality": { "type": "string", "minLength": 1 },
  90. "artifact_type": { "type": "string", "minLength": 1 },
  91. "control_target": { "type": "array", "items": { "type": "string" } },
  92. "target_scope": { "type": "array", "items": { "type": "string" } },
  93. "constraint_strength": { "type": "string" },
  94. "source": { "type": "string" },
  95. "lifecycle": { "type": "string" },
  96. "description": { "type": "string", "minLength": 1 }
  97. }
  98. }
  99. },
  100. "body": { "type": "string", "minLength": 1 },
  101. "effects": {
  102. "type": "array",
  103. "items": { "type": "string", "pattern": "^实现" }
  104. },
  105. "stage": {
  106. "type": "array",
  107. "items": { "type": "string", "enum": ["preprocess", "generate", "refine"] }
  108. },
  109. "tools": {
  110. "type": "array",
  111. "items": { "type": "string" }
  112. },
  113. "criterion": { "type": ["string", "null"] },
  114. "apply_to_draft": {
  115. "type": "object",
  116. "required": ["实质", "形式"],
  117. "properties": {
  118. "实质": { "type": "array", "items": { "type": "string" } },
  119. "形式": { "type": "array", "items": { "type": "string" } }
  120. }
  121. },
  122. "unstructured_what": {
  123. "type": "array",
  124. "items": { "type": "string" }
  125. }
  126. }
  127. }
  128. }
  129. }
  130. }