Hook
HookContext
- class teksi_hooks.hook.HookContext(parameters=<factory>, logger=<factory>, capabilities=<factory>)[source]
Runtime context passed to hook implementations.
The context contains user/configuration parameters, a logger and the capabilities available to the current hook run.
- Parameters:
parameters (dict[str, Any])
logger (Logger)
capabilities (dict[type[Any], Any])
Fields
parametersType:
dict[str, Any]Runtime parameters passed to the hook. These may come from configuration, command-line options or the calling workflow.
loggerType:
logging.LoggerLogger that hook implementations should use for runtime messages.
capabilitiesType:
dict[type[Any], Any]Available capabilities keyed by their capability type. Hooks declare required capability types via required_capabilities and retrieve them with capability(…).
HookMetadata
- class teksi_hooks.hook.HookMetadata(name, description)[source]
Describes a hook implementation.
Metadata is used for validation, logging and user-facing diagnostics.
- Parameters:
name (str)
description (str)
Fields
nameType:
strHuman-readable hook name used in logs and diagnostics.
descriptionType:
strShort description of what the hook does.