Table of Contents

Class ActivityStart

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

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

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

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a ActivityStart object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

ActivityStart

The deserialized ActivityStart object, or null if deserialization fails.