Class SearchKnowledgeAnswer (2.26.0)

SearchKnowledgeAnswer(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Represents a SearchKnowledge answer.

Attributes

NameDescription
answer str
The piece of text from the knowledge base documents that answers the search query
answer_type google.cloud.dialogflow_v2.types.SearchKnowledgeAnswer.AnswerType
The type of the answer.
answer_sources MutableSequence[google.cloud.dialogflow_v2.types.SearchKnowledgeAnswer.AnswerSource]
All sources used to generate the answer.
answer_record str
The name of the answer record. Format: projects/

Classes

AnswerSource

AnswerSource(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The sources of the answers.

AnswerType

AnswerType(value)

The type of the answer.

Values: ANSWER_TYPE_UNSPECIFIED (0): The answer has a unspecified type. FAQ (1): The answer is from FAQ doucments. GENERATIVE (2): The answer is from generative model.