RoutingStrategyHandler class abstract
Abstract interface for routing strategy implementations.
Each strategy decides how to order providers for a given request. This replaces the previous switch-on-enum approach (OCP compliance).
Constructors
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
-
selectProviders(
List< AIProvider> available, Map<String, List< latencyHistory) → List<Duration> >AIProvider> - Orders the available providers based on this strategy's logic.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited