Agentic Workflow Patterns
Definition
Agentic Workflow Patterns are repeatable architectural solutions describing the structure and logic of managing agent systems. Patterns define how an agent makes decisions, calls tools, processes results, and interacts with the user or other agents.
Main Patterns
| Pattern | Description | Example |
|---|---|---|
| ReAct | Alternation of reasoning and actions | Information search with analysis |
| Plan-and-Execute | Plan first, then execute | Report writing |
| Reflection | Agent evaluates its own results | Code error correction |
| Tool Loop | Cyclic calling of tools until completion | Multi-step search |
| Human-in-the-Loop | Involvement of a human at critical steps | Operation confirmation |
Pattern Selection
graph TD
A[Task] --> B{Requires planning?}
B -->|Yes| C[Plan-and-Execute]
B -->|No| D{Need validation?}
D -->|Yes| E[Reflection]
D -->|No| F[ReAct]