# Dialogflow V2 API - Class Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig (v1.16.1)

1.16.1 (latest) 1.16.0 1.15.0 1.14.0 1.13.0 1.12.1 1.11.0 1.10.1 1.9.1 1.8.0 1.7.0 1.6.0 1.5.0 1.4.1 1.3.0 1.2.0 1.1.1 1.0.0 0.34.0 0.33.0 0.32.2 0.31.0 0.30.0 0.29.0 0.28.0 0.27.0 0.26.2 0.25.0 0.24.0 0.23.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.17.1 0.16.0 0.15.2 0.14.0 0.13.0 0.12.0 Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig.

Config for suggestion query.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #confidence_threshold

    def confidence_threshold() -> ::Float

**Returns**

- (::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 defaults 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.

### #confidence_threshold=

    def confidence_threshold=(value) -> ::Float

**Parameter**

- **value** (::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 defaults 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.
**Returns**

- (::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 defaults 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.

### #context_filter_settings

    def context_filter_settings() -> ::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::ContextFilterSettings

**Returns**

- ([::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::ContextFilterSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/Google-Cloud-Dialogflow-V2-HumanAgentAssistantConfig-SuggestionQueryConfig-ContextFilterSettings)) --- Determines how recent conversation context is filtered when generating suggestions. If unspecified, no messages will be dropped.

### #context_filter_settings=

    def context_filter_settings=(value) -> ::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::ContextFilterSettings

**Parameter**

- **value** ([::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::ContextFilterSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/Google-Cloud-Dialogflow-V2-HumanAgentAssistantConfig-SuggestionQueryConfig-ContextFilterSettings)) --- Determines how recent conversation context is filtered when generating suggestions. If unspecified, no messages will be dropped.
**Returns**

- ([::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::ContextFilterSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/Google-Cloud-Dialogflow-V2-HumanAgentAssistantConfig-SuggestionQueryConfig-ContextFilterSettings)) --- Determines how recent conversation context is filtered when generating suggestions. If unspecified, no messages will be dropped.

### #context_size

    def context_size() -> ::Integer

**Returns**

- (::Integer) --- Optional. The number of recent messages to include in the context. Supported features: KNOWLEDGE_ASSIST.

### #context_size=

    def context_size=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Optional. The number of recent messages to include in the context. Supported features: KNOWLEDGE_ASSIST.
**Returns**

- (::Integer) --- Optional. The number of recent messages to include in the context. Supported features: KNOWLEDGE_ASSIST.

### #dialogflow_query_source

    def dialogflow_query_source() -> ::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::DialogflowQuerySource

**Returns**

- ([::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::DialogflowQuerySource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/Google-Cloud-Dialogflow-V2-HumanAgentAssistantConfig-SuggestionQueryConfig-DialogflowQuerySource)) --- Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST.


  Note: The following fields are mutually exclusive: `dialogflow_query_source`, `knowledge_base_query_source`, `document_query_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #dialogflow_query_source=

    def dialogflow_query_source=(value) -> ::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::DialogflowQuerySource

**Parameter**

- **value** ([::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::DialogflowQuerySource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/Google-Cloud-Dialogflow-V2-HumanAgentAssistantConfig-SuggestionQueryConfig-DialogflowQuerySource)) --- Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST.


  Note: The following fields are mutually exclusive: `dialogflow_query_source`, `knowledge_base_query_source`, `document_query_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::DialogflowQuerySource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/Google-Cloud-Dialogflow-V2-HumanAgentAssistantConfig-SuggestionQueryConfig-DialogflowQuerySource)) --- Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST.


  Note: The following fields are mutually exclusive: `dialogflow_query_source`, `knowledge_base_query_source`, `document_query_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #document_query_source

    def document_query_source() -> ::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::DocumentQuerySource

**Returns**

- ([::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::DocumentQuerySource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/Google-Cloud-Dialogflow-V2-HumanAgentAssistantConfig-SuggestionQueryConfig-DocumentQuerySource)) --- Query from knowledge base document. It is used by: SMART_REPLY, SMART_COMPOSE.


  Note: The following fields are mutually exclusive: `document_query_source`, `knowledge_base_query_source`, `dialogflow_query_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #document_query_source=

    def document_query_source=(value) -> ::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::DocumentQuerySource

**Parameter**

- **value** ([::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::DocumentQuerySource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/Google-Cloud-Dialogflow-V2-HumanAgentAssistantConfig-SuggestionQueryConfig-DocumentQuerySource)) --- Query from knowledge base document. It is used by: SMART_REPLY, SMART_COMPOSE.


  Note: The following fields are mutually exclusive: `document_query_source`, `knowledge_base_query_source`, `dialogflow_query_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::DocumentQuerySource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/Google-Cloud-Dialogflow-V2-HumanAgentAssistantConfig-SuggestionQueryConfig-DocumentQuerySource)) --- Query from knowledge base document. It is used by: SMART_REPLY, SMART_COMPOSE.


  Note: The following fields are mutually exclusive: `document_query_source`, `knowledge_base_query_source`, `dialogflow_query_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #knowledge_base_query_source

    def knowledge_base_query_source() -> ::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::KnowledgeBaseQuerySource

**Returns**

- ([::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::KnowledgeBaseQuerySource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/Google-Cloud-Dialogflow-V2-HumanAgentAssistantConfig-SuggestionQueryConfig-KnowledgeBaseQuerySource)) --- Query from knowledgebase. It is used by: ARTICLE_SUGGESTION, FAQ.


  Note: The following fields are mutually exclusive: `knowledge_base_query_source`, `document_query_source`, `dialogflow_query_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #knowledge_base_query_source=

    def knowledge_base_query_source=(value) -> ::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::KnowledgeBaseQuerySource

**Parameter**

- **value** ([::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::KnowledgeBaseQuerySource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/Google-Cloud-Dialogflow-V2-HumanAgentAssistantConfig-SuggestionQueryConfig-KnowledgeBaseQuerySource)) --- Query from knowledgebase. It is used by: ARTICLE_SUGGESTION, FAQ.


  Note: The following fields are mutually exclusive: `knowledge_base_query_source`, `document_query_source`, `dialogflow_query_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::KnowledgeBaseQuerySource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/Google-Cloud-Dialogflow-V2-HumanAgentAssistantConfig-SuggestionQueryConfig-KnowledgeBaseQuerySource)) --- Query from knowledgebase. It is used by: ARTICLE_SUGGESTION, FAQ.


  Note: The following fields are mutually exclusive: `knowledge_base_query_source`, `document_query_source`, `dialogflow_query_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #max_results

    def max_results() -> ::Integer

**Returns**

- (::Integer) --- Maximum number of results to return. Currently, if unset, defaults to 10. And the max number is 20.

### #max_results=

    def max_results=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Maximum number of results to return. Currently, if unset, defaults to 10. And the max number is 20.
**Returns**

- (::Integer) --- Maximum number of results to return. Currently, if unset, defaults to 10. And the max number is 20.

### #sections

    def sections() -> ::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::Sections

**Returns**

- ([::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::Sections](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/Google-Cloud-Dialogflow-V2-HumanAgentAssistantConfig-SuggestionQueryConfig-Sections)) --- Optional. The customized sections chosen to return when requesting a summary of a conversation.

### #sections=

    def sections=(value) -> ::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::Sections

**Parameter**

- **value** ([::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::Sections](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/Google-Cloud-Dialogflow-V2-HumanAgentAssistantConfig-SuggestionQueryConfig-Sections)) --- Optional. The customized sections chosen to return when requesting a summary of a conversation.
**Returns**

- ([::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::Sections](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/Google-Cloud-Dialogflow-V2-HumanAgentAssistantConfig-SuggestionQueryConfig-Sections)) --- Optional. The customized sections chosen to return when requesting a summary of a conversation.