Skip to main content

BeforeAgentCallback

Type Alias BeforeAgentCallback 

Source
pub type BeforeAgentCallback = Box<dyn Fn(Arc<dyn CallbackContext>) -> Pin<Box<dyn Future<Output = Result<Option<Content>, AdkError>> + Send>> + Send + Sync>;
Expand description

Callback invoked before an agent runs. Return Ok(Some(content)) to short-circuit.

Aliased Typeยง

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