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

Method with_memory

core/src/agent_api/session_options.rs:251–254  ·  view source on GitHub ↗

Set a custom memory store

(mut self, store: Arc<dyn MemoryStore>)

Source from the content-addressed store, hash-verified

249
250 /// Set a custom memory store
251 pub fn with_memory(mut self, store: Arc<dyn MemoryStore>) -> Self {
252 self.memory_store = Some(store);
253 self
254 }
255
256 /// Use a file-based memory store at the given directory.
257 ///

Calls

no outgoing calls