NAME
Claude::Agent::Permission::Result - Base class for permission results
DESCRIPTION
Base class for the answers a can_use_tool callback returns. Use Claude::Agent::Permission::Result::Allow or Claude::Agent::Permission::Result::Deny, usually through Claude::Agent::Permission->allow and ->deny.
ATTRIBUTES
behavior
allow or deny. Set by the subclass.
METHODS
new
Takes a flat list of name/value pairs. Unknown names are ignored.
to_hash
my $hash = $result->to_hash;
The result in the shape the CLI expects.
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).