Revert "Add null-check for agent in StreamingLogHook"

This reverts commit 3dda7afc7c.
This commit is contained in:
aden.chen 2025-05-15 10:00:28 +08:00
parent 1de8953404
commit 91cd150862

View file

@ -293,7 +293,7 @@ public class StreamingLogHook : ConversationHookBase, IContentGeneratingHook, IR
var routing = _services.GetRequiredService<IRoutingService>(); var routing = _services.GetRequiredService<IRoutingService>();
var agentId = routing.Context.GetCurrentAgentId(); var agentId = routing.Context.GetCurrentAgentId();
var agent = await _agentService.GetAgent(agentId); var agent = await _agentService.GetAgent(agentId);
if (agent == null) return;
var input = new ContentLogInputModel() var input = new ContentLogInputModel()
{ {
Name = agent.Name, Name = agent.Name,