Store Memory
store_memoryStore user facts and preferences with automatic deduplication and contradiction detection. Assign importance scores to control memory decay rates for trivia, general facts, or critical information.
Instructions
Store a fact or preference about a user. Smara handles deduplication and contradiction detection automatically. Use importance 0.1-0.3 for trivia, 0.5 for general facts, 0.7-1.0 for critical preferences.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | Yes | Unique identifier for the user | |
| fact | Yes | The fact or preference to remember | |
| importance | No | Importance score (0-1). Higher = slower decay. | |
| namespace | No | Memory namespace for isolation (default: from env or 'default') | |
| visibility | No | Who can see this memory. Use 'team' for project decisions, architecture, conventions, shared knowledge — anything a teammate needs. Use 'private' for personal preferences, editor settings, individual style choices. Only applies when SMARA_TEAM_ID is set. | |
| team_id | No | Team ID to store this memory under. Defaults to SMARA_TEAM_ID env var if set. |