Table of Contents

Method RequireApprovalFor

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

RequireApprovalFor(IEnumerable<string>)

Adds approval rules written as text, the form configuration files and agent definitions carry: a tool name or wildcard pattern (filesystem_*), category:<name> for every tool of a category, or risk:<level> for every tool at or above a risk level (low, medium, high, critical).

public ToolPermissionPolicy RequireApprovalFor(IEnumerable<string> rules)

Parameters

rules IEnumerable<string>

The rules; blank entries are ignored.

Returns

ToolPermissionPolicy

This instance for chaining.

Exceptions

ArgumentException

Thrown when a risk: rule names no risk level.

Share