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.

Diagram

uses

returns

Agent

Tool: run_before_tool

Result

Signature

python
def run_before_tool(request: ToolRequest) -> ToolRequest

Parameters

ParamField ToolRequest

No description available.

Returns

ResponseField ToolRequest

The result of the operation.

Uses

  • hook

Used By

Source

View on GitHub

praisonaiagents/hooks/middleware.py at line 457


Related Documentation