(self, store: MemoryScopeStore)
| 59 | assert entries[0].content == "found it" |
| 60 | |
| 61 | def test_by_query(self, store: MemoryScopeStore): |
| 62 | store.remember(MemoryScope.GLOBAL, "lang", "Python is great") |
| 63 | store.remember(MemoryScope.GLOBAL, "editor", "vim") |
| 64 | |
| 65 | entries = store.recall(scope=MemoryScope.GLOBAL, query="python") |
| 66 | assert len(entries) == 1 |
| 67 | assert entries[0].key == "lang" |
| 68 | |
| 69 | def test_by_query_matches_key(self, store: MemoryScopeStore): |
| 70 | store.remember(MemoryScope.GLOBAL, "python_version", "3.12") |