| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251 |
- {
- "$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]+)$"
- }
- }
- }
- }
- }
- }
- }
|