Class: Google::Cloud::Dialogflow::V2::SearchKnowledgeAnswer
- Inherits:
-
Object
- Object
- Google::Cloud::Dialogflow::V2::SearchKnowledgeAnswer
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/dialogflow/v2/conversation.rb
Overview
Represents a SearchKnowledge answer.
Defined Under Namespace
Modules: AnswerType Classes: AnswerSource
Instance Attribute Summary collapse
-
#answer ⇒ ::String
The piece of text from the knowledge base documents that answers the search query.
-
#answer_record ⇒ ::String
The name of the answer record.
-
#answer_sources ⇒ ::Array<::Google::Cloud::Dialogflow::V2::SearchKnowledgeAnswer::AnswerSource>
All sources used to generate the answer.
-
#answer_type ⇒ ::Google::Cloud::Dialogflow::V2::SearchKnowledgeAnswer::AnswerType
The type of the answer.
Instance Attribute Details
#answer ⇒ ::String
Returns The piece of text from the knowledge base documents that answers the search query.
752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 |
# File 'proto_docs/google/cloud/dialogflow/v2/conversation.rb', line 752 class SearchKnowledgeAnswer include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The sources of the answers. # @!attribute [rw] title # @return [::String] # The title of the article. # @!attribute [rw] uri # @return [::String] # The URI of the article. # @!attribute [rw] snippet # @return [::String] # The relevant snippet of the article. # @!attribute [rw] metadata # @return [::Google::Protobuf::Struct] # Metadata associated with the article. class AnswerSource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The type of the answer. module AnswerType # The answer has a unspecified type. ANSWER_TYPE_UNSPECIFIED = 0 # The answer is from FAQ documents. FAQ = 1 # The answer is from generative model. GENERATIVE = 2 # The answer is from intent matching. INTENT = 3 end end |
#answer_record ⇒ ::String
Returns The name of the answer record.
Format: projects/<Project ID>/locations/<location ID>/answer
Records/<Answer Record ID>
.
752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 |
# File 'proto_docs/google/cloud/dialogflow/v2/conversation.rb', line 752 class SearchKnowledgeAnswer include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The sources of the answers. # @!attribute [rw] title # @return [::String] # The title of the article. # @!attribute [rw] uri # @return [::String] # The URI of the article. # @!attribute [rw] snippet # @return [::String] # The relevant snippet of the article. # @!attribute [rw] metadata # @return [::Google::Protobuf::Struct] # Metadata associated with the article. class AnswerSource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The type of the answer. module AnswerType # The answer has a unspecified type. ANSWER_TYPE_UNSPECIFIED = 0 # The answer is from FAQ documents. FAQ = 1 # The answer is from generative model. GENERATIVE = 2 # The answer is from intent matching. INTENT = 3 end end |
#answer_sources ⇒ ::Array<::Google::Cloud::Dialogflow::V2::SearchKnowledgeAnswer::AnswerSource>
Returns All sources used to generate the answer.
752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 |
# File 'proto_docs/google/cloud/dialogflow/v2/conversation.rb', line 752 class SearchKnowledgeAnswer include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The sources of the answers. # @!attribute [rw] title # @return [::String] # The title of the article. # @!attribute [rw] uri # @return [::String] # The URI of the article. # @!attribute [rw] snippet # @return [::String] # The relevant snippet of the article. # @!attribute [rw] metadata # @return [::Google::Protobuf::Struct] # Metadata associated with the article. class AnswerSource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The type of the answer. module AnswerType # The answer has a unspecified type. ANSWER_TYPE_UNSPECIFIED = 0 # The answer is from FAQ documents. FAQ = 1 # The answer is from generative model. GENERATIVE = 2 # The answer is from intent matching. INTENT = 3 end end |
#answer_type ⇒ ::Google::Cloud::Dialogflow::V2::SearchKnowledgeAnswer::AnswerType
Returns The type of the answer.
752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 |
# File 'proto_docs/google/cloud/dialogflow/v2/conversation.rb', line 752 class SearchKnowledgeAnswer include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The sources of the answers. # @!attribute [rw] title # @return [::String] # The title of the article. # @!attribute [rw] uri # @return [::String] # The URI of the article. # @!attribute [rw] snippet # @return [::String] # The relevant snippet of the article. # @!attribute [rw] metadata # @return [::Google::Protobuf::Struct] # Metadata associated with the article. class AnswerSource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The type of the answer. module AnswerType # The answer has a unspecified type. ANSWER_TYPE_UNSPECIFIED = 0 # The answer is from FAQ documents. FAQ = 1 # The answer is from generative model. GENERATIVE = 2 # The answer is from intent matching. INTENT = 3 end end |