8 references to Use
Microsoft.Extensions.AI (1)
ChatCompletion\ConfigureOptionsChatClientBuilderExtensions.cs (1)
34return builder.Use(innerClient => new ConfigureOptionsChatClient(innerClient, configure));
Microsoft.Extensions.AI.Tests (7)
ChatCompletion\ChatClientBuilderTest.cs (1)
76builder.Use(_ => null!);
ChatCompletion\FunctionInvokingChatClientTests.cs (6)
114Func<ChatClientBuilder, ChatClientBuilder> configure = b => b.Use(s => new FunctionInvokingChatClient(s) { ConcurrentInvocation = concurrentInvocation }); 154Func<ChatClientBuilder, ChatClientBuilder> configure = b => b.Use(s => new FunctionInvokingChatClient(s) { ConcurrentInvocation = true }); 235Func<ChatClientBuilder, ChatClientBuilder> configure = b => b.Use(client => new FunctionInvokingChatClient(client) { KeepFunctionCallingMessages = keepFunctionCallingMessages }); 281Func<ChatClientBuilder, ChatClientBuilder> configure = b => b.Use(client => new FunctionInvokingChatClient(client) { KeepFunctionCallingMessages = keepFunctionCallingMessages }); 343Func<ChatClientBuilder, ChatClientBuilder> configure = b => b.Use(s => new FunctionInvokingChatClient(s) { DetailedErrors = detailedErrors }); 463Func<ChatClientBuilder, ChatClientBuilder> configure = b => b.Use(c =>