LiveServerContent class

Server-generated content and turn lifecycle updates.

Annotations
  • @JsonSerializable.new(includeIfNull: false, createToJson: false)

Constructors

LiveServerContent({Content? modelTurn, bool? turnComplete, bool? interrupted, Map<String, dynamic>? groundingMetadata, Transcription? inputTranscription, Transcription? outputTranscription, bool? generationComplete, Map<String, dynamic>? urlContextMetadata, TurnCompleteReason? turnCompleteReason, bool? waitingForInput, Transcription? interimInputTranscription, InteractionStatus? interactionStatus, String? continuationToken, List<String>? continuationIds})
Creates a LiveServerContent update.
LiveServerContent.fromJson(Map<String, dynamic> json)
Creates a LiveServerContent from a JSON map.
factory

Properties

continuationIds → List<String>?
The ordered IDs of all server interactions merged into this response.
final
continuationToken → String?
The opaque token used to resume a long decode.
final
generationComplete → bool?
final
groundingMetadata → Map<String, dynamic>?
final
hashCode → int
The hash code for this object.
no setterinherited
inputTranscription → Transcription?
final
interactionStatus → InteractionStatus?
The current activity status of the live session.
final
interimInputTranscription → Transcription?
Low-latency transcription updated while the user is speaking.
final
interrupted → bool?
final
isInteractionComplete → bool
Whether the server content indicates that the interaction is complete.
no setter
modelTurn → Content?
final
outputTranscription → Transcription?
final
requiresContinuation → bool
Whether the interaction requires continuation using continuationToken.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
turnComplete → bool?
final
turnCompleteReason → TurnCompleteReason?
final
urlContextMetadata → Map<String, dynamic>?
final
waitingForInput → bool?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited