BeforeModelCallback

Type Alias BeforeModelCallback 

Source
pub type BeforeModelCallback = Box<dyn Fn(Arc<dyn CallbackContext>) -> Pin<Box<dyn Future<Output = Result<Option<Content>, AdkError>> + Send>> + Sync + Send>;
Available on crate feature runner only.
Expand description

Callback executed before calling the model

Aliased Typeยง

pub struct BeforeModelCallback(/* private fields */);