Is Middleware • AI Agent SDK

is_middleware: Check if a function is a middleware (wrap_* type).

is_middleware

Function

</div>

This function is defined in the middleware module.

Check if a function is a middleware (wrap_* type).

Signature

python
def is_middleware(func: Callable) -> bool

Parameters

ParamField Callable

No description available.

Returns

ResponseField bool

The result of the operation.

Uses

  • get_hook_type

Source

View on GitHub

praisonaiagents/hooks/middleware.py at line 382


Related Documentation