Skip to main content

fn_approver

Function fn_approver 

Source
pub fn fn_approver<F, Fut>(handler: F) -> Arc<dyn ToolApprover>
where F: Fn(&str, &Value) -> Fut + Send + Sync + 'static, Fut: Future<Output = ApprovalDecision> + Send + 'static,
Available on crate feature async only.
Expand description

Wrap an async closure into a ToolApprover.