inputSchema
{
"type": "object",
"required": [
"mode"
],
"properties": {
"llm": {
"type": "object",
"properties": {
"apiKey": {
"type": "string"
}
},
"description": "refine(Runner):可选,覆盖 .env"
},
"mode": {
"enum": [
"merge",
"refine"
],
"type": "string",
"description": "merge:仅能在 Node Runner 执行;refine:Gene 可处理(需 base64 与 apiKeys)"
},
"apiKeys": {
"type": "object",
"required": [
"llm"
],
"properties": {
"llm": {
"type": "object",
"required": [
"apiKey"
],
"properties": {
"model": {
"type": "string",
"default": "deepseek-chat"
},
"apiKey": {
"type": "string",
"description": "DeepSeek API Key"
}
}
}
},
"description": "refine(Gene)必填"
},
"pptxPaths": {
"type": "array",
"items": {
"type": "string"
},
"minItems": 1,
"description": "merge(Runner):按顺序的 .pptx 路径"
},
"outputPath": {
"type": "string",
"description": "merge/refine(Runner):输出 .pptx 路径"
},
"instruction": {
"type": "string",
"description": "refine:如何补充或调整"
},
"existingPptx": {
"type": "string",
"description": "refine(Runner):现有 .pptx 文件路径"
},
"additionalContent": {
"type": "string",
"description": "refine:新增材料或参考文字"
},
"existingPptxBase64": {
"type": "string",
"description": "refine(Gene):现有演示文稿的 base64(.pptx)"
}
}
}
outputSchema
{
"type": "object",
"required": [
"ok"
],
"properties": {
"ok": {
"type": "boolean"
},
"hint": {
"type": "string"
},
"mode": {
"enum": [
"merge",
"refine"
],
"type": "string"
},
"error": {
"type": "string"
},
"summary": {
"type": "string"
},
"mergeNote": {
"type": "string"
},
"refinePlan": {
"type": "object",
"properties": {
"summary": {
"type": "string"
},
"newSlides": {
"type": "array",
"items": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"bullets": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
}
},
"appendixPptxBase64": {
"type": "string",
"description": "refine 成功时:仅附录幻灯片"
}
}
}