Table of Contents

Class LiveServerContent

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

Incremental server update generated by the model in response to client messages. Content is generated as quickly as possible, and not in real time. Clients may choose to buffer and play it out in real time.

public class LiveServerContent
Inheritance
LiveServerContent
Inherited Members
Extension Methods

Properties

GenerationComplete

Output only. If true, indicates that the model has completed generating all content for the current request.

[JsonPropertyName("generationComplete")]
public bool? GenerationComplete { get; set; }

Property Value

bool?

GroundingMetadata

Output only. Grounding metadata for the generated content.

[JsonPropertyName("groundingMetadata")]
public GroundingMetadata? GroundingMetadata { get; set; }

Property Value

GroundingMetadata

InputTranscription

Output only. Transcription of the input content.

[JsonPropertyName("inputTranscription")]
public Transcription? InputTranscription { get; set; }

Property Value

Transcription

InteractionStatus

Output only. The current activity status of the live session. Always sent alongside TurnComplete.

[JsonPropertyName("interactionStatus")]
public InteractionStatus? InteractionStatus { get; set; }

Property Value

InteractionStatus?

InterimInputTranscription

Output only. Low latency transcription updated while the user is speaking.

[JsonPropertyName("interimInputTranscription")]
public Transcription? InterimInputTranscription { get; set; }

Property Value

Transcription

Interrupted

Output only. If true, indicates that a client message has interrupted current model generation. If the client is playing out the content in real time, this is a good signal to stop and empty the current playback queue.

[JsonPropertyName("interrupted")]
public bool? Interrupted { get; set; }

Property Value

bool?

ModelTurn

Output only. The content that the model has generated as part of the current conversation with the user.

[JsonPropertyName("modelTurn")]
public Content? ModelTurn { get; set; }

Property Value

Content

OutputTranscription

Output only. Transcription of the output content.

[JsonPropertyName("outputTranscription")]
public Transcription? OutputTranscription { get; set; }

Property Value

Transcription

TurnComplete

Output only. If true, indicates that the model is done generating. Generation will only start in response to additional client messages. Can be set alongside ModelTurn, indicating that the ModelTurn is the last in the turn.

[JsonPropertyName("turnComplete")]
public bool? TurnComplete { get; set; }

Property Value

bool?

TurnCompleteReason

Output only. The reason why the turn is complete.

[JsonPropertyName("turnCompleteReason")]
public TurnCompleteReason? TurnCompleteReason { get; set; }

Property Value

TurnCompleteReason?

UrlContextMetadata

Output only. Metadata for URL context.

[JsonPropertyName("urlContextMetadata")]
public UrlContextMetadata? UrlContextMetadata { get; set; }

Property Value

UrlContextMetadata

WaitingForInput

Output only. If true, indicates that the model is waiting for additional input from the user.

[JsonPropertyName("waitingForInput")]
public bool? WaitingForInput { get; set; }

Property Value

bool?

See Also