Is Tool Allowed • AI Agent SDK

is_tool_allowed: Return “True“ if “tool“ may be exposed on this route.

is_tool_allowed

Method

</div>

This is a method of the ToolPolicy class in the protocols module.

Return `True if tool` may be exposed on this route.

Diagram

uses

returns

Agent

Tool: is_tool_allowed

Result

Signature

python
def is_tool_allowed(tool: Any) -> bool

Parameters

ParamField Any

No description available.

Returns

ResponseField bool

The result of the operation.

Used By

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 2290


Related Documentation