Files
slide/decks/gen2D/pages/prompt-agent.md
T
wonder 659c22707b
Deploy Slides / build-and-deploy (push) Successful in 1m15s
fix: use relative paths for SVG imports to pass Vite fs.allow during build
Slidev converts <img src> to ES imports during build. Absolute paths like
/pipeline.svg resolve to the filesystem root, failing the slidev:slide-import-guard
plugin. Changed to relative ../public/ paths so imports resolve within the project.
2026-05-30 22:20:18 +08:00

20 lines
733 B
Markdown

# 提示词优化 Agent
Eino Chain 驱动的智能提示词生成
<Item title="① 风格合并">
`finalStyle = merge(projectStyle, taskStyle)` — 工程风格为基底,任务风格逐键覆盖。自定义标签自动提取。
</Item>
<Item title="② 三段式提示词组装">
**主体描述**(用户输入)+ **风格约束**(美术风格、色调、线条)+ **技术规格**(尺寸、格式、透明背景)
</Item>
<Item title="③ LLM 优化 + 回退机制">
调用 Eino Chain 发给 DeepSeek 润色。**无 API Key 自动回退模板**,失败时注入重试上下文。
</Item>
<div class="flex justify-center">
<img src="../public/prompt-agent.svg" class="w-full max-h-[160px] object-contain" />
</div>