Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/AI45Lab/Code
/ clear_working
Method
clear_working
core/src/memory.rs:250–252 ·
view source on GitHub ↗
Clear working memory
(&self)
Source
from the content-addressed store, hash-verified
248
249
/// Clear working memory
250
pub async fn clear_working(&self) {
251
self.working.write().await.clear();
252
}
253
254
/// Get short-term memory
255
pub async fn get_short_term(&self) -> Vec<MemoryItem> {
Callers
1
test_agent_memory_working
Function · 0.45
Calls
2
write
Method · 0.80
clear
Method · 0.45
Tested by
1
test_agent_memory_working
Function · 0.36