Return this from a can_use_tool callback or a PermissionRequest hook to
deny a tool call.
See also
CallbackResult for reading result fields.
Examples
# Deny a tool call
PermissionResultDeny(reason = "File write not allowed")
#> <deputy::PermissionResultDeny>
#> @ decision : chr "deny"
#> @ reason : chr "File write not allowed"
#> @ interrupt: logi FALSE
# Deny and stop the run
PermissionResultDeny(reason = "Critical security violation", interrupt = TRUE)
#> <deputy::PermissionResultDeny>
#> @ decision : chr "deny"
#> @ reason : chr "Critical security violation"
#> @ interrupt: logi TRUE