You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IKernelBuilderbuilder=Kernel.CreateBuilder();builder.Services.AddSingleton(loggerFactory);Kernelkernel=builder.Build();varagent=awaitOpenAIAssistantAgent.CreateAsync(clientProvider:OpenAIClientProvider.ForAzureOpenAI(newAzureCliCredential(),oaiEndpoint),definition:newOpenAIAssistantDefinition("chat"){Name="Bot",Instructions="Please answer the following question."},kernel:kernel);
Expected behavior
The LoggerFactory from the Kernel should be used.
Describe the bug
LoggerFactory
is never set inAgent
class and thus is always usingNullLoggerFactory
, which results in no logs at all.https://github.com/microsoft/semantic-kernel/blob/main/dotnet/src/Agents/Abstractions/Agent.cs#L43
To Reproduce
Expected behavior
The LoggerFactory from the
Kernel
should be used.Workaround
Platform
The text was updated successfully, but these errors were encountered: