From f4d48a36d2db0477afbd15928a96624d72aac967 Mon Sep 17 00:00:00 2001 From: Sarah Wooders Date: Thu, 11 Jul 2024 21:01:17 -0700 Subject: [PATCH] Fix client --- memgpt/client/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/memgpt/client/client.py b/memgpt/client/client.py index 97393207..b3a27351 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")