McpServerToolApprovalRequestContent(String, McpServerToolCallContent) 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 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.