DistributedCachingChatClientBuilderExtensions extension

Provides extensions for adding DistributedCachingChatClient to a ChatClientBuilder pipeline.

on

Methods

useDistributedCache({DistributedCache? storage, required Uint8List serializeResponse(ChatResponse response), required ChatResponse deserializeResponse(Uint8List data), DistributedCacheEntryOptions? cacheOptions, void configure(DistributedCachingChatClient client)?}) ChatClientBuilder

Available on ChatClientBuilder, provided by the DistributedCachingChatClientBuilderExtensions extension

Adds response caching backed by a DistributedCache.