Share via


MCPApprovalRequestItemParam Constructors

Definition

Overloads

MCPApprovalRequestItemParam()

Source:
MCPApprovalRequestItemParam.cs

Initializes a new instance of MCPApprovalRequestItemParam for deserialization.

public MCPApprovalRequestItemParam();
Public Sub New ()

Applies to

MCPApprovalRequestItemParam(String, String, String)

Source:
MCPApprovalRequestItemParam.cs

Initializes a new instance of MCPApprovalRequestItemParam.

public MCPApprovalRequestItemParam(string serverLabel, string name, string arguments);
new Azure.AI.AgentServer.Contracts.Generated.OpenAI.MCPApprovalRequestItemParam : string * string * string -> Azure.AI.AgentServer.Contracts.Generated.OpenAI.MCPApprovalRequestItemParam
Public Sub New (serverLabel As String, name As String, arguments As String)

Parameters

serverLabel
String

The label of the MCP server making the request.

name
String

The name of the tool to run.

arguments
String

A JSON string of arguments for the tool.

Exceptions

serverLabel, name or arguments is null.

Applies to

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

Source:
MCPApprovalRequestItemParam.cs

Initializes a new instance of MCPApprovalRequestItemParam.

public MCPApprovalRequestItemParam(Azure.AI.AgentServer.Contracts.Generated.OpenAI.ItemType type, System.Collections.Generic.IDictionary<string,BinaryData> serializedAdditionalRawData, string serverLabel, string name, string arguments);
new Azure.AI.AgentServer.Contracts.Generated.OpenAI.MCPApprovalRequestItemParam : Azure.AI.AgentServer.Contracts.Generated.OpenAI.ItemType * System.Collections.Generic.IDictionary<string, BinaryData> * string * string * string -> Azure.AI.AgentServer.Contracts.Generated.OpenAI.MCPApprovalRequestItemParam
Public Sub New (type As ItemType, serializedAdditionalRawData As IDictionary(Of String, BinaryData), serverLabel As String, name As String, arguments As String)

Parameters

type
ItemType
serializedAdditionalRawData
IDictionary<String,BinaryData>

Keeps track of any properties unknown to the library.

serverLabel
String

The label of the MCP server making the request.

name
String

The name of the tool to run.

arguments
String

A JSON string of arguments for the tool.

Applies to