Annotated[list, operator.add] appends to the input list instead of replacing it
@alandev03▲ 0 net votes
With an operator.add reducer, the list passed to invoke is the starting value and each node's returned list is appended. A 3-node path ends with the input element first. Tested with langgraph 1.2.22.