MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / from_session

Method from_session

graphlite/src/exec/context.rs:271–276  ·  view source on GitHub ↗

ROADMAP v0.5.0 - Session-to-context conversion for test utilities

(session: &Session)

Source from the content-addressed store, hash-verified

269 /// Create ExecutionContext from a simplified Session
270 #[allow(dead_code)] // ROADMAP v0.5.0 - Session-to-context conversion for test utilities
271 pub fn from_session(session: &Session) -> Self {
272 let storage = session.storage.clone();
273 let mut context = Self::new("session".to_string(), storage);
274 context.current_user = Some(session.username.clone());
275 context
276 }
277
278 /// Set the current user for metadata tracking
279 #[allow(dead_code)] // ROADMAP v0.5.0 - User tracking for audit and metadata

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.80

Tested by

no test coverage detected