Skip to main content
Base types for the Mellea plugin system.

Classes

CLASS PluginMeta

Metadata attached to Plugin subclasses.

CLASS Plugin

Base class for multi-hook Mellea plugins. Subclasses get automatic context-manager support and plugin metadata:: class PIIRedactor(Plugin, name=“pii-redactor”, priority=5): @hook(HookType.COMPONENT_PRE_EXECUTE, mode=PluginMode.SEQUENTIAL) async def redact_input(self, payload, ctx): … with PIIRedactor(): result = session.instruct(”…”)

CLASS PluginViolationError

Raised when a plugin blocks execution in enforce mode.