GenerationConfig constructor

GenerationConfig({
  1. double? temperature,
  2. double? topP,
  3. double? topK,
  4. int? candidateCount,
  5. int? maxOutputTokens,
  6. List<String> stopSequences = const [],
  7. bool? responseLogprobs,
  8. int? logprobs,
  9. double? presencePenalty,
  10. double? frequencyPenalty,
  11. int? seed,
  12. String responseMimeType = '',
  13. Schema? responseSchema,
  14. Value? responseJsonSchema,
  15. GenerationConfig_RoutingConfig? routingConfig,
  16. bool? audioTimestamp,
  17. List<GenerationConfig_Modality> responseModalities = const [],
  18. GenerationConfig_MediaResolution? mediaResolution,
  19. SpeechConfig? speechConfig,
  20. GenerationConfig_ThinkingConfig? thinkingConfig,
  21. GenerationConfig_ModelConfig? modelConfig,
  22. ImageConfig? imageConfig,
})

Implementation

GenerationConfig({
  this.temperature,
  this.topP,
  this.topK,
  this.candidateCount,
  this.maxOutputTokens,
  this.stopSequences = const [],
  this.responseLogprobs,
  this.logprobs,
  this.presencePenalty,
  this.frequencyPenalty,
  this.seed,
  this.responseMimeType = '',
  this.responseSchema,
  this.responseJsonSchema,
  this.routingConfig,
  this.audioTimestamp,
  this.responseModalities = const [],
  this.mediaResolution,
  this.speechConfig,
  this.thinkingConfig,
  this.modelConfig,
  this.imageConfig,
}) : super(fullyQualifiedName);