Skip to main content

Module schemas

Module schemas 

Source
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 type field, otherwise tags it unknown so the session driver’s match arm sees a stable shape.