Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer.
Represents an answer from Knowledge. Currently supports FAQ and Generative answers.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#answer_text
def answer_text() -> ::String
-
(::String) — The piece of text from the
source
that answers this suggested query.
#answer_text=
def answer_text=(value) -> ::String
-
value (::String) — The piece of text from the
source
that answers this suggested query.
-
(::String) — The piece of text from the
source
that answers this suggested query.
#faq_source
def faq_source() -> ::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer::FaqSource
-
(::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer::FaqSource) — Populated if the prediction came from FAQ.
Note: The following fields are mutually exclusive:
faq_source
,generative_source
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#faq_source=
def faq_source=(value) -> ::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer::FaqSource
-
value (::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer::FaqSource) — Populated if the prediction came from FAQ.
Note: The following fields are mutually exclusive:
faq_source
,generative_source
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer::FaqSource) — Populated if the prediction came from FAQ.
Note: The following fields are mutually exclusive:
faq_source
,generative_source
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#generative_source
def generative_source() -> ::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer::GenerativeSource
-
(::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer::GenerativeSource) — Populated if the prediction was Generative.
Note: The following fields are mutually exclusive:
generative_source
,faq_source
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#generative_source=
def generative_source=(value) -> ::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer::GenerativeSource
-
value (::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer::GenerativeSource) — Populated if the prediction was Generative.
Note: The following fields are mutually exclusive:
generative_source
,faq_source
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer::GenerativeSource) — Populated if the prediction was Generative.
Note: The following fields are mutually exclusive:
generative_source
,faq_source
. If a field in that set is populated, all other fields in the set will automatically be cleared.