Find answers from the community

Updated 3 weeks ago

Chat Memory Buffer for Multiple Users and Chats

Hey guys, im having issue with ChatMemoryBuffer,

Does it work for multiple users & multiple chats?

What’s the best way to store the chat memory in an agent class. Should I initialise empty {}, do I have to use chat_storage as a separate system?
W
m
3 comments
hey yeah, You'll need to handle diff memory instances for diff users else all the chat would get stored in a single chat memory instance.

You can pass this instance for user in the .chat() method.
Hey thanks for the help
Been attempting to save it in a Chat Store class as global memory, but not working for some reason.
Add a reply
Sign up and join the conversation on Discord