Expand description
Boundary handling for OpenAI Realtime API server events.
Tolerates provider drift: unknown event types and unknown fields pass
through verbatim. Typeless payloads are tagged with type: "unknown"
so the session driver can ignore them deterministically. Matches the
Python / Elixir / TypeScript boundary behaviour.
Functions§
- parse_
server_ event - Best-effort parse: returns the raw value as-is when it has a
typefield, otherwise tags itunknownso the session driver’s match arm sees a stable shape.