GenerationConfig class final

Configuration options for model generation and outputs.

Constructors

GenerationConfig.new({int? candidateCount, List<String>? stopSequences, int? maxOutputTokens, double? temperature, double? topP, int? topK, double? presencePenalty, double? frequencyPenalty, List<ResponseModalities>? responseModalities, String? responseMimeType, Schema? responseSchema})

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
responseMimeType String?
Output response mimetype of the generated candidate text.
final
responseModalities List<ResponseModalities>?
The list of desired response modalities.
finalinherited
responseSchema Schema?
Output response schema of the generated candidate text.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stopSequences List<String>?
The set of character sequences (up to 5) that will stop output generation.
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