5f99d2481a
- 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
44 lines
960 B
Markdown
44 lines
960 B
Markdown
# Eino 管线编排 — compose.Graph
|
|
|
|
<div class="grid grid-cols-2 gap-4 mt-2">
|
|
|
|
<div>
|
|
|
|
```go {all|1-4|6-10|all}
|
|
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
|
|
}
|
|
```
|
|
|
|
</div>
|
|
|
|
<div class="flex flex-col justify-center">
|
|
|
|
<v-clicks>
|
|
|
|
<Item title="graph.Build() — 构建管线">
|
|
`compose.NewGraph` 创建有向图,注册四节点。质检节点条件分支:通过 → 格式适配,不通过 → 回退提示词优化。
|
|
</Item>
|
|
|
|
<Item title="graph.Invoke() — 执行管线">
|
|
传入 `PipelineInput`,按拓扑顺序执行。每节点完成回调更新进度(5% → 25% → 60% → 80% → 100%)。
|
|
</Item>
|
|
|
|
</v-clicks>
|
|
|
|
</div>
|
|
|
|
</div>
|