from hx import Clientclient = Client()memories = client.memory.search( store_id="ms-your-store-id", query="What is my name?", user_id="user_123", top_k=10)
Copy
{ "results": [ { "id": "mem_abc123", "memory": "User's name is Alex", "score": 0.95, "user_id": "user_123", "metadata": {"type": "identity"}, "created_at": "2025-01-04T00:00:00Z" } ], "count": 1, "query": "What is my name?"}
Memory API
Search Memories
POST
/
memory-stores
/
{store_id}
/
memories
/
search
Copy
from hx import Clientclient = Client()memories = client.memory.search( store_id="ms-your-store-id", query="What is my name?", user_id="user_123", top_k=10)
Copy
{ "results": [ { "id": "mem_abc123", "memory": "User's name is Alex", "score": 0.95, "user_id": "user_123", "metadata": {"type": "identity"}, "created_at": "2025-01-04T00:00:00Z" } ], "count": 1, "query": "What is my name?"}
from hx import Clientclient = Client()memories = client.memory.search( store_id="ms-your-store-id", query="What is my name?", user_id="user_123", top_k=10)
Copy
{ "results": [ { "id": "mem_abc123", "memory": "User's name is Alex", "score": 0.95, "user_id": "user_123", "metadata": {"type": "identity"}, "created_at": "2025-01-04T00:00:00Z" } ], "count": 1, "query": "What is my name?"}