Trait BeforeToolFn

Source
pub trait BeforeToolFn:
    for<'a> Fn(&'a Agent, &ToolCall) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'a>>
    + Send
    + Sync
    + DynClone { }
Expand description

Hooks that are called before each tool

Implementors§

Source§

impl<F> BeforeToolFn for F
where F: for<'a> Fn(&'a Agent, &ToolCall) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'a>> + Send + Sync + DynClone,