From 3d57d149b47c5f68ba6d6f7b4186cb9b3162f946 Mon Sep 17 00:00:00 2001 From: Jicheng Lu <103353@smsassist.com> Date: Mon, 23 Jun 2025 21:47:58 -0500 Subject: [PATCH] clean code --- .../BotSharp.Abstraction/Routing/IRoutingService.cs | 4 ---- .../BotSharp.Core/Routing/RoutingService.InvokeAgent.cs | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Infrastructure/BotSharp.Abstraction/Routing/IRoutingService.cs b/src/Infrastructure/BotSharp.Abstraction/Routing/IRoutingService.cs index fb542d5f..33803a98 100644 --- a/src/Infrastructure/BotSharp.Abstraction/Routing/IRoutingService.cs +++ b/src/Infrastructure/BotSharp.Abstraction/Routing/IRoutingService.cs @@ -26,10 +26,6 @@ public interface IRoutingService /// RoutingRule[] GetRulesByAgentId(string id); - //void ResetRecursiveCounter(); - //int GetRecursiveCounter(); - //void SetRecursiveCounter(int counter); - Task InvokeAgent(string agentId, List dialogs, bool useStream = false); Task InvokeFunction(string name, RoleDialogModel messages); Task InstructLoop(Agent agent, RoleDialogModel message, List dialogs); diff --git a/src/Infrastructure/BotSharp.Core/Routing/RoutingService.InvokeAgent.cs b/src/Infrastructure/BotSharp.Core/Routing/RoutingService.InvokeAgent.cs index 77505718..eb60e925 100644 --- a/src/Infrastructure/BotSharp.Core/Routing/RoutingService.InvokeAgent.cs +++ b/src/Infrastructure/BotSharp.Core/Routing/RoutingService.InvokeAgent.cs @@ -76,7 +76,7 @@ public partial class RoutingService return true; } - private async Task InvokeFunction(RoleDialogModel message, List dialogs, bool useStream = false) + private async Task InvokeFunction(RoleDialogModel message, List dialogs, bool useStream) { // execute function // Save states