Table of Contents

Class ActivityEnd

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 ActivityEnd : IEquatable<ActivityEnd>
Inheritance
ActivityEnd
Implements
Inherited Members

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a ActivityEnd object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

ActivityEnd

The deserialized ActivityEnd object, or null if deserialization fails.