add_rule
Define behavioral rules for AI by specifying a trigger topic and required action. Choose scope (company, negotiated, personal) and rule type to set priority and enforce consistent behavior.
Instructions
Add a behavioral rule to CarryMem's rule engine. Rules guide AI behavior for specific topics. Use 'company' scope for organization-mandated rules (highest priority), 'negotiated' for team-adapted rules, or 'personal' for individual preferences (lowest priority).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trigger | Yes | Topic/scene that activates this rule (e.g., 'database', 'code review', 'security') | |
| action | Yes | What to do when triggered (e.g., 'Always use SSL', 'Never commit secrets') | |
| scope | No | Rule scope: company (org-mandated, cannot be overridden), negotiated (team-adapted), personal (individual preference) | personal |
| rule_type | No | Rule type: always (mandatory), avoid (discouraged), forbid (prohibited), prefer (recommended), recommend (suggested) | always |
| override | No | Whether this rule overrides conflicting lower-scope rules |