Share via


McpServerToolApprovalResponseContent(String, Boolean) Constructor

Definition

Initializes a new instance of the McpServerToolApprovalResponseContent class.

public:
 McpServerToolApprovalResponseContent(System::String ^ id, bool approved);
public McpServerToolApprovalResponseContent(string id, bool approved);
new Microsoft.Extensions.AI.McpServerToolApprovalResponseContent : string * bool -> Microsoft.Extensions.AI.McpServerToolApprovalResponseContent
Public Sub New (id As String, approved As Boolean)

Parameters

id
String

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

approved
Boolean

true if the MCP server tool call is approved; otherwise, false.

Exceptions

id is null.

id is empty or composed entirely of whitespace.

Applies to