GenerationConfig constructor
GenerationConfig({
- int? candidateCount,
- List<
String> stopSequences = const [], - int? maxOutputTokens,
- double? temperature,
- double? topP,
- int? topK,
- int? seed,
- String responseMimeType = '',
- Schema? responseSchema,
- Value? responseJsonSchema,
- Value? responseJsonSchemaOrdered,
- double? presencePenalty,
- double? frequencyPenalty,
- bool? responseLogprobs,
- int? logprobs,
- bool? enableEnhancedCivicAnswers,
- List<
GenerationConfig_Modality> responseModalities = const [], - SpeechConfig? speechConfig,
- ThinkingConfig? thinkingConfig,
- ImageConfig? imageConfig,
- GenerationConfig_MediaResolution? mediaResolution,
Implementation
GenerationConfig({
this.candidateCount,
this.stopSequences = const [],
this.maxOutputTokens,
this.temperature,
this.topP,
this.topK,
this.seed,
this.responseMimeType = '',
this.responseSchema,
this.responseJsonSchema,
this.responseJsonSchemaOrdered,
this.presencePenalty,
this.frequencyPenalty,
this.responseLogprobs,
this.logprobs,
this.enableEnhancedCivicAnswers,
this.responseModalities = const [],
this.speechConfig,
this.thinkingConfig,
this.imageConfig,
this.mediaResolution,
}) : super(fullyQualifiedName);