Skip to main content

resolve_hook_event

Function
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

Parameters

Union[str, HookEvent]
required
No description available.

Returns

Optional[HookEvent]
The result of the operation.

Uses

  • HookEvent

Used By

Source

View on GitHub

praisonaiagents/hooks/registry.py at line 488

Hooks Concept

Hook Events

Callbacks