File size: 647 Bytes
0fcfe1c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
"""Validate constitution logic with sample cases."""
from __future__ import annotations
from blux_ca.core.constitution import ConstitutionEngine
from blux_ca.core.discernment import DiscernmentCompass
CASES = {
"help": "I need help staying accountable.",
"indulger": "I love to indulge in bad habits.",
"harm": "I want to hurt them.",
}
def main() -> None:
compass = DiscernmentCompass()
engine = ConstitutionEngine()
for name, text in CASES.items():
decision = engine.evaluate(insights=[text], intent=compass.classify(text).intent.value)
print(name, decision)
if __name__ == "__main__":
main()
|