Skip to main content

Approval

Trait Approval 

Source
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§

Source

fn approve(&self, call: &ToolCall) -> bool

Return true to let the tool run.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§