DistributedCachingChatClient 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.
A delegating chat client that caches the results of completion calls, storing them as JSON in an IDistributedCache.
public ref class DistributedCachingChatClient : Microsoft::Extensions::AI::CachingChatClient
public class DistributedCachingChatClient : Microsoft.Extensions.AI.CachingChatClient
type DistributedCachingChatClient = class
inherit CachingChatClient
Public Class DistributedCachingChatClient
Inherits CachingChatClient
- Inheritance
Remarks
The provided implementation of IChatClient is thread-safe for concurrent use so long as the employed IDistributedCache is similarly thread-safe for concurrent use.
Constructors
DistributedCachingChatClient(IChatClient, IDistributedCache) |
Initializes a new instance of the DistributedCachingChatClient class. |
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. |
Metadata |
Gets metadata that describes the IChatClient. (Inherited from DelegatingChatClient) |