Skip to content

Get current state of the Langgraph graph outside of the Nodes (inside the main forloop) #1167

Answered by nfcampos
Sulomus asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, I'd suggest using stream_mode="values". That way each of the chunks yielded in for loop will be the state at that time, and a new chunk will be emitted any time it changes.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Sulomus
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by nfcampos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants