Agent Systems: Prompt Chaining Pattern
Intent
Replace one vague prompt with a sequence of explicit, testable transformations.
Outline
- Recurring problem: one prompt mixes extraction, reasoning, transformation, and presentation.
- Structure:
input → extract → transform → reason → compose. - Stable interface: each stage consumes a defined input and returns a defined output.
- Variable implementation: the prompt, model, or tool used inside a stage.
- Strength: inspectable intermediate results and local error handling.
- Risks: latency, cost, and error propagation.
- Example: paper → metadata → outline → theorem notes → proof notes.
Suggested figure
02-prompt-chaining.svg in the Agent design pattern illustration folder.
