CachedLLMProvider constructor
CachedLLMProvider({
- required LLMProvider delegate,
- required LLMCache cache,
Creates a cached wrapper around an existing provider.
delegate - The underlying LLM provider to wrap.
cache - The cache instance to use (shared across providers if desired).
Implementation
CachedLLMProvider({
required LLMProvider delegate,
required LLMCache cache,
}) : _delegate = delegate,
_cache = cache;