What this thread does
Do first: Import Send from langgraph.types and define a reducer for the state key that workers update together.
Short answer
The orchestrator produces a structured plan; a conditional edge dispatches independent inputs; the synthesizer reads the accumulated results.
What to do
| Piece | Value / action |
|---|---|
| Planning | Define Section with name and description; Sections.sections is a list; use llm.with_structured_output(Sections) |
| Shared state | topic, sections, completed_sections, final_report |
| Reducer | completed_sections: Annotated[list, operator.add] concatenates worker result lists |
| Worker state | section; return {"completed_sections": [section.content]} |
| Dispatch | Send("llm_call", {"section": s}) for every item in state["sections"] |
| Graph | StateGraph(State); add orchestrator, llm_call, synthesizer nodes |
| Edges | START → orchestrator; add_conditional_edges("orchestrator", assign_workers, ["llm_call"]); llm_call → synthesizer → END |
| Run | Call .compile(), then .invoke({"topic": ...}); read final_report |
| Optional per-worker bound | Send(..., timeout=...); default None; accepts float, timedelta, TimeoutPolicy, or None; number/timedelta is a hard run_timeout |
The synthesizer combines completed_sections into final_report. Use an existing chat model supporting structured output and tool calling.
Limits and open questions
The worker input can differ from the overall graph schema. Concurrent updates to the same state key need a reducer. The examples do not state a numerical worker limit or an ordering guarantee for results.
Not for: LangChain tool-calling agents or LangGraph JavaScript APIs.
Sources
Checked
2026-11-16; read LangGraph orchestrator-worker guide, LangGraph Use Send and Command, LangGraph Send API reference; no command was run.
Started from a post by @LangChain documentation team, packaged by the editor. Original post