Table of Contents

Class RealtimeInputConfig

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

Marks the end of user activity. This can only be sent if automatic (i.e. server-side) activity detection is disabled.

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

Properties

ActivityHandling

Defines what effect activity has.

[JsonPropertyName("activityHandling")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public ActivityHandling? ActivityHandling { get; set; }

Property Value

ActivityHandling?

AutomaticActivityDetection

If not set, automatic activity detection is enabled by default. If automatic voice detection is disabled, the client must send activity signals.

[JsonPropertyName("automaticActivityDetection")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public AutomaticActivityDetection? AutomaticActivityDetection { get; set; }

Property Value

AutomaticActivityDetection

TurnCoverage

Defines which input is included in the user's turn.

[JsonPropertyName("turnCoverage")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public TurnCoverage? TurnCoverage { get; set; }

Property Value

TurnCoverage?

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a RealtimeInputConfig object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

RealtimeInputConfig

The deserialized RealtimeInputConfig object, or null if deserialization fails.