4.8 Decomposition Pattern
The synthesizer shows the decomposition pattern
The final node combines the specialist outputs into one answer.
This is a classic pattern for agentic apps:
- decompose work into specialists
- collect intermediate outputs
- synthesize into a final response
That is one of the main architectural ideas you should take away from this overview.
Knowledge Check
Why does the app use a separate plan_synthesizer node instead of letting
one agent generate the entire travel plan?
Click here to see the answer
Because the system breaks the problem into specialized tasks first (flights, hotels, activities).
Each specialist produces a focused summary, and the plan_synthesizer node then combines those
outputs into one coherent itinerary.
This pattern improves modularity, reliability, and observability, since each agent handles a smaller problem and the final node integrates the results.