{ "$schema": "http://json-schema.org/draft-07/schema#", "$id": "touchdog-brain-output", "title": "Touchdog Brain Output Schema", "description": "Brain决策层输出的图片规划数据结构", "type": "object", "required": ["analysis", "images"], "properties": { "analysis": { "type": "object", "description": "产品分析结果", "required": ["product_category", "core_selling_points", "background_strategy", "logo_color"], "properties": { "product_category": { "type": "string", "description": "产品品类英文名", "examples": ["Pet Recovery Cone", "Dog Harness", "Pet Bed"] }, "core_selling_points": { "type": "array", "description": "选中的核心卖点key列表(3-4个)", "items": { "type": "string" }, "minItems": 3, "maxItems": 4, "examples": [["lightweight", "waterproof", "breathable"]] }, "background_strategy": { "type": "string", "description": "背景亮度策略", "enum": ["light", "dark", "mixed"] }, "logo_color": { "type": "string", "description": "Logo颜色选择", "enum": ["red", "white"] }, "visual_style": { "type": "string", "description": "整体视觉风格描述", "examples": ["Warm, caring home environment emphasizing comfort and ease"] } } }, "images": { "type": "array", "description": "12张图片的规划", "minItems": 12, "maxItems": 12, "items": { "type": "object", "required": ["id", "type", "purpose", "layout_description", "ai_prompt", "logo_placement"], "properties": { "id": { "type": "string", "description": "图片ID", "pattern": "^(Main_0[1-6]|APlus_0[1-6])$", "examples": ["Main_01", "APlus_01"] }, "type": { "type": "string", "description": "图片类型", "examples": ["Hero Scene + Key Benefits", "Product Detail + Craftsmanship", "Competitor Comparison"] }, "purpose": { "type": "string", "description": "这张图的营销目的(中文)", "examples": ["首图决定点击率,展示产品使用状态+核心卖点"] }, "layout_description": { "type": "string", "description": "布局描述(中文,给人审核用)", "examples": ["上半部分:布偶猫佩戴冰蓝色伊丽莎白圈,在温馨的木质家居架子上。下半部分:浅蓝色圆弧Banner..."] }, "ai_prompt": { "type": "string", "description": "完整的英文AI生图Prompt", "minLength": 100 }, "logo_placement": { "type": "object", "description": "Logo放置信息", "required": ["position", "type", "color"], "properties": { "position": { "type": "string", "description": "Logo位置", "enum": ["bottom-right", "bottom-left", "top-right", "top-left", "center", "none"] }, "type": { "type": "string", "description": "Logo类型", "enum": ["combined", "graphic_only", "text_only", "none"] }, "color": { "type": "string", "description": "Logo颜色", "enum": ["red", "white", "auto"] } } }, "aspect_ratio": { "type": "string", "description": "图片宽高比", "enum": ["1:1", "3:2"], "default": "1:1" }, "is_comparison": { "type": "boolean", "description": "是否是竞品对比图", "default": false } } } } } }