NAME

Claude::Agent::Permission::Result::Deny - Permission result that denies a tool

DESCRIPTION

Permission result that stops the tool from running.

ATTRIBUTES

behavior

Always deny.

message

The reason, shown to the model.

interrupt

True to end the whole turn rather than let the model carry on.

METHODS

new

Takes a flat list of name/value pairs. Unknown names are ignored.

to_hash

my $hash = $result->to_hash;

{ behavior => 'deny', interrupt => \1 or \0, message => ... }. interrupt is always present as a JSON boolean.

AUTHOR

LNATION, <email at lnation.org>

LICENSE

This software is Copyright (c) 2026 by LNATION.

This is free software, licensed under The Artistic License 2.0 (GPL Compatible).