Skip to main content

ChannelBridge

Trait ChannelBridge 

Source
pub trait ChannelBridge: Send + Sync {
    // Required methods
    fn make_on_text(self: Arc<Self>) -> Arc<OnText> ;
    fn make_on_event(self: Arc<Self>) -> Arc<OnEvent> ;
    fn make_on_approval(self: Arc<Self>) -> Arc<OnApproval> ;
    fn make_on_question(self: Arc<Self>) -> Arc<OnQuestion> ;
}
Expand description

Trait for channel-specific bridges that produce agent callbacks.

Each messaging channel (Telegram, Discord, etc.) implements this trait so the same RunTask closure can drive any channel without duplication.

Required Methods§

Implementors§