Table of Contents

Class ProactivityConfig

Namespace
Google.GenAI.Types
Assembly
Google.GenAI.dll

Config for proactivity features.

public record ProactivityConfig : IEquatable<ProactivityConfig>
Inheritance
ProactivityConfig
Implements
Inherited Members

Properties

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.

[JsonPropertyName("proactiveAudio")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public bool? ProactiveAudio { get; set; }

Property Value

bool?

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a ProactivityConfig object.

public static ProactivityConfig? FromJson(string jsonString, JsonSerializerOptions? options = null)

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

ProactivityConfig

The deserialized ProactivityConfig object, or null if deserialization fails.