Skip to contents

Returns a permission result that allows the tool to execute.

Usage

PermissionResultAllow(message = NULL)

Arguments

message

Optional message to display

Value

A PermissionResultAllow S7 object

See also

CallbackResult for read-only properties and S7 inspection.

Examples

# Allow a tool call
PermissionResultAllow()
#> <deputy::PermissionResultAllow>
#>  @ decision: chr "allow"
#>  @ message : NULL

# Allow with a message
PermissionResultAllow(message = "Tool approved by custom callback")
#> <deputy::PermissionResultAllow>
#>  @ decision: chr "allow"
#>  @ message : chr "Tool approved by custom callback"