Table of Contents

Class LiveServerSetupComplete

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

Sent in response to a LiveGenerateContentSetup message from the client.

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

Properties

SessionId

The session id of the live session.

[JsonPropertyName("sessionId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? SessionId { get; set; }

Property Value

string

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a LiveServerSetupComplete object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

LiveServerSetupComplete

The deserialized LiveServerSetupComplete object, or null if deserialization fails.