Package com.tnsai.server.hooks
Interface HookExecutor
- All Known Implementing Classes:
DeclarativeHookExecutor
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Executes a hook action with context variables.
- Since:
- 0.2.4
-
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(HookAction action, Map<String, String> context) Execute a hook action with the given context variables.
-
Method Details
-
execute
Execute a hook action with the given context variables.- Parameters:
action- the action to executecontext- variable substitutions (e.g. "tool" -> tool name)
-