pub trait ChannelAdapterHost: Send + Sync {
// Required method
fn deliver_inbound<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
channel: &'life1 str,
sender_id: &'life2 str,
chat_id: &'life3 str,
payload: MessagePayload,
metadata: HashMap<String, Value>,
) -> Pin<Box<dyn Future<Output = Result<(), PluginError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
}Expand description
Host services exposed to channel adapters.
Required Methods§
Sourcefn deliver_inbound<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
channel: &'life1 str,
sender_id: &'life2 str,
chat_id: &'life3 str,
payload: MessagePayload,
metadata: HashMap<String, Value>,
) -> Pin<Box<dyn Future<Output = Result<(), PluginError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn deliver_inbound<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
channel: &'life1 str,
sender_id: &'life2 str,
chat_id: &'life3 str,
payload: MessagePayload,
metadata: HashMap<String, Value>,
) -> Pin<Box<dyn Future<Output = Result<(), PluginError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Deliver an inbound message payload to the agent pipeline.