| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225 |
- {
- "$schema": "http://json-schema.org/draft-07/schema#",
- "title": "extract_workflow_output_v5",
- "type": "object",
- "required": [
- "skip",
- "skip_reason",
- "strategy"
- ],
- "properties": {
- "skip": {
- "type": "boolean"
- },
- "skip_reason": {
- "type": "string"
- },
- "strategy": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "type": "object",
- "required": [
- "steps",
- "effects",
- "criterion",
- "unstructured_what"
- ],
- "properties": {
- "steps": {
- "type": "array",
- "minItems": 1,
- "items": {
- "type": "object",
- "required": [
- "order",
- "phase",
- "action",
- "body",
- "inputs",
- "outputs",
- "tools",
- "apply_to_draft"
- ],
- "properties": {
- "order": {
- "type": "integer",
- "minimum": 1
- },
- "phase": {
- "type": "string",
- "enum": [
- "非制作",
- "预处理",
- "生成",
- "编辑"
- ]
- },
- "action": {
- "type": "object",
- "required": [
- "main_action",
- "mechanism"
- ],
- "properties": {
- "main_action": {
- "type": "string",
- "minLength": 1,
- "description": "主动作:生成、编辑、提取、组织、筛选"
- },
- "mechanism": {
- "type": "string",
- "minLength": 1,
- "description": "动作方式:直接生成、局部重绘、提示词反推、分类入库、抽卡选优等"
- }
- }
- },
- "body": {
- "type": [
- "string",
- "null"
- ]
- },
- "inputs": {
- "type": "array",
- "items": {
- "type": "object",
- "required": [
- "modality",
- "description",
- "relation"
- ],
- "properties": {
- "modality": {
- "type": "string",
- "minLength": 1,
- "description": "模态:文本、图片、视频、音频、特征点、参数、模型、向量、表格"
- },
- "description": {
- "type": "string",
- "minLength": 1,
- "description": "功能性描述,不写具体内容what"
- },
- "relation": {
- "type": "string",
- "minLength": 1,
- "description": "来源与去向,有特定格式"
- }
- }
- }
- },
- "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,
- "description": "来源与去向,有特定格式"
- }
- }
- }
- },
- "tools": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "apply_to_draft": {
- "type": "object",
- "required": [
- "实质",
- "形式"
- ],
- "properties": {
- "实质": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "形式": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- },
- "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": []
- }
- }
- }
- },
- "criterion": {
- "type": [
- "string",
- "null"
- ]
- },
- "unstructured_what": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- ]
- }
- }
- }
|