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