LiveGenerationConfig constructor

LiveGenerationConfig({
  1. SpeechConfig? speechConfig,
  2. AudioTranscriptionConfig? inputAudioTranscription,
  3. AudioTranscriptionConfig? outputAudioTranscription,
  4. ContextWindowCompressionConfig? contextWindowCompression,
  5. RealtimeInputConfig? realtimeInputConfig,
  6. List<ResponseModalities>? responseModalities,
  7. int? maxOutputTokens,
  8. double? temperature,
  9. double? topP,
  10. int? topK,
  11. double? presencePenalty,
  12. double? frequencyPenalty,
  13. MediaResolution? mediaResolution,
})

Implementation

LiveGenerationConfig({
  this.speechConfig,
  this.inputAudioTranscription,
  this.outputAudioTranscription,
  this.contextWindowCompression,
  this.realtimeInputConfig,
  this.responseModalities,
  this.maxOutputTokens,
  this.temperature,
  this.topP,
  this.topK,
  this.presencePenalty,
  this.frequencyPenalty,
  this.mediaResolution,
}) : assert(mediaResolution != MediaResolution.ultraHigh,
          'MediaResolution.ultraHigh is only supported on individual media parts.');