Fix dependency and tests and updated docstring (#3337)
This commit is contained in:
+9
-1
@@ -151,7 +151,15 @@ def search_memories(search_req: SearchRequest):
|
||||
|
||||
@app.put("/memories/{memory_id}", summary="Update a memory")
|
||||
def update_memory(memory_id: str, updated_memory: Dict[str, Any]):
|
||||
"""Update an existing memory."""
|
||||
"""Update an existing memory with new content.
|
||||
|
||||
Args:
|
||||
memory_id (str): ID of the memory to update
|
||||
updated_memory (str): New content to update the memory with
|
||||
|
||||
Returns:
|
||||
dict: Success message indicating the memory was updated
|
||||
"""
|
||||
try:
|
||||
return MEMORY_INSTANCE.update(memory_id=memory_id, data=updated_memory)
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user