add_rule
Specify a trigger and action to enforce AI behavior rules at company, team, or personal scope. Set priorities and overrides for consistent, context-aware responses across any topic.
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 |
|---|---|---|---|
| scope | No | Rule scope: company (org-mandated, cannot be overridden), negotiated (team-adapted), personal (individual preference) | personal |
| action | Yes | What to do when triggered (e.g., 'Always use SSL', 'Never commit secrets') | |
| trigger | Yes | Topic/scene that activates this rule (e.g., 'database', 'code review', 'security') | |
| override | No | Whether this rule overrides conflicting lower-scope rules | |
| rule_type | No | Rule type: always (mandatory), avoid (discouraged), forbid (prohibited), prefer (recommended), format (output formatting directive) | always |