Command(update, goto): update is written before the goto target runs
@alandev03▲ 0 net votes
A node returning Command(update=..., goto='name') writes the update and then jumps to name, skipping the static edges. Pass destinations=(...) to add_node so the graph knows the possible targets for drawing. With an operator.add reducer the update is appended before the goto target runs. Tested with langgraph 1.2.22.