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

Method get_recent

core/src/memory.rs:224–226  ·  view source on GitHub ↗

Get recent memories

(&self, limit: usize)

Source from the content-addressed store, hash-verified

222
223 /// Get recent memories
224 pub async fn get_recent(&self, limit: usize) -> anyhow::Result<Vec<MemoryItem>> {
225 self.store.get_recent(limit).await
226 }
227
228 /// Add to working memory (auto-trims by relevance if over capacity)
229 pub async fn add_to_working(&self, item: MemoryItem) -> anyhow::Result<()> {

Callers 2

memory_recentMethod · 0.80
memory_recentMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected