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
Returns
-
(::String) — The piece of text from the
source
that answers this suggested query.
#answer_text=
def answer_text=(value) -> ::String
Parameter
-
value (::String) — The piece of text from the
source
that answers this suggested query.
Returns
-
(::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
Returns
- (::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer::FaqSource) — Populated if the prediction came from FAQ.
#faq_source=
def faq_source=(value) -> ::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer::FaqSource
Parameter
- value (::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer::FaqSource) — Populated if the prediction came from FAQ.
Returns
- (::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer::FaqSource) — Populated if the prediction came from FAQ.
#generative_source
def generative_source() -> ::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer::GenerativeSource
Returns
- (::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer::GenerativeSource) — Populated if the prediction was Generative.
#generative_source=
def generative_source=(value) -> ::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer::GenerativeSource
Parameter
- value (::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer::GenerativeSource) — Populated if the prediction was Generative.
Returns
- (::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer::GenerativeSource) — Populated if the prediction was Generative.