Emit OnRoutingInstructionRevised

This commit is contained in:
Haiping Chen 2024-03-11 09:49:17 -05:00
parent 0f5fe87e9f
commit 656b533523

View file

@ -47,10 +47,11 @@ public class RouteToAgentRoutingHandler : RoutingHandlerBase, IRoutingHandler
if (!string.IsNullOrEmpty(goalAgent))
{
inst.OriginalAgent = goalAgent;
// Emit hook
await HookEmitter.Emit<IRoutingHook>(_services, async hook =>
await hook.OnRoutingInstructionRevised(inst, message)
);
}
await HookEmitter.Emit<IRoutingHook>(_services, async hook =>
await hook.OnRoutingInstructionRevised(inst, message)
);
var agentId = routing.Context.GetCurrentAgentId();