mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-09-07 08:26:06 +00:00
fix bug when updating memory freq only but not utility
This commit is contained in:
parent
b5676fc4b8
commit
79a9e4038d
1 changed files with 7 additions and 1 deletions
|
|
@ -44,7 +44,13 @@ class UpdateMemoryUtilityOp(BaseAsyncOp):
|
|||
memory_dicts: List[dict] = self.context.memory_dicts
|
||||
update_utility = self.context.update_utility
|
||||
|
||||
if not memory_dicts or not update_utility:
|
||||
if not memory_dicts:
|
||||
logger.info("No memories to update utility")
|
||||
return
|
||||
|
||||
if not update_utility:
|
||||
self.context.response.metadata["memory_list"] = self.context.memory_list
|
||||
self.context.response.metadata["deleted_memory_ids"] = self.context.deleted_memory_ids
|
||||
logger.info("No memories to update utility")
|
||||
return
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue