A healthcare analytics startup needs an agent that processes patient outcome reports. Each report requires: extracting data from EHR systems, normalizing across different hospital formats, running statistical analysis, generating visualizations, and producing a summary for clinicians. The team finds the model frequently misses steps or produces incomplete analyses when given the entire task as a single prompt. What is task decomposition and why would it help here?
Orchestration Patterns
Loading lesson content...
A developer manually decomposes a task into 10 sub-tasks. The agent executes them sequentially but often gets stuck when a sub-task result doesn't match expectations. What's missing?
A team's agent decomposes the same task differently each time, leading to inconsistent results. How to enforce consistent decomposition?