Class UpdateSessionParams

java.lang.Object
com.alibaba.dashscope.types.audio.UpdateSessionParams

public final class UpdateSessionParams extends Object
Session configuration for RealtimeSession.updateSession (audio design §1.3).

Only explicitly-set fields are serialized — unlike 2.x, unset fields are omitted rather than sent with defaults. To force a JSON null on the wire (the explicit-null sentinel, e.g. to clear a server-side setting), put a null value into parameters; a typed field that was never set simply does not appear.

enableInputAudioTranscription/enableTurnDetection follow Python semantics: TRUE emits the config object, FALSE emits an explicit null (disables the feature server-side), unset emits nothing.

  • Method Details

    • builder

      public static UpdateSessionParams.Builder builder()
    • toSessionJson

      public com.fasterxml.jackson.databind.node.ObjectNode toSessionJson()
      Serializes the session object of a session.update frame.