BotSharp/src/Infrastructure/BotSharp.Core/Instructs/Hooks/InstructUtilityHook.cs
2025-05-28 16:16:48 -05:00

23 lines
631 B
C#

namespace BotSharp.Core.Instructs.Hooks;
public class InstructUtilityHook : IAgentUtilityHook
{
private static string PREFIX = "util-instruct-";
private static string EXECUTE_TEMPLATE = $"{PREFIX}execute_template";
public void AddUtilities(List<AgentUtility> utilities)
{
utilities.Add(new AgentUtility
{
Category = "instruct",
Name = "template",
Items = [
new UtilityItem {
FunctionName = $"{EXECUTE_TEMPLATE}",
TemplateName = $"{EXECUTE_TEMPLATE}.fn"
}
]
});
}
}