pub struct MessagePlan {
pub idle_messages: Option<Vec<String>>,
pub idle_message_max_spoken_count: Option<f64>,
pub idle_timeout_seconds: Option<f64>,
pub silence_timeout_message: Option<String>,
}Fields§
§idle_messages: Option<Vec<String>>This are the messages that the assistant will speak when the user hasn’t responded for idleTimeoutSeconds. Each time the timeout is triggered, a random message will be chosen from this array. Usage: - If user gets distracted and doesn’t respond for a while, this can be used to grab their attention. - If the transcriber doesn’t pick up what the user said, this can be used to ask the user to repeat themselves. (From the perspective of the assistant, the conversation is idle since it didn’t "hear" any user messages.) @default null (no idle message is spoken)
idle_message_max_spoken_count: Option<f64>This determines the maximum number of times idleMessages can be spoken during the call. @default 3
idle_timeout_seconds: Option<f64>This is the timeout in seconds before a message from idleMessages is spoken. The clock starts when the assistant finishes speaking and remains active until the user speaks. @default 10
silence_timeout_message: Option<String>This is the message that the assistant will say if the call ends due to silence. If unspecified, it will hang up without saying anything.
Implementations§
Source§impl MessagePlan
impl MessagePlan
pub fn new() -> MessagePlan
Trait Implementations§
Source§impl Clone for MessagePlan
impl Clone for MessagePlan
Source§fn clone(&self) -> MessagePlan
fn clone(&self) -> MessagePlan
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more