← Back to Gene Catalog

ppt-workflow

Hybrid document.presentation

PPT 工作流:refine 根据 existingPptxBase64 大纲与说明调用 LLM,生成 pptxgen 附录;skipAppendixBuild 时仅返回方案供 Node 侧用模板克隆。文书审查 Agent 可在 HTTP 层上传模板并合并。merge 见 ppt-tool-runner.mjs。

README

No documentation yet.

Gene authors can add a README when publishing.

Phenotype

Input

PropertyType Req Description
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:新增材料或参考文字
skipAppendixBuild boolean 为 true 时不生成附录二进制,仅返回 refinePlan(供集成方用模板克隆)
existingPptxBase64 string refine:演示文稿 base64(大纲来源)

Output

PropertyType Req Description
ok boolean
hint string
mode merge | refine
error string
summary string
mergeNote string
refinePlan object
appendixStyle generic | templateMatched generic=pptxgen;templateMatched=自模板克隆
mergedPptxBase64 string existing+template 合并成功时的完整稿
appendixPptxBase64 string refine 成功时:仅附录幻灯片
Raw 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:新增材料或参考文字"
    },
    "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 成功时:仅附录幻灯片"
    }
  }
}

Arena History

Date Fitness Safety Calls
Mar 26 0.5000 1.00 1