17 references to FunctionInvokingChatClient
Microsoft.Extensions.AI (1)
ChatCompletion\FunctionInvokingChatClientBuilderExtensions.cs (1)
35var chatClient = new FunctionInvokingChatClient(innerClient, loggerFactory?.CreateLogger(typeof(FunctionInvokingChatClient)));
Microsoft.Extensions.AI.Integration.Tests (6)
ChatClientIntegrationTests.cs (6)
170using var chatClient = new FunctionInvokingChatClient( 204using var chatClient = new FunctionInvokingChatClient(_chatClient); 220using var chatClient = new FunctionInvokingChatClient(_chatClient); 247using var chatClient = new FunctionInvokingChatClient(_chatClient); 280using var chatClient = new FunctionInvokingChatClient(_chatClient); 301using var chatClient = new FunctionInvokingChatClient(_chatClient);
Microsoft.Extensions.AI.Tests (10)
ChatCompletion\FunctionInvokingChatClientTests.cs (10)
25Assert.Throws<ArgumentNullException>("innerClient", () => new FunctionInvokingChatClient(null!)); 33using FunctionInvokingChatClient client = new(innerClient); 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 }); 408b.Use((c, services) => new FunctionInvokingChatClient(c, services.GetRequiredService<ILogger<FunctionInvokingChatClient>>())); 464new FunctionInvokingChatClient( 525using var client = new FunctionInvokingChatClient(innerClient);