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.
Signature
def is_tool_allowed(tool: Any) -> boolParameters
ParamField
AnyNo description available.
Returns
ResponseField
boolThe result of the operation.
Used By
Source
View on GitHubpraisonaiagents/gateway/protocols.py at line 2290