fix
This commit is contained in:
parent
c62be1194f
commit
377c4e42c8
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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() ?? [],
|
||||
|
|
|
|||
Loading…
Reference in a new issue