Has Model Hooks • AI Agent SDK

has_model_hooks: Check if any model hooks are registered.

has_model_hooks

Method

</div>

This is a method of the MiddlewareManager class in the middleware module.

Check if any model hooks are registered.

Diagram

Allow

Deny

Event Trigger

Hook: has_model_hooks

Decision

Process

Block

Signature

python
def has_model_hooks() -> bool

Returns

ResponseField bool

The result of the operation.

Source

View on GitHub

praisonaiagents/hooks/middleware.py at line 428


Related Documentation