| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316 |
- {
- "$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"
- }
- }
- }
- }
|