9 references to Use
Microsoft.Extensions.AI (7)
ChatCompletion\ChatClientBuilder.cs (3)
68return Use((innerClient, _) => clientFactory(innerClient)); 102return Use((innerClient, _) => new AnonymousDelegatingChatClient(innerClient, sharedFunc)); 137return Use((innerClient, _) => new AnonymousDelegatingChatClient(innerClient, completeFunc, completeStreamingFunc));
ChatCompletion\DistributedCachingChatClientBuilderExtensions.cs (1)
28return builder.Use((innerClient, services) =>
ChatCompletion\FunctionInvokingChatClientBuilderExtensions.cs (1)
31return builder.Use((innerClient, services) =>
ChatCompletion\LoggingChatClientBuilderExtensions.cs (1)
29return builder.Use((innerClient, services) =>
ChatCompletion\OpenTelemetryChatClientBuilderExtensions.cs (1)
31Throw.IfNull(builder).Use((innerClient, services) =>
Microsoft.Extensions.AI.Tests (2)
ChatCompletion\ChatClientBuilderTest.cs (1)
25builder.Use((innerClient, serviceProvider) =>
ChatCompletion\FunctionInvokingChatClientTests.cs (1)
408b.Use((c, services) => new FunctionInvokingChatClient(c, services.GetRequiredService<ILogger<FunctionInvokingChatClient>>()));