Class HistoryConfig

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

public abstract class HistoryConfig extends JsonSerializable
Configuration for history exchange between client and server.
  • Constructor Details

    • HistoryConfig

      public HistoryConfig()
  • Method Details

    • initialHistoryInClientContent

      public abstract Optional<Boolean> initialHistoryInClientContent()
      If true, after sending `setup_complete`, the server will wait and at first process `client_content` messages until `turn_complete` is `true`. This initial history will not trigger a model call and may end with model content. After `turn_complete` is `true`, the client can start the realtime conversation via `realtime_input`.
    • builder

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

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

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