MCPcopy Index your code
hub / github.com/AI45Lab/Code / with_session_store

Method with_session_store

core/src/agent_api/session_options.rs:267–270  ·  view source on GitHub ↗

Set a session store for persistence

(mut self, store: Arc<dyn crate::store::SessionStore>)

Source from the content-addressed store, hash-verified

265
266 /// Set a session store for persistence
267 pub fn with_session_store(mut self, store: Arc<dyn crate::store::SessionStore>) -> Self {
268 self.session_store = Some(store);
269 self
270 }
271
272 /// Use a file-based session store at the given directory
273 pub fn with_file_session_store(mut self, dir: impl Into<PathBuf>) -> Self {

Calls

no outgoing calls