MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / event_session_id

Function event_session_id

src/hooks/mod.rs:489–495  ·  view source on GitHub ↗
(parsed: &Value)

Source from the content-addressed store, hash-verified

487}
488
489fn event_session_id(parsed: &Value) -> Option<String> {
490 ["session_id", "conversation_id", "chat_id"]
491 .iter()
492 .find_map(|key| parsed.get(*key).and_then(Value::as_str))
493 .filter(|id| !id.is_empty())
494 .map(str::to_string)
495}
496
497fn event_i64(parsed: &Value, keys: &[&str]) -> Option<i64> {
498 keys.iter().find_map(|key| {

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected