You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`get_memories(memory_id=None, user_id=None, thread_id=None, role=None, memory_types=None, recent_k=None, tags_all=None, tags_any=None, exclude_tags=None, include_superseded=False, min_salience=None, min_confidence=None, created_after=None, created_before=None) -> list[dict]` — retrieve memories from the MEMORIES container. `memory_types` defaults to `["fact", "episodic", "procedural"]` and must be a subset of those three.
32
+
-`update_cosmos(memory_id, *, user_id, thread_id, memory_type, content=None, role=None, metadata=None) -> None` — point-update a memory in the container that holds `memory_type`. The `type` field itself is never mutated.
33
+
-`delete_cosmos(memory_id, *, user_id, thread_id, memory_type) -> None` — delete a memory from the container that holds `memory_type`.
34
+
-`get_thread(thread_id, user_id=None, recent_k=None, tags_all=None, tags_any=None, exclude_tags=None, include_superseded=False, created_after=None, created_before=None) -> list[dict]` — retrieve turns from the TURNS container oldest-first.
35
+
-`get_thread_summary(user_id, thread_id, recent_k=None) -> list[dict]` — retrieve thread summary documents from the SUMMARIES container for a single `(user_id, thread_id)` partition.
35
36
-`get_user_summary(user_id) -> Optional[dict]` — retrieve the active user-summary document.
36
37
37
38
### Retrieval
@@ -56,8 +57,8 @@
56
57
57
58
### Tagging
58
59
59
-
-`add_tags(memory_id, user_id, thread_id, tags) -> None` — add tags to a memory.
60
-
-`remove_tags(memory_id, user_id, thread_id, tags) -> None` — remove tags from a memory.
60
+
-`add_tags(memory_id, user_id, thread_id, memory_type, tags) -> None` — add tags to a memory. `memory_type` must be one of `fact`, `episodic`, `procedural`.
61
+
-`remove_tags(memory_id, user_id, thread_id, memory_type, tags) -> None` — remove tags from a memory. `memory_type` must be one of `fact`, `episodic`, `procedural`.
61
62
-`list_tags(user_id, *, thread_id=None, prefix=None, include_sys=False) -> list[str]` — list sorted, deduped tags for a user; omits `sys:*` by default.
-`async get_memories(memory_id=None, user_id=None, thread_id=None, role=None, memory_types=None, recent_k=None, tags_all=None, tags_any=None, exclude_tags=None, include_superseded=False, min_salience=None, min_confidence=None, created_after=None, created_before=None) -> list[dict]` — retrieve memories from the MEMORIES container. `memory_types` defaults to `["fact", "episodic", "procedural"]` and must be a subset of those three.
85
+
-`async update_cosmos(memory_id, *, user_id, thread_id, memory_type, content=None, role=None, metadata=None) -> None` — point-update a memory in the container that holds `memory_type`. The `type` field itself is never mutated.
86
+
-`async delete_cosmos(memory_id, *, user_id, thread_id, memory_type) -> None` — delete a memory from the container that holds `memory_type`.
87
+
-`async get_thread(thread_id, user_id=None, recent_k=None, tags_all=None, tags_any=None, exclude_tags=None, include_superseded=False, created_after=None, created_before=None) -> list[dict]` — retrieve turns from the TURNS container oldest-first.
88
+
-`async get_thread_summary(user_id, thread_id, recent_k=None) -> list[dict]` — retrieve thread summary documents from the SUMMARIES container for a single `(user_id, thread_id)` partition.
87
89
-`async get_user_summary(user_id) -> Optional[dict]` — retrieve the active user-summary document.
-`async add_tags(memory_id, user_id, thread_id, tags) -> None` — add tags to a memory.
112
-
-`async remove_tags(memory_id, user_id, thread_id, tags) -> None` — remove tags from a memory.
113
+
-`async add_tags(memory_id, user_id, thread_id, memory_type, tags) -> None` — add tags to a memory. `memory_type` must be one of `fact`, `episodic`, `procedural`.
114
+
-`async remove_tags(memory_id, user_id, thread_id, memory_type, tags) -> None` — remove tags from a memory. `memory_type` must be one of `fact`, `episodic`, `procedural`.
113
115
-`async list_tags(user_id, *, thread_id=None, prefix=None, include_sys=False) -> list[str]` — list sorted, deduped tags for a user; omits `sys:*` by default.
"### 3c. Retrieve memories from Cosmos DB with `get_memories`\n",
516
+
"### 3c. Retrieve memories from Cosmos DB\n",
514
517
"\n",
515
-
"Supports the same filters as `get_local`: `memory_id`, `user_id`, `role`, `memory_type`."
518
+
"`get_memories(...)` returns derived memories (`fact`, `episodic`, `procedural`) from the memories container. For other containers use `get_thread(thread_id=...)` for turns, `get_thread_summary(user_id, thread_id)` for thread summaries, and `get_user_summary(user_id)` for the cross-thread profile."
516
519
]
517
520
},
518
521
{
@@ -533,16 +536,17 @@
533
536
},
534
537
"outputs": [],
535
538
"source": [
536
-
"# Get all memories for user-001\n",
539
+
"# Derived memories (fact/episodic/procedural) for user-001. Empty until section 5 runs extract_memories.\n",
0 commit comments