Share via


MCPApprovalRequestItemParam Class

Definition

A request for human approval of a tool invocation.

public class MCPApprovalRequestItemParam : Azure.AI.AgentServer.Contracts.Generated.OpenAI.ItemParam, System.ClientModel.Primitives.IJsonModel<Azure.AI.AgentServer.Contracts.Generated.OpenAI.MCPApprovalRequestItemParam>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.AgentServer.Contracts.Generated.OpenAI.MCPApprovalRequestItemParam>
type MCPApprovalRequestItemParam = class
    inherit ItemParam
    interface IUtf8JsonSerializable
    interface IJsonModel<MCPApprovalRequestItemParam>
    interface IPersistableModel<MCPApprovalRequestItemParam>
Public Class MCPApprovalRequestItemParam
Inherits ItemParam
Implements IJsonModel(Of MCPApprovalRequestItemParam), IPersistableModel(Of MCPApprovalRequestItemParam)
Inheritance
MCPApprovalRequestItemParam
Implements

Constructors

Name Description
MCPApprovalRequestItemParam()

Initializes a new instance of MCPApprovalRequestItemParam for deserialization.

MCPApprovalRequestItemParam(ItemType, IDictionary<String,BinaryData>, String, String, String)

Initializes a new instance of MCPApprovalRequestItemParam.

MCPApprovalRequestItemParam(String, String, String)

Initializes a new instance of MCPApprovalRequestItemParam.

Properties

Name Description
Arguments

A JSON string of arguments for the tool.

Name

The name of the tool to run.

SerializedAdditionalRawData (Inherited from ItemParam)
ServerLabel

The label of the MCP server making the request.

Type

Gets or sets the type.

(Inherited from ItemParam)

Methods

Name Description
DeserializeMCPApprovalRequestItemParam(JsonElement, ModelReaderWriterOptions)
FromResponse(Response)

Deserializes the model from a raw response.

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
ToRequestContent()

Convert into a RequestContent.

Explicit Interface Implementations

Name Description
IJsonModel<ItemParam>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

(Inherited from ItemParam)
IJsonModel<ItemParam>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from ItemParam)
IJsonModel<MCPApprovalRequestItemParam>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<MCPApprovalRequestItemParam>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ItemParam>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from ItemParam)
IPersistableModel<ItemParam>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

(Inherited from ItemParam)
IPersistableModel<ItemParam>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from ItemParam)
IPersistableModel<MCPApprovalRequestItemParam>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<MCPApprovalRequestItemParam>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<MCPApprovalRequestItemParam>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

IUtf8JsonSerializable.Write(Utf8JsonWriter)

Applies to