HookRunner
Defined in the runner module.AI Agent Executes hooks from a registry. Supports:
- Python function hooks (sync and async)
- Shell command hooks
- Sequential and parallel execution
- Timeout handling
- Result aggregation
Constructor
No description available.
No description available.
No description available.
Methods
registry()
Get the hook registry.
execute()
Execute all hooks for an event.
execute_sync()
Synchronous version of execute.
is_blocked()
Check if any hook blocked execution.
get_blocking_reason()
Get the reason for blocking from results.
aggregate_context()
Aggregate additional context from all results.
Usage
Source
View on GitHub
praisonaiagents/hooks/runner.py at line 30
