Method EvaluatePermission
EvaluatePermission(ITool)
Evaluates whether a tool is permitted by the configured PermissionPolicy.
public ToolPermissionResult EvaluatePermission(ITool tool)
Parameters
toolIToolThe tool to evaluate.
Returns
- ToolPermissionResult
Allowed if no policy is configured or the tool is permitted; otherwise the policy's evaluation result.
EvaluatePermission(string)
Evaluates whether a tool is permitted by name using the configured PermissionPolicy.
public ToolPermissionResult EvaluatePermission(string toolName)
Parameters
toolNamestringThe name of a registered tool to evaluate.
Returns
- ToolPermissionResult
Allowed if no policy is configured or the tool is permitted; Denied if the tool is not found in the registry; otherwise the policy's evaluation result.