Share via


McpServerToolApprovalRequestContent(String, McpServerToolCallContent) Constructor

Definition

Initializes a new instance of the McpServerToolApprovalRequestContent class.

public:
 McpServerToolApprovalRequestContent(System::String ^ id, Microsoft::Extensions::AI::McpServerToolCallContent ^ toolCall);
public McpServerToolApprovalRequestContent(string id, Microsoft.Extensions.AI.McpServerToolCallContent toolCall);
new Microsoft.Extensions.AI.McpServerToolApprovalRequestContent : string * Microsoft.Extensions.AI.McpServerToolCallContent -> Microsoft.Extensions.AI.McpServerToolApprovalRequestContent
Public Sub New (id As String, toolCall As McpServerToolCallContent)

Parameters

id
String

The ID that uniquely identifies the MCP server tool approval request/response pair.

toolCall
McpServerToolCallContent

The tool call that requires user approval.

Exceptions

toolCall is null.

id is empty or composed entirely of whitespace.

Applies to