This commit is contained in:
Timothy Jaeryang Baek committed 2026-06-29 06:01:05 -05:00
1 parent 75df948f34
commit a285a390c1
2 files changed
+6 -3

No files matched your search

+4 -3
View File
@@ -606,7 +606,7 @@ async def search_memories(
:param query: Optional query to search memory content and path :param query: Optional query to search memory content and path
:param count: Number of memories to return (default 5) :param count: Number of memories to return (default 5)
:param type: "user", "context", or "all" :param type: "user", "context", or "all"
:param path: Optional logical memory path prefix :param path: Optional memory path prefix
:param memory_id: Optional exact memory ID to read :param memory_id: Optional exact memory ID to read
:return: JSON with matching memories and their dates :return: JSON with matching memories and their dates
""" """
@@ -661,7 +661,7 @@ async def add_memory(
:param content: The memory content to store :param content: The memory content to store
:param type: Use "user" for facts/preferences about the user, or "context" for other durable context :param type: Use "user" for facts/preferences about the user, or "context" for other durable context
:param path: Optional logical memory path :param path: Optional memory path
:return: Confirmation that the memory was stored :return: Confirmation that the memory was stored
""" """
if __request__ is None: if __request__ is None:
@@ -695,6 +695,7 @@ async def update_memory(
Use type "user" for facts, preferences, or instructions about the user. Use type "user" for facts, preferences, or instructions about the user.
Use type "context" for other durable context that may help future chats. Use type "context" for other durable context that may help future chats.
Use path when there is a clear path for the memory. Leave path empty when unsure.
Operation shapes: Operation shapes:
- {"action": "add", "content": "...", "type": "user"|"context", "path": "..."} - {"action": "add", "content": "...", "type": "user"|"context", "path": "..."}
@@ -735,7 +736,7 @@ async def replace_memory_content(
:param memory_id: The ID of the memory to update :param memory_id: The ID of the memory to update
:param content: The new content for the memory :param content: The new content for the memory
:param type: Optional "user" or "context" type for the updated memory :param type: Optional "user" or "context" type for the updated memory
:param path: Optional logical memory path :param path: Optional memory path
:return: Confirmation that the memory was updated :return: Confirmation that the memory was updated
""" """
if __request__ is None: if __request__ is None:
+2
View File
@@ -313,6 +313,8 @@ Memory types:
Rules: Rules:
- Save only information likely to matter in future chats. - Save only information likely to matter in future chats.
- Do not save secrets, credentials, transient task steps, or unsupported guesses. - Do not save secrets, credentials, transient task steps, or unsupported guesses.
- Use path when there is a clear path for the memory.
- Leave path empty when there is no clear place for the memory.
- Prefer replace/move/remove over duplicate add when an existing memory should change. - Prefer replace/move/remove over duplicate add when an existing memory should change.
- Do not invent type, status, trait, score, importance, or stability schemas. - Do not invent type, status, trait, score, importance, or stability schemas.
- Return only JSON in this shape: - Return only JSON in this shape: