Table of Contents

Struct TurnCoverage

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

Options about which input is included in the user's turn.

[JsonConverter(typeof(TurnCoverageConverter))]
public readonly record struct TurnCoverage : IEquatable<TurnCoverage>
Implements
Inherited Members

Properties

AllValues

public static IReadOnlyList<TurnCoverage> AllValues { get; }

Property Value

IReadOnlyList<TurnCoverage>

TurnCoverageUnspecified

If unspecified, the default behavior is TURN_INCLUDES_ONLY_ACTIVITY.

public static TurnCoverage TurnCoverageUnspecified { get; }

Property Value

TurnCoverage

TurnIncludesAllInput

The users turn includes all realtime input since the last turn, including inactivity (e.g. silence on the audio stream).

public static TurnCoverage TurnIncludesAllInput { get; }

Property Value

TurnCoverage

TurnIncludesAudioActivityAndAllVideo

Includes audio activity and all video since the last turn. With automatic activity detection, audio activity means speech and excludes silence.

public static TurnCoverage TurnIncludesAudioActivityAndAllVideo { get; }

Property Value

TurnCoverage

TurnIncludesOnlyActivity

The users turn only includes activity since the last turn, excluding inactivity (e.g. silence on the audio stream). This is the default behavior.

public static TurnCoverage TurnIncludesOnlyActivity { get; }

Property Value

TurnCoverage

Value

public string Value { get; }

Property Value

string

Methods

Equals(TurnCoverage)

public bool Equals(TurnCoverage other)

Parameters

other TurnCoverage

Returns

bool

FromString(string)

public static TurnCoverage FromString(string value)

Parameters

value string

Returns

TurnCoverage

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

implicit operator TurnCoverage(string)

public static implicit operator TurnCoverage(string value)

Parameters

value string

Returns

TurnCoverage