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
def get(name: str) -> Optional[Union[BaseTool, Callable]]Parameters
ParamField
strTool name
Returns
ResponseField
Optional[Union[BaseTool, Callable]]BaseTool instance, callable, or None if not found
Uses
discover_plugins
Source
View on GitHubpraisonaiagents/tools/registry.py at line 215