17 instantiations of 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);
28 references to FunctionInvokingChatClient
Microsoft.Extensions.AI (11)
ChatCompletion\FunctionInvokingChatClient.cs (5)
54/// Initializes a new instance of the <see cref="FunctionInvokingChatClient"/> class. 139/// <see cref="FunctionInvokingChatClient"/>, the <see cref="FunctionInvokingChatClient"/> adds 163/// Each request to this <see cref="FunctionInvokingChatClient"/> might end up making 749/// The initial request to the client that passes along the chat contents provided to the <see cref="FunctionInvokingChatClient"/>
ChatCompletion\FunctionInvokingChatClientBuilderExtensions.cs (6)
12/// Provides extension methods for attaching a <see cref="FunctionInvokingChatClient"/> to a chat pipeline. 19/// <remarks>This works by adding an instance of <see cref="FunctionInvokingChatClient"/> with default options.</remarks> 22/// <param name="configure">An optional callback that can be used to configure the <see cref="FunctionInvokingChatClient"/> instance.</param> 27Action<FunctionInvokingChatClient>? configure = null) 35var chatClient = new FunctionInvokingChatClient(innerClient, loggerFactory?.CreateLogger(typeof(FunctionInvokingChatClient)));
Microsoft.Extensions.AI.AzureAIInference.Tests (2)
AzureAIInferenceChatClientTests.cs (2)
89Assert.NotNull(pipeline.GetService<FunctionInvokingChatClient>()); 96Assert.IsType<FunctionInvokingChatClient>(pipeline.GetService<IChatClient>());
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.Ollama.Tests (2)
OllamaChatClientTests.cs (2)
58Assert.NotNull(pipeline.GetService<FunctionInvokingChatClient>()); 64Assert.IsType<FunctionInvokingChatClient>(pipeline.GetService<IChatClient>());
Microsoft.Extensions.AI.OpenAI.Tests (4)
OpenAIChatClientTests.cs (4)
105Assert.NotNull(pipeline.GetService<FunctionInvokingChatClient>()); 111Assert.IsType<FunctionInvokingChatClient>(pipeline.GetService<IChatClient>()); 130Assert.NotNull(pipeline.GetService<FunctionInvokingChatClient>()); 136Assert.IsType<FunctionInvokingChatClient>(pipeline.GetService<IChatClient>());
Microsoft.Extensions.AI.Tests (3)
ChatCompletion\FunctionInvokingChatClientTests.cs (3)
33using FunctionInvokingChatClient client = new(innerClient); 408b.Use((c, services) => new FunctionInvokingChatClient(c, services.GetRequiredService<ILogger<FunctionInvokingChatClient>>())); 525using var client = new FunctionInvokingChatClient(innerClient);