McpServerToolCallContent(String, String, String) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.