Table of Contents

Struct ActivityHandling

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

The different ways of handling user activity.

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

Properties

ActivityHandlingUnspecified

If unspecified, the default behavior is START_OF_ACTIVITY_INTERRUPTS.

public static ActivityHandling ActivityHandlingUnspecified { get; }

Property Value

ActivityHandling

AllValues

public static IReadOnlyList<ActivityHandling> AllValues { get; }

Property Value

IReadOnlyList<ActivityHandling>

NoInterruption

The model's response will not be interrupted.

public static ActivityHandling NoInterruption { get; }

Property Value

ActivityHandling

StartOfActivityInterrupts

If true, start of activity will interrupt the model's response (also called "barge in"). The model's current response will be cut-off in the moment of the interruption. This is the default behavior.

public static ActivityHandling StartOfActivityInterrupts { get; }

Property Value

ActivityHandling

Value

public string Value { get; }

Property Value

string

Methods

Equals(ActivityHandling)

public bool Equals(ActivityHandling other)

Parameters

other ActivityHandling

Returns

bool

FromString(string)

public static ActivityHandling FromString(string value)

Parameters

value string

Returns

ActivityHandling

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

implicit operator ActivityHandling(string)

public static implicit operator ActivityHandling(string value)

Parameters

value string

Returns

ActivityHandling