Enum Class RealtimeModality

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

public enum RealtimeModality extends Enum<RealtimeModality>
The response modality a scripted realtime turn is rendered as.
  • AUDIO — the model "speaks": the codec emits audio byte deltas plus a spoken-transcript delta stream (OpenAI response.output_audio.delta + response.output_audio_transcript.delta; Gemini inlineData audio parts + outputTranscription). This is the realtime default.
  • TEXT — the model writes text only: the codec emits text deltas (OpenAI response.output_text.delta; Gemini modelTurn text parts).
  • Enum Constant Details

  • Method Details

    • values

      public static RealtimeModality[] 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 RealtimeModality 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