Orchestration - Workflow vs. Autonomous Agent
Two orchestration patterns:
- Workflow - deterministic path defined by code: strict control and safety, but no flexibility.
- Autonomous Agent - path is shaped dynamically by environment feedback: flexible, but more expensive and risky.
Principle of choice:
- try to solve with a prompt first;
- multi-step processing with fixed subtasks is needed - workflow;
- dynamic decisions are needed - autonomous agent.
In practice, both patterns are often mixed.
Related: Harness-engineering, ReAct cycle, Guardrails