Revert "Add null-check for agent in StreamingLogHook"
This reverts commit 3dda7afc7c.
This commit is contained in:
parent
1de8953404
commit
91cd150862
|
|
@ -293,7 +293,7 @@ public class StreamingLogHook : ConversationHookBase, IContentGeneratingHook, IR
|
|||
var routing = _services.GetRequiredService<IRoutingService>();
|
||||
var agentId = routing.Context.GetCurrentAgentId();
|
||||
var agent = await _agentService.GetAgent(agentId);
|
||||
if (agent == null) return;
|
||||
|
||||
var input = new ContentLogInputModel()
|
||||
{
|
||||
Name = agent.Name,
|
||||
|
|
|
|||
Loading…
Reference in a new issue