你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MCPApproval Constructors

Definition

Overloads

Name Description
MCPApproval(MCPApprovalPerTool)

Create an instance of an MCPApproval with custom trust levels for different tools.

MCPApproval(String)

Create an instance of an MCPApproval with trust level, equal for all tools.

MCPApproval(MCPApprovalPerTool)

Source:
MCPApproval.cs

Create an instance of an MCPApproval with custom trust levels for different tools.

public MCPApproval(Azure.AI.Agents.Persistent.MCPApprovalPerTool perToolApproval);
new Azure.AI.Agents.Persistent.MCPApproval : Azure.AI.Agents.Persistent.MCPApprovalPerTool -> Azure.AI.Agents.Persistent.MCPApproval
Public Sub New (perToolApproval As MCPApprovalPerTool)

Parameters

perToolApproval
MCPApprovalPerTool

The object, describing, which tools never require approvals and which tools always require approvals.

Applies to

MCPApproval(String)

Source:
MCPApproval.cs

Create an instance of an MCPApproval with trust level, equal for all tools.

public MCPApproval(string requireApproval);
new Azure.AI.Agents.Persistent.MCPApproval : string -> Azure.AI.Agents.Persistent.MCPApproval
Public Sub New (requireApproval As String)

Parameters

requireApproval
String

The approval requirement, can be "always" or "never"

Applies to