6 instantiations of AnonymousDelegatingChatClient
Microsoft.Extensions.AI (2)
ChatCompletion\ChatClientBuilder.cs (2)
102return Use((innerClient, _) => new AnonymousDelegatingChatClient(innerClient, sharedFunc)); 137return Use((innerClient, _) => new AnonymousDelegatingChatClient(innerClient, completeFunc, completeStreamingFunc));
Microsoft.Extensions.AI.Tests (4)
ChatCompletion\UseDelegateChatClientTests.cs (4)
26Assert.Throws<ArgumentNullException>("innerClient", () => new AnonymousDelegatingChatClient(null!, delegate { return Task.CompletedTask; })); 27Assert.Throws<ArgumentNullException>("sharedFunc", () => new AnonymousDelegatingChatClient(client, null!)); 29Assert.Throws<ArgumentNullException>("innerClient", () => new AnonymousDelegatingChatClient(null!, null!, null!)); 30Assert.Throws<ArgumentNullException>("completeFunc", () => new AnonymousDelegatingChatClient(client, null!, null!));
5 references to AnonymousDelegatingChatClient
Microsoft.Extensions.AI (4)
ChatCompletion\AnonymousDelegatingChatClient.cs (2)
34/// Initializes a new instance of the <see cref="AnonymousDelegatingChatClient"/> class. 57/// Initializes a new instance of the <see cref="AnonymousDelegatingChatClient"/> class.
ChatCompletion\ChatClientBuilder.cs (2)
98public ChatClientBuilder Use(AnonymousDelegatingChatClient.CompleteSharedFunc sharedFunc) 135AnonymousDelegatingChatClient.ThrowIfBothDelegatesNull(completeFunc, completeStreamingFunc);
Microsoft.Extensions.AI.Tests (1)
ChatCompletion\UseDelegateChatClientTests.cs (1)
22builder.Use((AnonymousDelegatingChatClient.CompleteSharedFunc)null!));