Header menu logo Nao

ConstitutionRule Type

A rule in a declarative constitution that governs agent behavior

Record fields

Record Field Description

Category

Full Usage: Category

Field type: RuleCategory

The rule category

Field type: RuleCategory

Check

Full Usage: Check

Field type: string -> bool

The rule predicate — returns true if the content violates the rule

Field type: string -> bool

Description

Full Usage: Description

Field type: string

Human-readable description of the rule

Field type: string

Id

Full Usage: Id

Field type: string

Unique rule identifier

Field type: string

IsHardConstraint

Full Usage: IsHardConstraint

Field type: bool

Whether violating this rule should halt execution

Field type: bool

Priority

Full Usage: Priority

Field type: int

Priority (higher = more important, used for conflict resolution)

Field type: int

Type something to start searching.