Execute Sync • AI Agent SDK
execute_sync: Synchronous version of execute.
execute_sync
Method
</div>
This is a method of the HookRunner class in the runner module.
Synchronous version of execute.
Signature
def execute_sync(event: HookEvent, input_data: HookInput, target: Optional[str]) -> List[HookExecutionResult]Parameters
ParamField
HookEventThe event to execute hooks for
ParamField
HookInputInput data for the hooks
ParamField
Optional[str]Optional target to filter hooks
Returns
ResponseField
List[HookExecutionResult]List of execution results
Uses
get_hooksrun_coroutine_from_any_contextexecute
Source
View on GitHubpraisonaiagents/hooks/runner.py at line 186