Table of Contents

Method EvaluatePermission

Namespace
LMKit.Agents.Tools
Assembly
LM-Kit.NET.dll

EvaluatePermission(ITool)

Evaluates whether a tool is permitted by the configured PermissionPolicy.

public ToolPermissionResult EvaluatePermission(ITool tool)

Parameters

tool ITool

The 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

toolName string

The 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.