Package com.google.genai.types
Class ProactivityConfig
-
- All Implemented Interfaces:
public abstract class ProactivityConfig extends JsonSerializable
Config for proactivity features.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classProactivityConfig.BuilderBuilder for ProactivityConfig.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description ProactivityConfig()
-
Method Summary
Modifier and Type Method Description abstract Optional<Boolean>proactiveAudio()If enabled, the model can reject responding to the last prompt. static ProactivityConfig.Builderbuilder()Instantiates a builder for ProactivityConfig. abstract ProactivityConfig.BuildertoBuilder()Creates a builder with the same values as this instance. static ProactivityConfigfromJson(String jsonString)Deserializes a JSON string to a ProactivityConfig object. -
Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
proactiveAudio
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
static ProactivityConfig.Builder builder()
Instantiates a builder for ProactivityConfig.
-
toBuilder
abstract ProactivityConfig.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static ProactivityConfig fromJson(String jsonString)
Deserializes a JSON string to a ProactivityConfig object.
-
-
-
-