McpServerToolApprovalResponseContent(String, Boolean) 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 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.