MCPcopy Create free account
hub / github.com/AI45Lab/Code / clear_short_term

Method clear_short_term

core/src/memory.rs:260–262  ·  view source on GitHub ↗

Clear short-term memory

(&self)

Source from the content-addressed store, hash-verified

258
259 /// Clear short-term memory
260 pub async fn clear_short_term(&self) {
261 self.short_term.write().await.clear();
262 }
263
264 /// Get memory statistics
265 pub async fn stats(&self) -> anyhow::Result<MemoryStats> {

Callers

nothing calls this directly

Calls 2

writeMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected