4 instantiations of DistributedCachingChatClient
Microsoft.Extensions.AI (1)
ChatCompletion\DistributedCachingChatClientBuilderExtensions.cs (1)
31var chatClient = new DistributedCachingChatClient(innerClient, storage);
Microsoft.Extensions.AI.Integration.Tests (1)
ChatClientIntegrationTests.cs (1)
321using var chatClient = new DistributedCachingChatClient(
Microsoft.Extensions.AI.Tests (2)
ChatCompletion\DistributedCachingChatClientTest.cs (2)
24using var cachingClient = new DistributedCachingChatClient(innerClient, _storage); 79using var outer = new DistributedCachingChatClient(testClient, _storage)
14 references to DistributedCachingChatClient
Microsoft.Extensions.AI (6)
ChatCompletion\DistributedCachingChatClient.cs (1)
29/// <summary>Initializes a new instance of the <see cref="DistributedCachingChatClient"/> class.</summary>
ChatCompletion\DistributedCachingChatClientBuilderExtensions.cs (5)
12/// Extension methods for adding a <see cref="DistributedCachingChatClient"/> to an <see cref="IChatClient"/> pipeline. 17/// Adds a <see cref="DistributedCachingChatClient"/> as the next stage in the pipeline. 23/// <param name="configure">An optional callback that can be used to configure the <see cref="DistributedCachingChatClient"/> instance.</param> 25public static ChatClientBuilder UseDistributedCache(this ChatClientBuilder builder, IDistributedCache? storage = null, Action<DistributedCachingChatClient>? configure = null) 31var chatClient = new DistributedCachingChatClient(innerClient, storage);
Microsoft.Extensions.AI.AzureAIInference.Tests (1)
AzureAIInferenceChatClientTests.cs (1)
88Assert.NotNull(pipeline.GetService<DistributedCachingChatClient>());
Microsoft.Extensions.AI.Integration.Tests (2)
ChatClientIntegrationTests.cs (2)
321using var chatClient = new DistributedCachingChatClient( 347using var chatClient = new DistributedCachingChatClient(
Microsoft.Extensions.AI.Ollama.Tests (1)
OllamaChatClientTests.cs (1)
59Assert.NotNull(pipeline.GetService<DistributedCachingChatClient>());
Microsoft.Extensions.AI.OpenAI.Tests (2)
OpenAIChatClientTests.cs (2)
106Assert.NotNull(pipeline.GetService<DistributedCachingChatClient>()); 131Assert.NotNull(pipeline.GetService<DistributedCachingChatClient>());
Microsoft.Extensions.AI.Tests (2)
ChatCompletion\DistributedCachingChatClientTest.cs (2)
24using var cachingClient = new DistributedCachingChatClient(innerClient, _storage); 79using var outer = new DistributedCachingChatClient(testClient, _storage)