Skip to main content

is_allowed

Method
This is a method of the PermissionAllowlist class in the approval module.
Check if a tool is allowed.

Signature

def is_allowed(tool_name: str, path: Optional[str]) -> bool

Parameters

tool_name
str
required
Name of the tool
path
Optional
Optional path to check against allowed paths

Returns

Returns
bool
True if tool is allowed (optionally for the given path)

Source

View on GitHub

praisonaiagents/approval.py at line 126