pub struct GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfig {
pub confidence_threshold: Option<f32>,
pub context_filter_settings: Option<GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigContextFilterSettings>,
pub dialogflow_query_source: Option<GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySource>,
pub document_query_source: Option<GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigDocumentQuerySource>,
pub knowledge_base_query_source: Option<GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigKnowledgeBaseQuerySource>,
pub max_results: Option<i32>,
pub sections: Option<GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigSections>,
}
Expand description
Config for suggestion query.
This type is not used in any activity, and only used as part of another schema.
Fields§
§confidence_threshold: Option<f32>
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: Option<GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigContextFilterSettings>
Determines how recent conversation context is filtered when generating suggestions. If unspecified, no messages will be dropped.
dialogflow_query_source: Option<GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySource>
Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST.
document_query_source: Option<GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigDocumentQuerySource>
Query from knowledge base document. It is used by: SMART_REPLY, SMART_COMPOSE.
knowledge_base_query_source: Option<GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigKnowledgeBaseQuerySource>
Query from knowledgebase. It is used by: ARTICLE_SUGGESTION, FAQ.
max_results: Option<i32>
Maximum number of results to return. Currently, if unset, defaults to 10. And the max number is 20.
sections: Option<GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigSections>
Optional. The customized sections chosen to return when requesting a summary of a conversation.
Trait Implementations§
Source§impl Clone for GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfig
impl Clone for GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfig
Source§fn clone(
&self,
) -> GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfig
fn clone( &self, ) -> GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfig
impl Default for GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfig
Source§fn default() -> GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfig
fn default() -> GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfig
Source§impl<'de> Deserialize<'de> for GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfig
impl<'de> Deserialize<'de> for GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Part for GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfig
Auto Trait Implementations§
impl Freeze for GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfig
impl RefUnwindSafe for GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfig
impl Send for GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfig
impl Sync for GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfig
impl Unpin for GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfig
impl UnwindSafe for GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more