BeforeToolCallback

Type Alias BeforeToolCallback 

Source
pub type BeforeToolCallback = Arc<dyn Fn(&FunctionCall) -> Pin<Box<dyn Future<Output = BeforeToolResult> + Send + '_>> + Send + Sync>;
Expand description

A before-tool callback function type.

Receives the function call about to be executed and returns a decision about whether to proceed.

Aliased Typeยง

pub struct BeforeToolCallback { /* private fields */ }