Tool Count • Rust AI Agent SDK

tool_count: Get the number of tools

tool_count

Async

Method

</div>

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

Get the number of tools

Diagram

uses

returns

Agent

Tool: tool_count

Result

Signature

python
async def tool_count(&self) -> usize

Returns

ResponseField usize

The result of the operation.


Related Documentation