Convert BB.MCP.EventBuffer entries into JSON-safe maps for tool replies.
BB message payloads may contain Nx tensors (Vec3, Quaternion, Transform),
large binaries (camera images), or other non-JSON-encodable values. We
render those via inspect/1 rather than failing the Jason encode.
Summary
Functions
Serialise a buffer entry. now_ns is the reference monotonic time used to
compute age_ms, so the agent can reason about how recent each event is.
Functions
@spec serialise(BB.MCP.EventBuffer.entry(), integer()) :: map()
Serialise a buffer entry. now_ns is the reference monotonic time used to
compute age_ms, so the agent can reason about how recent each event is.