from hx import Client
client = Client()
history = client.memory.history(
store_id="ms-your-store-id",
memory_id="mem_abc123"
)
{
"memory_id": "mem_abc123",
"history": [
{
"id": "hist_001",
"memory_id": "mem_abc123",
"old_memory": null,
"new_memory": "User's name is Alex",
"event": "ADD",
"timestamp": "2025-01-04T00:00:00Z"
},
{
"id": "hist_002",
"memory_id": "mem_abc123",
"old_memory": "User's name is Alex",
"new_memory": "User's name is Alexander (prefers Alex)",
"event": "UPDATE",
"timestamp": "2025-01-04T01:00:00Z"
}
]
}
from hx import Client
client = Client()
history = client.memory.history(
store_id="ms-your-store-id",
memory_id="mem_abc123"
)
{
"memory_id": "mem_abc123",
"history": [
{
"id": "hist_001",
"memory_id": "mem_abc123",
"old_memory": null,
"new_memory": "User's name is Alex",
"event": "ADD",
"timestamp": "2025-01-04T00:00:00Z"
},
{
"id": "hist_002",
"memory_id": "mem_abc123",
"old_memory": "User's name is Alex",
"new_memory": "User's name is Alexander (prefers Alex)",
"event": "UPDATE",
"timestamp": "2025-01-04T01:00:00Z"
}
]
}
from hx import Client
client = Client()
history = client.memory.history(
store_id="ms-your-store-id",
memory_id="mem_abc123"
)
{
"memory_id": "mem_abc123",
"history": [
{
"id": "hist_001",
"memory_id": "mem_abc123",
"old_memory": null,
"new_memory": "User's name is Alex",
"event": "ADD",
"timestamp": "2025-01-04T00:00:00Z"
},
{
"id": "hist_002",
"memory_id": "mem_abc123",
"old_memory": "User's name is Alex",
"new_memory": "User's name is Alexander (prefers Alex)",
"event": "UPDATE",
"timestamp": "2025-01-04T01:00:00Z"
}
]
}
Was this page helpful?