From 278b36785ef4e6df9e168e74fd1c9e5af5ae4064 Mon Sep 17 00:00:00 2001 From: "nick.yi" Date: Mon, 19 May 2025 17:49:40 +0800 Subject: [PATCH] hotfix GetNextStepPrompt error(can't find naive reasoner template) --- .../BotSharp.Core/Routing/RoutingService.InstructLoop.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Infrastructure/BotSharp.Core/Routing/RoutingService.InstructLoop.cs b/src/Infrastructure/BotSharp.Core/Routing/RoutingService.InstructLoop.cs index 364e7198..25175f99 100644 --- a/src/Infrastructure/BotSharp.Core/Routing/RoutingService.InstructLoop.cs +++ b/src/Infrastructure/BotSharp.Core/Routing/RoutingService.InstructLoop.cs @@ -15,8 +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();