Abstract AI Provider interface.
Single authority for communicating with remote or local AI generation backends. All implementations (real Gemini, OpenAI, Claude, or mock) conform to this interface.
- Implementers
Properties
- displayName → String
-
Human-readable display name.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- providerId → String
-
Provider unique identifier (e.g. 'mock', 'gemini', 'openai').
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
checkHealth(
) → Future< AiProviderHealthStatus> - Checks if the provider is currently reachable and operational.
-
complete(
AiCompletionRequest request) → Future< AiCompletionResponse> - Executes a single completion request.
-
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