(
self,
memory_path: str = None,
vectorstore: VectorStore = None,
)
| 77 | return items, scores |
| 78 | |
| 79 | def load_local( |
| 80 | self, |
| 81 | memory_path: str = None, |
| 82 | vectorstore: VectorStore = None, |
| 83 | ): |
| 84 | |
| 85 | if memory_path is None: |
| 86 | memory_path = self.memory_path |
| 87 | |
| 88 | """Load the memory from the local file.""" |
| 89 | with open(os.path.join(memory_path, "memory.json"), "r") as rf: |
| 90 | memory = json.load(rf) |
| 91 | |
| 92 | self.memory_path = memory_path |
| 93 | self.vectorstore = vectorstore |
| 94 | self.memory = memory |
| 95 | |
| 96 | def save_local(self, memory_path = None) -> None: |
| 97 |
nothing calls this directly
no outgoing calls
no test coverage detected