Skip to content
Discussion options

You must be logged in to vote

@cyc00518 you can use mixed stream modes, and i think to achieve what you want you can do 2 things:

(1) call .astream with stream_mode=["messages", "values"]
(2) filter messages streaming chunks to keep only the ones coming from your last node using langgraph_node in the metadata streamed in the chunks.

since you would be streaming values as well, the last values chunk that you stream should have full information you might need for training.

hope this helps!

Replies: 1 comment 1 reply

Comment options

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

Answer selected by cyc00518
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants