Share via


McpServerToolCallContent(String, String, String) Constructor

Definition

Initializes a new instance of the McpServerToolCallContent class.

public:
 McpServerToolCallContent(System::String ^ callId, System::String ^ toolName, System::String ^ serverName);
public McpServerToolCallContent(string callId, string toolName, string? serverName);
new Microsoft.Extensions.AI.McpServerToolCallContent : string * string * string -> Microsoft.Extensions.AI.McpServerToolCallContent
Public Sub New (callId As String, toolName As String, serverName As String)

Parameters

callId
String

The tool call ID.

toolName
String

The tool name.

serverName
String

The MCP server name that hosts the tool.

Exceptions

callId or toolName is null.

callId or toolName is empty or composed entirely of whitespace.

Applies to