| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135 |
- {
- "$schema": "http://json-schema.org/draft-07/schema#",
- "title": "extract_workflow_output_v6",
- "type": "object",
- "required": ["skip", "skip_reason", "workflow", "fragments"],
- "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", "relation", "body"],
- "properties": {
- "step_id": { "type": "string", "pattern": "^s[0-9]+$" },
- "order": { "type": "integer", "minimum": 1 },
- "phase": {
- "type": "string",
- "enum": ["非制作", "预处理", "生成", "编辑"]
- },
- "relation": { "type": "string", "minLength": 1 },
- "body": { "type": ["string", "null"] }
- }
- }
- }
- }
- }
- ]
- },
- "fragments": {
- "type": "array",
- "items": {
- "type": "object",
- "required": [
- "fragment_id", "action", "inputs", "outputs",
- "body", "effects", "control_target", "artifact_type",
- "tools", "apply_to_draft",
- "workflow_step_ref", "is_alternative_to"
- ],
- "properties": {
- "fragment_id": { "type": "string", "minLength": 1 },
- "action": {
- "type": "object",
- "required": ["main_action", "mechanism"],
- "properties": {
- "main_action": { "type": "string", "minLength": 1 },
- "mechanism": { "type": "string", "minLength": 1 }
- }
- },
- "inputs": {
- "type": "array",
- "items": {
- "type": "object",
- "required": ["modality", "description", "relation"],
- "properties": {
- "modality": { "type": "string", "minLength": 1 },
- "description": { "type": "string", "minLength": 1 },
- "relation": { "type": "string", "minLength": 1 }
- }
- }
- },
- "outputs": {
- "type": "array",
- "items": {
- "type": "object",
- "required": ["modality", "description", "relation"],
- "properties": {
- "modality": { "type": "string", "minLength": 1 },
- "description": { "type": "string", "minLength": 1 },
- "relation": { "type": "string", "minLength": 1 }
- }
- }
- },
- "body": { "type": ["string", "null"] },
- "effects": {
- "type": "array",
- "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": ["step_id"],
- "properties": {
- "workflow_id": { "type": "string" },
- "step_id": { "type": "string", "pattern": "^s[0-9]+$" }
- }
- }
- ]
- },
- "is_alternative_to": {
- "type": "array",
- "items": { "type": "string" }
- }
- }
- }
- }
- }
- }
|