From c9a9ed43d8e985dfaa21834038026b41b5114eca Mon Sep 17 00:00:00 2001 From: "nick.yi" Date: Sun, 20 Sep 2026 15:15:48 +0800 Subject: [PATCH 1/2] optimize RouteToAgentFn Indication --- .../BotSharp.Core/Routing/Functions/RouteToAgentFn.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Infrastructure/BotSharp.Core/Routing/Functions/RouteToAgentFn.cs b/src/Infrastructure/BotSharp.Core/Routing/Functions/RouteToAgentFn.cs index e81a00f91..23eec23c3 100644 --- a/src/Infrastructure/BotSharp.Core/Routing/Functions/RouteToAgentFn.cs +++ b/src/Infrastructure/BotSharp.Core/Routing/Functions/RouteToAgentFn.cs @@ -12,7 +12,12 @@ public partial class RouteToAgentFn : IFunctionCallback public string Name => "route_to_agent"; private readonly IServiceProvider _services; private readonly IRoutingContext _context; +#if DEBUG public string Indication => "Routing to the specified AI agent..."; +#else + public string Indication => "Think..."; +#endif + public RouteToAgentFn(IServiceProvider services, IRoutingContext context) { _services = services; From ad52f9679e8287f075f1688d2cd0d8753f79358b Mon Sep 17 00:00:00 2001 From: "nick.yi" Date: Sun, 20 Sep 2026 15:20:38 +0800 Subject: [PATCH 2/2] optimize Indication --- .../BotSharp.Core/Routing/Functions/RouteToAgentFn.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Infrastructure/BotSharp.Core/Routing/Functions/RouteToAgentFn.cs b/src/Infrastructure/BotSharp.Core/Routing/Functions/RouteToAgentFn.cs index 23eec23c3..63b7d1747 100644 --- a/src/Infrastructure/BotSharp.Core/Routing/Functions/RouteToAgentFn.cs +++ b/src/Infrastructure/BotSharp.Core/Routing/Functions/RouteToAgentFn.cs @@ -15,7 +15,7 @@ public partial class RouteToAgentFn : IFunctionCallback #if DEBUG public string Indication => "Routing to the specified AI agent..."; #else - public string Indication => "Think..."; + public string Indication => "Thinking..."; #endif public RouteToAgentFn(IServiceProvider services, IRoutingContext context)