Delete a single memory by its ID.
(&self, memory_id: &MemoryId)
| 166 | |
| 167 | /// Delete a single memory by its ID. |
| 168 | pub async fn delete(&self, memory_id: &MemoryId) -> GraphBitResult<()> { |
| 169 | let old = self.store.get_memory(memory_id).await?; |
| 170 | let old_content = old.map(|m| m.content).unwrap_or_default(); |
| 171 | self.delete_memory_internal(memory_id, &old_content).await |
| 172 | } |
| 173 | |
| 174 | /// Delete all memories matching a scope. |
| 175 | pub async fn delete_all(&self, scope: &MemoryScope) -> GraphBitResult<()> { |
nothing calls this directly
no test coverage detected