Allow router to load utility

This commit is contained in:
Haiping 2025-06-12 14:11:39 -05:00 committed by GitHub
parent f6ce283b9b
commit 36c568efac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -13,8 +13,6 @@ public class BasicAgentHook : AgentHookBase
public override void OnAgentUtilityLoaded(Agent agent)
{
if (agent.Type == AgentType.Routing) return;
var conv = _services.GetRequiredService<IConversationService>();
var isConvMode = conv.IsConversationMode();
if (!isConvMode) return;