Skip to main content

BeforeToolCall

Type Alias BeforeToolCall 

Source
pub type BeforeToolCall = Arc<dyn Fn(BeforeToolCallContext<'_>, CancellationToken) -> BoxFuture<'static, Option<BeforeToolCallResult>> + Send + Sync>;
Expand description

(context, signal) -> Option<BeforeToolCallResult> — can block a tool call before it runs.

Aliased Type§

pub struct BeforeToolCall { /* private fields */ }