Package org.mockserver.llm.realtime
Enum Class RealtimeProvider
- All Implemented Interfaces:
Serializable,Comparable<RealtimeProvider>,Constable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionGoogle Gemini Live API —BidiGenerateContentover WebSocket.OpenAI Realtime API (GA 2025 event protocol) —wss://api.openai.com/v1/realtime. -
Method Summary
Modifier and TypeMethodDescriptionstatic RealtimeProviderReturns the enum constant of this class with the specified name.static RealtimeProvider[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OPENAI_REALTIME
OpenAI Realtime API (GA 2025 event protocol) —wss://api.openai.com/v1/realtime. -
GEMINI_LIVE
Google Gemini Live API —BidiGenerateContentover WebSocket.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-