From 968bac623d4ae5144bd56638345b50691a13481c Mon Sep 17 00:00:00 2001 From: Haiping Date: Mon, 19 May 2025 09:48:16 -0500 Subject: [PATCH] Update RoutingService.InstructLoop.cs hotfix GetNextStepPrompt error(can't find naive reasoner template) --- .../BotSharp.Core/Routing/RoutingService.InstructLoop.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Infrastructure/BotSharp.Core/Routing/RoutingService.InstructLoop.cs b/src/Infrastructure/BotSharp.Core/Routing/RoutingService.InstructLoop.cs index 128debad..757919cd 100644 --- a/src/Infrastructure/BotSharp.Core/Routing/RoutingService.InstructLoop.cs +++ b/src/Infrastructure/BotSharp.Core/Routing/RoutingService.InstructLoop.cs @@ -15,7 +15,7 @@ public partial class RoutingService var convService = _services.GetRequiredService(); var storage = _services.GetRequiredService(); - _router = await agentService.GetAgent(message.CurrentAgentId); + _router = agent; var states = _services.GetRequiredService(); var executor = _services.GetRequiredService();