reset cache

This commit is contained in:
Jicheng Lu 2024-11-21 20:33:55 -06:00
parent 54088fcc8b
commit 9fe8014ecd
2 changed files with 5 additions and 2 deletions

View file

@ -10,7 +10,7 @@
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\BotSharp.Abstraction\BotSharp.Abstraction.csproj" />
<ProjectReference Include="..\BotSharp.Core\BotSharp.Core.csproj" />
</ItemGroup>
</Project>

View file

@ -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;
}
}