Skip to content

Commit a8165df

Browse files
authored
Merge pull request #863 from iceljc/master
fix
2 parents c62be11 + 377c4e4 commit a8165df

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/Infrastructure/BotSharp.Abstraction/Agents/Models/Agent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ public Agent SetProfiles(List<string> profiles)
275275
return this;
276276
}
277277

278-
public Agent SetLables(List<string> labels)
278+
public Agent SetLabels(List<string> labels)
279279
{
280280
Labels = labels ?? [];
281281
return this;

src/Infrastructure/BotSharp.Core/Agents/Services/AgentService.UpdateAgent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public async Task<string> UpdateAgentFromFile(string id)
9797
.SetMergeUtility(foundAgent.MergeUtility)
9898
.SetAgentType(foundAgent.Type)
9999
.SetProfiles(foundAgent.Profiles)
100-
.SetLables(foundAgent.Labels)
100+
.SetLabels(foundAgent.Labels)
101101
.SetRoutingRules(foundAgent.RoutingRules)
102102
.SetInstruction(foundAgent.Instruction)
103103
.SetChannelInstructions(foundAgent.ChannelInstructions)

src/Plugins/BotSharp.Plugin.MongoStorage/Repository/MongoRepository.Agent.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,7 @@ public void BulkInsertAgents(List<Agent> agents)
502502
MergeUtility = x.MergeUtility,
503503
MaxMessageCount = x.MaxMessageCount,
504504
Profiles = x.Profiles ?? [],
505+
Labels = x.Labels ?? [],
505506
LlmConfig = AgentLlmConfigMongoElement.ToMongoElement(x.LlmConfig),
506507
ChannelInstructions = x.ChannelInstructions?.Select(i => ChannelInstructionMongoElement.ToMongoElement(i))?.ToList() ?? [],
507508
Templates = x.Templates?.Select(t => AgentTemplateMongoElement.ToMongoElement(t))?.ToList() ?? [],

0 commit comments

Comments
 (0)