Enum Class RealtimeProvider

java.lang.Object
java.lang.Enum<RealtimeProvider>
org.mockserver.llm.realtime.RealtimeProvider
All Implemented Interfaces:
Serializable, Comparable<RealtimeProvider>, Constable

public enum RealtimeProvider extends Enum<RealtimeProvider>
The realtime (voice / bidirectional WebSocket) LLM protocols MockServer can mock.

These are deliberately kept separate from the HTTP-request/response Provider enum: the realtime protocols are a WebSocket event stream rather than a single request/response body, so they have their own codecs (OpenAiRealtimeCodec, GeminiLiveCodec) and are wired through the httpWebSocketResponse action rather than httpLlmResponse. Mapping these onto the HTTP Provider enum (for pricing / sniffer / detector parity) is deferred — see docs/code/llm-mocking.md.

  • Enum Constant Details

    • OPENAI_REALTIME

      public static final RealtimeProvider OPENAI_REALTIME
      OpenAI Realtime API (GA 2025 event protocol) — wss://api.openai.com/v1/realtime.
    • GEMINI_LIVE

      public static final RealtimeProvider GEMINI_LIVE
      Google Gemini Live API — BidiGenerateContent over WebSocket.
  • Method Details

    • values

      public static RealtimeProvider[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static RealtimeProvider valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null