File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed
BotSharp.Abstraction/Agents/Models
BotSharp.Core/Agents/Services
Plugins/BotSharp.Plugin.MongoStorage/Repository Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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 ( ) ?? [ ] ,
You can’t perform that action at this time.
0 commit comments