namespace BotSharp.Core.Hooks; public class AgentHook : AgentHookBase { public AgentHook(IServiceProvider services, AgentSettings settings) : base(services, settings) { } public override bool OnInstructionLoaded(string template, Dictionary dict) { var router = _services.GetRequiredService(); dict["routing_records"] = router.GetRoutingRecords(); return true; } }