Table of Contents

Property PermissionPolicy

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

PermissionPolicy

Gets or sets the permission policy that governs tool access.

public ToolPermissionPolicy PermissionPolicy { get; set; }

Property Value

ToolPermissionPolicy

A ToolPermissionPolicy instance, or null if no policy is configured (all tools are allowed by default).

Examples

var registry = new ToolRegistry();
registry.PermissionPolicy = new ToolPermissionPolicy()
    .AllowCategory("data", "text", "numeric")
    .Deny("process", "smtp")
    .RequireApproval("filesystem", "http");

Remarks

When set, the policy is evaluated before each tool invocation to determine whether the tool is allowed, denied, or requires user approval. This enables centralized security governance without modifying individual tool configurations.