Share via


McpServerToolApprovalRequestContent Class

Definition

Represents a request for user approval of an MCP server tool call.

public ref class McpServerToolApprovalRequestContent sealed : Microsoft::Extensions::AI::UserInputRequestContent
[System.Diagnostics.CodeAnalysis.Experimental("MEAI001")]
public sealed class McpServerToolApprovalRequestContent : Microsoft.Extensions.AI.UserInputRequestContent
public sealed class McpServerToolApprovalRequestContent : Microsoft.Extensions.AI.UserInputRequestContent
[<System.Diagnostics.CodeAnalysis.Experimental("MEAI001")>]
type McpServerToolApprovalRequestContent = class
    inherit UserInputRequestContent
type McpServerToolApprovalRequestContent = class
    inherit UserInputRequestContent
Public NotInheritable Class McpServerToolApprovalRequestContent
Inherits UserInputRequestContent
Inheritance
McpServerToolApprovalRequestContent
Attributes

Constructors

McpServerToolApprovalRequestContent(String, McpServerToolCallContent)

Initializes a new instance of the McpServerToolApprovalRequestContent class.

Properties

AdditionalProperties

Gets or sets additional properties for the content.

(Inherited from AIContent)
Annotations

Gets or sets a list of annotations on this content.

(Inherited from AIContent)
Id

Gets the ID that uniquely identifies the user input request/response pair.

(Inherited from UserInputRequestContent)
RawRepresentation

Gets or sets the raw representation of the content from an underlying implementation.

(Inherited from AIContent)
ToolCall

Gets the tool call that pre-invoke approval is required for.

Methods

CreateResponse(Boolean)

Creates a McpServerToolApprovalResponseContent to indicate whether the function call is approved or rejected based on the value of approved.

Applies to