McpServerToolCallContent(String, String, String) 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 McpServerToolCallContent 类的新实例。
public:
McpServerToolCallContent(System::String ^ callId, System::String ^ name, System::String ^ serverName);
public McpServerToolCallContent(string callId, string name, string? serverName);
new Microsoft.Extensions.AI.McpServerToolCallContent : string * string * string -> Microsoft.Extensions.AI.McpServerToolCallContent
Public Sub New (callId As String, name As String, serverName As String)
参数
- callId
- String
工具调用 ID。
- name
- String
工具名称。
- serverName
- String
托管该工具的 MCP 服务器名称。
例外
callId 或 name 为 null.
callId 或 name 为空或完全由空格组成。
注解
此内容只是信息性的,可能显示为审批请求的一部分,以传达正在批准的内容,或作为调用 MCP 服务器工具的记录。