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