await client.memories.create(
7,
title="Subscription plan",
content="The user is on the Pro plan.",
agent_user_id=42,
memory_type="fact",
)
result = await client.memories.search(
7,
42,
"What plan is the user on?",
top_k=5,
)
print(result["context"], result["has_context"])