BidiGenerateContentSetup class final

Message to be sent in the first (and only in the first) BidiGenerateContentClientMessage. Contains configuration that will apply for the duration of the streaming RPC.

Clients should wait for a BidiGenerateContentSetupComplete message before sending any additional messages.

Constructors

BidiGenerateContentSetup({required String model, GenerationConfig? generationConfig, Content? systemInstruction, List<Tool> tools = const [], RealtimeInputConfig? realtimeInputConfig, SessionResumptionConfig? sessionResumption, ContextWindowCompressionConfig? contextWindowCompression, AudioTranscriptionConfig? inputAudioTranscription, AudioTranscriptionConfig? outputAudioTranscription})
BidiGenerateContentSetup.fromJson(Object? j)
factory

Properties

contextWindowCompression → ContextWindowCompressionConfig?
Optional. Configures a context window compression mechanism.
final
generationConfig → GenerationConfig?
Optional. Generation config.
final
hashCode → int
The hash code for this object.
no setterinherited
inputAudioTranscription → AudioTranscriptionConfig?
Optional. If set, enables transcription of voice input. The transcription aligns with the input audio language, if configured.
final
model → String
Required. The model's resource name. This serves as an ID for the Model to use.
final
outputAudioTranscription → AudioTranscriptionConfig?
Optional. If set, enables transcription of the model's audio output. The transcription aligns with the language code specified for the output audio, if configured.
final
qualifiedName → String
The fully qualified name of this message, i.e., google.protobuf.Duration or google.rpc.ErrorInfo.
finalinherited
realtimeInputConfig → RealtimeInputConfig?
Optional. Configures the handling of realtime input.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sessionResumption → SessionResumptionConfig?
Optional. Configures session resumption mechanism.
final
systemInstruction → Content?
Optional. The user provided system instructions for the model.
final
tools → List<Tool>
Optional. A list of Tools the model may use to generate the next response.
final

Methods

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

Operators

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

Constants

fullyQualifiedName → const String