|
@@ -2,12 +2,20 @@
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
|
"title": "extract_workflow_output_v7",
|
|
"title": "extract_workflow_output_v7",
|
|
|
"type": "object",
|
|
"type": "object",
|
|
|
- "required": ["skip", "skip_reason", "workflow_groups"],
|
|
|
|
|
|
|
+ "required": [
|
|
|
|
|
+ "skip",
|
|
|
|
|
+ "skip_reason",
|
|
|
|
|
+ "workflow_groups"
|
|
|
|
|
+ ],
|
|
|
"additionalProperties": false,
|
|
"additionalProperties": false,
|
|
|
"definitions": {
|
|
"definitions": {
|
|
|
"step": {
|
|
"step": {
|
|
|
"type": "object",
|
|
"type": "object",
|
|
|
- "required": ["step_id", "order", "phase"],
|
|
|
|
|
|
|
+ "required": [
|
|
|
|
|
+ "step_id",
|
|
|
|
|
+ "order",
|
|
|
|
|
+ "phase"
|
|
|
|
|
+ ],
|
|
|
"additionalProperties": false,
|
|
"additionalProperties": false,
|
|
|
"properties": {
|
|
"properties": {
|
|
|
"step_id": {
|
|
"step_id": {
|
|
@@ -20,13 +28,21 @@
|
|
|
},
|
|
},
|
|
|
"phase": {
|
|
"phase": {
|
|
|
"type": "string",
|
|
"type": "string",
|
|
|
- "enum": ["非制作", "预处理", "生成", "编辑"]
|
|
|
|
|
|
|
+ "enum": [
|
|
|
|
|
+ "非制作",
|
|
|
|
|
+ "预处理",
|
|
|
|
|
+ "生成",
|
|
|
|
|
+ "编辑"
|
|
|
|
|
+ ]
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
"workflow": {
|
|
"workflow": {
|
|
|
"type": "object",
|
|
"type": "object",
|
|
|
- "required": ["workflow_id", "steps"],
|
|
|
|
|
|
|
+ "required": [
|
|
|
|
|
+ "workflow_id",
|
|
|
|
|
+ "steps"
|
|
|
|
|
+ ],
|
|
|
"additionalProperties": false,
|
|
"additionalProperties": false,
|
|
|
"properties": {
|
|
"properties": {
|
|
|
"workflow_id": {
|
|
"workflow_id": {
|
|
@@ -36,18 +52,33 @@
|
|
|
"steps": {
|
|
"steps": {
|
|
|
"type": "array",
|
|
"type": "array",
|
|
|
"minItems": 1,
|
|
"minItems": 1,
|
|
|
- "items": { "$ref": "#/definitions/step" }
|
|
|
|
|
|
|
+ "items": {
|
|
|
|
|
+ "$ref": "#/definitions/step"
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
"io_item": {
|
|
"io_item": {
|
|
|
"type": "object",
|
|
"type": "object",
|
|
|
- "required": ["modality", "description", "relation"],
|
|
|
|
|
|
|
+ "required": [
|
|
|
|
|
+ "modality",
|
|
|
|
|
+ "description",
|
|
|
|
|
+ "relation"
|
|
|
|
|
+ ],
|
|
|
"additionalProperties": false,
|
|
"additionalProperties": false,
|
|
|
"properties": {
|
|
"properties": {
|
|
|
"modality": {
|
|
"modality": {
|
|
|
"type": "string",
|
|
"type": "string",
|
|
|
- "enum": ["文本", "图片", "视频", "音频", "特征点", "参数", "模型", "向量"]
|
|
|
|
|
|
|
+ "enum": [
|
|
|
|
|
+ "文本",
|
|
|
|
|
+ "图片",
|
|
|
|
|
+ "视频",
|
|
|
|
|
+ "音频",
|
|
|
|
|
+ "特征点",
|
|
|
|
|
+ "参数",
|
|
|
|
|
+ "模型",
|
|
|
|
|
+ "向量"
|
|
|
|
|
+ ]
|
|
|
},
|
|
},
|
|
|
"description": {
|
|
"description": {
|
|
|
"type": "string",
|
|
"type": "string",
|
|
@@ -61,7 +92,12 @@
|
|
|
},
|
|
},
|
|
|
"effect": {
|
|
"effect": {
|
|
|
"type": "object",
|
|
"type": "object",
|
|
|
- "required": ["statement", "criteria", "judge_method", "negative_examples"],
|
|
|
|
|
|
|
+ "required": [
|
|
|
|
|
+ "statement",
|
|
|
|
|
+ "criteria",
|
|
|
|
|
+ "judge_method",
|
|
|
|
|
+ "negative_examples"
|
|
|
|
|
+ ],
|
|
|
"additionalProperties": false,
|
|
"additionalProperties": false,
|
|
|
"properties": {
|
|
"properties": {
|
|
|
"statement": {
|
|
"statement": {
|
|
@@ -74,7 +110,12 @@
|
|
|
},
|
|
},
|
|
|
"judge_method": {
|
|
"judge_method": {
|
|
|
"type": "string",
|
|
"type": "string",
|
|
|
- "enum": ["llm", "vlm", "rule", "human"]
|
|
|
|
|
|
|
+ "enum": [
|
|
|
|
|
+ "llm",
|
|
|
|
|
+ "vlm",
|
|
|
|
|
+ "rule",
|
|
|
|
|
+ "human"
|
|
|
|
|
+ ]
|
|
|
},
|
|
},
|
|
|
"negative_examples": {
|
|
"negative_examples": {
|
|
|
"type": "array",
|
|
"type": "array",
|
|
@@ -88,25 +129,37 @@
|
|
|
},
|
|
},
|
|
|
"apply_to_draft": {
|
|
"apply_to_draft": {
|
|
|
"type": "object",
|
|
"type": "object",
|
|
|
- "required": ["实质", "形式"],
|
|
|
|
|
|
|
+ "required": [
|
|
|
|
|
+ "实质",
|
|
|
|
|
+ "形式"
|
|
|
|
|
+ ],
|
|
|
"additionalProperties": false,
|
|
"additionalProperties": false,
|
|
|
"properties": {
|
|
"properties": {
|
|
|
"实质": {
|
|
"实质": {
|
|
|
"type": "array",
|
|
"type": "array",
|
|
|
- "items": { "type": "string" }
|
|
|
|
|
|
|
+ "items": {
|
|
|
|
|
+ "type": "string"
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
"形式": {
|
|
"形式": {
|
|
|
"type": "array",
|
|
"type": "array",
|
|
|
- "items": { "type": "string" }
|
|
|
|
|
|
|
+ "items": {
|
|
|
|
|
+ "type": "string"
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
"workflow_step_ref": {
|
|
"workflow_step_ref": {
|
|
|
"anyOf": [
|
|
"anyOf": [
|
|
|
- { "type": "null" },
|
|
|
|
|
|
|
+ {
|
|
|
|
|
+ "type": "null"
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
"type": "object",
|
|
"type": "object",
|
|
|
- "required": ["workflow_id", "step_id"],
|
|
|
|
|
|
|
+ "required": [
|
|
|
|
|
+ "workflow_id",
|
|
|
|
|
+ "step_id"
|
|
|
|
|
+ ],
|
|
|
"additionalProperties": false,
|
|
"additionalProperties": false,
|
|
|
"properties": {
|
|
"properties": {
|
|
|
"workflow_id": {
|
|
"workflow_id": {
|
|
@@ -145,7 +198,10 @@
|
|
|
},
|
|
},
|
|
|
"action": {
|
|
"action": {
|
|
|
"type": "object",
|
|
"type": "object",
|
|
|
- "required": ["description", "reasoning"],
|
|
|
|
|
|
|
+ "required": [
|
|
|
|
|
+ "description",
|
|
|
|
|
+ "reasoning"
|
|
|
|
|
+ ],
|
|
|
"additionalProperties": false,
|
|
"additionalProperties": false,
|
|
|
"properties": {
|
|
"properties": {
|
|
|
"description": {
|
|
"description": {
|
|
@@ -160,19 +216,28 @@
|
|
|
},
|
|
},
|
|
|
"inputs": {
|
|
"inputs": {
|
|
|
"type": "array",
|
|
"type": "array",
|
|
|
- "items": { "$ref": "#/definitions/io_item" }
|
|
|
|
|
|
|
+ "items": {
|
|
|
|
|
+ "$ref": "#/definitions/io_item"
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
"outputs": {
|
|
"outputs": {
|
|
|
"type": "array",
|
|
"type": "array",
|
|
|
- "items": { "$ref": "#/definitions/io_item" }
|
|
|
|
|
|
|
+ "items": {
|
|
|
|
|
+ "$ref": "#/definitions/io_item"
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
"body": {
|
|
"body": {
|
|
|
- "type": ["string", "null"]
|
|
|
|
|
|
|
+ "type": [
|
|
|
|
|
+ "string",
|
|
|
|
|
+ "null"
|
|
|
|
|
+ ]
|
|
|
},
|
|
},
|
|
|
"effects": {
|
|
"effects": {
|
|
|
"type": "array",
|
|
"type": "array",
|
|
|
"minItems": 1,
|
|
"minItems": 1,
|
|
|
- "items": { "$ref": "#/definitions/effect" }
|
|
|
|
|
|
|
+ "items": {
|
|
|
|
|
+ "$ref": "#/definitions/effect"
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
"control_target": {
|
|
"control_target": {
|
|
|
"type": "array",
|
|
"type": "array",
|
|
@@ -182,14 +247,23 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
"artifact_type": {
|
|
"artifact_type": {
|
|
|
- "type": ["string", "null"]
|
|
|
|
|
|
|
+ "type": [
|
|
|
|
|
+ "string",
|
|
|
|
|
+ "null"
|
|
|
|
|
+ ]
|
|
|
},
|
|
},
|
|
|
"tools": {
|
|
"tools": {
|
|
|
"type": "array",
|
|
"type": "array",
|
|
|
- "items": { "type": "string" }
|
|
|
|
|
|
|
+ "items": {
|
|
|
|
|
+ "type": "string"
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ "apply_to_draft": {
|
|
|
|
|
+ "$ref": "#/definitions/apply_to_draft"
|
|
|
|
|
+ },
|
|
|
|
|
+ "workflow_step_ref": {
|
|
|
|
|
+ "$ref": "#/definitions/workflow_step_ref"
|
|
|
},
|
|
},
|
|
|
- "apply_to_draft": { "$ref": "#/definitions/apply_to_draft" },
|
|
|
|
|
- "workflow_step_ref": { "$ref": "#/definitions/workflow_step_ref" },
|
|
|
|
|
"is_alternative_to": {
|
|
"is_alternative_to": {
|
|
|
"type": "array",
|
|
"type": "array",
|
|
|
"items": {
|
|
"items": {
|
|
@@ -201,18 +275,26 @@
|
|
|
},
|
|
},
|
|
|
"workflow_group": {
|
|
"workflow_group": {
|
|
|
"type": "object",
|
|
"type": "object",
|
|
|
- "required": ["workflow_id", "workflow", "capability"],
|
|
|
|
|
|
|
+ "required": [
|
|
|
|
|
+ "workflow_id",
|
|
|
|
|
+ "workflow",
|
|
|
|
|
+ "capability"
|
|
|
|
|
+ ],
|
|
|
"additionalProperties": false,
|
|
"additionalProperties": false,
|
|
|
"properties": {
|
|
"properties": {
|
|
|
"workflow_id": {
|
|
"workflow_id": {
|
|
|
"type": "string",
|
|
"type": "string",
|
|
|
"pattern": "^w[0-9]+$"
|
|
"pattern": "^w[0-9]+$"
|
|
|
},
|
|
},
|
|
|
- "workflow": { "$ref": "#/definitions/workflow" },
|
|
|
|
|
|
|
+ "workflow": {
|
|
|
|
|
+ "$ref": "#/definitions/workflow"
|
|
|
|
|
+ },
|
|
|
"capability": {
|
|
"capability": {
|
|
|
"type": "array",
|
|
"type": "array",
|
|
|
"minItems": 1,
|
|
"minItems": 1,
|
|
|
- "items": { "$ref": "#/definitions/capability" }
|
|
|
|
|
|
|
+ "items": {
|
|
|
|
|
+ "$ref": "#/definitions/capability"
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -226,7 +308,9 @@
|
|
|
},
|
|
},
|
|
|
"workflow_groups": {
|
|
"workflow_groups": {
|
|
|
"type": "array",
|
|
"type": "array",
|
|
|
- "items": { "$ref": "#/definitions/workflow_group" }
|
|
|
|
|
|
|
+ "items": {
|
|
|
|
|
+ "$ref": "#/definitions/workflow_group"
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-}
|
|
|
|
|
|
|
+}
|