pub type Predicate = Arc<dyn Fn(&ToolCall) -> bool + Send + Sync>;
A closure that tests whether a policy applies to a given tool call.
pub struct Predicate { /* private fields */ }