Get Hook Type • AI Agent SDK

get_hook_type: Get the hook type of a decorated function.

get_hook_type

Function

</div>

This function is defined in the middleware module.

Get the hook type of a decorated function.

Diagram

Allow

Deny

Event Trigger

Hook: get_hook_type

Decision

Process

Block

Signature

python
def get_hook_type(func: Callable) -> Optional[str]

Parameters

ParamField Callable

No description available.

Returns

ResponseField Optional[str]

The result of the operation.

Used By

Source

View on GitHub

praisonaiagents/hooks/middleware.py at line 377


Related Documentation