GenerationConfig class

Represents configuration parameters used for content generation.

Available extensions

Constructors

GenerationConfig({double? temperature, int? topK, double? topP, int? candidateCount, int? maxOutputTokens, List<String>? stopSequences})
GenerationConfig.fromBuilder(GenerationConfigBuilder builder)
Constructs a GenerationConfig instance using the provided builder.
factory

Properties

candidateCount → int?
The candidate count for content generation.
final
hashCode → int
The hash code for this object.
no setterinherited
maxOutputTokens → int?
The maximum number of output tokens for content generation.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stopSequences → List<String>?
The stop sequences for content generation.
final
temperature → double?
The temperature value for content generation.
final
topK → int?
The top-k value for content generation.
final
topP → double?
The top-p value for content generation.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toInternal() → InternalGenerationConfig

Available on GenerationConfig, provided by the GC extension

toString() → String
A string representation of this object.
inherited

Operators

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