Home/Documentation

SDK Reference

Complete reference documentation for the MemoAir Python SDK. Each resource is documented with method signatures, parameters, and working examples.

Installation

BASH
pip install memoair

Resources

Quick Example

main.py
PYTHON
from memoair import MemoAir, Message
 
client = MemoAir()
 
# Add a conversation to memory
client.memories.add(
group_id="user:john",
messages=[
Message(content="I'm a Python developer", role_type="user"),
],
)
 
# Search the knowledge graph
results = client.search.tripartite(
query="What does John do?",
user_id="user:john",
)
 
for fact in results.get_all_facts():
print(f"- {fact.fact}")