# `BB.MCP.EventBuffer.Serializer`
[🔗](https://github.com/beam-bots/bb_mcp/blob/main/lib/bb/mcp/event_buffer/serializer.ex#L5)

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.

# `serialise`

```elixir
@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.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
