Dialogflow V2 API - Class Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer (v1.3.0)

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

#faq_source=

def faq_source=(value) -> ::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer::FaqSource
Parameter
Returns

#generative_source

def generative_source() -> ::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer::GenerativeSource
Returns

#generative_source=

def generative_source=(value) -> ::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer::GenerativeSource
Parameter
Returns