MCPcopy Index your code
hub / github.com/InfinitiBit/graphbit / remove

Method remove

core/src/memory/vector.rs:74–77  ·  view source on GitHub ↗

Remove entries for a specific memory.

(&self, memory_id: &MemoryId)

Source from the content-addressed store, hash-verified

72
73 /// Remove entries for a specific memory.
74 pub async fn remove(&self, memory_id: &MemoryId) {
75 let mut entries = self.entries.write().await;
76 entries.retain(|e| &e.memory_id != memory_id);
77 }
78
79 /// Replace the embedding for an existing memory.
80 pub async fn update(&self, memory_id: &MemoryId, embedding: Vec<f32>) {

Callers 11

unregister_toolMethod · 0.80
sanitize_tool_call_entryFunction · 0.80
delete_allMethod · 0.80
remove_nodeMethod · 0.80
handleScrollFunction · 0.80
upload_pdfFunction · 0.80

Calls

no outgoing calls

Tested by 1