After Tool • Rust AI Agent SDK

after_tool: Run after-tool hooks

after_tool

Method

</div>

This is a method of the HookRunner class in the hooks module.

Run after-tool hooks

Diagram

uses

returns

Agent

Tool: after_tool

Result

Signature

python
def after_tool(
        &self,
        session_id: &str,
        tool_name: &str,
        result: serde_json::Value,
    ) -> Result<HookResult>

Parameters

ParamField &str

No description available.

ParamField &str

No description available.

ParamField serde_json::Value

No description available.

Returns

Rust Tools Rust Code Execution Rust Web Search