Problem passing private state between nodes with graph.stream() #27296
p-lin
announced in
Ask Dosu (Archived)
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to pass information between two nodes in a way so that the information is not visible in the message state. For example, in node 1 I have updated the state with some sensitive information (e.g. hate speech, personal data) and then want to pass that information to node 2 to process with some other tool. I do not want to see the contents of the updated state in my message history.
I followed the tutorial from here: https://langchain-ai.github.io/langgraph/how-tos/pass_private_state/#define-and-use-the-graph.
However, when I stream the output of "graph.stream()", I am still seeing the updated state that I would like to remain private.
For simplicity, I have replicated the tutorial code but added in "DO NOT WANT THIS OUTPUT TO BE SEEN" as the contents of the private state.
Would appreciate some help. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions