Skip to main content

Module value_scorer

Module value_scorer 

Source
Expand description

Value-aware action scoring.

ValueAwareScorer wraps an inner [ActionScorer] and adds a per- affordance boost proportional to how strongly the actor’s audience prefers the values the affordance’s backing scheme promotes.

§Composition

Designed to wrap crate::SchemeActionScorer (which itself wraps a baseline scorer):

let scorer = ValueAwareScorer::new(
    SchemeActionScorer::new(knowledge, registry, baseline, 0.3),
    state,
    0.2,
);

The two boosts compose additively: scheme-strength boost first, then value-preference boost. Both are skipped silently when the actor has no configured audience (i.e., no VAF dimension on this character).

Structs§

ValueAwareScorer
An [ActionScorer] that boosts affordances by audience-conditioned value preference.