minor change
This commit is contained in:
parent
28d4f4e9ba
commit
59eb471dee
|
|
@ -66,13 +66,7 @@ public class BasicAgentHook : AgentHookBase
|
|||
var innerUtilities = utilities!.Where(x =>
|
||||
{
|
||||
var isVisible = !string.IsNullOrEmpty(x.Name) && !x.Disabled;
|
||||
if (!isVisible)
|
||||
{
|
||||
return isVisible;
|
||||
}
|
||||
|
||||
isVisible = agentService.RenderUtility(agent, x);
|
||||
return isVisible;
|
||||
return isVisible && agentService.RenderUtility(agent, x);
|
||||
}).ToList();
|
||||
|
||||
var functionNames = innerUtilities.SelectMany(x => x.Functions)
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
using BotSharp.Abstraction.Loggers;
|
||||
using BotSharp.Abstraction.Templating;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Newtonsoft.Json.Linq;
|
||||
|
||||
namespace BotSharp.Core.Agents.Services;
|
||||
|
|
|
|||
Loading…
Reference in a new issue