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

Function has_defined_permissions

core/src/agent_api/agent_binding.rs:29–31  ·  view source on GitHub ↗
(def: &AgentDefinition)

Source from the content-addressed store, hash-verified

27}
28
29fn has_defined_permissions(def: &AgentDefinition) -> bool {
30 !def.permissions.allow.is_empty() || !def.permissions.deny.is_empty()
31}
32
33fn apply_step_budget(opts: &mut SessionOptions, def: &AgentDefinition) {
34 if opts.max_tool_rounds.is_none() {

Callers 1

apply_permissionsFunction · 0.85

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected