From adf5a3a017798e7acfc543d22455912fae76734b Mon Sep 17 00:00:00 2001 From: Haiping Chen Date: Fri, 12 Jan 2024 19:10:12 -0600 Subject: [PATCH] Disable agent by default. --- .../BotSharp.Abstraction/Agents/Models/Agent.cs | 5 ++++- .../agents/01fcc3e5-9af7-49e6-ad7a-a760bd12dc4a/agent.json | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Infrastructure/BotSharp.Abstraction/Agents/Models/Agent.cs b/src/Infrastructure/BotSharp.Abstraction/Agents/Models/Agent.cs index b74ae777..02294c49 100644 --- a/src/Infrastructure/BotSharp.Abstraction/Agents/Models/Agent.cs +++ b/src/Infrastructure/BotSharp.Abstraction/Agents/Models/Agent.cs @@ -61,7 +61,10 @@ public class Agent /// public bool AllowRouting { get; set; } - public bool Disabled { get; set; } + /// + /// Default is True, user will enable this by installing appropriate plugin. + /// + public bool Disabled { get; set; } = true; public string IconUrl { get; set; } /// diff --git a/src/Infrastructure/BotSharp.Core/data/agents/01fcc3e5-9af7-49e6-ad7a-a760bd12dc4a/agent.json b/src/Infrastructure/BotSharp.Core/data/agents/01fcc3e5-9af7-49e6-ad7a-a760bd12dc4a/agent.json index d04c4116..a92a4614 100644 --- a/src/Infrastructure/BotSharp.Core/data/agents/01fcc3e5-9af7-49e6-ad7a-a760bd12dc4a/agent.json +++ b/src/Infrastructure/BotSharp.Core/data/agents/01fcc3e5-9af7-49e6-ad7a-a760bd12dc4a/agent.json @@ -5,5 +5,6 @@ "updatedDateTime": "2023-08-18T14:39:32.2349686Z", "id": "01fcc3e5-9af7-49e6-ad7a-a760bd12dc4a", "iconUrl": "https://cdn.iconscout.com/icon/premium/png-256-thumb/route-1613278-1368497.png", + "disabled": false, "isPublic": true } \ No newline at end of file