Common interface for all provider adapters in prism_ai.
Every adapter normalizes its provider's wire format into the same typed event sequence: AiTextDelta chunks, optional AiToolCalls, and a terminal AiDone. Errors surface as AiError events — implementations never throw into the consumer's stream loop.
- Implementers
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
streamChat(
List< AiChatMessage> messages, {required String model, double? temperature, int? maxTokens, Map<String, Object?> extraBody}) → Stream<Object> - Streams a chat completion as a sequence of typed events.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited