Has Tool • AI Agent SDK

has_tool: Check if a tool is registered in the global registry.

has_tool

Function

</div>

This function is defined in the registry module.

Check if a tool is registered in the global registry.

Diagram

uses

returns

Agent

Tool: has_tool

Result

Signature

python
def has_tool(name: str) -> bool

Parameters

ParamField str

Name of the tool to check

Returns

ResponseField bool

True if tool exists, False otherwise

Uses

  • get_registry

Source

View on GitHub

praisonaiagents/tools/registry.py at line 651


Related Documentation