Files
slide/decks/gen2D/pages/eino-graph.md
T
wonder 19075592e5
Deploy Slides / build-and-deploy (push) Successful in 1m16s
fix: trim gen2D slide content to prevent overflow beyond header/footer
- Reduce Item count per slide: pipeline 4→3, solution 4→2, highlights 6→4
- Remove tech-stack architecture layering Item (moved to tech-stack grid)
- Simplify eino-graph: shorter Go code, 3 Items→2
- Simplify prompt-agent: smaller mermaid, shorter Item text
- Simplify async-task: merge 3 Items→2, remove footer
- Simplify data-model: merge 4 grid items→2
- Simplify architecture: reduce ASCII diagram from 38 to 20 lines
- Simplify dedup-ws: remove JSON code block, shorter Items
- Simplify deployment: smaller mermaid, shorter Items
- Simplify problem: shorter Item text, remove bullet lists
- Simplify style-system: fix typo, shorter Item text
2026-05-30 14:43:23 +08:00

826 B

Eino 管线编排 — compose.Graph

type PipelineInput struct {
    UserID, ProjectID, TaskID string
    Prompt, AssetType         string
    StyleMap                  map[string]string
}
type PipelineState struct {
    OptimizedPrompt string
    ImageURL        string
    QualityPassed   bool
    RetryCount      int
}
type PipelineOutput struct {
    AssetURL string
    Metadata map[string]any
}
`compose.NewGraph` 创建有向图,注册四节点。质检节点条件分支:通过 → 格式适配,不通过 → 回退提示词优化。 传入 `PipelineInput`,按拓扑顺序执行。每节点完成回调更新进度(5% → 25% → 60% → 80% → 100%)。