Share via


MCPCallItemResource Constructors

Definition

Overloads

MCPCallItemResource()

Source:
MCPCallItemResource.cs

Initializes a new instance of MCPCallItemResource for deserialization.

public MCPCallItemResource();
Public Sub New ()

Applies to

MCPCallItemResource(String, String, String, String)

Source:
MCPCallItemResource.cs

Initializes a new instance of MCPCallItemResource.

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

Parameters

id
String
serverLabel
String

The label of the MCP server running the tool.

name
String

The name of the tool that was run.

arguments
String

A JSON string of the arguments passed to the tool.

Exceptions

id, serverLabel, name or arguments is null.

Applies to

MCPCallItemResource(ItemType, String, CreatedBy, IDictionary<String,BinaryData>, String, String, String, String, String)

Source:
MCPCallItemResource.cs

Initializes a new instance of MCPCallItemResource.

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

Parameters

type
ItemType
id
String
createdBy
CreatedBy

The information about the creator of the item.

serializedAdditionalRawData
IDictionary<String,BinaryData>

Keeps track of any properties unknown to the library.

serverLabel
String

The label of the MCP server running the tool.

name
String

The name of the tool that was run.

arguments
String

A JSON string of the arguments passed to the tool.

output
String

The output from the tool call.

error
String

The error from the tool call, if any.

Applies to