Table of Contents

Constructor AgentToolProvider

Namespace
Oscova.Agents.Providers
Assembly
Oscova.Agents.dll

AgentToolProvider(IEnumerable<string>, CrewToolCollection, IEnumerable<AgentToolPolicy>?, bool, bool, bool)

Provides a filtered subset of crew tools as Microsoft.Agents.AI.AIContext.Tools for a Microsoft.Agents.AI.ChatClientAgent and applies sparse agent-specific governance overrides. Only tools whose qualified names appear in allowedToolNames are exposed. Oscova.Agents.Policies.ToolApprovalMode.RequireApproval wraps the tool with approval semantics; Oscova.Agents.Policies.ToolApprovalMode.Deny omits the tool entirely. When the agent is used as a tool (sub-agent), approval-required tools are omitted rather than wrapped because no approval channel exists to route the request. Reflected confidentiality markers are also enforced.

public AgentToolProvider(IEnumerable<string> allowedToolNames, CrewToolCollection tools, IEnumerable<AgentToolPolicy>? toolPolicies = null, bool airGapped = false, bool suppressApprovalRequiredTools = false, bool isConfidential = false)

Parameters

allowedToolNames IEnumerable<string>
tools CrewToolCollection
toolPolicies IEnumerable<AgentToolPolicy>?
airGapped bool
suppressApprovalRequiredTools bool
isConfidential bool