Class LiveClientMessage

java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.LiveClientMessage

public abstract class LiveClientMessage extends JsonSerializable
Messages sent by the client in the API call.
  • Constructor Details

    • LiveClientMessage

      public LiveClientMessage()
  • Method Details

    • setup

      public abstract Optional<LiveClientSetup> setup()
      Message to be sent by the system when connecting to the API. SDK users should not send this message.
    • clientContent

      public abstract Optional<LiveClientContent> clientContent()
      Incremental update of the current conversation delivered from the client.
    • realtimeInput

      public abstract Optional<LiveClientRealtimeInput> realtimeInput()
      User input that is sent in real time.
    • realtimeInputParameters

      public abstract Optional<LiveSendRealtimeInputParameters> realtimeInputParameters()
      This is an alias for `realtime_input` field. Allows the inputs to sendRealtimeInput to be transformed into `realtime_input` before being sent. Note: This will overwrite any `realtime_input` field.
    • toolResponse

      public abstract Optional<LiveClientToolResponse> toolResponse()
      Response to a `ToolCallMessage` received from the server.
    • builder

      public static LiveClientMessage.Builder builder()
      Instantiates a builder for LiveClientMessage.
    • toBuilder

      public abstract LiveClientMessage.Builder toBuilder()
      Creates a builder with the same values as this instance.
    • fromJson

      public static LiveClientMessage fromJson(String jsonString)
      Deserializes a JSON string to a LiveClientMessage object.