-
I have already checked #562 , But it doesn't solve my problem.
How can I solve this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@cyc00518 you can use mixed stream modes, and i think to achieve what you want you can do 2 things: (1) call since you would be streaming values as well, the last hope this helps! |
Beta Was this translation helpful? Give feedback.
@cyc00518 you can use mixed stream modes, and i think to achieve what you want you can do 2 things:
(1) call
.astream
withstream_mode=["messages", "values"]
(2) filter
messages
streaming chunks to keep only the ones coming from your last node usinglanggraph_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!