minor change

This commit is contained in:
Jicheng Lu 2024-02-02 21:58:22 -06:00
parent a8c2b49d6f
commit 1ca4979545
2 changed files with 6 additions and 5 deletions

View file

@ -330,9 +330,10 @@ namespace BotSharp.Core.Repository
var responses = FetchResponses(dir);
return record.SetInstruction(instruction)
.SetFunctions(functions)
.SetSamples(samples)
.SetTemplates(templates)
.SetResponses(responses);
.SetSamples(samples)
.SetResponses(responses)
.SetTasks(tasks);
}
return null;

View file

@ -116,11 +116,11 @@ public partial class FileRepository : IBotSharpRepository
if (agent != null)
{
agent = agent.SetInstruction(FetchInstruction(d))
.SetTemplates(FetchTemplates(d))
.SetTasks(FetchTasks(d))
.SetFunctions(FetchFunctions(d))
.SetTemplates(FetchTemplates(d))
.SetResponses(FetchResponses(d))
.SetSamples(FetchSamples(d));
.SetSamples(FetchSamples(d))
.SetTasks(FetchTasks(d));
_agents.Add(agent);
}
}