Loading...
Loading...
Orchestrates single user-invocable skill across 3 parallel scenarios with synchronized state and progressive difficulty. Use when running multi-scenario demos, comparative testing, or progressive validation workflows.
npx skill4agent add yonatangross/orchestkit multi-scenario-orchestration┌─────────────────────────────────────────────────────────────────────┐
│ MULTI-SCENARIO ORCHESTRATOR │
├─────────────────────────────────────────────────────────────────────┤
│ │
│ [Coordinator] ──┬─→ [Scenario 1: Simple] (Easy) │
│ ▲ │ └─→ [Skill Instance 1] │
│ │ ├─→ [Scenario 2: Medium] (Intermediate) │
│ │ │ └─→ [Skill Instance 2] │
│ │ └─→ [Scenario 3: Complex] (Advanced) │
│ │ └─→ [Skill Instance 3] │
│ │ │
│ [State Manager] ◄──── All instances report progress │
│ [Aggregator] ─→ Cross-scenario synthesis │
│ │
└─────────────────────────────────────────────────────────────────────┘| Scenario | Example |
|---|---|
| Skill demos | Show |
| Progressive testing | Validate skill scales with complexity |
| Comparative analysis | How does approach differ by difficulty? |
| Training/tutorials | Show skill progression from easy to hard |
from langgraph.graph import StateGraph
# 1. Define 3 scenarios with progressive difficulty
scenarios = [
{"name": "simple", "complexity": 1.0, "input_size": 10},
{"name": "medium", "complexity": 3.0, "input_size": 50},
{"name": "complex", "complexity": 8.0, "input_size": 200},
]
# 2. Fan out to parallel execution
# 3. Aggregate results
# 4. Report comparative metrics| Level | Complexity | Input Size | Time Budget | Quality |
|---|---|---|---|---|
| Simple | 1x | Small (10) | 30s | Basic |
| Medium | 3x | Medium (50) | 90s | Good |
| Complex | 8x | Large (200) | 300s | Excellent |
| Mode | Description | Use When |
|---|---|---|
| Free-running | All run independently | Demo videos |
| Milestone-sync | Wait at 30%, 70%, 100% | Comparative analysis |
| Lock-step | All proceed together | Training |
| Decision | Recommendation |
|---|---|
| Synchronization mode | Free-running with checkpoints |
| Scenario count | Always 3: simple, medium, complex |
| Input scaling | 1x, 3x, 8x (exponential) |
| Time budgets | 30s, 90s, 300s |
| Checkpoint frequency | Every milestone + completion |
langgraph-supervisorlanggraph-parallellanggraph-statelanggraph-checkpointsmulti-agent-orchestration