You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using MemorySaver() to make sure that I can save my chat_history in my state when invoking the chatbot with a follow-up question. However, when I do this, I want to reset everything in my state except the chat_history, such that my agents do not get confused with information from the previous run. I know that I can simply add a node at the beginning to overwrite input_user and documents with an empty string, but how do I reset the messages to an empty list?
Or, is there a way how I can make use of two separate states, where one is saved into memory and the other just exists during each invoke?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am working building a chatbot. For each question-answer I call multiple agents and these messages get stored in my state:
I am using MemorySaver() to make sure that I can save my chat_history in my state when invoking the chatbot with a follow-up question. However, when I do this, I want to reset everything in my state except the chat_history, such that my agents do not get confused with information from the previous run. I know that I can simply add a node at the beginning to overwrite input_user and documents with an empty string, but how do I reset the messages to an empty list?
Or, is there a way how I can make use of two separate states, where one is saved into memory and the other just exists during each invoke?
Beta Was this translation helpful? Give feedback.
All reactions