rename MCPFunctionExecutor

This commit is contained in:
geffzhang 2025-05-01 17:14:02 +08:00
parent aac1ae1195
commit 5087b46e66
2 changed files with 3 additions and 3 deletions

View file

@ -32,7 +32,7 @@ internal class FunctionExecutorFactory
{
var mcpServerId = agent?.McpTools?.Where(x => x.Functions.Any(y => y.Name == funDef.Name))
.FirstOrDefault().ServerId;
return new MCPFunctionExecutor(mcpServerId, functionName, serviceProvider);
return new MCPToolExecutor(mcpServerId, functionName, serviceProvider);
}
}
}

View file

@ -3,14 +3,14 @@ using ModelContextProtocol.Client;
namespace BotSharp.Core.Routing.Executor;
public class MCPFunctionExecutor: IFunctionExecutor
public class MCPToolExecutor: IFunctionExecutor
{
private readonly McpClientManager _clientManager;
private string mcpServer;
private string funcName;
private readonly IServiceProvider _services;
public MCPFunctionExecutor(string mcpserver, string functionName, IServiceProvider services)
public MCPToolExecutor(string mcpserver, string functionName, IServiceProvider services)
{
_services = services;
this.mcpServer = mcpserver;