Add Tool • Rust AI Agent SDK
add_tool: Add a tool to the agent
add_tool
Async
Method
</div>
Add a tool to the agent
Signature
async def add_tool(&self, tool: impl Tool + 'static) -> ()Parameters
ParamField
impl Tool + 'staticNo description available.
Returns
ResponseField
()The result of the operation.