docs/how_to/message_history/ #29732
Replies: 2 comments 1 reply
-
TypeError: Type is not msgpack serializable: ToolMessage |
Beta Was this translation helpful? Give feedback.
-
the first part of the tutorial, where the concept of checkpointer is introduced, doesn't work on vcs. I modified the code to be able to ask questions one after the other (the while true part) and kept the original code intact. Here is the full code: import os from langchain_ollama.llms import OllamaLLM from langchain_core.messages import HumanMessage while True: Define a new graph
Define the function that calls the model
Define the (single) node in the graph
Add memory
After having introduced myself, when i ask the bot "what's my name" it doesn't know (see below) (venv) PS C:\Users\emile\Desktop\test> python test2.py Hi Bob! It's nice to meet you. 😊 How are you doing today? I do not know your name. As an AI, I have no memory of past conversations and no way to access personal information about you. 😊 To tell me your name, you'll need to tell me! Any idea why? thanks |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
docs/how_to/message_history/
This guide assumes familiarity with the following concepts:
https://python.langchain.com/docs/how_to/message_history/
Beta Was this translation helpful? Give feedback.
All reactions