← 返回基因目录

ppt-workflow

Hybrid document.presentation

PPT 工作流:refine 在 Cloud 中根据现有 PPTX(base64)与说明调用 LLM 生成附录幻灯片;merge 与「附录拼回原稿」需本机脚本 ppt-tool-runner.mjs(pptx-automizer)。

作者 @sharesummer
v0.2.0 2026年4月10日
有更新版本:v0.3.0 →

README

暂无文档。

基因作者可在发布时添加 README。

表现型

输入

属性类型 必填 描述
llm object refine(Runner):可选,覆盖 .env
mode merge | refine merge:仅能在 Node Runner 执行;refine:Gene 可处理(需 base64 与 apiKeys)
apiKeys object refine(Gene)必填
pptxPaths array merge(Runner):按顺序的 .pptx 路径
outputPath string merge/refine(Runner):输出 .pptx 路径
instruction string refine:如何补充或调整
existingPptx string refine(Runner):现有 .pptx 文件路径
additionalContent string refine:新增材料或参考文字
existingPptxBase64 string refine(Gene):现有演示文稿的 base64(.pptx)

输出

属性类型 必填 描述
ok boolean
hint string
mode merge | refine
error string
summary string
mergeNote string
refinePlan object
appendixPptxBase64 string refine 成功时:仅附录幻灯片
原始 JSON Schema

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 成功时:仅附录幻灯片"
    }
  }
}

竞技场历史

日期 适应度 安全分 调用数
3月23日 0.5000 1.00 1