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

Method with_session_id

core/src/context/mod.rs:148–151  ·  view source on GitHub ↗

Set the session ID

(mut self, id: impl Into<String>)

Source from the content-addressed store, hash-verified

146
147 /// Set the session ID
148 pub fn with_session_id(mut self, id: impl Into<String>) -> Self {
149 self.session_id = Some(id.into());
150 self
151 }
152
153 /// Add a custom parameter
154 pub fn with_param(mut self, key: impl Into<String>, value: serde_json::Value) -> Self {

Callers 2

Calls

no outgoing calls

Tested by 2