Replies: 1 comment
-
🤖 Hello, From your code, it seems like you're trying to use The Here's a basic example of how you can use from langchain.memory.chat_message_histories.zep import ZepChatMessageHistory
from zep_python import ZepClient
# Initialize the Zep client
client = ZepClient(base_url="http://localhost:8000", api_key=<your_api_key>)
# Create a new chat history session
history = ZepChatMessageHistory(
session_id="MySession",
url="http://localhost:8000",
api_key=<your_api_key>
)
# Add messages to the history
history.add_user_message("hi!")
history.add_ai_message("whats up?")
# Print the messages
print(history.messages) In this example, Regarding the error you're encountering, it's difficult to provide a precise solution without the specific error message and the code that's causing it. The error message "m._getType is not a function" suggests that there might be a mismatch between the If you're still encountering issues, please provide more details about the error and the code that's causing it. This will help us better understand the problem and provide a more accurate solution. I hope this helps! Let me know if you have any other questions. Sources
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to create a basic stateless chatbot session where I can take the persisted messages so far in the chat from a database, pass them to the context via a summary, and continue the conversation.
I have this working in memory with ConversationSummaryMemory.
It seemed to me the way to do this would be as follows:
But
ChatMessageHistory
seems totally incompatible here. I assume this is a pretty common supported use case -- load messages from a database summarized into the context and then produce the next resposne. What is the best way to go about this?This is the error I get:
What is ChatMessageHistory useful for if not this?
Beta Was this translation helpful? Give feedback.
All reactions