Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
fix: Fixed NameError: name 'attach' is not defined (#1255)
Taddeus163fddabac61
diff --git a/memgpt/autogen/memgpt_agent.py b/memgpt/autogen/memgpt_agent.pyindex e36483a42..5440de33b 100644--- a/memgpt/autogen/memgpt_agent.py+++ b/memgpt/autogen/memgpt_agent.py@@ -73,7 +73,9 @@ class MemGPTConversableAgent(ConversableAgent):def attach(self, data_source: str):# attach new data- attach(agent_name=self.agent.agent_state.name, data_source=data_source)+ config = MemGPTConfig.load()+ source_connector = StorageConnector.get_storage_connector(TableType.PASSAGES, config, user_id=self.agent.agent_state.user_id)+ self.agent.attach_source(data_source, source_connector, ms=self.ms)def load_and_attach(self, name: str, type: str, force=False, **kwargs):# check if data source already exists