WidgetConfigUiSettingsGenerativeAnswerConfig class
Constructors
-
WidgetConfigUiSettingsGenerativeAnswerConfig({Input<bool?>? disableRelatedQuestions, Input<bool?>? ignoreAdversarialQuery, Input<bool?>? ignoreLowRelevantContent, Input<bool?>? ignoreNonAnswerSeekingQuery, Input<String?>? imageSource, Input<String?>? languageCode, Input<int?>? maxRephraseSteps, Input<String?>? modelPromptPreamble, Input<String?>? modelVersion, 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.
const
-
WidgetConfigUiSettingsGenerativeAnswerConfig.fromMap(Map<String, dynamic> map)
-
factory
Properties
-
disableRelatedQuestions
→ Input<bool?>?
-
Whether generated answer contains suggested related questions.
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
ignoreAdversarialQuery
→ Input<bool?>?
-
Specifies whether to filter out queries that are adversarial.
final
-
ignoreLowRelevantContent
→ Input<bool?>?
-
Specifies whether to filter out queries that are not relevant to the content.
final
-
ignoreNonAnswerSeekingQuery
→ Input<bool?>?
-
Specifies whether to filter out queries that are not answer-seeking.
The default value is
false. No answer is returned if the search query
is classified as a non-answer seeking query.
If this field is set to true, we skip generating answers for
non-answer seeking queries and return fallback messages instead.
final
-
imageSource
→ Input<String?>?
-
Source of image returned in the answer.
Possible values are:
ALL_AVAILABLE_SOURCES, CORPUS_IMAGE_ONLY, FIGURE_GENERATION_ONLY.
final
-
languageCode
→ Input<String?>?
-
Language code for Summary. Use language tags defined by
BCP47. Note: This
is an experimental feature.
final
-
maxRephraseSteps
→ Input<int?>?
-
Max rephrase steps. The max number is 5 steps. If not set or
set to < 1, it will be set to 1 by default.
final
-
modelPromptPreamble
→ Input<String?>?
-
Text at the beginning of the prompt that instructs the model that generates the answer.
final
-
modelVersion
→ Input<String?>?
-
The model version used to generate the answer.
final
-
resultCount
→ Input<int?>?
-
The number of top results to generate the answer from. Up to 10.
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited