Struct google_api_proto::google::cloud::dialogflow::v2beta1::human_agent_assistant_config::SuggestionQueryConfig
source · pub struct SuggestionQueryConfig {
pub max_results: i32,
pub confidence_threshold: f32,
pub context_filter_settings: Option<ContextFilterSettings>,
pub sections: Option<Sections>,
pub query_source: Option<QuerySource>,
}
Expand description
Config for suggestion query.
Fields§
§max_results: i32
Maximum number of results to return. Currently, if unset, defaults to 10. And the max number is 20.
confidence_threshold: 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 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: Option<ContextFilterSettings>
Determines how recent conversation context is filtered when generating suggestions. If unspecified, no messages will be dropped.
sections: Option<Sections>
Optional. The customized sections chosen to return when requesting a summary of a conversation.
query_source: Option<QuerySource>
Source of query.
Trait Implementations§
source§impl Clone for SuggestionQueryConfig
impl Clone for SuggestionQueryConfig
source§fn clone(&self) -> SuggestionQueryConfig
fn clone(&self) -> SuggestionQueryConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SuggestionQueryConfig
impl Debug for SuggestionQueryConfig
source§impl Default for SuggestionQueryConfig
impl Default for SuggestionQueryConfig
source§impl Message for SuggestionQueryConfig
impl Message for SuggestionQueryConfig
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for SuggestionQueryConfig
impl PartialEq for SuggestionQueryConfig
source§fn eq(&self, other: &SuggestionQueryConfig) -> bool
fn eq(&self, other: &SuggestionQueryConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SuggestionQueryConfig
Auto Trait Implementations§
impl Freeze for SuggestionQueryConfig
impl RefUnwindSafe for SuggestionQueryConfig
impl Send for SuggestionQueryConfig
impl Sync for SuggestionQueryConfig
impl Unpin for SuggestionQueryConfig
impl UnwindSafe for SuggestionQueryConfig
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request