Membase Quick Start
1. Install
pip install git+https://github.com/unibaseio/membase.git2. Set Environment Variables
export MEMBASE_ID="<your-unique-id>"
export MEMBASE_ACCOUNT="<your-bnb-testnet-address>"
export MEMBASE_SECRET_KEY="<your-secret-key>"3. Run Your First Example
from membase.memory.buffered_memory import BufferedMemory
from membase.memory.message import Message
memory = BufferedMemory(membase_account="default", auto_upload_to_hub=True)
msg = Message(
name="my-agent",
content="Hello! I have persistent memory now.",
role="assistant",
metadata="first message"
)
memory.add(msg)4. View in Hub
Next Steps
Last updated