{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "extract_workflow_output_v6", "type": "object", "required": ["skip", "skip_reason", "workflow", "capability"], "properties": { "skip": { "type": "boolean" }, "skip_reason": { "type": "string" }, "workflow": { "anyOf": [ { "type": "null" }, { "type": "object", "required": ["steps"], "properties": { "workflow_id": { "type": ["string", "null"] }, "steps": { "type": "array", "minItems": 1, "items": { "type": "object", "required": ["step_id", "order", "phase"], "properties": { "step_id": { "type": "string", "pattern": "^s[0-9]+$" }, "order": { "type": "integer", "minimum": 1 }, "phase": { "type": "string", "enum": ["非制作", "预处理", "生成", "编辑"] } } } } } } ] }, "capability": { "type": "array", "items": { "type": "object", "required": [ "capability_id", "action", "inputs", "outputs", "body", "effects", "control_target", "artifact_type", "tools", "apply_to_draft", "workflow_step_ref", "is_alternative_to" ], "properties": { "capability_id": { "type": "string", "pattern": "^c_(s[0-9]+_[0-9]+|standalone_[0-9]+)$" }, "action": { "type": "object", "required": ["description", "reasoning"], "properties": { "description": { "type": "string", "minLength": 1 }, "reasoning": { "type": "string", "minLength": 1 } } }, "inputs": { "type": "array", "items": { "type": "object", "required": ["modality", "description", "relation"], "properties": { "modality": { "type": "string", "enum": [ "文本", "图片", "视频", "音频", "特征点", "参数", "模型", "向量" ] }, "description": { "type": "string", "minLength": 1 }, "relation": { "type": "string", "pattern": "^\\[(来源|去向)\\..+\\]$" } } } }, "outputs": { "type": "array", "items": { "type": "object", "required": ["modality", "description", "relation"], "properties": { "modality": { "type": "string", "enum": [ "文本", "图片", "视频", "音频", "特征点", "参数", "模型", "向量" ] }, "description": { "type": "string", "minLength": 1 }, "relation": { "type": "string", "pattern": "^\\[(来源|去向)\\..+\\]$" } } } }, "body": { "type": ["string", "null"] }, "effects": { "type": "array", "minItems": 1, "items": { "type": "object", "required": [ "statement", "criteria", "judge_method", "negative_examples" ], "properties": { "statement": { "type": "string", "pattern": "^实现" }, "criteria": { "type": "string", "minLength": 1 }, "judge_method": { "type": "string", "enum": ["llm", "vlm", "rule", "human"] }, "negative_examples": { "type": "array", "items": { "type": "string", "minLength": 1 }, "default": [] } } } }, "control_target": { "type": "array", "items": { "type": "string", "minLength": 1 } }, "artifact_type": { "type": ["string", "null"] }, "tools": { "type": "array", "items": { "type": "string" } }, "apply_to_draft": { "type": "object", "required": ["实质", "形式"], "properties": { "实质": { "type": "array", "items": { "type": "string" } }, "形式": { "type": "array", "items": { "type": "string" } } } }, "workflow_step_ref": { "anyOf": [ { "type": "null" }, { "type": "object", "required": ["workflow_id", "step_id"], "properties": { "workflow_id": { "type": ["string", "null"] }, "step_id": { "type": "string", "pattern": "^s[0-9]+$" } } } ] }, "is_alternative_to": { "type": "array", "items": { "type": "string", "pattern": "^c_(s[0-9]+_[0-9]+|standalone_[0-9]+)$" } } } } } } }