File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -259,6 +259,7 @@ def _single_update_operation(
259259 user_id : str ,
260260 user_name : str ,
261261 async_mode : str = "sync" ,
262+ operation : dict | None = None ,
262263 ) -> dict :
263264 """
264265 Individual update operations
@@ -271,6 +272,9 @@ def _single_update_operation(
271272 and old_memory_item .metadata .file_ids
272273 else None
273274 )
275+ if operation and "text" in operation and operation ["text" ]:
276+ new_memory_item .memory = operation ["text" ]
277+
274278 if memory_type == "WorkingMemory" :
275279 fields = {
276280 "memory" : new_memory_item .memory ,
@@ -445,6 +449,7 @@ def semantics_feedback(
445449 memory_item ,
446450 user_id ,
447451 user_name ,
452+ operation = op ,
448453 )
449454 future_to_op [future ] = ("update" , op )
450455
You can’t perform that action at this time.
0 commit comments