3 references to AnonymousDelegatingChatClient
Microsoft.Extensions.AI (1)
ChatCompletion\ChatClientBuilder.cs (1)
102return Use((innerClient, _) => new AnonymousDelegatingChatClient(innerClient, sharedFunc));
Microsoft.Extensions.AI.Tests (2)
ChatCompletion\UseDelegateChatClientTests.cs (2)
26Assert.Throws<ArgumentNullException>("innerClient", () => new AnonymousDelegatingChatClient(null!, delegate { return Task.CompletedTask; })); 27Assert.Throws<ArgumentNullException>("sharedFunc", () => new AnonymousDelegatingChatClient(client, null!));