Share via


MCPToolResource Constructors

Definition

Overloads

MCPToolResource(String)

Source:
MCPToolResource.cs

Initializes a new instance of MCPToolResource.

public MCPToolResource(string serverLabel);
new Azure.AI.Agents.Persistent.MCPToolResource : string -> Azure.AI.Agents.Persistent.MCPToolResource
Public Sub New (serverLabel As String)

Parameters

serverLabel
String

The label for the MCP server.

Exceptions

serverLabel is null.

Applies to

MCPToolResource(String, IDictionary<String,String>)

Source:
MCPToolResource.cs

Initializes a new instance of MCPToolResource.

public MCPToolResource(string serverLabel, System.Collections.Generic.IDictionary<string,string> headers);
new Azure.AI.Agents.Persistent.MCPToolResource : string * System.Collections.Generic.IDictionary<string, string> -> Azure.AI.Agents.Persistent.MCPToolResource
Public Sub New (serverLabel As String, headers As IDictionary(Of String, String))

Parameters

serverLabel
String

The label for the MCP server.

headers
IDictionary<String,String>

The headers for the MCP server updates.

Exceptions

serverLabel or headers is null.

Applies to