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
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#8B0000', 'primaryTextColor': '#fff', 'primaryBorderColor': '#710101', 'lineColor': '#189AB4', 'secondaryColor': '#189AB4', 'tertiaryColor': '#fff' }}}%%
graph LR
agent["Agent"] -- "uses" --> tool["Tool: after_tool"]
tool -- "returns" --> result["Result"]
style tool fill:#189AB4,color:#fff
style agent fill:#8B0000,color:#fff
style result fill:#8B0000,color:#fffSignature
def after_tool(
&self,
session_id: &str,
tool_name: &str,
result: serde_json::Value,
) -> Result<HookResult>Parameters
ParamField
&strNo description available.
ParamField
&strNo description available.
ParamField
serde_json::ValueNo description available.