pub type OnUserMessageCallback = Box<dyn Fn(Arc<dyn InvocationContext>, Content) -> Pin<Box<dyn Future<Output = Result<Option<Content>, AdkError>> + Send>> + Send + Sync>;Available on crate feature
plugin only.Expand description
Callback invoked when a user message is received.
Can modify the message content before processing.
Return Ok(Some(content)) to replace the message, Ok(None) to keep original.
Aliased Typeยง
pub struct OnUserMessageCallback(/* private fields */);