Multi Memory
Core Feature
support conversation switch
support conversation upload if auto_upload_to_hub is set, conversation content can be visit at: https://testnet.hub.membase.io/
support conversation preload from storage hub: https://testnet.hub.membase.io/
from membase.memory.multi_memory import MultiMemory
from membase.memory.message import Message
mm = MultiMemory(
membase_account="default",
auto_upload_to_hub=True,
preload_from_hub = True, # this will preload all conversation of membase_account
)
msg = Message(
name = "agent9527",
content = "Hello! How can I help you?",
role="assistant",
metadata="help info"
)
# switch to
conversation_id='your_conversation'
mm.add(msg, conversation_id)
Last updated