Skip to content

Commit 5087b46

Browse files
committed
rename MCPFunctionExecutor
1 parent aac1ae1 commit 5087b46

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Infrastructure/BotSharp.Core/Routing/Executor/FunctionExecutorFactory.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public static IFunctionExecutor Create(string functionName, Agent agent, IFuncti
3232
{
3333
var mcpServerId = agent?.McpTools?.Where(x => x.Functions.Any(y => y.Name == funDef.Name))
3434
.FirstOrDefault().ServerId;
35-
return new MCPFunctionExecutor(mcpServerId, functionName, serviceProvider);
35+
return new MCPToolExecutor(mcpServerId, functionName, serviceProvider);
3636
}
3737
}
3838
}

src/Infrastructure/BotSharp.Core/Routing/Executor/MCPFunctionExecutor.cs renamed to src/Infrastructure/BotSharp.Core/Routing/Executor/MCPToolExecutor.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33

44
namespace BotSharp.Core.Routing.Executor;
55

6-
public class MCPFunctionExecutor: IFunctionExecutor
6+
public class MCPToolExecutor: IFunctionExecutor
77
{
88
private readonly McpClientManager _clientManager;
99
private string mcpServer;
1010
private string funcName;
1111
private readonly IServiceProvider _services;
1212

13-
public MCPFunctionExecutor(string mcpserver, string functionName, IServiceProvider services)
13+
public MCPToolExecutor(string mcpserver, string functionName, IServiceProvider services)
1414
{
1515
_services = services;
1616
this.mcpServer = mcpserver;

0 commit comments

Comments
 (0)