pub trait Approver: Send + Sync {
// Required method
fn decide<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
request: &'life1 ApprovalRequest<'life2>,
) -> Pin<Box<dyn Future<Output = Decision> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}Expand description
Decides whether one tool call may run. Consulted by the engine per call, serially, before dispatch; the await suspends only this call.
Required Methods§
Sourcefn decide<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
request: &'life1 ApprovalRequest<'life2>,
) -> Pin<Box<dyn Future<Output = Decision> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn decide<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
request: &'life1 ApprovalRequest<'life2>,
) -> Pin<Box<dyn Future<Output = Decision> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Resolve one pre-dispatch approval request.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".