pub struct VapiAgentCall { /* private fields */ }Expand description
A bridged caller/Vapi pair.
The supervisor remains alive independently of this handle so dropping the handle cannot silently disable symmetric teardown.
Implementations§
Source§impl VapiAgentCall
impl VapiAgentCall
pub fn caller_connection_id(&self) -> &ConnectionId
pub fn vapi_connection_id(&self) -> &ConnectionId
pub fn bridge_id(&self) -> &BridgeId
pub fn subscribe_events(&self) -> Receiver<VapiEvent>
pub async fn say( &self, content: impl Into<String>, end_call_after_spoken: bool, interrupt_assistant: bool, ) -> Result<()>
pub async fn add_message( &self, role: impl Into<String>, content: impl Into<String>, trigger_response: bool, ) -> Result<()>
pub async fn mute_assistant(&self) -> Result<()>
pub async fn unmute_assistant(&self) -> Result<()>
Sourcepub async fn end(&self) -> RvoipResult<()>
pub async fn end(&self) -> RvoipResult<()>
End the Vapi leg. Under the default peer policy the supervisor then ends the paired caller leg as well.
pub async fn wait(&mut self) -> VapiAgentOutcome
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for VapiAgentCall
impl !RefUnwindSafe for VapiAgentCall
impl !UnwindSafe for VapiAgentCall
impl Send for VapiAgentCall
impl Sync for VapiAgentCall
impl Unpin for VapiAgentCall
impl UnsafeUnpin for VapiAgentCall
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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