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

Method stats

core/src/memory.rs:265–271  ·  view source on GitHub ↗

Get memory statistics

(&self)

Source from the content-addressed store, hash-verified

263
264 /// Get memory statistics
265 pub async fn stats(&self) -> anyhow::Result<MemoryStats> {
266 Ok(MemoryStats {
267 long_term_count: self.store.count().await?,
268 short_term_count: self.short_term.read().await.len(),
269 working_count: self.working.read().await.len(),
270 })
271 }
272
273 /// Get access to the underlying store
274 pub fn store(&self) -> &Arc<dyn MemoryStore> {

Callers 4

queue_statsMethod · 0.45
memory_statsMethod · 0.45
memory_statsMethod · 0.45

Calls 1

lenMethod · 0.45

Tested by 1