ResponseCachingChatClient Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An IChatClient that wraps another IChatClient and caches all responses generated using the wrapped IChatClient in the supplied IDistributedCache.
public ref class ResponseCachingChatClient sealed : Microsoft::Extensions::AI::DistributedCachingChatClient
public sealed class ResponseCachingChatClient : Microsoft.Extensions.AI.DistributedCachingChatClient
type ResponseCachingChatClient = class
inherit DistributedCachingChatClient
Public NotInheritable Class ResponseCachingChatClient
Inherits DistributedCachingChatClient
- Inheritance
-
ResponseCachingChatClient
Constructors
ResponseCachingChatClient(IChatClient, IDistributedCache, IEnumerable<String>, JsonSerializerOptions) |
Creates a new instance of ResponseCachingChatClient that wraps the supplied
|
Properties
CoalesceStreamingUpdates |
Gets or sets a value indicating whether to coalesce streaming updates. (Inherited from CachingChatClient) |
InnerClient |
Gets the inner IChatClient. (Inherited from DelegatingChatClient) |
JsonSerializerOptions |
Gets or sets JSON serialization options to use when serializing cache data. (Inherited from DistributedCachingChatClient) |
Metadata |
Gets metadata that describes the IChatClient. (Inherited from DelegatingChatClient) |