BidiGenerateContentServerContent class final

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.

Inheritance
  • Object
  • ProtoMessage
  • BidiGenerateContentServerContent

Constructors

BidiGenerateContentServerContent({Content? modelTurn, bool generationComplete = false, bool turnComplete = false, bool interrupted = false, GroundingMetadata? groundingMetadata, BidiGenerateContentTranscription? inputTranscription, BidiGenerateContentTranscription? outputTranscription, UrlContextMetadata? urlContextMetadata, bool waitingForInput = false})
BidiGenerateContentServerContent.fromJson(Object? j)
factory

Properties

generationComplete bool
Output only. If true, indicates that the model is done generating.
final
groundingMetadata GroundingMetadata?
Output only. Grounding metadata for the generated content.
final
hashCode int
The hash code for this object.
no setterinherited
inputTranscription BidiGenerateContentTranscription?
Output only. Input audio transcription. The transcription is sent independently of the other server messages and there is no guaranteed ordering.
final
interrupted bool
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.
final
modelTurn Content?
Output only. The content that the model has generated as part of the current conversation with the user.
final
outputTranscription BidiGenerateContentTranscription?
Output only. Output audio transcription. These transcriptions are part of the Generation output of the server. The last output transcription of this turn is sent before either generation_complete or interrupted, which in turn are followed by turn_complete. There is no guaranteed exact ordering between transcriptions and other model_turn output but the server tries to send the transcripts close to the corresponding audio output.
final
qualifiedName String
The fully qualified name of this message, i.e., google.protobuf.Duration or google.rpc.ErrorInfo.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
turnComplete bool
Output only. If true, indicates that the model has completed its turn. Generation will only start in response to additional client messages.
final
urlContextMetadata UrlContextMetadata?
final
waitingForInput bool
Output only. If true, indicates that the model is not generating content because it is waiting for more input from the user, e.g. because it expects the user to continue talking.
final

Methods

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

Operators

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

Constants

fullyQualifiedName → const String