chore: update user facing timestamp for a memory (#4066)

This commit is contained in:
Mragank Shekhar
2026-02-18 03:27:46 +05:30
committed by GitHub
parent a6810819ca
commit a140829395
6 changed files with 69 additions and 23 deletions
+16
View File
@@ -7,6 +7,14 @@ mode: "wide"
<Tabs>
<Tab title="Python">
<Update label="2026-02-17" description="v1.0.4">
**New Features & Updates:**
- **Memory Update:**
- Added `timestamp` parameter to `update()` — accepts Unix epoch (int/float) or ISO 8601 string
</Update>
<Update label="2026-01-29" description="v1.0.3">
**New Features & Updates:**
@@ -716,6 +724,14 @@ mode: "wide"
<Tab title="TypeScript">
<Update label="2026-02-17" description="v2.2.3">
**New Features & Updates:**
- **Memory Update:**
- Added `timestamp` parameter to `update()` — accepts Unix epoch or ISO 8601 string
</Update>
<Update label="2026-01-29" description="v2.2.2">
**New Features & Updates:**
@@ -21,6 +21,7 @@ Mem0’s update operation lets you fix or enrich an existing memory without dele
- **memory_id** – Unique identifier returned by `add` or `search` results.
- **text** / **data** – New content that replaces the stored memory value.
- **metadata** – Optional key-value pairs you update alongside the text.
- **timestamp** – Unix epoch (int/float) or ISO 8601 string to override the memory's timestamp.
- **batch_update** – Platform API that edits multiple memories in a single request.
- **immutable** – Flagged memories that must be deleted and re-added instead of updated.
@@ -50,7 +51,8 @@ memory_id = "your_memory_id"
client.update(
memory_id=memory_id,
text="Updated memory content about the user",
metadata={"category": "profile-update"}
metadata={"category": "profile-update"},
timestamp="2025-01-15T12:00:00Z"
)
```
@@ -62,7 +64,8 @@ const memory_id = "your_memory_id";
await client.update(memory_id, {
text: "Updated memory content about the user",
metadata: { category: "profile-update" }
metadata: { category: "profile-update" },
timestamp: "2025-01-15T12:00:00Z"
});
```
</CodeGroup>