ReqLLM.OpenAI.Realtime.Event (ReqLLM v1.19.0)

View Source

An experimental view of one OpenAI Realtime server event.

native preserves the provider event shape with sensitive payloads redacted by default. stream_events contains only the exact overlap with ReqLLM.StreamEvent; provider-specific session and transport events remain native instead of being mislabeled as portable.

Summary

Functions

Returns whether the provider event has exact canonical overlap.

Returns whether the projection contains a canonical terminal event.

Types

t()

@type t() :: %ReqLLM.OpenAI.Realtime.Event{
  native: map(),
  stream_events: [ReqLLM.StreamEvent.t()],
  type: String.t() | nil
}

Functions

portable?(event)

@spec portable?(t()) :: boolean()

Returns whether the provider event has exact canonical overlap.

terminal?(event)

@spec terminal?(t()) :: boolean()

Returns whether the projection contains a canonical terminal event.