Skip to content

Commit 968bac6

Browse files
authored
Update RoutingService.InstructLoop.cs
hotfix GetNextStepPrompt error(can't find naive reasoner template)
1 parent c6125f4 commit 968bac6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Infrastructure/BotSharp.Core/Routing/RoutingService.InstructLoop.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public async Task<RoleDialogModel> InstructLoop(Agent agent, RoleDialogModel mes
1515
var convService = _services.GetRequiredService<IConversationService>();
1616
var storage = _services.GetRequiredService<IConversationStorage>();
1717

18-
_router = await agentService.GetAgent(message.CurrentAgentId);
18+
_router = agent;
1919

2020
var states = _services.GetRequiredService<IConversationStateService>();
2121
var executor = _services.GetRequiredService<IExecutor>();

0 commit comments

Comments
 (0)