Class KnowledgeAnswer (2.36.0)

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

Represents an answer from Knowledge. Currently supports FAQ and Generative answers.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

Name Description
answer_text str
The piece of text from the source that answers this suggested query.
faq_source google.cloud.dialogflow_v2beta1.types.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource
Populated if the prediction came from FAQ. This field is a member of oneof_ source.
generative_source google.cloud.dialogflow_v2beta1.types.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource
Populated if the prediction was Generative. This field is a member of oneof_ source.

Classes

FaqSource

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

Details about source of FAQ answer.

GenerativeSource

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

Details about source of Generative answer.