pub struct CustomerCustomEndpointingRule {
pub type: Type,
pub regex: String,
pub regex_options: Option<Vec<RegexOption>>,
pub timeout_seconds: f64,
}Fields§
§type: TypeThis endpointing rule is based on current customer message as they are speaking. Flow: - Assistant speaks - Customer starts speaking - Customer transcription comes in - This rule is evaluated on the current customer transcription - If a match is found based on regex, the endpointing timeout is set to timeoutSeconds Usage: - If you want to wait longer while customer is speaking numbers, you can set a longer timeout.
regex: StringThis is the regex pattern to match. Note: - This works by using the RegExp.test method in Node.JS. Eg. /hello/.test(\"hello there\") will return true. Hot tip: - In JavaScript, escape \\ when sending the regex pattern. Eg. \"hello\\sthere\" will be sent over the wire as \"hellosthere\". Send \"hello\\\\sthere\" instead. - RegExp.test does substring matching, so /cat/.test(\"I love cats\") will return true. To do full string matching, send "^cat$".
regex_options: Option<Vec<RegexOption>>These are the options for the regex match. Defaults to all disabled. @default []
timeout_seconds: f64This is the endpointing timeout in seconds, if the rule is matched.
Implementations§
Trait Implementations§
Source§impl Clone for CustomerCustomEndpointingRule
impl Clone for CustomerCustomEndpointingRule
Source§fn clone(&self) -> CustomerCustomEndpointingRule
fn clone(&self) -> CustomerCustomEndpointingRule
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for CustomerCustomEndpointingRule
impl Default for CustomerCustomEndpointingRule
Source§fn default() -> CustomerCustomEndpointingRule
fn default() -> CustomerCustomEndpointingRule
Source§impl<'de> Deserialize<'de> for CustomerCustomEndpointingRule
impl<'de> Deserialize<'de> for CustomerCustomEndpointingRule
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>,
Source§impl PartialEq for CustomerCustomEndpointingRule
impl PartialEq for CustomerCustomEndpointingRule
Source§fn eq(&self, other: &CustomerCustomEndpointingRule) -> bool
fn eq(&self, other: &CustomerCustomEndpointingRule) -> bool
self and other values to be equal, and is used by ==.