Class ProactivityConfig
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
jsonStringstringThe JSON string to deserialize.
optionsJsonSerializerOptionsOptional JsonSerializerOptions.
Returns
- ProactivityConfig
The deserialized ProactivityConfig object, or null if deserialization fails.