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.

Diagram

Allow

Deny

Event Trigger

Hook: resolve_hook_event

Decision

Process

Block

Signature

python
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 GitHub

praisonaiagents/hooks/registry.py at line 520


Related Documentation