langgraph/how-tos/memory/manage-conversation-history/ #1410
Replies: 5 comments 6 replies
-
Thanks for making all these great How-to guides. In this one, I'm seeing a problem with that very last "what's my name?" -- the error is
It doesn't make sense, since the first message actually is a HumanMessage. Also, if I add a second HumanMessage, then everything is fine (that's the successful one in the langsmith project) |
Beta Was this translation helpful? Give feedback.
-
Consider the following use case: I'm working on a research graph. The graph:
What would be the best way to manage trimming messages for history? I'm dealing with two issues:
The first issue seems like something that should have a solution on Langchain side. |
Beta Was this translation helpful? Give feedback.
-
Thanks Eugene for the response, helpful to know about For others, here's updated link to the latest docs for long term memory and there are a couple of really helpful new videos that the team have put out too on their youtube channel on the topic. |
Beta Was this translation helpful? Give feedback.
-
is there a way to implement this in the pre-built react agent? do we modify the code of the agent? |
Beta Was this translation helpful? Give feedback.
-
Hello, I am trying to create an agent using create_react_agent. I am creating a memory using MemorySaver() class. But I am not able to find out how can I add custom messages to the agent's checkpointer. I've tried using aput_writes of MemorySaver class, but it seems the agent is not using the memory. When I include these custom messages in the prompt, the agent is giving me expected answer around the messages but from checkpointer it is not retrieving that information. Can anyone help me in this ?? Thanks!! |
Beta Was this translation helpful? Give feedback.
-
langgraph/how-tos/memory/manage-conversation-history/
Build language agents as graphs
https://langchain-ai.github.io/langgraph/how-tos/memory/manage-conversation-history/
Beta Was this translation helpful? Give feedback.
All reactions