Get Tool • AI Agent SDK

get_tool: Convenience function to get a tool from the global registry.

get_tool

Function

</div>

This function is defined in the registry module.

Convenience function to get a tool from the global registry.

Diagram

uses

returns

Agent

Tool: get_tool

Result

Signature

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

Parameters

ParamField str

No description available.

Returns

ResponseField Optional[Union[BaseTool, Callable]]

The result of the operation.

Uses

  • get_registry

Source

View on GitHub

praisonaiagents/tools/registry.py at line 628


Related Documentation