Expand description
Score-weighted selection over a list of (name, score) candidates.
The selector is the hook that lets a fallback chain (or any other higher-level orchestrator) consult the reliability score. The pattern:
- Each candidate runs its extraction and produces a
ReliabilityScore. - The orchestrator hands all
(name, score)pairs toScoreWeightedSelector::pick_best. - The candidate with the highest
overallscore wins; ties are broken by the first registered candidate (preserving the registration order so callers retain control).
The selector is pure and stateless — pass it into any orchestrator without wiring concerns.
Structs§
- Score
Weighted Selector - Stateless selector that picks the highest-scoring
ScoredCandidate. - Scored
Candidate - A
(name, score)candidate forScoreWeightedSelector.