ToolApprovalAgent(AIAgent, ToolApprovalAgentOptions) Constructor

Definition

Initializes a new instance of the ToolApprovalAgent class.

public ToolApprovalAgent(Microsoft.Agents.AI.AIAgent innerAgent, Microsoft.Agents.AI.ToolApprovalAgentOptions? options = default);
new Microsoft.Agents.AI.ToolApprovalAgent : Microsoft.Agents.AI.AIAgent * Microsoft.Agents.AI.ToolApprovalAgentOptions -> Microsoft.Agents.AI.ToolApprovalAgent
Public Sub New (innerAgent As AIAgent, Optional options As ToolApprovalAgentOptions = Nothing)

Parameters

innerAgent
AIAgent

The underlying agent to delegate to.

options
ToolApprovalAgentOptions

Optional ToolApprovalAgentOptions for configuring serialization and auto-approval rules. When null, default settings are used.

Exceptions

innerAgent is null.

Applies to