ToolApprovalAgent(AIAgent, ToolApprovalAgentOptions) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.