Skip to main content

implicit_skill_match

Function implicit_skill_match 

Source
pub fn implicit_skill_match<'a>(
    skills: &'a [LoopSkill],
    text: &str,
) -> Option<&'a LoopSkill>
Expand description

BP-6 (cx§7 “implicit (description-matched) invocation”): the single best skill a message DESCRIBES, or None.

Off by default ([core.skills] implicit_match), because an implicit load spends a body’s tokens the user never asked for. The rule is deliberately conservative: the skill’s own name appearing as a word, or TWO distinct significant words from its description. At most one skill is ever matched implicitly.