# Class SuggestionQueryConfig (2.48.0)

2.48.0 (latest) 2.47.0 2.46.0 2.45.0 2.44.0 2.43.0 2.42.0 2.41.2 2.40.0 2.39.1 2.38.0 2.37.0 2.36.0 2.35.0 2.34.0 2.33.0 2.32.0 2.30.2 2.29.0 2.28.3 2.27.0 2.26.0 2.25.0 2.24.1 2.23.3 2.22.0 2.21.0 2.20.0 2.19.1 2.18.0 2.17.0 2.16.1 2.15.2 2.14.1 2.13.0 2.12.0 2.11.0 2.10.0 2.9.1 2.8.1 2.7.1 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.2 2.0.0 1.1.3 1.0.0 0.8.0 0.7.2

    SuggestionQueryConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Config for suggestion query.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `knowledge_base_query_source` | `https://docs.cloud.google.com/python/docs/reference/dialogflow/latest/google.cloud.dialogflow_v2beta1.types.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource` Query from knowledgebase. It is used by: ARTICLE_SUGGESTION, FAQ. This field is a member of `oneof`_ `query_source`. |
| `document_query_source` | `https://docs.cloud.google.com/python/docs/reference/dialogflow/latest/google.cloud.dialogflow_v2beta1.types.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource` Query from knowledge base document. It is used by: SMART_REPLY, SMART_COMPOSE. This field is a member of `oneof`_ `query_source`. |
| `dialogflow_query_source` | `https://docs.cloud.google.com/python/docs/reference/dialogflow/latest/google.cloud.dialogflow_v2beta1.types.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource` Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST, ENTITY_EXTRACTION. This field is a member of `oneof`_ `query_source`. |
| `max_results` | `int` Maximum number of results to return. Currently, if unset, defaults to 10. And the max number is 20. |
| `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. |
| `context_filter_settings` | `https://docs.cloud.google.com/python/docs/reference/dialogflow/latest/google.cloud.dialogflow_v2beta1.types.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings` Determines how recent conversation context is filtered when generating suggestions. If unspecified, no messages will be dropped. |
| `sections` | `https://docs.cloud.google.com/python/docs/reference/dialogflow/latest/google.cloud.dialogflow_v2beta1.types.HumanAgentAssistantConfig.SuggestionQueryConfig.Sections` Optional. The customized sections chosen to return when requesting a summary of a conversation. |
| `context_size` | `int` Optional. The number of recent messages to include in the context. Supported features: KNOWLEDGE_ASSIST. |

## Classes

### ContextFilterSettings

    ContextFilterSettings(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Settings that determine how to filter recent conversation
context when generating suggestions.

### DialogflowQuerySource

    DialogflowQuerySource(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Dialogflow source setting.

Supported feature: DIALOGFLOW_ASSIST, ENTITY_EXTRACTION.

### DocumentQuerySource

    DocumentQuerySource(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Document source settings.

Supported features: SMART_REPLY, SMART_COMPOSE.

### KnowledgeBaseQuerySource

    KnowledgeBaseQuerySource(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Knowledge base source settings.

Supported features: ARTICLE_SUGGESTION, FAQ.

### Sections

    Sections(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Custom sections to return when requesting a summary of a
conversation. This is only supported when `baseline_model_version`
== '2.0'.

Supported features: CONVERSATION_SUMMARIZATION,
CONVERSATION_SUMMARIZATION_VOICE.