Fix client

This commit is contained in:
Sarah Wooders
2024-07-11 21:01:17 -07:00
parent b14e7884f4
commit f4d48a36d2

View File

@@ -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")