MCPcopy Create free account
hub / github.com/GCWing/BitFun / get_state

Method get_state

src/crates/execution/agent-runtime/src/session_state_manager.rs:31–33  ·  view source on GitHub ↗
(&self, session_id: &str)

Source from the content-addressed store, hash-verified

29 }
30
31 pub fn get_state(&self, session_id: &str) -> Option<SessionState> {
32 self.states.get(session_id).map(|state| state.clone())
33 }
34
35 pub async fn update_state(&self, session_id: &str, new_state: SessionState) {
36 let should_emit = if let Some(mut state) = self.states.get_mut(session_id) {

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected