rename MCPFunctionExecutor
This commit is contained in:
parent
aac1ae1195
commit
5087b46e66
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
Loading…
Reference in a new issue