NAME

Sim::Agent::Hook - Loads and invokes hook files that return coderefs

DESCRIPTION

Loads a Perl file, evaluates it in an isolated package, verifies it returns a coderef, and invokes it with structured context.

See Sim::Agent for hook contracts.

AUTHOR

Gian Luca Brunetti (2026), gianluca.brunetti@gmail.com

LICENSE

The GNU General Public License v3.0