(self, memory_path = None)
| 94 | self.memory = memory |
| 95 | |
| 96 | def save_local(self, memory_path = None) -> None: |
| 97 | |
| 98 | if memory_path is None: |
| 99 | memory_path = self.memory_path |
| 100 | |
| 101 | """Save the memory to the local file.""" |
| 102 | with open(os.path.join(memory_path, "memory.json"), "w") as f: |
| 103 | json.dump(self.memory, f, indent=2) |
| 104 | self.vectorstore.save_local(memory_path) |
nothing calls this directly
no outgoing calls
no test coverage detected