Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
Fix client
Sarah Woodersf4d48a36d2db
diff --git a/memgpt/client/client.py b/memgpt/client/client.pyindex 97393207c..b3a273511 100644--- a/memgpt/client/client.py+++ b/memgpt/client/client.py@@ -888,7 +888,7 @@ class LocalClient(AbstractClient):source_type = "python"tool_name = json_schema["name"]- if "memory" in tags:+ if tags and "memory" in tags:# special modifications to memory functions# self.memory -> self.memory.memory, since Agent.memory.memory needs to be modified (not BaseMemory.memory)source_code = source_code.replace("self.memory", "self.memory.memory")