Package com.google.genai.types
Class ProactivityConfig
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.ProactivityConfig
Config for proactivity features.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for ProactivityConfig. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ProactivityConfig.Builder
builder()
Instantiates a builder for ProactivityConfig.static ProactivityConfig
Deserializes a JSON string to a ProactivityConfig object.If enabled, the model can reject responding to the last prompt.abstract ProactivityConfig.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
ProactivityConfig
public ProactivityConfig()
-
-
Method Details
-
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
Instantiates a builder for ProactivityConfig. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a ProactivityConfig object.
-