From 9fe8014ecd434f6a8f15cc68bdd4d4a2a23662a8 Mon Sep 17 00:00:00 2001 From: Jicheng Lu Date: Thu, 21 Nov 2024 20:33:55 -0600 Subject: [PATCH] reset cache --- .../BotSharp.Core.SideCar/BotSharp.Core.SideCar.csproj | 2 +- .../Services/BotSharpConversationSideCar.cs | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Infrastructure/BotSharp.Core.SideCar/BotSharp.Core.SideCar.csproj b/src/Infrastructure/BotSharp.Core.SideCar/BotSharp.Core.SideCar.csproj index 4b661c2a..b7f89568 100644 --- a/src/Infrastructure/BotSharp.Core.SideCar/BotSharp.Core.SideCar.csproj +++ b/src/Infrastructure/BotSharp.Core.SideCar/BotSharp.Core.SideCar.csproj @@ -10,7 +10,7 @@ - + diff --git a/src/Infrastructure/BotSharp.Core.SideCar/Services/BotSharpConversationSideCar.cs b/src/Infrastructure/BotSharp.Core.SideCar/Services/BotSharpConversationSideCar.cs index fda96b17..ec3ad0fe 100644 --- a/src/Infrastructure/BotSharp.Core.SideCar/Services/BotSharpConversationSideCar.cs +++ b/src/Infrastructure/BotSharp.Core.SideCar/Services/BotSharpConversationSideCar.cs @@ -1,3 +1,5 @@ +using BotSharp.Core.Infrastructures; + namespace BotSharp.Core.SideCar.Services; public class BotSharpConversationSideCar : IConversationSideCar @@ -116,7 +118,7 @@ public class BotSharpConversationSideCar : IConversationSideCar state.ResetCurrentState(); routing.Context.ResetRecursiveCounter(); routing.Context.ResetAgentStack(); - + Utilities.ClearCache(); } private void AfterExecute() @@ -130,6 +132,7 @@ public class BotSharpConversationSideCar : IConversationSideCar state.SetCurrentState(node.State); routing.Context.SetRecursiveCounter(node.RecursiveCounter); routing.Context.SetAgentStack(node.RoutingStack); + Utilities.ClearCache(); enabled = false; } } \ No newline at end of file