Is Tool • AI Agent SDK

is_tool: Check if an object is a tool (BaseTool instance or decorated function).

is_tool

Function

</div>

This function is defined in the decorator module.

Check if an object is a tool (BaseTool instance or decorated function).

Diagram

uses

returns

Agent

Tool: is_tool

Result

Signature

python
def is_tool(obj: Any) -> bool

Parameters

ParamField Any

No description available.

Returns

ResponseField bool

The result of the operation.

Source

View on GitHub

praisonaiagents/tools/decorator.py at line 430


Related Documentation