bctx-conductor 0.1.25

bctx-conductor — Spiral Cycle agent runtime, SignalGraph, PassageRun
Documentation
1
2
3
4
5
6
7
8
9
10
pub struct CapabilitySet(pub Vec<String>);

impl CapabilitySet {
    pub fn all() -> Self {
        Self(Vec::new())
    }
    pub fn allows(&self, skill: &str) -> bool {
        self.0.is_empty() || self.0.iter().any(|s| s == skill)
    }
}