Make router agent be the first.

This commit is contained in:
Haiping Chen 2023-09-21 12:12:45 -05:00
parent 040d583c87
commit f0e9ac50bf
2 changed files with 2 additions and 2 deletions

View file

@ -2,7 +2,7 @@
<PropertyGroup>
<LangVersion>10.0</LangVersion>
<OutputPath>..\..\..\packages</OutputPath>
<BotSharpVersion>0.14.4</BotSharpVersion>
<BotSharpVersion>0.14.5</BotSharpVersion>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
</PropertyGroup>
</Project>

View file

@ -27,7 +27,7 @@ public class AgentController : ControllerBase, IApiAdapter
// Add the router as agent
var routing = _services.GetRequiredService<IRoutingService>();
agents.Add(routing.LoadRouter());
agents.Insert(0, routing.LoadRouter());
return agents.Select(x => AgentViewModel.FromAgent(x)).ToList();
}