pub trait ConfirmationPolicy: Send + Sync {
// Required method
fn should_confirm<'life0, 'life1, 'async_trait>(
&'life0 self,
tool_name: &'life1 str,
risk: RiskLevel,
) -> Pin<Box<dyn Future<Output = Result<bool, SynapticError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Determines whether a tool call at a given risk level requires confirmation.