From 1cd8ab9b03f0be28ffc20bdb439fe9719cb1666c Mon Sep 17 00:00:00 2001 From: Jicheng Lu <103353@smsassist.com> Date: Thu, 22 May 2025 14:02:39 -0500 Subject: [PATCH] minor change --- .../BotSharp.Abstraction/Agents/Models/Agent.cs | 6 +++--- .../Agents/Services/AgentService.UpdateAgent.cs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Infrastructure/BotSharp.Abstraction/Agents/Models/Agent.cs b/src/Infrastructure/BotSharp.Abstraction/Agents/Models/Agent.cs index aa872566..431a78c5 100644 --- a/src/Infrastructure/BotSharp.Abstraction/Agents/Models/Agent.cs +++ b/src/Infrastructure/BotSharp.Abstraction/Agents/Models/Agent.cs @@ -1,6 +1,5 @@ using BotSharp.Abstraction.Functions.Models; using BotSharp.Abstraction.Plugins.Models; -using BotSharp.Abstraction.Routing.Enums; using BotSharp.Abstraction.Tasks.Models; namespace BotSharp.Abstraction.Agents.Models; @@ -10,6 +9,7 @@ public class Agent public string Id { get; set; } = string.Empty; public string Name { get; set; } = string.Empty; public string Description { get; set; } = string.Empty; + /// /// Agent Type /// @@ -286,11 +286,11 @@ public class Agent } /// - /// Set agent mode: lazy or eager + /// Set agent routing mode: lazy or eager /// /// /// - public Agent SetMode(string mode) + public Agent SetRoutingMode(string? mode) { Mode = mode; return this; diff --git a/src/Infrastructure/BotSharp.Core/Agents/Services/AgentService.UpdateAgent.cs b/src/Infrastructure/BotSharp.Core/Agents/Services/AgentService.UpdateAgent.cs index 50dbcad4..41174886 100644 --- a/src/Infrastructure/BotSharp.Core/Agents/Services/AgentService.UpdateAgent.cs +++ b/src/Infrastructure/BotSharp.Core/Agents/Services/AgentService.UpdateAgent.cs @@ -95,7 +95,7 @@ public partial class AgentService clonedAgent.SetId(foundAgent.Id) .SetName(foundAgent.Name) .SetType(foundAgent.Type) - .SetMode(foundAgent.Mode) + .SetRoutingMode(foundAgent.Mode) .SetIsPublic(foundAgent.IsPublic) .SetDisabled(foundAgent.Disabled) .SetDescription(foundAgent.Description)