LLMService class

Service for managing LLM providers with optional caching.

Constructors

LLMService({bool enableCaching = true})
Creates a new LLM service.

Properties

cacheStats Map<String, dynamic>?
Returns cache statistics if caching is enabled.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clearCache() → void
Clears the response cache.
getPreferredProvider() Future<LLMProvider?>
Gets the user's preferred LLM provider.
getProvider(String providerName) Future<LLMProvider?>
Gets a specific LLM provider by name.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited