MCPcopy Create free account
hub / github.com/AI45Lab/Code / ask

Method ask

core/src/permissions/policy.rs:85–88  ·  view source on GitHub ↗

Add an ask rule

(mut self, rule: &str)

Source from the content-addressed store, hash-verified

83
84 /// Add an ask rule
85 pub fn ask(mut self, rule: &str) -> Self {
86 self.ask.push(PermissionRule::new(rule));
87 self
88 }
89
90 /// Add multiple deny rules
91 pub fn deny_all(mut self, rules: &[&str]) -> Self {

Callers 6

test_policy_builderFunction · 0.80
test_policy_check_askFunction · 0.80
test_policy_disabledFunction · 0.80

Calls

no outgoing calls

Tested by 6

test_policy_builderFunction · 0.64
test_policy_check_askFunction · 0.64
test_policy_disabledFunction · 0.64