Class ProactivityConfig

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

public abstract class ProactivityConfig extends JsonSerializable
Config for proactivity features.
  • Constructor Details

    • ProactivityConfig

      public ProactivityConfig()
  • Method Details

    • proactiveAudio

      public abstract Optional<Boolean> proactiveAudio()
      If enabled, the model can reject responding to the last prompt. For example, this allows the model to ignore out of context speech or to stay silent if the user did not make a request, yet.
    • builder

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

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

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