This commit is contained in:
Jicheng Lu 2025-02-03 13:03:21 -06:00
parent c62be1194f
commit 377c4e42c8
3 changed files with 3 additions and 2 deletions

View file

@ -275,7 +275,7 @@ public class Agent
return this;
}
public Agent SetLables(List<string> labels)
public Agent SetLabels(List<string> labels)
{
Labels = labels ?? [];
return this;

View file

@ -97,7 +97,7 @@ public partial class AgentService
.SetMergeUtility(foundAgent.MergeUtility)
.SetAgentType(foundAgent.Type)
.SetProfiles(foundAgent.Profiles)
.SetLables(foundAgent.Labels)
.SetLabels(foundAgent.Labels)
.SetRoutingRules(foundAgent.RoutingRules)
.SetInstruction(foundAgent.Instruction)
.SetChannelInstructions(foundAgent.ChannelInstructions)

View file

@ -502,6 +502,7 @@ public partial class MongoRepository
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() ?? [],