Add Tool • Rust AI Agent SDK

add_tool: Add a tool to the agent

add_tool

Async

Method

</div>

This is a method of the Agent class in the agent module.

Add a tool to the agent

Diagram

uses

returns

Agent

Tool: add_tool

Result

Signature

python
async def add_tool(&self, tool: impl Tool + 'static) -> ()

Parameters

ParamField impl Tool + 'static

No description available.

Returns

ResponseField ()

The result of the operation.


Related Documentation