Expand description
Scoring traits and scored affordance types for encounter resolution.
This module provides ScoredAffordance, AcceptanceEval, and
ActionScorer — the core interfaces consumers implement to plug in
utility scoring and acceptance logic.
Structs§
- Always
Accept - Test helper: always accepts any action for any responder.
- Always
Reject - Test helper: always rejects any action for any responder.
- Scored
Affordance - An affordance that has been sifted and scored. Input to resolution protocols.
Generic over precondition type P (from
CatalogEntry<P>). Default is String.
Traits§
- Acceptance
Eval - Evaluates whether a responder accepts an action.
- Action
Scorer - Scores available affordances for an actor.