Before Tool • Rust AI Agent SDK
before_tool: Run before-tool hooks
before_tool
Method
</div>
This is a method of the HookRunner class in the hooks module.
Run before-tool hooks
Signature
def before_tool(
&self,
session_id: &str,
tool_name: &str,
args: serde_json::Value,
) -> Result<HookResult>Parameters
ParamField
&strNo description available.
ParamField
&strNo description available.
ParamField
serde_json::ValueNo description available.