Skip to main content

Module scoring

Module scoring 

Source
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§

AlwaysAccept
Test helper: always accepts any action for any responder.
AlwaysReject
Test helper: always rejects any action for any responder.
ScoredAffordance
An affordance that has been sifted and scored. Input to resolution protocols. Generic over precondition type P (from CatalogEntry<P>). Default is String.

Traits§

AcceptanceEval
Evaluates whether a responder accepts an action.
ActionScorer
Scores available affordances for an actor.