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)
275
275
return this ;
276
276
}
277
277
278
- public Agent SetLables ( List < string > labels )
278
+ public Agent SetLabels ( List < string > labels )
279
279
{
280
280
Labels = labels ?? [ ] ;
281
281
return this ;
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ public async Task<string> UpdateAgentFromFile(string id)
97
97
. SetMergeUtility ( foundAgent . MergeUtility )
98
98
. SetAgentType ( foundAgent . Type )
99
99
. SetProfiles ( foundAgent . Profiles )
100
- . SetLables ( foundAgent . Labels )
100
+ . SetLabels ( foundAgent . Labels )
101
101
. SetRoutingRules ( foundAgent . RoutingRules )
102
102
. SetInstruction ( foundAgent . Instruction )
103
103
. SetChannelInstructions ( foundAgent . ChannelInstructions )
Original file line number Diff line number Diff line change @@ -502,6 +502,7 @@ public void BulkInsertAgents(List<Agent> agents)
502
502
MergeUtility = x . MergeUtility ,
503
503
MaxMessageCount = x . MaxMessageCount ,
504
504
Profiles = x . Profiles ?? [ ] ,
505
+ Labels = x . Labels ?? [ ] ,
505
506
LlmConfig = AgentLlmConfigMongoElement . ToMongoElement ( x . LlmConfig ) ,
506
507
ChannelInstructions = x . ChannelInstructions ? . Select ( i => ChannelInstructionMongoElement . ToMongoElement ( i ) ) ? . ToList ( ) ?? [ ] ,
507
508
Templates = x . Templates ? . Select ( t => AgentTemplateMongoElement . ToMongoElement ( t ) ) ? . ToList ( ) ?? [ ] ,
You can’t perform that action at this time.
0 commit comments