Trait AfterToolFn

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

Hooks that are called after each tool

Implementors§

Source§

impl<F> AfterToolFn for F
where F: for<'tool> Fn(&'tool Agent, &ToolCall, &'tool mut Result<ToolOutput, ToolError>) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'tool>> + Send + Sync + DynClone,