Has Tool Hooks • AI Agent SDK

has_tool_hooks: Check if any tool hooks are registered.

has_tool_hooks

Method

</div>

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

Check if any tool hooks are registered.

Diagram

uses

returns

Agent

Tool: has_tool_hooks

Result

Signature

python
def has_tool_hooks() -> bool

Returns

ResponseField bool

The result of the operation.

Source

View on GitHub

praisonaiagents/hooks/middleware.py at line 437


Related Documentation