GenerationConfig class final

Configuration options for model generation and outputs.

Constructors

GenerationConfig({int? candidateCount, List<String> stopSequences = const [], int? maxOutputTokens, double? temperature, double? topP, int? topK, String? responseMimeType, Schema? responseSchema})

Properties

candidateCount int?
Number of generated responses to return.
final
hashCode int
The hash code for this object.
no setterinherited
maxOutputTokens int?
The maximum number of tokens to include in a candidate.
final
responseMimeType String?
Output response mimetype of the generated candidate text.
final
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.
final
topK int?
The maximum number of tokens to consider when sampling.
final
topP double?
The maximum cumulative probability of tokens to consider when sampling.
final

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