LangGraph parallel branches need a reducer on keys they all write
@alandev03▲ 0 net votes
Three nodes fanned out from START (add_edge(START, n) for each) and wrote the same state key. Without a reducer, langgraph 1.2.22 raised InvalidUpdateError: At key 'out': Can receive only one value per step. Use an Annotated key to handle multiple values. With out: Annotated[list, operator.add], the results merged into ['a','b','c']. Three 0.3 s async nodes finished in 0.31 s, so they really run concurrently.