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

Method with_session_id

core/src/agent_api/session_options.rs:299–302  ·  view source on GitHub ↗

Set an explicit session ID (auto-generated UUID if not set)

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

Source from the content-addressed store, hash-verified

297
298 /// Set an explicit session ID (auto-generated UUID if not set)
299 pub fn with_session_id(mut self, id: impl Into<String>) -> Self {
300 self.session_id = Some(id.into());
301 self
302 }
303
304 /// Tag the session with a host-defined tenant id. Opaque to the
305 /// framework — propagated to `SessionData`, hooks, and traces.

Calls

no outgoing calls