LiveGenerationConfig class final

Configures live generation settings.

Constructors

LiveGenerationConfig.new({SpeechConfig? speechConfig, List<ResponseModalities>? responseModalities, int? candidateCount, 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
maxOutputTokens int?
The maximum number of tokens to include in a candidate.
finalinherited
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