get • AI Agent SDK

get: Get a tool by name.

get

Method

</div>

This is a method of the ToolRegistry class in the registry module.

Get a tool by name.

Thread-safe: Uses lock for concurrent access.

Signature

python
def get(name: str) -> Optional[Union[BaseTool, Callable]]

Parameters

ParamField str

Tool name

Returns

ResponseField Optional[Union[BaseTool, Callable]]

BaseTool instance, callable, or None if not found

Uses

  • discover_plugins

Source

View on GitHub

praisonaiagents/tools/registry.py at line 215