Mellea hook decorator.Documentation Index
Fetch the complete documentation index at: https://docs.mellea.ai/llms.txt
Use this file to discover all available pages before exploring further.
Functions
FUNC hook
hook_type: The hook point name (e.g.,"generation_pre_call").mode: Execution mode —PluginMode.SEQUENTIAL(default),PluginMode.CONCURRENT,PluginMode.AUDIT, orPluginMode.FIRE_AND_FORGET.priority: Lower numbers execute first. For methods on aPluginsubclass, falls back to the class-level priority, then 50. For standalone functions, defaults to 50.
- A decorator that attaches
HookMetato the decorated function.
TypeError: If the decorated function is notasync def.
Classes
CLASS HookMeta
Metadata attached by the @hook decorator.
Args:
hook_type: The hook point name (e.g.,"generation_pre_call").mode: Execution mode for the hook handler.priority: Execution priority — lower numbers execute first.