Class SearchKnowledgeAnswer (2.29.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_v2beta1.types.SearchKnowledgeAnswer.AnswerType
The type of the answer.
answer_sources MutableSequence[google.cloud.dialogflow_v2beta1.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 documents. GENERATIVE (2): The answer is from generative model. INTENT (3): The answer is from intent matching.