From d285d8cd972893c1d65b514eb10557e58d20732e Mon Sep 17 00:00:00 2001 From: Lynn Date: Fri, 26 Dec 2025 14:42:47 +0800 Subject: [PATCH] Fix: memory (#12230) ### What problem does this PR solve? Judge has attr memory_ids ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- agent/component/message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/component/message.py b/agent/component/message.py index 15acf77f3..7c888d886 100644 --- a/agent/component/message.py +++ b/agent/component/message.py @@ -427,7 +427,7 @@ class Message(ComponentBase): logging.error(f"Error converting content to {self._param.output_format}: {e}") async def _save_to_memory(self, content): - if hasattr(self._param, "memory_ids") and not self._param.memory_ids: + if not hasattr(self._param, "memory_ids") or not self._param.memory_ids: return True, "No memory selected." message_dict = {