McpServerToolApprovalRequestContent.CreateResponse(Boolean) Method
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.
Creates a McpServerToolApprovalResponseContent to indicate whether the function call is approved or rejected based on the value of approved.
public:
Microsoft::Extensions::AI::McpServerToolApprovalResponseContent ^ CreateResponse(bool approved);
public Microsoft.Extensions.AI.McpServerToolApprovalResponseContent CreateResponse(bool approved);
member this.CreateResponse : bool -> Microsoft.Extensions.AI.McpServerToolApprovalResponseContent
Public Function CreateResponse (approved As Boolean) As McpServerToolApprovalResponseContent
Parameters
- approved
- Boolean
true if the function call is approved; otherwise, false.
Returns
The FunctionApprovalResponseContent representing the approval response.