| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- {
- "$schema": "http://json-schema.org/draft-07/schema#",
- "title": "extract_capability_output_v5",
- "type": "object",
- "required": ["skip", "skip_reason", "capabilities"],
- "properties": {
- "skip": { "type": "boolean" },
- "skip_reason": { "type": "string" },
- "capabilities": {
- "type": "array",
- "items": {
- "type": "object",
- "required": ["action", "inputs", "outputs", "body", "effects", "stage", "tools", "criterion", "apply_to_draft", "unstructured_what"],
- "properties": {
- "action": {
- "type": "object",
- "required": ["main_action", "mechanism"],
- "properties": {
- "main_action": {
- "type": "string",
- "minLength": 1,
- "description": "主动作:生成、编辑、提取、改写、合成、修复、增强、训练、评估、剪辑、模板化、排版、转写、配音、匹配、扩展、导出"
- },
- "mechanism": {
- "type": "string",
- "minLength": 1,
- "description": "动作方式:直接生成、一致性保持、结构约束、质量收束、局部重绘、扩图、换背景等"
- }
- }
- },
- "inputs": {
- "type": "array",
- "items": {
- "type": "object",
- "required": ["role", "modality", "artifact_type", "control_target", "target_scope", "constraint_strength", "source", "lifecycle", "description"],
- "properties": {
- "role": {
- "type": "string",
- "minLength": 1,
- "description": "流程角色:生成指令、编辑指令、约束条件、参考素材、控制信号、区域控制、参数配置、模型资源、源素材、中间产物、成品、模板、评估结果"
- },
- "modality": {
- "type": "string",
- "minLength": 1,
- "description": "模态:文本、图片、视频、音频、特征点、参数、模型、向量、表格"
- },
- "artifact_type": {
- "type": "string",
- "minLength": 1,
- "description": "工件类型:正向提示词、负面提示词、编辑提示词、结构化提示词、角色参考图、风格参考图、原始图片、蒙版、深度图、骨骼图、姿势关键点、LoRA、checkpoint、embedding、静态图"
- },
- "control_target": {
- "type": "array",
- "items": { "type": "string" },
- "description": "控制目标:主体、身份一致性、脸部特征、姿势、构图、场景、光线、色彩、质感、画质、局部区域、瑕疵排除"
- },
- "target_scope": {
- "type": "array",
- "items": { "type": "string" },
- "description": "作用范围:整图、人物、脸部、身体、背景、局部区域"
- },
- "constraint_strength": {
- "type": "string",
- "description": "约束强度:硬约束、软约束、参考倾向、排除项"
- },
- "source": {
- "type": "string",
- "description": "来源:原帖文本、用户上传、上一步产物、模型生成、外部资源"
- },
- "lifecycle": {
- "type": "string",
- "description": "生命周期:原始输入、中间产物、最终成品、可复用模板"
- },
- "description": {
- "type": "string",
- "minLength": 1,
- "description": "功能性描述,不写具体内容what"
- }
- }
- }
- },
- "outputs": {
- "type": "array",
- "items": {
- "type": "object",
- "required": ["role", "modality", "artifact_type", "control_target", "target_scope", "constraint_strength", "source", "lifecycle", "description"],
- "properties": {
- "role": { "type": "string", "minLength": 1 },
- "modality": { "type": "string", "minLength": 1 },
- "artifact_type": { "type": "string", "minLength": 1 },
- "control_target": { "type": "array", "items": { "type": "string" } },
- "target_scope": { "type": "array", "items": { "type": "string" } },
- "constraint_strength": { "type": "string" },
- "source": { "type": "string" },
- "lifecycle": { "type": "string" },
- "description": { "type": "string", "minLength": 1 }
- }
- }
- },
- "body": { "type": "string", "minLength": 1 },
- "effects": {
- "type": "array",
- "items": { "type": "string", "pattern": "^实现" }
- },
- "stage": {
- "type": "array",
- "items": { "type": "string", "enum": ["preprocess", "generate", "refine"] }
- },
- "tools": {
- "type": "array",
- "items": { "type": "string" }
- },
- "criterion": { "type": ["string", "null"] },
- "apply_to_draft": {
- "type": "object",
- "required": ["实质", "形式"],
- "properties": {
- "实质": { "type": "array", "items": { "type": "string" } },
- "形式": { "type": "array", "items": { "type": "string" } }
- }
- },
- "unstructured_what": {
- "type": "array",
- "items": { "type": "string" }
- }
- }
- }
- }
- }
- }
|