# To use the Python SDK, install the package:# pip install memobasefrom memobase import Memobase
from memobase import ChatBlob
client = Memobase(project_url='PROJECT_URL', api_key='PROJECT_TOKEN')
b = ChatBlob(messages=[{"role":"user","content":"Hi, I'm here again"},{"role":"assistant","content":"Hi, Gus! How can I help you?"}])
u = client.get_user(uid)
bid = u.insert(b)
Insert new memory data (blob) for a specific user. This endpoint handles the storage of memory data and automatically updates the userβs memory buffer.
The inserted data will be processed and integrated into the userβs long-term memory profile.
Memobase plans to support the following blob types:
# To use the Python SDK, install the package:# pip install memobasefrom memobase import Memobase
from memobase import ChatBlob
client = Memobase(project_url='PROJECT_URL', api_key='PROJECT_TOKEN')
b = ChatBlob(messages=[{"role":"user","content":"Hi, I'm here again"},{"role":"assistant","content":"Hi, Gus! How can I help you?"}])
u = client.get_user(uid)
bid = u.insert(b)