pub struct LivekitSmartEndpointingPlan {
pub provider: Provider,
pub wait_function: Option<String>,
}Fields§
§provider: ProviderThis is the provider for the smart endpointing plan.
wait_function: Option<String>This expression describes how long the bot will wait to start speaking based on the likelihood that the user has reached an endpoint. This is a millisecond valued function. It maps probabilities (real numbers on [0,1]) to milliseconds that the bot should wait before speaking ([0, \infty]). Any negative values that are returned are set to zero (the bot can’t start talking in the past). A probability of zero represents very high confidence that the caller has stopped speaking, and would like the bot to speak to them. A probability of one represents very high confidence that the caller is still speaking. Under the hood, this is parsed into a mathjs expression. Whatever you use to write your expression needs to be valid with respect to mathjs @default "70 + 4000 * x"
Implementations§
Source§impl LivekitSmartEndpointingPlan
impl LivekitSmartEndpointingPlan
pub fn new(provider: Provider) -> LivekitSmartEndpointingPlan
Trait Implementations§
Source§impl Clone for LivekitSmartEndpointingPlan
impl Clone for LivekitSmartEndpointingPlan
Source§fn clone(&self) -> LivekitSmartEndpointingPlan
fn clone(&self) -> LivekitSmartEndpointingPlan
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more