Class HistoryConfig.Builder

java.lang.Object
com.google.genai.types.HistoryConfig.Builder
Enclosing class:
HistoryConfig

public abstract static class HistoryConfig.Builder extends Object
Builder for HistoryConfig.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • initialHistoryInClientContent

      public abstract HistoryConfig.Builder initialHistoryInClientContent(boolean initialHistoryInClientContent)
      Setter for initialHistoryInClientContent.

      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`.

    • clearInitialHistoryInClientContent

      @CanIgnoreReturnValue public HistoryConfig.Builder clearInitialHistoryInClientContent()
      Clears the value of initialHistoryInClientContent field.
    • build

      public abstract HistoryConfig build()