Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfig
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v2beta1/classes.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb
Overview
Config for suggestion query.
Instance Attribute Summary collapse
-
#confidence_threshold ⇒ Float
Confidence threshold of query result.
-
#context_filter_settings ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigContextFilterSettings
Settings that determine how to filter recent conversation context when generating suggestions.
-
#dialogflow_query_source ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySource
Dialogflow source setting.
-
#document_query_source ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDocumentQuerySource
Document source settings.
-
#knowledge_base_query_source ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigKnowledgeBaseQuerySource
Knowledge base source settings.
-
#max_results ⇒ Fixnum
Maximum number of results to return.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfig
constructor
A new instance of GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfig
Returns a new instance of GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfig.
12073 12074 12075 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12073 def initialize(**args) update!(**args) end |
Instance Attribute Details
#confidence_threshold ⇒ Float
Confidence threshold of query result. Agent Assist gives each suggestion a
score in the range [0.0, 1.0], based on the relevance between the suggestion
and the current conversation context. A score of 0.0 has no relevance, while a
score of 1.0 has high relevance. Only suggestions with a score greater than or
equal to the value of this field are included in the results. For a baseline
model (the default), the recommended value is in the range [0.05, 0.1]. For a
custom model, there is no recommended value. Tune this value by starting from
a very low value and slowly increasing until you have desired results. If this
field is not set, it is default to 0.0, which means that all suggestions are
returned. Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY,
SMART_COMPOSE, KNOWLEDGE_SEARCH, KNOWLEDGE_ASSIST, ENTITY_EXTRACTION.
Corresponds to the JSON property confidenceThreshold
12043 12044 12045 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12043 def confidence_threshold @confidence_threshold end |
#context_filter_settings ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigContextFilterSettings
Settings that determine how to filter recent conversation context when
generating suggestions.
Corresponds to the JSON property contextFilterSettings
12049 12050 12051 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12049 def context_filter_settings @context_filter_settings end |
#dialogflow_query_source ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySource
Dialogflow source setting. Supported feature: DIALOGFLOW_ASSIST,
ENTITY_EXTRACTION.
Corresponds to the JSON property dialogflowQuerySource
12055 12056 12057 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12055 def dialogflow_query_source @dialogflow_query_source end |
#document_query_source ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDocumentQuerySource
Document source settings. Supported features: SMART_REPLY, SMART_COMPOSE.
Corresponds to the JSON property documentQuerySource
12060 12061 12062 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12060 def document_query_source @document_query_source end |
#knowledge_base_query_source ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigKnowledgeBaseQuerySource
Knowledge base source settings. Supported features: ARTICLE_SUGGESTION, FAQ.
Corresponds to the JSON property knowledgeBaseQuerySource
12065 12066 12067 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12065 def knowledge_base_query_source @knowledge_base_query_source end |
#max_results ⇒ Fixnum
Maximum number of results to return. Currently, if unset, defaults to 10. And
the max number is 20.
Corresponds to the JSON property maxResults
12071 12072 12073 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12071 def max_results @max_results end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
12078 12079 12080 12081 12082 12083 12084 12085 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12078 def update!(**args) @confidence_threshold = args[:confidence_threshold] if args.key?(:confidence_threshold) @context_filter_settings = args[:context_filter_settings] if args.key?(:context_filter_settings) @dialogflow_query_source = args[:dialogflow_query_source] if args.key?(:dialogflow_query_source) @document_query_source = args[:document_query_source] if args.key?(:document_query_source) @knowledge_base_query_source = args[:knowledge_base_query_source] if args.key?(:knowledge_base_query_source) @max_results = args[:max_results] if args.key?(:max_results) end |