#[non_exhaustive]pub struct SmartReplyConfig {
pub allowlist_document: String,
pub max_result_count: i32,
/* private fields */
}Available on crate feature
conversation-models only.Expand description
Smart reply specific configuration for evaluation job.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.allowlist_document: StringThe allowlist document resource name.
Format: projects/<Project ID>/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>. Only used for smart reply model.
max_result_count: i32Required. The model to be evaluated can return multiple results with confidence score on each query. These results will be sorted by the descending order of the scores and we only keep the first max_result_count results as the final results to evaluate.
Implementations§
Source§impl SmartReplyConfig
impl SmartReplyConfig
pub fn new() -> Self
Sourcepub fn set_allowlist_document<T: Into<String>>(self, v: T) -> Self
pub fn set_allowlist_document<T: Into<String>>(self, v: T) -> Self
Sets the value of allowlist_document.
§Example
ⓘ
let x = SmartReplyConfig::new().set_allowlist_document("example");Sourcepub fn set_max_result_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_max_result_count<T: Into<i32>>(self, v: T) -> Self
Sets the value of max_result_count.
§Example
ⓘ
let x = SmartReplyConfig::new().set_max_result_count(42);Trait Implementations§
Source§impl Clone for SmartReplyConfig
impl Clone for SmartReplyConfig
Source§fn clone(&self) -> SmartReplyConfig
fn clone(&self) -> SmartReplyConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SmartReplyConfig
impl Debug for SmartReplyConfig
Source§impl Default for SmartReplyConfig
impl Default for SmartReplyConfig
Source§fn default() -> SmartReplyConfig
fn default() -> SmartReplyConfig
Returns the “default value” for a type. Read more
Source§impl Message for SmartReplyConfig
impl Message for SmartReplyConfig
Source§impl PartialEq for SmartReplyConfig
impl PartialEq for SmartReplyConfig
impl StructuralPartialEq for SmartReplyConfig
Auto Trait Implementations§
impl Freeze for SmartReplyConfig
impl RefUnwindSafe for SmartReplyConfig
impl Send for SmartReplyConfig
impl Sync for SmartReplyConfig
impl Unpin for SmartReplyConfig
impl UnwindSafe for SmartReplyConfig
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
Mutably borrows from an owned value. Read more