LiveGenerationConfig class final

Configures live generation settings.

Constructors

LiveGenerationConfig({SpeechConfig? speechConfig, AudioTranscriptionConfig? inputAudioTranscription, AudioTranscriptionConfig? outputAudioTranscription, List<ResponseModalities>? responseModalities, int? maxOutputTokens, double? temperature, double? topP, int? topK, double? presencePenalty, double? frequencyPenalty})

Properties

candidateCount int?
Number of generated responses to return.
finalinherited
frequencyPenalty double?
The penalty for repeating words or phrases, with the penalty increasing for each repetition.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
inputAudioTranscription AudioTranscriptionConfig?
The transcription of the input aligns with the input audio language.
final
maxOutputTokens int?
The maximum number of tokens to include in a candidate.
finalinherited
outputAudioTranscription AudioTranscriptionConfig?
The transcription of the output aligns with the language code specified for the output audio.
final
presencePenalty double?
The penalty for repeating the same words or phrases already generated in the text.
finalinherited
responseModalities List<ResponseModalities>?
The list of desired response modalities.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
speechConfig SpeechConfig?
The speech configuration.
final
temperature double?
Controls the randomness of the output.
finalinherited
topK int?
The maximum number of tokens to consider when sampling.
finalinherited
topP double?
The maximum cumulative probability of tokens to consider when sampling.
finalinherited

Methods

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

Operators

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