Files
langgraph/langgraph
Nuno Campos ec0aa273fd Fix for update_state mistakenly resetting barrier channels
- This introduces a new optional method BaseChannel.consume, which gets called when a channel triggers a node
- This is an alternative place to clean up channel state, in addition to the existing pattern of clearing state in the update() call for the next step
- Channels should implement consume() when they want to clean up state exactly if and only if the channel triggered a node
- Channels should clean up state in update() when they instead need to guarantee their value is available for a single step, irrespective of whether it was actually read
2024-06-06 17:53:14 -07:00
..
2024-06-05 07:42:39 -07:00
x
2024-02-16 11:54:57 -05:00
2024-06-05 07:42:39 -07:00
2024-05-07 18:40:31 -07:00
2024-02-26 18:19:33 -08:00
cr
2024-04-29 16:37:16 -07:00