pub trait Approver: Send + Sync {
// Required method
fn approve<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
tool: &'life1 dyn Tool,
input: &'life2 Value,
) -> Pin<Box<dyn Future<Output = Decision> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}Expand description
Gates tool calls that aren’t read-only. The CLI implements this with a terminal prompt; a headless caller can auto-allow or auto-deny.
Required Methods§
fn approve<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
tool: &'life1 dyn Tool,
input: &'life2 Value,
) -> Pin<Box<dyn Future<Output = Decision> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".