pub struct BothCustomEndpointingRule {
    pub type: Type,
    pub assistant_regex: String,
    pub assistant_regex_options: Option<Vec<RegexOption>>,
    pub customer_regex: String,
    pub customer_regex_options: Option<Vec<RegexOption>>,
    pub timeout_seconds: f64,
}Fields§
§type: TypeThis endpointing rule is based on both the last assistant message and the current customer message as they are speaking.  Flow: - Assistant speaks - Customer starts speaking - Customer transcription comes in - This rule is evaluated on the last assistant message and the current customer transcription - If assistant message matches assistantRegex AND customer message matches customerRegex, 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.
assistant_regex: StringThis is the regex pattern to match the assistant’s message.  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$".
assistant_regex_options: Option<Vec<RegexOption>>These are the options for the assistant’s message regex match. Defaults to all disabled. @default []
customer_regex: String§customer_regex_options: Option<Vec<RegexOption>>These are the options for the customer’s message 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 BothCustomEndpointingRule
 
impl Clone for BothCustomEndpointingRule
Source§fn clone(&self) -> BothCustomEndpointingRule
 
fn clone(&self) -> BothCustomEndpointingRule
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read more