Resolve Hook Event • AI Agent SDK
resolve_hook_event: Resolve an event id to a :class:`HookEvent`, or “None“ if unknown.
resolve_hook_event
Function
</div>
This function is defined in the registry module.
Resolve an event id to a :class:HookEvent, or `None` if unknown.
Accepts the enum itself, its canonical value (`"kanban_task_moved") and its member name ("KANBAN_TASK_MOVED"`). Emitting call sites historically used the member name, so both spellings must reach the same subscribers.
Signature
def resolve_hook_event(event: Union[str, HookEvent]) -> Optional[HookEvent]Parameters
ParamField
Union[str, HookEvent]No description available.
Returns
ResponseField
Optional[HookEvent]The result of the operation.
Uses
HookEvent
Used By
Source
View on GitHubpraisonaiagents/hooks/registry.py at line 520