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
def is_middleware(func: Callable) -> boolParameters
ParamField
CallableNo description available.
Returns
ResponseField
boolThe result of the operation.
Uses
get_hook_type
Source
View on GitHubpraisonaiagents/hooks/middleware.py at line 382