17 references to FunctionInvokingChatClient
Microsoft.Extensions.AI (1)
ChatCompletion\FunctionInvokingChatClientBuilderExtensions.cs (1)
35
var chatClient = new
FunctionInvokingChatClient
(innerClient, loggerFactory?.CreateLogger(typeof(FunctionInvokingChatClient)));
Microsoft.Extensions.AI.Integration.Tests (6)
ChatClientIntegrationTests.cs (6)
170
using var chatClient = new
FunctionInvokingChatClient
(
204
using var chatClient = new
FunctionInvokingChatClient
(_chatClient);
220
using var chatClient = new
FunctionInvokingChatClient
(_chatClient);
247
using var chatClient = new
FunctionInvokingChatClient
(_chatClient);
280
using var chatClient = new
FunctionInvokingChatClient
(_chatClient);
301
using var chatClient = new
FunctionInvokingChatClient
(_chatClient);
Microsoft.Extensions.AI.Tests (10)
ChatCompletion\FunctionInvokingChatClientTests.cs (10)
25
Assert.Throws<ArgumentNullException>("innerClient", () => new
FunctionInvokingChatClient
(null!));
33
using FunctionInvokingChatClient client =
new
(innerClient);
114
Func<ChatClientBuilder, ChatClientBuilder> configure = b => b.Use(s => new
FunctionInvokingChatClient
(s) { ConcurrentInvocation = concurrentInvocation });
154
Func<ChatClientBuilder, ChatClientBuilder> configure = b => b.Use(s => new
FunctionInvokingChatClient
(s) { ConcurrentInvocation = true });
235
Func<ChatClientBuilder, ChatClientBuilder> configure = b => b.Use(client => new
FunctionInvokingChatClient
(client) { KeepFunctionCallingMessages = keepFunctionCallingMessages });
281
Func<ChatClientBuilder, ChatClientBuilder> configure = b => b.Use(client => new
FunctionInvokingChatClient
(client) { KeepFunctionCallingMessages = keepFunctionCallingMessages });
343
Func<ChatClientBuilder, ChatClientBuilder> configure = b => b.Use(s => new
FunctionInvokingChatClient
(s) { DetailedErrors = detailedErrors });
408
b.Use((c, services) => new
FunctionInvokingChatClient
(c, services.GetRequiredService<ILogger<FunctionInvokingChatClient>>()));
464
new
FunctionInvokingChatClient
(
525
using var client = new
FunctionInvokingChatClient
(innerClient);