WidgetConfigUiSettingsGenerativeAnswerConfig constructor

const WidgetConfigUiSettingsGenerativeAnswerConfig({
  1. Input<bool?>? disableRelatedQuestions,
  2. Input<bool?>? ignoreAdversarialQuery,
  3. Input<bool?>? ignoreLowRelevantContent,
  4. Input<bool?>? ignoreNonAnswerSeekingQuery,
  5. Input<String?>? imageSource,
  6. Input<String?>? languageCode,
  7. Input<int?>? maxRephraseSteps,
  8. Input<String?>? modelPromptPreamble,
  9. Input<String?>? modelVersion,
  10. Input<int?>? resultCount,
})

Creates a new WidgetConfigUiSettingsGenerativeAnswerConfig. disableRelatedQuestions Whether generated answer contains suggested related questions. ignoreAdversarialQuery Specifies whether to filter out queries that are adversarial. ignoreLowRelevantContent Specifies whether to filter out queries that are not relevant to the content. ignoreNonAnswerSeekingQuery Specifies whether to filter out queries that are not answer-seeking. imageSource Source of image returned in the answer. languageCode Language code for Summary. Use language tags defined by maxRephraseSteps Max rephrase steps. The max number is 5 steps. If not set or modelPromptPreamble Text at the beginning of the prompt that instructs the model that generates the answer. modelVersion The model version used to generate the answer. resultCount The number of top results to generate the answer from. Up to 10.

Implementation

const WidgetConfigUiSettingsGenerativeAnswerConfig({
  this.disableRelatedQuestions,
  this.ignoreAdversarialQuery,
  this.ignoreLowRelevantContent,
  this.ignoreNonAnswerSeekingQuery,
  this.imageSource,
  this.languageCode,
  this.maxRephraseSteps,
  this.modelPromptPreamble,
  this.modelVersion,
  this.resultCount,
});