Source code for nlp_shap.plugins.context
"""Plugin registry context helpers."""
from dataclasses import dataclass
from .registry import PluginRegistry
[docs]
@dataclass(frozen=True, slots=True)
class PluginContext:
"""Registry handle passed through pipeline setup."""
registry: PluginRegistry
"""Plugin registry used to resolve pipeline components."""