Table of Contents

Class LiveSendClientContentParameters

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

Parameters for sending client content to the live API.

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

Properties

TurnComplete

If true, indicates that the server content generation should start with the currently accumulated prompt. Otherwise, the server will await additional messages before starting generation.

[JsonPropertyName("turnComplete")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public bool? TurnComplete { get; set; }

Property Value

bool?

Turns

Client content to send to the session.

[JsonPropertyName("turns")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public List<Content>? Turns { get; set; }

Property Value

List<Content>

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a LiveSendClientContentParameters object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

LiveSendClientContentParameters

The deserialized LiveSendClientContentParameters object, or null if deserialization fails.