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
Optional[HookRegistry]
No description available.
float
default:"60.0"
No description available.
Optional[str]
No description available.
Methods
registry()
Get the hook registry.
execute()
Execute all hooks for an event.
execute_async()
Alias of execute() for call sites expecting an explicit async entry point.
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 29
