19075592e5
Deploy Slides / build-and-deploy (push) Successful in 1m16s
- 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
32 lines
826 B
Markdown
32 lines
826 B
Markdown
# Eino 管线编排 — compose.Graph
|
|
|
|
<div class="mt-2">
|
|
|
|
```go
|
|
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>
|
|
|
|
<Item title="graph.Build() — 构建管线">
|
|
`compose.NewGraph` 创建有向图,注册四节点。质检节点条件分支:通过 → 格式适配,不通过 → 回退提示词优化。
|
|
</Item>
|
|
|
|
<Item title="graph.Invoke() — 执行管线">
|
|
传入 `PipelineInput`,按拓扑顺序执行。每节点完成回调更新进度(5% → 25% → 60% → 80% → 100%)。
|
|
</Item>
|