from hx import Client
client = Client()
memories = client.memory.search(
store_id="ms-your-store-id",
query="What is my name?",
user_id="user_123",
top_k=10
)
{
"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 Client
client = Client()
memories = client.memory.search(
store_id="ms-your-store-id",
query="What is my name?",
user_id="user_123",
top_k=10
)
{
"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 Client
client = Client()
memories = client.memory.search(
store_id="ms-your-store-id",
query="What is my name?",
user_id="user_123",
top_k=10
)
{
"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?"
}
Was this page helpful?