Table of Contents

Class ToolPolicyResolver

Namespace
Oscova.Agents.Policies
Assembly
Oscova.Agents.dll

Resolves sparse per-agent tool policy overrides by qualified tool name.

public sealed class ToolPolicyResolver

Inheritance

Inherited Members

Constructors

ToolPolicyResolver(IEnumerable<AgentToolPolicy>?)

Creates a resolver from sparse policy overrides, keeping the last duplicate entry by tool name.

Methods

GetApprovalMode(string)

Gets the explicit override for a tool.

GetEffectiveApprovalMode(string, ToolApprovalMode)

Resolves a tool's effective approval mode from an agent override and a reflected default.

IsPersistedOverride(AgentToolPolicy)

Returns true when a policy entry represents a non-default override worth persisting.