MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / extract_session_id

Method extract_session_id

atomic-agent/src/hooks/grok.rs:127–131  ·  view source on GitHub ↗
(session_id: Option<String>)

Source from the content-addressed store, hash-verified

125 }
126
127 fn extract_session_id(session_id: Option<String>) -> String {
128 session_id
129 .filter(|s| !s.is_empty())
130 .unwrap_or_else(|| format!("grok-{}", uuid_short()))
131 }
132
133 fn parse_json(&self, hook_type: HookType, input: &[u8]) -> AgentResult<Value> {
134 if input.is_empty() {

Callers

nothing calls this directly

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected