pub struct BridgeClient { /* private fields */ }Expand description
HTTP client for bridge-echo. Sends transcribed speech to the multiplexer and receives Claude’s response. All session management and trust context wrapping is handled by bridge-echo.
Implementations§
Source§impl BridgeClient
impl BridgeClient
pub fn new(bridge_url: &str, caller_name: String) -> Self
Sourcepub async fn send(
&self,
call_sid: &str,
transcript: &str,
context: Option<&str>,
) -> Result<String, BridgeError>
pub async fn send( &self, call_sid: &str, transcript: &str, context: Option<&str>, ) -> Result<String, BridgeError>
Send a voice transcript to bridge-echo and get the response.
The context parameter is used for outbound calls — it tells Claude
why it initiated the call. Consumed on first utterance.
Auto Trait Implementations§
impl Freeze for BridgeClient
impl !RefUnwindSafe for BridgeClient
impl Send for BridgeClient
impl Sync for BridgeClient
impl Unpin for BridgeClient
impl UnsafeUnpin for BridgeClient
impl !UnwindSafe for BridgeClient
Blanket Implementations§
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