pub type BeforeToolCall = Arc<dyn for<'a> Fn(BeforeToolCallContext<'a>, &'a AbortSignal) -> BoxFuture<'a, Result<Option<BeforeToolCallResult>, String>> + Send + Sync>;Expand description
Runs after validation, before execution. Err is a thrown error: the call fails with the message as text.
Aliased Typeยง
pub struct BeforeToolCall { /* private fields */ }