LLM-Driven Workflow Routing
Escalating autonomy where an LLM chooses, generates, or prioritizes tasks instead of a fixed DAG — trading dependability for open-ended flexibility.
Basic workflows may use LLMs inside tasks while routing between tasks stays a fixed pipeline or graph (AI pipeline orchestration). LLM-driven routing moves the model into the flow itself. Escalating variants:
- Fixed task set, conversational orchestrator — the workflow is an LLM agent whose tools are the available tasks; on new work it chooses which task tool to invoke.
- Agent of agents — tasks are themselves conversational agents with specialized tools; both levels need a finish act so they submit completed work rather than chat forever (ReAct loop).
- On-the-fly task agents — the orchestrator crafts a task agent (specialized system message and tool subset from a large inventory) as needed, rather than using only predefined per-task agents.
- Worklist management — instead of one-at-a-time serial handoff, the orchestrator maintains a growing task list and continually prioritizes which work to pursue next.
Prefer a fixed graph first (progressive agent architecture). Each step toward LLM routing raises open-endedness and makes failures harder to isolate than per-task debugging in a deterministic workflow. Role/delegation frameworks and stateful task agents are related patterns for when goals demand that flexibility.
Each step up this ladder is a form of agent control flow where the model itself, rather than the harness, decides branching — the same tradeoff of flexibility against debuggability and evaluability that applies to any multi-agent architecture.
Sources
- Prompt Engineering for LLMs (Berryman), ch. 9