diff --git a/src/Infrastructure/BotSharp.Abstraction/Agents/Models/Agent.cs b/src/Infrastructure/BotSharp.Abstraction/Agents/Models/Agent.cs index aa8a3d65d..085b0f9df 100644 --- a/src/Infrastructure/BotSharp.Abstraction/Agents/Models/Agent.cs +++ b/src/Infrastructure/BotSharp.Abstraction/Agents/Models/Agent.cs @@ -275,7 +275,7 @@ public Agent SetProfiles(List profiles) return this; } - public Agent SetLables(List labels) + public Agent SetLabels(List labels) { Labels = labels ?? []; 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 673a5752f..a9cc58d95 100644 --- a/src/Infrastructure/BotSharp.Core/Agents/Services/AgentService.UpdateAgent.cs +++ b/src/Infrastructure/BotSharp.Core/Agents/Services/AgentService.UpdateAgent.cs @@ -97,7 +97,7 @@ public async Task UpdateAgentFromFile(string id) .SetMergeUtility(foundAgent.MergeUtility) .SetAgentType(foundAgent.Type) .SetProfiles(foundAgent.Profiles) - .SetLables(foundAgent.Labels) + .SetLabels(foundAgent.Labels) .SetRoutingRules(foundAgent.RoutingRules) .SetInstruction(foundAgent.Instruction) .SetChannelInstructions(foundAgent.ChannelInstructions) diff --git a/src/Plugins/BotSharp.Plugin.MongoStorage/Repository/MongoRepository.Agent.cs b/src/Plugins/BotSharp.Plugin.MongoStorage/Repository/MongoRepository.Agent.cs index 5fe8b8c83..90dd9cdfd 100644 --- a/src/Plugins/BotSharp.Plugin.MongoStorage/Repository/MongoRepository.Agent.cs +++ b/src/Plugins/BotSharp.Plugin.MongoStorage/Repository/MongoRepository.Agent.cs @@ -502,6 +502,7 @@ public void BulkInsertAgents(List agents) MergeUtility = x.MergeUtility, MaxMessageCount = x.MaxMessageCount, Profiles = x.Profiles ?? [], + Labels = x.Labels ?? [], LlmConfig = AgentLlmConfigMongoElement.ToMongoElement(x.LlmConfig), ChannelInstructions = x.ChannelInstructions?.Select(i => ChannelInstructionMongoElement.ToMongoElement(i))?.ToList() ?? [], Templates = x.Templates?.Select(t => AgentTemplateMongoElement.ToMongoElement(t))?.ToList() ?? [],