Files
nexus/wiki/concepts/Pipeline.md

38 lines
1.2 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.
---
id: pipeline
title: "Pipeline"
type: concept
tags: [Agent, Skill, 设计模式]
sources: [Google-5-Agent-Skill-design-patterns-2026-03-19]
last_updated: 2026-04-17
---
## Summary
带硬性检查点的严格工作流 Agent Skill 设计模式,强制执行顺序工作流。
## Definition
Pipeline 模式通过实现明确的门控条件,强制执行严格的顺序工作流,并在关键节点设置硬性检查点。
## How It Works
1. **定义工作流**:指令本身定义工作流步骤
2. **硬性检查点**:每个步骤有明确的前置条件
3. **用户确认**:用户必须在进入下一步之前确认
4. **防止绕过**:确保 agent 无法跳过复杂任务直接给出未验证的最终结果
## Example Workflow
文档流水线示例:
1. 解析和清点
2. 生成文档字符串
3. 组装文档
4. 质量检查
每一步都有明确的前置条件,用户必须在进入下一步之前确认。
## Use Cases
- 复杂任务:无法承受跳过步骤或忽略指令的情况
- 多阶段流程:需要严格顺序执行的任务
- 质量保证:需要用户确认的检查点
## Related Concepts
- [[Agent-Skill-设计模式]]
- [[Reviewer]]Pipeline 可以在最后包含 Reviewer 步骤来 double-check