pub trait PermissionHandler: Send + Sync {
// Required method
fn check<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
tool_name: &'life1 str,
action: &'life2 Action,
) -> Pin<Box<dyn Future<Output = AuthzDecision> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}Expand description
Callback for permission mode decisions (allow/ask/deny). Products implement this to integrate their approval UX.
Required Methods§
Sourcefn check<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
tool_name: &'life1 str,
action: &'life2 Action,
) -> Pin<Box<dyn Future<Output = AuthzDecision> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn check<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
tool_name: &'life1 str,
action: &'life2 Action,
) -> Pin<Box<dyn Future<Output = AuthzDecision> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Decide whether to allow, ask, or deny a tool call.