Files
slide/decks/gen2D/pages/eino-graph.md
T
wonder 5f99d2481a style: optimize gen2D deck layout, animations, and visual hierarchy
- style-keys.md: add v-clicks to 3x2 grid for staggered animation
- eino-graph.md: two-column layout (code left, Items right)
- eino-deep-dive.md: two-column layout for both slides, code+Items side-by-side
- async-deep-dive.md: two-column layout for both slides, SVG integrated
- harness.md: two-column layout for slide 1 (code left, Items right)
- request-journey.md: two-column layout for journey steps
- data-model.md: add v-clicks to grid items, increase diagram height
- architecture/pipeline/prompt-agent: increase SVG max-height for better visibility
2026-05-30 23:13:23 +08:00

960 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%)。