pub trait Approval: Send + Sync {
// Required method
fn approve(&self, call: &ToolCall) -> bool;
}Expand description
Decides whether a gated tool call (bash) may run.
Called once per gated call, before execution.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".