From 9c488358e42a68abac536af08c82c22488185322 Mon Sep 17 00:00:00 2001 From: Haiping Chen <101423@smsassist.com> Date: Fri, 3 Nov 2023 15:45:58 -0500 Subject: [PATCH] Fix current agent id. --- .../BotSharp.Core/Routing/RoutingService.InvokeAgent.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Infrastructure/BotSharp.Core/Routing/RoutingService.InvokeAgent.cs b/src/Infrastructure/BotSharp.Core/Routing/RoutingService.InvokeAgent.cs index feb75ef6..8d5f18de 100644 --- a/src/Infrastructure/BotSharp.Core/Routing/RoutingService.InvokeAgent.cs +++ b/src/Infrastructure/BotSharp.Core/Routing/RoutingService.InvokeAgent.cs @@ -32,6 +32,7 @@ public partial class RoutingService role: AgentRole.Function); message.FunctionName = response.FunctionName; message.FunctionArgs = response.FunctionArgs; + message.CurrentAgentId = agent.Id; await InvokeFunction(agent, message, dialogs); } else