The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.
Python agentic-memoryagentic-memory-systemagentsaiai-agentschatgptgenaillmlong-term-memorymemorymemory-managementpythonragstate-management
Doc: update timestamp (#2638)
Dev Khant02a2b5955567
diff --git a/docs/features/timestamp.mdx b/docs/features/timestamp.mdxindex cd95256b5..813338401 100644--- a/docs/features/timestamp.mdx+++ b/docs/features/timestamp.mdx@@ -39,9 +39,16 @@ When adding new memories, you can specify a custom timestamp to indicate when th<CodeGroup>```python Python+import osimport timefrom datetime import datetime, timedelta+from mem0 import MemoryClient++os.environ["MEM0_API_KEY"] = "your-api-key"++client = MemoryClient()+# Get the current timecurrent_time = datetime.now()@@ -56,6 +63,9 @@ client.add("I'm travelling to SF", user_id="user1", timestamp=unix_timestamp)``````javascript JavaScript+import MemoryClient from 'mem0ai';+const client = new MemoryClient({ apiKey: 'your-api-key' });+// Get the current timeconst currentTime = new Date();