execute
AsyncMethod
This is a method of the HookRunner class in the runner module.Execute all hooks for an event.
Signature
Parameters
HookEvent
required
The event to execute hooks for
HookInput
required
Input data for the hooks
Optional[str]
Optional target to filter hooks (e.g., tool name)
Optional
Internal parameter to avoid duplicate get_hooks() calls
Returns
List[HookExecutionResult]
List of execution results
Uses
get_hooks
Used By
CodeAgent.execute_codeCodeAgent.aexecuteMiddlewareManager.execute_model_callMiddlewareManager.execute_tool_callHookRunner.execute_async
Source
View on GitHub
praisonaiagents/hooks/runner.py at line 81
