Add router description.

This commit is contained in:
Haiping Chen 2023-09-21 11:40:54 -05:00
parent 8b135e8c32
commit 040d583c87
4 changed files with 7 additions and 3 deletions

View file

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

View file

@ -7,7 +7,9 @@ public class RoutingSettings
/// </summary>
public string RouterId { get; set; } = string.Empty;
public string RouteName { get; set; } = "Router";
public string RouterName { get; set; } = "Router";
public string Description { get; set; } = string.Empty;
public bool EnableReasoning { get; set; } = false;

View file

@ -210,7 +210,8 @@ public class RoutingService : IRoutingService
var router = new Agent()
{
Id = _settings.RouterId,
Name = _settings.RouteName
Name = _settings.RouterName,
Description = _settings.Description
};
var agents = db.Agents.Where(x => !x.Disabled && x.AllowRouting).ToArray();

View file

@ -16,6 +16,7 @@
"Router": {
"RouterId": "01fcc3e5-9af7-49e6-ad7a-a760bd12dc4a",
"RouterName": "PizzaBot",
"Description": "Pizza restaurant AI Bot",
"EnableReasoning": false,
"Model": "gpt-3.5"
},