With Tool • Rust AI Agent SDK

with_tool: Set tool info

with_tool

Method

</div>

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

Set tool info

Diagram

uses

returns

Agent

Tool: with_tool

Result

Signature

python
def with_tool(mut self, name: impl Into<String>, args: serde_json::Value) -> Self

Parameters

ParamField impl Into&lt;String&gt;

No description available.

ParamField serde_json::Value

No description available.

Returns

ResponseField Self

The result of the operation.


Related Documentation