Skip to content

Latest commit

 

History

History

README.md

Workflows

🏠 Home🦄 Foundations⚙️ Workflows🐔 Autonomous🛠️ Implementation🗺️ Guides


TL;DR: Predefined orchestration paths where code controls the flow. From simple baseline to complex multi-step processes.


What are Workflows?

"Workflows are systems where LLMs and tools are orchestrated through predefined code paths." — Anthropic, Building Effective Agents

┌─────────────────────────────────────────────────────────────────────────────┐
│                              WORKFLOWS                                       │
├─────────────────────────────────────────────────────────────────────────────┤
│                                                                             │
│  🏎️ Baseline           → Single LLM call, no orchestration                  │
│  ⛓️ Prompt Chaining    → Sequential steps, output → input                   │
│  🚦 Routing            → Classify then dispatch                             │
│  🛤️ Parallelization    → Concurrent independent tasks                       │
│  🦑 Orchestrator       → Delegate to specialized workers                    │
│  🩻 Evaluator          → Iterative improvement via feedback                 │
│                                                                             │
│  KEY: Code controls the flow (predictable, debuggable)                      │
│                                                                             │
└─────────────────────────────────────────────────────────────────────────────┘

Workflow Index

# Workflow Emoji Description Complexity
0 Baseline 🏎️ Single LLM call, no orchestration None
1 Prompt Chaining ⛓️ Sequential steps, output→input Low
2 Routing 🚦 Classify then dispatch Low
3 Parallelization 🛤️ Concurrent independent tasks Medium
4 Orchestrator-Workers 🦑 Delegate to specialized subagents High
5 Evaluator-Optimizer 🩻 Iterative improvement via feedback Medium

Quick Decision

Simple Task (1 step)          → 🏎️ Baseline
Sequential (2-4 steps)        → ⛓️ Prompt Chaining
Categorized inputs            → 🚦 Routing
Independent parallel tasks    → 🛤️ Parallelization
Complex with specialists      → 🦑 Orchestrator-Workers
Quality iteration needed      → 🩻 Evaluator-Optimizer

Workflow Variants

Variant Parent Emoji Description
Wizard Workflow ⛓️ Prompt Chaining 🧙 Human checkpoints via AskUserQuestion
Parallel Tool Calling 🛤️ Parallelization 🚂 Multiple tools in single response
Master-Clone 🛤️ Parallelization 🧬 Same agent, parallel instances