ChainEntry class final

One entry of a FallbackStreamFunction's chain: the model to call, its key ring, and the per-key stream factory.

Constructors

ChainEntry({required Model model, required ApiKeyRing keyRing, required StreamFunction streamForKey(String apiKey)})
Creates a chain entry.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
keyRing ApiKeyRing
This entry's API-key stack (round-robin + backoff).
final
label String
The provider/modelId display label.
no setter
model Model
The model this entry calls (carries provider/baseUrl/limits).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
streamForKey StreamFunction Function(String apiKey)
Builds the provider StreamFunction bound to one API key value.
final

Methods

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