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:新增材料或参考文字"
},
"skipAppendixBuild": {
"type": "boolean",
"description": "为 true 时不生成附录二进制,仅返回 refinePlan(供集成方用模板克隆)"
},
"existingPptxBase64": {
"type": "string",
"description": "refine:演示文稿 base64(大纲来源)"
}
}
}
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"
}
}
}
}
}
}
},
"appendixStyle": {
"enum": [
"generic",
"templateMatched"
],
"type": "string",
"description": "generic=pptxgen;templateMatched=自模板克隆"
},
"mergedPptxBase64": {
"type": "string",
"description": "existing+template 合并成功时的完整稿"
},
"appendixPptxBase64": {
"type": "string",
"description": "refine 成功时:仅附录幻灯片"
}
}
}