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

Method from_event_payload

atomic-agent/src/hook_log.rs:39–43  ·  view source on GitHub ↗

Service-side extraction must use caller fields, never daemon env vars.

(event: &crate::event::TurnEvent)

Source from the content-addressed store, hash-verified

37
38 /// Service-side extraction must use caller fields, never daemon env vars.
39 pub fn from_event_payload(event: &crate::event::TurnEvent) -> Self {
40 let mut context = Self::from_json(event.raw_json.as_ref());
41 context.session_id = usable(Some(&event.session_id)).or(context.session_id);
42 context
43 }
44
45 fn with_environment(mut self) -> Self {
46 self.session_id = self

Callers

nothing calls this directly

Calls 2

usableFunction · 0.85
as_refMethod · 0.80

Tested by

no test coverage detected