Run Before Tool • AI Agent SDK
run_before_tool: Run all before_tool hooks.
run_before_tool
Method
</div>
This is a method of the MiddlewareManager class in the middleware module.
Run all before_tool hooks.
Signature
def run_before_tool(request: ToolRequest) -> ToolRequestParameters
ParamField
ToolRequestNo description available.
Returns
ResponseField
ToolRequestThe result of the operation.
Uses
hook
Used By
Source
View on GitHubpraisonaiagents/hooks/middleware.py at line 457