register • AI Agent SDK

register: Register a hook definition.

register

Method

</div>

This is a method of the HookRegistry class in the registry module.

Register a hook definition.

Signature

python
def register(hook: HookDefinition) -> str

Parameters

ParamField HookDefinition

The hook definition to register

Returns

ResponseField str

The hook ID

Uses

  • logger.debug

Used By

Source

View on GitHub

praisonaiagents/hooks/registry.py at line 75