Package com.google.genai.types
Class ProactivityConfig.Builder
java.lang.Object
com.google.genai.types.ProactivityConfig.Builder
- Enclosing class:
- ProactivityConfig
Builder for ProactivityConfig.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ProactivityConfigbuild()Clears the value of proactiveAudio field.Clears the value of proactiveVideo field.abstract ProactivityConfig.BuilderproactiveAudio(boolean proactiveAudio) Setter for proactiveAudio.abstract ProactivityConfig.BuilderproactiveVideo(boolean proactiveVideo) Setter for proactiveVideo.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
proactiveAudio
Setter for proactiveAudio.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.
-
clearProactiveAudio
Clears the value of proactiveAudio field. -
proactiveVideo
Setter for proactiveVideo.proactiveVideo: If enabled, the system might trigger a generation on each received image. This requires that `proactive_audio` is enabled. The rate of generation depends on the rate of incoming images and can cause a significant increase in cost.
-
clearProactiveVideo
Clears the value of proactiveVideo field. -
build
-