hotfix error

This commit is contained in:
nick.yi 2025-05-16 09:32:05 +08:00
parent b17eb86220
commit d10f0a635a
2 changed files with 0 additions and 3 deletions

View file

@ -174,7 +174,6 @@ public class ConversationStateService : IConversationStateService
return endNodes;
}
var _routingContext = _services.GetRequiredService<IRoutingContext>();
var curMsgId = _routingContext.MessageId;
var dialogs = _db.GetConversationDialogs(conversationId);
var userDialogs = dialogs.Where(x => x.MetaData?.Role == AgentRole.User)

View file

@ -39,8 +39,6 @@ public partial class RoutingService
await progressService.OnFunctionExecuting(clonedMessage);
}
var agentService = _services.GetRequiredService<IAgentService>();
var agent = await agentService.GetAgent(clonedMessage.CurrentAgentId);
var hooks = _services.GetHooksOrderByPriority<IConversationHook>(clonedMessage.CurrentAgentId);
foreach (var hook in hooks)
{