Skip to main content

rvoip_vapi/
lib.rs

1//! Vapi bidirectional WebSocket voice-agent adapter for rvoip.
2//!
3//! This crate lets rvoip retain ownership of a SIP or WebRTC caller leg while
4//! Vapi owns ASR, dialog, synthesis, and interruption handling on a raw-audio
5//! WebSocket call transport.
6
7#![cfg_attr(not(test), warn(clippy::unwrap_used, clippy::expect_used))]
8#![doc = include_str!("../README.md")]
9
10mod client;
11mod media;
12
13pub mod adapter;
14pub mod agent;
15pub mod config;
16pub mod error;
17pub mod events;
18pub mod types;
19
20pub use adapter::{
21    VapiAdapter, VapiTransportHandle, ADAPTER_EVENT_CAPACITY, VAPI_CALL_REFERENCE_KIND,
22};
23pub use agent::{VapiAgentCall, VapiAgentOutcome};
24pub use config::{VapiApiKey, VapiConfig};
25pub use error::{Result, VapiError};
26pub use events::{VapiEvent, VapiEventEnvelope};
27pub use types::{VapiAssistant, VapiAudioFormat, VapiCallOptions, VapiPeerFailurePolicy};