3 instantiations of LoggingChatClient
Microsoft.Extensions.AI (1)
ChatCompletion\LoggingChatClientBuilderExtensions.cs (1)
32var chatClient = new LoggingChatClient(innerClient, loggerFactory.CreateLogger(typeof(LoggingChatClient)));
Microsoft.Extensions.AI.Tests (2)
ChatCompletion\LoggingChatClientTests.cs (2)
20Assert.Throws<ArgumentNullException>("innerClient", () => new LoggingChatClient(null!, NullLogger.Instance)); 21Assert.Throws<ArgumentNullException>("logger", () => new LoggingChatClient(new TestChatClient(), null!));
6 references to LoggingChatClient
Microsoft.Extensions.AI (6)
ChatCompletion\LoggingChatClient.cs (1)
28/// <summary>Initializes a new instance of the <see cref="LoggingChatClient"/> class.</summary>
ChatCompletion\LoggingChatClientBuilderExtensions.cs (5)
11/// <summary>Provides extensions for configuring <see cref="LoggingChatClient"/> instances.</summary> 20/// <param name="configure">An optional callback that can be used to configure the <see cref="LoggingChatClient"/> instance.</param> 25Action<LoggingChatClient>? configure = null) 32var chatClient = new LoggingChatClient(innerClient, loggerFactory.CreateLogger(typeof(LoggingChatClient)));