Method
permission_decision
(
&self,
tool_name: &str,
args: &serde_json::Value,
)
Source from the content-addressed store, hash-verified
| 128 | } |
| 129 | |
| 130 | pub(crate) fn permission_decision( |
| 131 | &self, |
| 132 | tool_name: &str, |
| 133 | args: &serde_json::Value, |
| 134 | ) -> PermissionDecision { |
| 135 | self.config |
| 136 | .permission_checker |
| 137 | .as_ref() |
| 138 | .map(|checker| checker.check(tool_name, args)) |
| 139 | .unwrap_or(PermissionDecision::Ask) |
| 140 | } |
| 141 | |
| 142 | async fn confirmation_decision(&self, tool_name: &str) -> ToolGateDecision { |
| 143 | let Some(cm) = &self.config.confirmation_manager else { |
Tested by
no test coverage detected