Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Fix: memory (#12230)

Lynnd285d8cd9728
diff --git a/agent/component/message.py b/agent/component/message.py
index 15acf77f37..7c888d8866 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 = {