GenerationConfig constructor

GenerationConfig({
  1. int? candidateCount,
  2. List<String> stopSequences = const [],
  3. int? maxOutputTokens,
  4. double? temperature,
  5. double? topP,
  6. int? topK,
  7. int? seed,
  8. String responseMimeType = '',
  9. Schema? responseSchema,
  10. Value? responseJsonSchema,
  11. Value? responseJsonSchemaOrdered,
  12. double? presencePenalty,
  13. double? frequencyPenalty,
  14. bool? responseLogprobs,
  15. int? logprobs,
  16. bool? enableEnhancedCivicAnswers,
  17. List<GenerationConfig_Modality> responseModalities = const [],
  18. SpeechConfig? speechConfig,
  19. ThinkingConfig? thinkingConfig,
  20. ImageConfig? imageConfig,
  21. 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);