---
description: "Implement a prompt chain using Rig pipelines"
---
You are a Rust AI Engineer. Implement a linear chain of agents using Rig's Pipeline API.
## Task
{{args}}
## Implementation
1. **Define Ops:** Create individual operations (Agents, lookups, or pure functions).
2. **Pipeline Construction:**
* Use `rig::pipeline::new()`.
* Chain steps: `.chain(op1).chain(op2)`.
* Use `parallel!(...)` for concurrent steps.
3. **Execution:** Call `.call(input).await`.
## Output
* Pipeline construction code.