Struct googapis::google::cloud::dialogflow::v2::human_agent_assistant_config::SuggestionQueryConfig [−][src]
pub struct SuggestionQueryConfig {
pub max_results: i32,
pub confidence_threshold: f32,
pub context_filter_settings: Option<ContextFilterSettings>,
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 defaults to 0.0, which means that all suggestions are returned.
Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE.
context_filter_settings: Option<ContextFilterSettings>
Determines how recent conversation context is filtered when generating suggestions. If unspecified, no messages will be dropped.
query_source: Option<QuerySource>
Source of query.
Trait Implementations
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Returns the encoded length of the message without a length delimiter.
Encodes the message to a buffer. Read more
Encodes the message to a newly allocated buffer.
Encodes the message with a length-delimiter to a buffer. Read more
Encodes the message with a length-delimiter to a newly allocated buffer.
Decodes an instance of the message from a buffer. Read more
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
Decodes a length-delimited instance of the message from the buffer.
Decodes an instance of the message from a buffer, and merges it into self
. Read more
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for SuggestionQueryConfig
impl Send for SuggestionQueryConfig
impl Sync for SuggestionQueryConfig
impl Unpin for SuggestionQueryConfig
impl UnwindSafe for SuggestionQueryConfig
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more