Files
nexus/wiki/concepts/Pipeline.md

42 lines
1.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "Pipeline"
type: concept
tags: [Agent, Skill, Design Pattern, ADK]
sources: [google-5个agent-skill设计模式-2026-03-19]
last_updated: 2026-03-19
---
## Overview
Pipeline 是 Google ADK 发布的 5 种 Agent Skill 设计模式之一通过硬性检查点和明确门控条件强制执行严格的顺序工作流。适用于复杂任务Agent 无法跳过步骤直接给出未验证的最终结果。
## Mechanism
- 指令本身定义了工作流
- 实现明确的门控条件(如"用户在进入下一步之前确认生成的文档字符串"
- 用户必须在进入下一步之前确认
- 每一步都有明确的前置条件
## Use Cases
- 文档流水线:解析和清点 → 生成文档字符串 → 组装文档 → 质量检查
- 复杂业务流程:每步强制验证
- CI/CD 流程:每阶段 gate check
## Example Flow
```
1. 解析和清点 → [Gate: 用户确认]
2. 生成文档字符串 → [Gate: 用户确认]
3. 组装文档 → [Gate: 用户确认]
4. 质量检查 → 完成
```
## Key Insight
> 对于复杂任务你承受不起跳过步骤或者忽略指令的情况。Pipeline 模式强制执行严格的顺序工作流。
## Related Concepts
- [[Reviewer]]Pipeline 可以在最后包含 Reviewer 步骤 double-check 成果
- [[Generator]]Pipeline 的输出可以是 Generator 的输入
- [[Inversion]]Pipeline 可以用 Inversion 作为第一步收集信息
## Connections
- [[Google5个AgentSkill设计模式]] ← part_of ← [[Pipeline]]
- [[ADK]] ← published_by ← [[Pipeline]]