Package com.tnsai.server.hooks
Class DeclarativeHookExecutor
java.lang.Object
com.tnsai.server.hooks.DeclarativeHookExecutor
- All Implemented Interfaces:
HookExecutor
Executes hook actions (shell commands, log messages).
All execution is best-effort: failures are logged but never propagate to the agent or tool execution pipeline.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(HookAction action, Map<String, String> context) Execute a hook action with the given context variables.
-
Constructor Details
-
DeclarativeHookExecutor
public DeclarativeHookExecutor()
-
-
Method Details
-
execute
Execute a hook action with the given context variables.- Specified by:
executein interfaceHookExecutor- Parameters:
action- the action to executecontext- variable substitutions (e.g. "tool" -> tool name, "event" -> event name)
-